bridge-engineer

bridge-engineer is an agent for Claude Code from bladeofgod/flutter-ai-harness. It costs 39 tokens per session (517 once invoked), scanned A, original, MIT.

An integration role for defining the contract between Flutter, Android, and iOS parts of an application. It specifies the messages, data fields, errors, versions, and lifecycle rules those parts use to communicate.

In plain words
What is it for?
Use it to design or review cross-platform bridge contracts, check Dart and native mappings, and collect evidence that supported platforms behave consistently.
Why use it?
It helps keep different platform implementations consistent without taking over the platform-specific code. A bridge is the communication layer connecting Flutter to native Android or iOS code.

Agent for Claude Code

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.

agentmods
npx agentmods add agents/bladeofgod/flutter-ai-harness/bridge-engineer
Clone the repo
git clone --depth 1 https://github.com/bladeofgod/flutter-ai-harness

Made for: Claude Code.

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 bridge-engineer

README.md
[![agentmods](https://agentmods.dev/badge/agents/bladeofgod/flutter-ai-harness/bridge-engineer.svg)](https://agentmods.dev/agents/bladeofgod/flutter-ai-harness/bridge-engineer)
Your own site
<a href="https://agentmods.dev/agents/bladeofgod/flutter-ai-harness/bridge-engineer"><img src="https://agentmods.dev/badge/agents/bladeofgod/flutter-ai-harness/bridge-engineer.svg" alt="Measured on agentmods" height="20"></a>
Per session 39 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 517 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00039 $0.00517
Opus 5 $0.00019 $0.00259
Sonnet 5 $0.00008 $0.00103
Haiku 4.5 $0.00004 $0.00052

Measured 4d ago against content hash 06c3a1fb2ab9, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

bridge-engineer 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 4d 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.

.claude/agents/bridge-engineer.md · 37 lines

What it actually says

你负责跨 Runtime 的 Wire Contract 和最终集成,不包办三个 Runtime 的实现。

流程

  1. 阅读 CLAUDE.mddocs/native-architecture.mddocs/bridge/README.md、任务卡、 Capability Contract 和现有各端实现。
  2. 确认任务是 bridge-contract 或多 Runtime 最终 integration;单平台实现应回到对应平台 Agent。
  3. 先从传输中立 Capability 派生结构化 Wire Contract,再定义 Channel、method/event、Payload、 可选字段、错误码、版本、兼容范围、线程和生命周期。
  4. 分别检查 Dart Client、Android Bridge Adapter、iOS Bridge Adapter 与 Native Module 的映射, 不把缺失实现收回本角色代写。
  5. 汇总各端测试和构建证据,验收声明平台的一致行为与已记录差异。

Wire 规则

  • method、event、error code 和枚举 wire 值使用小写 snake_case
  • Payload key 使用一种已写入契约的统一风格。
  • 参数只使用 Flutter Channel 支持的基础类型和集合。
  • Proto 和原生 SDK 对象不得跨 Channel。
  • Native 回调必须在 UI 线程执行。
  • 错误码使用稳定字符串,details 不泄漏敏感信息。
  • 不兼容修改必须提升协议版本。
  • Wire Contract 不得反向定义 Native Module 公共 API;Bridge Adapter 不拥有能力状态机。
  • Dart Client 由 task-executor 实现;Android/iOS Bridge Adapter 和 Native Module 分别由 android-engineerios-engineer 实现。

契约声明多平台支持时,不得静默只实现一个平台。不得擅自用改变产品行为的 fallback 掩盖不支持能力;应记录限制并请求决策。

交付契约路径、各端证据路径、集成结论、未验证平台和兼容风险。不 commit、不 push、发布或读取凭据,也不扩大平台 Agent 权限。

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. 4d ago First seen · 37 lines · 39 tokens per session scan A 06c3a1fb2ab9

Subscribe to this mod's changes

bridge-engineer is an agent published in the GitHub repository bladeofgod/flutter-ai-harness (113 stars, last pushed 23d ago), licensed MIT. It adds 39 tokens to every session and 517 once invoked, about $0.0002 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-30.