agentleFS
lossless-claudelossless-claude/lcm/AGENTS.md

lcm

AGENTS.md43 starsChanged 2 months agoMITView on GitHub

This file routes; it does not repeat what the sources say. Read CONTEXT.md first: it fixes the vocabulary. A change that alters what one of these documents states updates the document in the same PR. The plugin is distributed from this repository's root, so everything the plugin loads must be usable by someone who installed lcm and never opens this repo: Development skills have two homes and no copies: .agents/skills/ for what Codex and Copilot load (both read that directory),…

  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.

    Of the AGENTS.md files we read, the 11,773 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 repository6 other files it gives its agents.

The file

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

3 rules. About 0 are common, 3 are distinctive, and 0 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.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    No tracked file names a repository that merely consumes lcm: not a doc, comment, test, fixture, changeset or workflow.

    line 32
  2. Distinctive:

    No session-, machine- or account-local evidence in a shared artifact.

    line 33
  3. Distinctive:

    Before claiming a documentation, skill, command or agent change is done:

    line 41

≈ “Common” is an estimate: at least 1 in 5 of the 16,595 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

lcm — agent contract

This file routes; it does not repeat what the sources say. Read CONTEXT.md first: it fixes the vocabulary.

Sources of truth

Working onReadThe code it must agree with
anythingCONTEXT.mdsrc/transcript.ts, src/subagent-attribution.ts
the data model, compaction, ingestiondocs/architecture.mdsrc/store/, src/capture.ts, src/compaction.ts, src/daemon/
hooks, the function-hooks moduledocs/hook-protocol.md.claude-plugin/plugin.json, src/hooks/, hooks/lcm-hooks.ts
env vars, config.json, the summarizerdocs/configuration.mdsrc/db/config.ts, src/daemon/config.ts
MCP tools and their parametersdocs/agent-tools.mdsrc/mcp/tool-catalog.ts
cutting a releasedocs/releasing.md.github/workflows/publish.yml, .github/workflows/version-pr.yml
CI, the self-hosted runnerdocs/ci-runner.md.github/workflows/ci.yml

A change that alters what one of these documents states updates the document in the same PR.

What is the plugin and what is the repository

The plugin is distributed from this repository's root, so everything the plugin loads must be usable by someone who installed lcm and never opens this repo:

  • Plugin: .claude-plugin/plugin.json, skills/, hooks/, bundle/ (built by npm run build:bundle, committed by version PRs).
  • Repository only: .claude/, .agents/, .github/, scripts/, test/, tools/, plans/, and every doc about developing lcm rather than using it.

Development skills have two homes and no copies: .agents/skills/ for what Codex and Copilot load (both read that directory), .claude/skills/ for what only Claude Code loads.

A skill that exists to work on lcm goes under .claude/ or .agents/, never under the plugin. The plugin's own surface is skills only: a skill that only a person should invoke sets disable-model-invocation: true, and it routes to lcm help <command> rather than restating options, so the CLI stays the one reference.

Invariants

  • No tracked file names a repository that merely consumes lcm: not a doc, comment, test, fixture, changeset or workflow.
  • No session-, machine- or account-local evidence in a shared artifact. Exception: an evaluation result on a named corpus that justifies a design constant is the rule together with its evidence, and stays.
  • Design notes go in docs/design/. The roadmap source is ROADMAP.md; do not invent another, and do not treat an issue closing as a theme being done.
  • Any PR that changes published behaviour carries a changeset (npm run changeset).
  • Bot reviews (Copilot, Codex) only when asked explicitly, one per round.
  • main is the only long-lived branch; there is no release branch. PRs target it. version-pr.yml is run by hand when a release is wanted; merging the version PR it opens changes package.json, which runs publish.yml: tag, then npm, then GitHub release, each only if still missing. The marketplace entry pins plugin installs to that tag; npm pins every other host.

Verification

Before claiming a documentation, skill, command or agent change is done:

npm run check-docs     # every `lcm` flag on the command path it follows, LCM_* variable and lcm_* tool a document names exists in the code
npm run check-agents   # this contract and its declared sources are consistent
npm run typecheck && npm test

CI runs the same three. What they do not verify: check-docs proves a name exists in the code, not that the code path is reachable or that the prose around it is true; check-agents proves the sources exist, are non-empty and are linked from this file, not that a source agrees with the code it names. Those two remain review work. claude plugin validate .claude-plugin/plugin.json walks the plugin's skills; run it after touching one.

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.