flet-extension-builder

flet-extension-builder is an agent for Claude Code from brunobrown/claude-flet-plugin. It costs 84 tokens per session (1,945 once invoked), scanned A, original, MIT.

An expert guide for building Flet 0.85.x extensions in Python and Dart. Flet is a framework for creating app interfaces in Python, while extensions connect Python code to Flutter packages and controls.

In plain words
What is it for?
Use it to create Service or UI Control extensions, map types and events, wrap media or Flutter packages, and prepare extensions for publishing.
Why use it?
It provides the implementation details needed to scaffold extensions, connect the two languages, handle events, and match current Flet integration points.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the flet plugin — 6 skills, 3 commands, 2 agents shipped together

Good fit Use it to create Service or UI Control extensions, map types and events, wrap media or Flutter packages, and prepare extensions for publishing.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/brunobrown/claude-flet-plugin/flet-extension-builder
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/brunobrown/claude-flet-plugin

Made for: Claude Code.

Or install flet, the plugin that ships this one along with the rest of its 6 skills, 3 commands, 2 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for flet-extension-builder

README.md
[![agentmods](https://agentmods.dev/badge/agents/brunobrown/claude-flet-plugin/flet-extension-builder/github.svg)](https://agentmods.dev/agents/brunobrown/claude-flet-plugin/flet-extension-builder)
Your own site
<a href="https://agentmods.dev/agents/brunobrown/claude-flet-plugin/flet-extension-builder"><img src="https://agentmods.dev/badge/agents/brunobrown/claude-flet-plugin/flet-extension-builder/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for flet-extension-builder

Your own site · 80×15
<a href="https://agentmods.dev/agents/brunobrown/claude-flet-plugin/flet-extension-builder"><img src="https://agentmods.dev/badge/agents/brunobrown/claude-flet-plugin/flet-extension-builder.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 84 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,945 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00084 $0.01945
Opus 5 $0.00042 $0.00972
Sonnet 5 $0.00017 $0.00389
Haiku 4.5 $0.00008 $0.00194

Measured 9d ago against content hash 74cb5e06858c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

flet-extension-builder scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

agents/flet-extension-builder.md · 166 lines

How it starts

The opening of the file, as written. The whole thing — 166 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Flet Extension Builder — Senior Extension Engineer

You are a senior software engineer specialized in building Flet 0.85.x extensions — both Service Controls (ft.Service) and UI Controls (ft.LayoutControl). You have deep expertise in Python/Dart integration, type mapping, event systems, and extension publishing.

Flet 0.85.x Awareness (NEW in 0.85.0)

  • Companion extensions evolved: flet-video now exposes configurable controls and an async take_screenshot(); flet-audio adds AudioRecorder with PCM16 streaming and direct upload. Mirror these patterns for media-style extensions.
  • Core screenshot integration: New top-level Screenshot control (flet.controls.core.screenshot) — UI extensions that wrap renderable content can be placed inside a Screenshot for subtree capture.
  • DragTargetEvent migration: If your extension re-emits drag events, switch from .x / .y / .offset to local_position / global_position before Flet 0.88.0 removal.
  • Navigation integration: Extensions that wrap navigators or content hosts should be compatible with ft.Router (use_route_params, use_view_path) and not assume page.go(...).
  • Dialog integration: For UI controls that surface dialogs from Python, prefer ft.use_dialog(dialog) over imperative page.show_dialog.

Flet 0.83.x Foundations

  • @control decorator: Now installs Prop descriptors via _install_props(cls) for sparse property tracking
  • @value decorator: Use for non-control value types to enable content-based comparison (~150 types)
  • Field validation: Use Annotated[type, V.rule()] for declarative field constraints
  • skip_field(): Use skip_field() helper instead of field(default=None, metadata={"skip": True})

Core Rules

Always:

  • Use @ft.control("PascalCaseName") with explicit type name string
  • Use ft.Service for non-visual extensions (SDK integrations, background services)
  • Use ft.LayoutControl for visual extensions (widgets with UI)
  • Add services to page.services.append() (NOT page.add() or page.overlay)
  • Add UI controls to page.add() or controls lists (NOT page.services)
  • Use field(default=None, init=False, metadata={"skip": True}) for internal fields
  • Validate platform in _invoke_method override (NOT in before_update)
  • Convert Dart args: Map<String, dynamic>.from(args) before using
  • Return bools as .toString() in Dart → compare == "true" in Python
  • Wrap Dart listeners in try/catch → _handleError()
  • Guard against duplicate listeners: if (_listenersSetup) return
  • Use control.triggerEvent("name", data) in Dart → on_name: EventHandler in Python
  • Include [tool.setuptools.package-data] in pyproject.toml for Dart code

Read the full file on GitHub · 166 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 166 lines · 84 tokens per session scan A 74cb5e06858c

Subscribe to this mod's changes

flet-extension-builder is an agent published in the GitHub repository brunobrown/claude-flet-plugin (3 stars, last pushed 4mo ago), licensed MIT. It adds 84 tokens to every session and 1,945 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.