agentleFS
fluttersdkfluttersdk/telescope/CLAUDE.md

telescope

CLAUDE.md2 starsChanged 14 days agoMITView on GitHub

Flutter package crumbs, a plugin of dowel: a passive runtime inspector that captures an app's HTTP traffic, logs, exceptions, dumps, events, gate checks, queries, cache operations and frames into in-memory ring buffers and serves them as crumbs:* CLI commands and crumbs_* MCP tools over the ext.crumbs.* VM Service extensions. A live check drives example/ (cd example && dart run crumbs start --device=macos, then crumbs:*, then stop). A change is not done while any of these is stale: CHANGELOG.md under ##…

  • Commits and pushes
  • In this repository2 other files it gives its agents.

The file

We split this CLAUDE.md into the rules it gives an agent

2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Before changing module boundaries or a main flow, read ARCHITECTURE.md.

    line 34
  2. Very specific:

    No production dependency beyond the Flutter SDK, dowel, logging and meta.

    line 47

≈ “Common” is an estimate: at least 1 in 5 of the 29,248 CLAUDE.md 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md
<!-- Generated by ac:claude-md-rules-creator on 2026-11-14. -->

Stack

Flutter package crumbs, a plugin of dowel: a passive runtime inspector that captures an app's HTTP traffic, logs, exceptions, dumps, events, gate checks, queries, cache operations and frames into in-memory ring buffers and serves them as crumbs:* CLI commands and crumbs_* MCP tools over the ext.crumbs.* VM Service extensions.

Commands

CommandWhen
flutter analyze --no-fatal-infosZero issues.
dart format --output=none --set-exit-if-changed .Zero diff.
flutter test --exclude-tags=integrationThe suite. Line coverage stays at or above 80%, the CI floor: lift it with a test, never by excluding code.
python3 tool/check-docs.pyDocs gate (the Internal Links check): 0 issues.
flutter pub publish --dry-runArchive check, as publish.yml runs it at release.

A live check drives example/ (cd example && dart run crumbs start --device=macos, then crumbs:*, then stop).

Post-Change Checklist

A change is not done while any of these is stale: CHANGELOG.md under ## [Unreleased], README.md, llms.txt, the matching doc/** page, skills/crumbs/, ARCHITECTURE.md and the split under Architecture below. Then run every command above.

Development Flow

Red, green, refactor: the failing test first, failing for the right reason. One long-lived branch, master. Cut a short kebab-case branch from it (fix/dump-watcher-leak), one topic each, and open a pull request; it lands as a merge commit.

Testing

A test for lib/src/<path>.dart sits at test/src/<path>_test.dart (the provider test, Off-limits item 6, is the exception), with flutter_test only (no mockito) and no real VM Service connection.

Architecture

Two halves split by where they run: the in-app runtime (lib/crumbs.dart) and the host CLI that reaches it over the VM Service (bin/crumbs.dart, lib/cli.dart); lib/src/ holds both. Before changing module boundaries or a main flow, read ARCHITECTURE.md; update it in the same change when a boundary, flow or invariant moves.

Off-limits (frozen contracts)

These change only with a coordinated bump in magic_devtools, which is meant to build on them from another repository:

  1. CrumbsWatcher (name, install(), uninstall()) and CrumbsHttpAdapter (the same plus pendingCount). Both are abstract interface class, so magic_devtools and apps implement them and a new member is a major bump; the record classes and the exception, log, dump and frame-performance watchers are final class.
  2. CrumbsPlugin.install(), registerWatcher() and registerHttpAdapter() signatures.
  3. CrumbsStore public statics: recordX, recentX and onXRecord per buffer, clear, clearFramePerf, pause, resume, setCapacity, pendingHttpCount.
  4. CrumbsRedaction.redactor semantics and the redacted flag, as the Invariants and Decisions of ARCHITECTURE.md state them: key masking covers headers, bodies, URL query parameters, query bindings and gate arguments; free text (a dump message, SQL) and a positional binding are masked only by a configured redactor.
  5. The build-mode gates: DumpWatcher checks kDebugMode unless allowInRelease, and nothing else in crumbs checks the build mode; the consumer guards CrumbsPlugin.install() (crumbs:install writes if (!kReleaseMode), debug and profile builds, like tapir and magic_devtools).
  6. The MCP tool names and their extensionMethod strings, the answer keys (requests, messages, exceptions and the rest) and the since and cursor semantics; test/crumbs_dowel_provider_mcp_tools_test.dart holds the names and extensionMethod strings.
  7. install.yaml: load-bearing for plugin:install crumbs; keep plugin_name and the post_install message.
  8. No production dependency beyond the Flutter SDK, dowel, logging and meta; example/ may add its own (Dio).

Key Gotchas

MistakeFix
A crumbs:* command from a git worktree that has not run dowel startRun dart run crumbs start from the worktree's example/ (or pass --state=<path>) first. Otherwise dowel refuses ("belongs to another project"), because the recorded app root is <main>/example; a recorded root that contained the worktree would pass the check and drive the main checkout's app, reporting success.
A relative path in pubspec_overrides.yamlAbsolute paths only: .worktreeinclude copies the file into .claude/worktrees/<slug>, where ../dowel resolves wrong.
Importing package:flutter/material.dart in lib/Deprecated from Flutter 3.50 (material_ui replaces it); lib/ uses foundation.dart and scheduler.dart.
A count of commands, tools, watchers, extensions or buffers in prose (README, llms.txt, doc/**, the skill, ARCHITECTURE.md, this file), or an em or en dash in docs, comments or the CHANGELOGName the items; the provider test holds the numbers. Dashes: comma, colon, semicolon, period or parentheses.

Release

  1. A release: X.Y.Z PR bumps the stamps and promotes ## [Unreleased] to ## [X.Y.Z] - YYYY-MM-DD. Stamps: pubspec.yaml, server.json (guarded by test/server_json_version_test.dart), example/pubspec.yaml and example/pubspec.lock, and the skill's version: and stamp comment in skills/crumbs/SKILL.md, moved by hand. Grep the old version before opening it.
  2. After it merges, tag the merge commit with the bare version: git tag X.Y.Z && git push origin X.Y.Z. publish.yml validates, publishes to pub.dev, creates the GitHub Release from the CHANGELOG section, syncs the skill to the skill registry and publishes server.json to the MCP registry (the mcp-registry job, stable tags only; the registry holds a version once, so a re-run after success fails with "already exists").

CI

The required checks on a pull request are Lint & Test, Changelog (a PR that changes lib/, bin/ or install.yaml changes CHANGELOG.md) and Internal Links.

Style

final class for new concrete types, abstract class for contracts. Queue<T> for a ring buffer. Numbered step comments (// 1.) in a method with three or more phases. Docblocks state a contract or a failure mode, none on a trivial getter. British English in prose.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.