dowel
llms.txt2 starsChanged 13 days agoMITView on GitHub
One binary for your Flutter dev loop and your AI agent: start, hot reload and inspect a running app, scaffold code, install plugins transactionally, and expose the same commands through a built-in stdio MCP server. Stack: Dart >=3.13. dowel is pure Dart; the app you drive needs Flutter. Run as dart run dowel <cmd> (or ./bin/dowel <cmd> once install built it). The commands marked "also MCP tools" are the substrate tools, named dowel_<command> with : and - turned into _…
1 other project uses a version of this.
Adopted by
Most recently taken up by
- fluttersdk/artisanword for word, first seen Nov 18, 2026
Other versions1 project uses a version of this.
Word for word · 1
- fluttersdk/artisan★ 2100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
The file
We split this llms.txt into the rules it gives an agent
6 rules. About 0 are common, 0 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 46
Run as dart run dowel <cmd> (or ./bin/dowel <cmd> once install built it).
- Very specific: line 48
Run the app (also MCP tools): start, stop, status, logs, restart, reload, hot-restart, tinker.
- Very specific: line 64
Start the app with dowel start, not flutter run: reload, restart, logs and tinker find it through the session recorded under …
- Very specific: line 68
Run dart run dowel install once before plugin:install for a plugin without an install.yaml.
- Very specific: line 70
Commit .dowel/plugins.json and .dowel/installed/.
- Very specific: line 72
Do not edit *.g.dart barrels.
≈ “Common” is an estimate: at least 1 in 5 of the 4,067 llms.txt files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
# dowel
> One binary for your Flutter dev loop and your AI agent: start, hot reload and inspect a running app, scaffold code, install plugins transactionally, and expose the same commands through a built-in stdio MCP server.
**Stack**: Dart >=3.13. dowel is pure Dart; the app you drive needs Flutter.
**Setup**:
```bash
dart pub add dowel
dart run dowel install # bin/dispatcher.dart, lib/app/*.g.dart barrels, bin/dowel fast wrapper
dart run dowel list # every registered command
```
```dart
import 'package:dowel/dowel.dart';
final class GreetCommand extends DowelCommand {
@override
String get signature => 'greet {name} {--shout}';
@override
String get description => 'Greet a person by name.';
@override
CommandBoot get boot => CommandBoot.none;
@override
Future<int> handle(DowelContext context) async {
context.output.success('Hello, ${context.input.argument('name') ?? 'world'}');
return 0;
}
}
```
## API
- `runDowel(args, baseProviders:, autoProviders:)`: the shared entry; delegates to the project's `bin/dispatcher.dart` when it has one.
- `DowelCommand`: `signature` (`'cmd:name {arg} {--flag}'`) or `configure(ArgParser)`; `handle(DowelContext)` returns the exit code.
- `DowelServiceProvider`: `commands()` and `mcpTools()`; a plugin exports one from `package:<name>/cli.dart`.
- `DowelInstallCommand` and `PluginInstaller`: staged install operations; `commit` returns `InstallSuccess`, `InstallDryRun`, `InstallConflict` or `InstallError`. File writes swap in through `.tmp` files, but helper edits (dependencies, injections, native files) write directly and are not rolled back: a failure after them reports `rolledBack: false` and leaves a partial install record. `plugin:uninstall` reverses only the files an install created and the dependencies it added that the project did not already declare, and logs every other operation, each `Inject*` among them, as skipped. `install.yaml` is the declarative form; an unknown top-level key fails the parse.
- `package:dowel/dowel.dart` lists its exports with `show` (the install manifest model and the install operations are exported whole): a symbol not listed is internal. Plugins extend `DowelCommand`, `DowelGeneratorCommand`, `DowelInstallCommand` and `DowelServiceProvider`; the other exported classes, except `DowelContext`, `DowelOutput` and `VmServiceClient`, are `final`, and `DowelInput`, `PromptDriver`, `StubDriver` and `VirtualFs` are `interface` classes. `package:args` is re-exported only for `ArgParser`, `ArgParserException` and `ArgResults`.
## Built-in commands
Run as `dart run dowel <cmd>` (or `./bin/dowel <cmd>` once `install` built it).
- Run the app (also MCP tools): `start`, `stop`, `status`, `logs`, `restart`, `reload`, `hot-restart`, `tinker`.
- Inspect (also MCP tools): `doctor`, `list`.
- Scaffold: `install`, `make:plugin`, `make:command`, `make:fast-cli`.
- Plugins: `plugin:install`, `plugin:uninstall`, `plugins:refresh`, `commands:refresh`.
- MCP wiring: `mcp:serve`, `mcp:install`, `mcp:uninstall`.
- Tests: `test:bundle` writes `test/bundle_<n>.g.dart` entries grouping every `*_test.dart`, and refuses a file a bundle cannot run as written.
- `help`.
The commands marked "also MCP tools" are the substrate tools, named `dowel_<command>` with `:` and `-` turned into `_` (`dowel_hot_restart`). The rest write source, prompt or recurse into the server, so they are CLI-only: run them from a shell.
## Platforms
The lifecycle commands (`start`, `stop`, `reload`, `hot-restart`) use a POSIX FIFO: macOS and Linux. The rest of the CLI and the MCP server run wherever Dart does.
## Rules for agents
- Start the app with `dowel start`, not `flutter run`: reload, restart, logs and tinker find it through the session recorded under `~/.dowel/sessions/<hash>/`.
- In a git worktree, run `dowel start` there (or pass `--state=<path>`) before any command that uses the session (`reload`, `stop`, `tinker`, a plugin's `<package>:*`). The ownership check passes when the worktree sits inside the project root the main app recorded (an app at the repo root, the worktree under it) and for state with no recorded `projectRoot`; the command then acts on the main app and reports success. A sibling checkout, or an app in a subdirectory the worktree is not inside, is refused. MCP plugin tools and `dowel_tinker` run no such check. An MCP server resolves the session from its own working directory and falls back to the shared `~/.dowel/state.json` pointer when that project has none, so it can reach the main app; run these commands from a shell inside the worktree. `--state=<path>` skips the check, and a missing or unreadable file falls back to that pointer, so confirm the file exists and holds the intended `projectRoot`.
- `dowel_logs` returns the whole captured log in the tool result, once. Following it is a CLI feature: run `./bin/dowel logs --follow` from a shell, or read the file named by the `log=` line of `dowel start`.
- `dowel_start` and `dowel_restart` take every option their CLI commands take; an omitted `dowel_restart` option keeps the prior session's value. The MCP server dials the session's current URI again after the app restarts, so a restart needs no MCP client reconnect.
- Run `dart run dowel install` once before `plugin:install` for a plugin without an `install.yaml`; it creates the scaffold the plugin is registered into (`lib/app/_plugins.g.dart`).
- Preview with `plugin:install <name> --dry-run`; it writes nothing. A real run can leave helper edits behind if it fails, so check `git status` after a failure. An install record written by an older dowel is refused (`unsupported-install-record`): run `plugin:install <name> --force` once, which also switches off every other conflict check, so read `git diff` after it.
- Commit `.dowel/plugins.json` and `.dowel/installed/`; only `.dowel/cli-bundle*`, `.dowel/build.stamp*` and `.dowel/.dowel.lock/` are cache. `plugin:install` refuses to run when `lib/app/_plugins.g.dart` registers providers but `.dowel/plugins.json` is missing: restore it from version control.
- A project that still has files generated by `fluttersdk_artisan` makes `dart run dowel install` stop and print the steps; `dart run dowel doctor` warns about the same leftovers. Follow the migration page in Docs, and delete the old `bin/dispatcher.dart` first, because `doctor` hands over to it.
- Do not edit `*.g.dart` barrels; regenerate them with `commands:refresh` and `plugins:refresh`.
- MCP entry points: `./bin/dowel mcp:serve` or `dart run :dispatcher mcp:serve` serve the substrate tools plus every plugin's; `dart run dowel:mcp` serves the substrate tools only.
- Reconnect the MCP client after `mcp:install` or a change to `.dowel/mcp.json`; stdio servers are not reloaded on their own.
- Exit code `75` means "not ready, retry" (the app is still building); any other non-zero code is a failure.
- The only project wrapper is `bin/dispatcher.dart`; `bin/dowel.dart` is this package's own entry point and is ignored as one.
## Docs
- [Getting started](https://anilcancakir.com/dowel/docs/getting-started/index.md): what dowel is and how the pieces fit
- [Installation](https://anilcancakir.com/dowel/docs/getting-started/installation.md): requirements and `dart pub add dowel`
- [Quickstart](https://anilcancakir.com/dowel/docs/getting-started/quickstart.md): from an empty project to a plugin and a command
- [Migrating from fluttersdk_artisan](https://anilcancakir.com/dowel/docs/getting-started/migrating-from-fluttersdk-artisan.md): the migration steps, what `install` and `doctor` detect, and the one-time changes for an app on an earlier dowel
- [Commands](https://anilcancakir.com/dowel/docs/commands/index.md): the catalogue, grouped by intent, with boot mode and MCP exposure
- [install](https://anilcancakir.com/dowel/docs/commands/install.md): the consumer scaffold
- [make:fast-cli](https://anilcancakir.com/dowel/docs/commands/make-fast-cli.md): the AOT wrapper `bin/dowel`
- [make:plugin](https://anilcancakir.com/dowel/docs/commands/make-plugin.md): scaffold a plugin package
- [mcp:serve](https://anilcancakir.com/dowel/docs/commands/mcp-serve.md): the stdio server and its filter
- [plugin:install](https://anilcancakir.com/dowel/docs/commands/plugin-install.md): the manifest route and direct registration
- [start](https://anilcancakir.com/dowel/docs/commands/start.md): the recorded session, one per project (`--state=<path>` or `DOWEL_STATE_FILE` overrides it)
- [tinker](https://anilcancakir.com/dowel/docs/commands/tinker.md): evaluate Dart in the running app
- [test:bundle](https://anilcancakir.com/dowel/docs/commands/test-bundle.md): group the test files into a few `flutter test` entries
- [MCP overview](https://anilcancakir.com/dowel/docs/mcp/overview.md): substrate and plugin tools, the state file contract
- [MCP setup](https://anilcancakir.com/dowel/docs/mcp/setup.md): wire the server into Claude Code, Cursor and others
- [MCP tool reference](https://anilcancakir.com/dowel/docs/mcp/tool-reference.md): every substrate tool and its input
- [Plugin authoring](https://anilcancakir.com/dowel/docs/plugins/authoring.md): write a plugin
- [install.yaml schema](https://anilcancakir.com/dowel/docs/plugins/install-yaml.md): every section and key
- [Installer DSL](https://anilcancakir.com/dowel/docs/plugins/installer-dsl.md): the procedural escape hatch
- [Signature DSL](https://anilcancakir.com/dowel/docs/reference/signature-dsl.md): the argument and flag grammar
## Links
- [README](https://github.com/anilcancakir/dowel#readme)
- [API reference](https://pub.dev/documentation/dowel/latest/)
- [Changelog](https://github.com/anilcancakir/dowel/blob/master/CHANGELOG.md)
- [Source](https://github.com/anilcancakir/dowel)
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

