agentleFS
keinstnkeinstn/drover/CLAUDE.md

drover

CLAUDE.md5 starsChanged 5 months agoMITView on GitHub

Guidance for Claude Code working in the drover repo. Complements (does not restate) the global ~/.claude/CLAUDE.md rules — those still apply. See README.md for the concept and layout, docs/herdr-notes.md for herdr CLI behaviours/gotchas drover relies on, docs/hc-notes.md for the Herdr 2 (herdr-core hc) backend, and docs/agents/ for per-agent CLI notes (claude-notes.md, copilot-notes.md, codex-notes.md, pi-notes.md, omp-notes.md). - Flutter, pinned via fvm (see app/.fvmrc): dart pub global activate fvm - marionette_mcp (lets Claude Code inspect/tap/screenshot the running app via the Dart VM…

  • Installs packages
  • In this repositoryOne other file it gives its agents.

The file

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

5 rules. About 0 are common, 1 is distinctive, and 4 are 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.

  • 4

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Create the version with --copy-metadata-from <previous semver> --exclude-fields whatsNew.

    line 115
  2. Distinctive:

    Check the phased-release setting on the new version before submitting.

    line 123
  3. Very specific:

    Run asc review submit only after the user explicitly approves the draft.

    line 124
  4. Very specific:

    After it ships, just tag-release <semver> as above.

    line 125
  5. Very specific:

    All previews run against a stubbed herdr backend (no SSH host needed) so you can screenshot/inspect UI on a simulator.

    line 134

≈ “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

CLAUDE.md

Guidance for Claude Code working in the drover repo. Complements (does not restate) the global ~/.claude/CLAUDE.md rules — those still apply.

Repo layout

  • app/ — the Flutter app (iOS/macOS) plus app/tool/spike.dart, a CLI probe for the SSH/herdr path.

See README.md for the concept and layout, docs/herdr-notes.md for herdr CLI behaviours/gotchas drover relies on, docs/hc-notes.md for the Herdr 2 (herdr-core hc) backend, and docs/agents/ for per-agent CLI notes (claude-notes.md, copilot-notes.md, codex-notes.md, pi-notes.md, omp-notes.md).

One-time host setup

  • Flutter, pinned via fvm (see app/.fvmrc): dart pub global activate fvm
  • marionette_mcp (lets Claude Code inspect/tap/screenshot the running app via the Dart VM service): dart pub global activate marionette_mcp, then ensure ~/.pub-cache/bin is on PATH.
  • asc (starts Xcode Cloud builds and submits versions for review — only needed to release): brew install asc, then asc auth login --name drover --key-id … --issuer-id … --private-key …p8. Starting builds needs only the Developer role; writing version metadata and submitting needs App Manager. Credentials go to the system keychain, so the .p8 can be deleted afterwards. Then asc install-skills and link asc-release-flow, asc-whats-new-writer and asc-submission-health from ~/.agents/skills/ into ~/.claude/skills/ — the rest of the pack isn't needed here.
  • git-cliff (generates CHANGELOG.md entries — only needed for just tag-release, run after a version actually ships): brew install git-cliff.
  • jq (reads the App Store version state in just tag-release — only needed for that recipe): brew install jq.
  • On the Herdr host (the SSH target running your agents): install a herdr integration for each agent you want native transcript history for: herdr integration install claude, herdr integration install codex, herdr integration install copilot, herdr integration install pi, herdr integration install omp. Without an integration, drover falls back to pane-text history. See docs/herdr-notes.md for the gotchas — notably, it only takes effect for sessions started after the install. For Codex specifically, the first launch after install may show a Hooks review panel; trust/enable the hook there, then start a fresh session.

Marionette MCP

Register the server with Claude Code once:

claude mcp add --transport stdio marionette -- marionette_mcp

To control a local app, start it in debug mode, then copy the ws://.../ws Dart VM service URI printed by flutter run. Call marionette-connect with that URI before using its inspection or interaction tools.

Key commands

A justfile wraps the app commands below (just to list recipes).

cd app
fvm flutter pub get
fvm flutter analyze
fvm flutter test
fvm flutter run
fvm flutter gen-l10n # regenerate localizations after editing lib/l10n/*.arb
fvm dart run tool/spike.dart --host <host> agents

Releasing

The Xcode Cloud workflow is manual-start only — pushing builds nothing. Bump the version and start a build in one step, from main:

just release        # 1.0.0+48 -> 1.0.0+49, same version, next build
just release 1.0.1  # 1.0.0+48 -> 1.0.1+49, new App Store version

Once a marketing version has actually been released on the App Store (state READY_FOR_DISTRIBUTION), Apple closes that version's pre-release train for new build uploads entirely — TestFlight-only iteration is not exempt (confirmed 2026-08-09: a build-only bump on an already-released 1.0.0 failed with ITMS-90186 "Invalid Pre-Release Train" + ITMS-90062). Plain just release only works while the current marketing version hasn't shipped yet; once it has, the next release needs a new semver.

just release never touches CHANGELOG.md or tags — it only starts a build, and a build can be rejected or resubmitted before it actually ships. Once asc versions list (or the App Store Connect dashboard) shows the target semver as READY_FOR_DISTRIBUTION, record it:

just tag-release 1.0.1

tag-release re-checks that state itself, then asks App Store Connect which Xcode Cloud build run actually produced the approved build and tags that commit — not HEAD, which may have moved on while the build sat in review, and not just "the last commit that bumped pubspec to this version": Xcode Cloud assigns the shipped build number from its own counter, which doesn't always match the number just release last wrote to app/pubspec.yaml. It then generates a CHANGELOG.md section from the Conventional Commits since the previous release tag and commits it separately on top of current main, so the entry lands after the tagged commit rather than inside it. See cliff.toml for the commit grouping/skip rules.

Submitting a processed build for review follows the asc-release-flow and asc-whats-new-writer skills, with these drover-specific rules:

  • Create the version with --copy-metadata-from <previous semver> --exclude-fields whatsNew; only What's New is written fresh.
  • What's New goes in all three locales — en-US, ja, zh-Hans — and covers user-visible changes only; dependency bumps collapse into one "updated underlying libraries" line. Match the previous version's notes for voice.
  • France must stay unavailable (asc pricing availability territory-availabilities shows FRA with available=false). The export-compliance answer depends on it — see docs/app-store-submission.md.
  • Check the phased-release setting on the new version before submitting.
  • Run asc review submit only after the user explicitly approves the draft.
  • After it ships, just tag-release <semver> as above.

That build-number counter ("Next Build Number", Xcode Cloud → Settings) is per app and shared by every workflow, and it can only ever be raised, never lowered — leave it alone. Internal TestFlight testing needs no review; external testing would need Beta App Review.

UI previews

All previews run against a stubbed herdr backend (no SSH host needed) so you can screenshot/inspect UI on a simulator. just preview opens an in-app gallery listing every registered screen; just preview <name> (e.g. just preview launch) boots one screen directly, which is handy for marionette-driven screenshots. Pick a scenario via --dart-define=SCENARIO=idle|blocked (default idle). The harness is a single entrypoint app/lib/previews/preview.dart plus app/lib/src/demo/demo_herdr.dart, and shares droverTheme and l10n with production. To add a screen, register a WidgetBuilder in the _previews map in preview.dart — no new entrypoint file or justfile recipe needed.

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.