Your coding agent
Let your coding agent fill a form in your running Flutter app, using the methods your buttons call.
Paste this prompt into your coding agent in your Flutter app's folder. The first setup takes about ten minutes and needs no backend or model API key.
Run `dart run skills@ add leancodepl/tandem --skill tandem --agent claude`, then read `.claude/skills/tandem/SKILL.md` and follow it.Run `dart run skills@ add leancodepl/tandem --skill tandem --agent cursor`, then read `.cursor/skills/tandem/SKILL.md` and follow it.Run `dart run skills@ add leancodepl/tandem --skill tandem --agent codex`, then read `.agents/skills/tandem/SKILL.md` and follow it.In later sessions, run / to use the installed skill. We test this workflow with Claude Code. The Cursor and Codex tabs provide setup instructions for trying it yourself.
Enable the bridge
The screen needs a TandemScope around a state class annotated with @TandemAgent(). The quick start sets this up.
Call TandemBridge. in main() before runApp. The example app enables it like this:
void main() {
TandemBridge.enable();
runApp(const OrderDeskApp());
}How it reaches the app
TandemBridge. registers two VM service extensions in a debug build. ext. gives the open screens, with what the agent sees and may call. ext. calls one of the listed methods. A profile or release build registers nothing.
A coding agent can reach these extensions through the Dart MCP server's vm_service tool, or over HTTP at the VM service address printed by flutter . The installed tandem-coding-agent skill describes both paths.
- The coding agent sees what an in-app agent would see, and calls only the listed methods, with the same checks.
- From 0.3, an argument that points at an object of the screen,
{"path":, needs the. . . } contextthatext.gave for the screen. The path then reads what the coding agent saw. A call is refused when the context is missing, unknown, or belongs to another screen or session, or when its referenced object has changed. A call without paths, such astandem. describe set_quantitywith a SKU and a number, needs nocontext. - A call without a screen ID goes to the screen of its
context, and without acontextto the only openTandemScope, or the only one on the current route. If several scopes match, the call must name a screen. A call with acontextthat no open screen keeps, such as one of a closed screen, is refused. - A
.call waits for the user to approve it in the app. The scope'scallsWithApproval approvals:setting controls how the request is shown. For scripted runs,TandemBridge.lets the coding agent approve its own calls.enable(autoApprove: true) - While a
TandemViewis on the screen,ext.liststandem. describe tandem_show_viewamong the screen's tools.ext.draws a view with it, with the same checks as for the in-app agent, and needs notandem. call context.