agentleFS
oscoutoscout/scout/AGENTS.md

scout

AGENTS.md11 starsChanged 10 days agoApache-2.0View on GitHub

This repository is the Scout core. It holds the runtime, the protocol, the harness adapters, the scout CLI and MCP server, the TUI, scoutd, and the host side of phone pairing. The Mac, iOS, Android, and web apps and the hosted services live in a separate repository. Do not add app or UI source here. docs/public-source-boundary.md draws the boundary. Core code must not import app source. Behavior that a client needs moves down into a package here first. - The…

  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.

    Of the AGENTS.md files we read, the 31,542 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.

  • In this repository4 other files it gives its agents.

The file

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

7 rules. About 0 are common, 3 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    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. Distinctive:

    Use Bun 1.4.4 or newer.

    line 44
  2. Very specific:

    Run the check for each package you change: bun run --cwd packages/<name> check.

    line 64
  3. Distinctive:

    Run the narrowest affected tests while you work.

    line 67
  4. Very specific:

    Before you hand off a cross-package change: bun run check and bun run test:unit.

    line 69
  5. Very specific:

    Commit subjects use gitmoji: 🐛 Fix session route resolution, 📝 Clarify runtime ownership.

    line 80
  6. Distinctive:

    Do not add AI co-author trailers or "Generated with" lines.

    line 82
  7. Very specific:

    Do not run the release, ship, publish, or bump scripts unless a maintainer asks you to.

    line 88

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

Scout core

This repository is the Scout core. It holds the runtime, the protocol, the harness adapters, the scout CLI and MCP server, the TUI, scoutd, and the host side of phone pairing. The Mac, iOS, Android, and web apps and the hosted services live in a separate repository. Do not add app or UI source here. docs/public-source-boundary.md draws the boundary.

Layout

PathHolds
packages/protocol@openscout/protocol: contracts, identities, routing metadata, record types
packages/runtime@openscout/runtime: the runtime, persistence, service custody, mesh, delivery
packages/cli@openscout/scout: the CLI and MCP server, published with the runtime and pairing bundled
packages/pairingHost side of phone pairing: encrypted bridge, controller, phone RPC
packages/agent-sessionsHarness adapters and session extraction
packages/session-traceHeadless live-session trace model
packages/mesh-extensionHTTP adapter for the default MCP core tools
packages/scout-tailscalePython client for owner-approved guest access over Tailscale
crates/scoutdNative daemon for the base service: supervisor, probes, repo scan and diff
crates/scout-tuiTerminal UI
crates/openscout-repo-serviceCompatibility wrapper over the scoutd repo service
docs/agent/Dense specs for agents. Start at docs/agent/README.agent.md

Core code must not import app source. Behavior that a client needs moves down into a package here first.

Rules

  • The runtime is the only writer of Scout records. Clients and adapters send commands through its API.
  • Harness transcripts are observed source material. Do not import them as Scout messages.
  • One target is a DM. A group needs an explicit channel. Broadcast is opt-in.
  • Route from target metadata. A message body is payload, not routing.
  • Mesh means reachability and coordination. It does not mean exactly-once delivery, consensus, or transcript replication.
  • A harness or session mismatch must fail with an actionable diagnostic. It must not hang.
  • Scout assumes trusted local users and agents. Do not claim enterprise, compliance, or multi-tenant readiness.
  • Use Bun 1.4.4 or newer.

Test against your own instance

A checkout runs as its own Scout instance, with its own state, ports, and service label. Test there. The installed runtime on port 43110 belongs to the person whose machine it is.

  • bun run runtime:broker starts the dev instance: runtime 24400, web 24410, pairing 24420–24422. A linked worktree gets dev-<folder> and its own ports.
  • scout --instance dev <command> talks to that instance. Plain scout talks to the installed runtime.
  • scout instance list shows the claimed instances and their ports.
  • You must not stop, restart, or repoint the installed runtime (app.openscout) unless you are asked to.

docs/dev-instances.md has the details.

Checks

  • Run the check for each package you change: bun run --cwd packages/<name> check. Protocol, runtime, pairing, cli, agent-sessions, session-trace, and mesh-extension have one.
  • Run the narrowest affected tests while you work.
  • New or changed process spawning or shell execution: bun run sync-exec:fence.
  • Before you hand off a cross-package change: bun run check and bun run test:unit.
  • CI also runs bun run check:core (no app imports) and bun run check:presentation (public repository presentation).
  • Rust: bun run scoutd:check, bun run scoutd:test, bun run scout:tui:check, bun run repo-service:check.
  • bun run docs:generate regenerates llms.txt and docs.json from docs/. This file is written by hand. Dewey does not generate it.

Commits and pull requests

  • Commit subjects use gitmoji: 🐛 Fix session route resolution, 📝 Clarify runtime ownership.
  • Do not add AI co-author trailers or "Generated with" lines.
  • Push a topic branch to your fork and open the pull request against openscout-app/scout. CONTRIBUTING.md lists what the description must contain.
  • This repository is public. Do not commit local paths, host names, credentials, or private source.
  • Do not run the release, ship, publish, or bump scripts unless a maintainer asks you to.

Read next

  • docs/agent/README.agent.md: records, the first-run ladder, and the rules for routing and runtimes.
  • docs/architecture.md: the data model and identity.
  • CONTRIBUTING.md: setup and pull requests.
<!-- scout:begin -->

Scout

  • Work for another agent, or on another machine, goes through Scout: scout ask (MCP ask).
  • Another machine: scout ask --on <host> --project <path on that host> --harness <claude|codex>; scout hosts lists machines and their projects. Don't ssh in to launch agents.
  • Syntax: scout ask --help, scout help --detail. Added by scout setup agents-md; scout setup agents-md --remove takes it out.
<!-- scout:end -->

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.