crumbs
Skill3 starsChanged 18 days agoMITView on GitHub
Read the HTTP, logs, exceptions and events a running Flutter app captured, with crumbs.
3 other projects use a version of this.
Adopted by
Most recently taken up by
- fluttersdk/telescopeword for word, first seen Nov 16, 2026
- anilcancakir/aiword for word, first seen Nov 16, 2026
- navyabijoy/crumbstheir own version, first seen Nov 15, 2026
Other versions3 projects use a version of this.
Word for word · 2
- anilcancakir/ai★ 3100% same
- fluttersdk/telescope★ 2100% same
Edited · 0
None found.
Wrote their own version · 1
- navyabijoy/crumbs★ 27same name
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.
In this repository19 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- dowelSkill
- flutter-reviewSkill
- magic-analyticsSkill
- magic-deeplinkSkill
- magic-deviceSkill
- magic-devtoolsSkill
- magic-encryptionSkill
- magic-frameworkSkill
- magic-local-storageSkill
- magic-notificationsSkill
- magic-paymentsSkill
- magic-pickerSkill
- magic-sentrySkill
- magic-social-authSkill
- magic-socketSkill
- magic-starterSkill
- tapirSkill
- wind-uiSkill
The file
Files
<!-- crumbs v1.1.1 | Skill updated: 2026-11-18 -->crumbs
Crumbs lets an agent read what a running Flutter app recorded. Inside the app, watchers and adapters write records into in-memory ring buffers; the app registers ext.crumbs.* VM Service extensions that serve those buffers, and you call them as crumbs_* MCP tools or as ./bin/dowel crumbs:* commands from a shell. The loop is: zero the buffers, make the app do the thing, read what landed.
Scope: this skill reads captured state. Driving the UI (taps, text, navigation, snapshots) is the tapir skill; starting, reloading and stopping the app, dowel_logs and MCP wiring are the dowel skill; a flutter_test widget test needs neither.
Install
If a crumbs_* call reports that no running Flutter app was detected, start one (below). If it reports that an ext.crumbs.* method "is not registered in the running app yet" (a CLI exit 75), the app is still booting, is a release build, or has no crumbs: retry after a few seconds, then check the guard in lib/main.dart. From the Flutter app root:
flutter pub add crumbs
dart run crumbs crumbs:install # scaffolds ./bin/dowel, registers the plugin, patches lib/main.dart
dart run crumbs mcp:install # writes the `dowel` entry into .mcp.json
./bin/dowel start --device=chrome # or macos, linux, windows, a device id
./bin/dowel crumbs:tail # "No log records." on a fresh start is not an errorcrumbs:install puts this block before runApp( (before await Magic.init( on a Magic app, so boot errors are caught), behind if (!kReleaseMode), so debug and profile builds carry crumbs and a release build drops it:
if (!kReleaseMode) {
CrumbsPlugin.install();
CrumbsPlugin.registerWatcher(ExceptionWatcher());
CrumbsPlugin.registerWatcher(DumpWatcher());
}On a Magic app it also adds MagicCrumbsIntegration.install() (from package:magic_devtools/crumbs.dart) after Magic.init(), which registers the Magic HTTP adapter, the model, cache, event, gate and query watchers and, from magic_devtools 1.1.0, MagicLogWatcher, and a magic_devtools release built on crumbs ships that integration; when the resolved magic_devtools lacks the library it warns and skips that line, so Magic's buffers stay empty until you upgrade magic_devtools and rerun. Re-running is safe: a main.dart that already calls CrumbsPlugin.install( gets no second crumbs block, and a rerun still adds MagicCrumbsIntegration.install() once the resolved magic_devtools ships it, behind the guard of the existing crumbs block. Reconnect the MCP client after mcp:install (in Claude Code, /mcp reconnect dowel); a stdio server is not reloaded on its own. A Claude Code allow-list entry for the tools is mcp__dowel__crumbs_*.
Rules
The capture model
- Crumbs reads, it never drives. A buffer holds only what the app did since launch or the last clear. Make the app act first (tapir, a script, a person), then read; reading an idle app proves nothing.
Each buffer has one producer, and most are opt-in. An empty answer means "no producer" until you know one is registered:
Buffer Read with Filled by logs crumbs_tailLogWatcher, installed byCrumbsPlugin.install(); onlypackage:loggingcalls, so a Magic app'sLog.*calls needMagicLogWatcher(frommagic_devtools1.1.0 or later)HTTP crumbs_requestsa CrumbsHttpAdapter, or the app's own interceptor callingCrumbsStore.recordHttp; crumbs hooks no HTTP client itselfexceptions crumbs_exceptionsExceptionWatcher: uncaught errors fromFlutterError.onErrorandPlatformDispatcher.instance.onErrordumps crumbs_dumpsDumpWatcher:debugPrintonly (notprint), debug builds onlyevents, gates, queries, caches crumbs_events,crumbs_gates,crumbs_queries,crumbs_cachesthe Magic watchers MagicCrumbsIntegrationregisters, in amagic_devtoolsrelease built on crumbs;crumbs_eventsholds auth, database and gate-definition eventsframes crumbs_framesFramePerfWatcher, registered by the hostmodels nothing Magic's model watcher (same release); model events go to this buffer, which no tool serves The CLI names the producer on an empty read for every buffer but logs and timeline files (
No HTTP records (register a CrumbsHttpAdapter).).crumbs_framesalways carrieslivenessCounter, the count of frames drawn: after you drive the UI, frames empty while it stays still means no watcher is registered or the engine stalled.- Crumbs runs only where the host's guard lets it.
CrumbsPlugin.install()itself checks no build mode; the guard around it inlib/main.dartdecides, and the onecrumbs:installwrites is!kReleaseMode, so debug and profile builds carry crumbs and a release build does not.DumpWatcheradds its own debug check (DumpWatcher()..allowInRelease = true, set beforeregisterWatcher, lifts it once the host guard allows the build).--dart-define=CRUMBS_DISABLE=1(ortrue,yes) makesinstall(),registerWatcherandregisterHttpAdapterreturn without installing anything, so a disabled build has no extensions and no watcher. - Buffers are rings. 500 records each by default, frame perf 3600; the oldest is evicted without notice. A host can change a cap with
CrumbsStore.setCapacity(n, kind: CrumbsKind.x). A hot restart empties them;crumbs_clearempties all of them at once and answers{"cleared": true}.
Reading
- Every answer is one JSON object with one list, oldest first:
requests,messages(tail),exceptions,dumps,events,gates,queries,caches,frames. Beside it:cursoron tail and events,livenessCounteron frames. Over MCP it arrives as one text block; parse it before reading fields. limitkeeps the newest N;levelis a minimum. Omitlimitover MCP for the whole buffer; the CLI defaults to 50. Alimitthat is not a number reads the whole buffer, zero or below reads nothing.crumbs_tail { level: "WARNING" }keeps WARNING, SEVERE and SHOUT; an unknown level name matches nothing, so an empty answer after a typo is the typo.- Page logs and events with the cursor.
crumbs_tailandcrumbs_events(and their commands) takesince, anatUsin microseconds, exclusive, and answercursor, the largestatUsreturned (or thesinceyou gave when nothing is newer). Pass it back assinceto read only newer records. Withsince,limitkeeps the oldest N after it, plus any records sharing the lastatUs, so paging is exact for the records that exist when the page is read; a record added later with the same microsecondatUsas the page's last record can be missed.logger(exact name, logs) andtype(event type prefix) narrow further; the tool schemas declare all of them (crumbs_tail:limit,level,logger,since;crumbs_events:limit,type,since). A non-integersinceis refused withinvalidParams(the CLI exits 3). --followstreams.crumbs:tail --followandcrumbs:events --followre-read every second from the last cursor until interrupted; run them in the background while driving the app, with--jsonfor one object per line.- Join across buffers on
atUs, the monotonic clock every record but exceptions, dumps and gates carries;timeandtimestampare wall clock, for display.interactionIdwithlinkedBy(zone,frame,window) are set when the capturing site ties a record to one interaction;windowmeans no interaction was open andinteractionIdis null, so match those byatUsvalues that fall close together: each record stamps its ownatUs, and a nearby value does not prove a shared cause.
Redaction and the timeline on disk
********is crumbs' mask, not the app's value. Credential keys are masked before a record is buffered, with no host setup: HTTP request headers (authorization,cookie,x-api-keyand the like), keys of a JSON or form body, request or response alike (password,token,access_token,secret,api_keyand the like), credential-named parameters in the URL query (access_token,api_key, theX-Amz-*signature of a presigned URL), and the same keys inside the Map elements of a query'sbindingsand a gate check'sarguments(a positional binding has no key, so only aredactormasks it). Case-insensitive, at any depth. A masked header was sent; a missing one is absent fromrequestHeaders. An empty credential stays visible.- The host's
redactorfails closed, and free text has no other mask.CrumbsRedaction.redactorruns over every text of the log, event, exception and HTTP records, a dump's message, a query's SQL and bindings, and a gate's arguments and user id before they are buffered; the log, event, exception and HTTP records then carryredacted: true. Without aredactor, a credential written into a log line, adebugPrintor a SQL literal is buffered as written. A redactor that throws drops the record from the buffer and the stream, so a line missing right after a sensitive log call can be a failing redactor. Cache, model and frame records are not masked. - The JSONL timeline holds redacted records only. When the host runs
CrumbsFileSink.start(directory: ...), log, event and exception records withredacted: trueare written as{"kind": "log"|"event"|"exception", ...}lines to rotatingtimeline-<UTC stamp>-<n>.jsonlfiles that outlive the buffers and the launch. Without aredactornothing is written. One sink per directory: a second process writing there has its files pruned. Read it only withcrumbs:files(no MCP tool); "No timeline file sink is running." means the host started none.
Crumbs and tapir
- Tapir acts, crumbs explains. Use tapir to cause an effect and see the screen; use crumbs to see why: the request and its status, the log line, the exception and its stack. Tapir reads crumbs only through reader pointers the host assigns, and reads 0 where none is set:
tapir_wait_for_network_idlereadsCrumbsStore.pendingHttpCount, which stays 0 unless an adapter counts in-flight requests, so it may report idle at once. Wait on the UI or oncrumbs_requestsinstead.
Recipes
The verify loop, after any change you want to prove:
crumbs_clear zero the buffers
tapir_tap { ref: "q3" } a ref from tapir_find, or any action that exercises the change
tapir_wait_for { text: "Saved" } wait on the UI, not on network idle
crumbs_requests { limit: 10 } the call went out, with the expected status
crumbs_exceptions empty, or read the newest stackTrace
crumbs_tail { level: "WARNING", limit: 50 } nothing unexpected was loggedHunt a fault that already happened: do not clear. Read crumbs_exceptions { limit: 5 }, then crumbs_tail { limit: 100 } and crumbs_requests { limit: 20 } and match them by time; a 4xx or 5xx just before the throw is the usual cause.
The same from a shell, following one logger while a second shell drives the app:
./bin/dowel crumbs:clear
./bin/dowel crumbs:tail --logger=Sync --json --follow # background; one JSON object per line
./bin/dowel crumbs:requests --limit=20
./bin/dowel crumbs:events --type=Auth --json --since=<last atUs>
./bin/dowel crumbs:files # timeline files, newest firstTesting
Code that feeds crumbs (an adapter, a watcher, a redactor) is tested against CrumbsStore directly; reset it after each test so buffers, caps, the redactor and the hidden-name lists do not leak:
import 'package:crumbs/crumbs.dart';
import 'package:flutter_test/flutter_test.dart';
void main() {
tearDown(CrumbsStore.resetForTesting);
test('the redactor masks a card number before the log is buffered', () {
CrumbsRedaction.redactor =
(String text) => text.replaceAll(RegExp(r'\d{16}'), '[card]');
CrumbsStore.recordLog(
LogRecordEntry(
level: 'INFO',
levelValue: 800,
message: 'paid with 4242424242424242',
loggerName: 'checkout',
time: DateTime.now(),
),
);
final LogRecordEntry entry = CrumbsStore.recentLogs().single;
expect(entry.message, 'paid with [card]');
expect(entry.redacted, isTrue);
});
}In CI, run the CLI against a started app and read with --json; a read command exits 0 even on an empty buffer, so assert on the output, not the exit code. Exit 75 means the extension is not registered yet: retry a few times, then check the build mode and the install.
References
| Read when | File |
Calling a crumbs_* tool and you need its parameters, envelope or errors | ${CLAUDE_SKILL_DIR}/references/mcp-tools.md |
Running a crumbs:* command from Bash: flags, output, exit codes | ${CLAUDE_SKILL_DIR}/references/cli-commands.md |
| Reading the fields of a record | ${CLAUDE_SKILL_DIR}/references/records.md |
| Composing a longer flow: crash hunt, Magic trace, cursor paging, the timeline, coexisting reporters | ${CLAUDE_SKILL_DIR}/references/workflows.md |
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.

