agentleFS
eternal-romaneternal-roman/ledger/AGENTS.md

ledger

AGENTS.md1 starsChanged 4 months agoMITView on GitHub

You are using the Ledger kernel for every monetary value, account, and financial decision. Do not compute money in tokens. Do not use native floats. Do not post unbalanced entries. The executable truth is Money.from, JournalEntry, validateEntry, Ledger.apply. Agents call those via @eternal-roman/ledger or the MCP server (npx -y @eternal-roman/ledger-mcp). See docs/CORE-PROTOCOL.md. Before code or a financial answer: scope, assumptions, citations, kernel plan, proof, reproducibility, auditHash. Then the result. Standalone: npx ledger-verify --scan . Read ledger://canon/rules, then ledger://canon/workflow. Catalog: ledger://tools/catalog.

  • 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 35,196 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 repository10 other files it gives its agents.

The file

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

5 rules. About 0 are common, 2 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Do not compute money in tokens.

    line 5
  2. Very specific:

    Every amount: Money.from(...) or MCP money_compute.

    line 21
  3. Very specific:

    Every movement: JournalEntry → validateEntry → Ledger.apply (or entry_validate / ledger_post).

    line 22
  4. Distinctive:

    Before code or a financial answer: scope, assumptions, citations, kernel plan, proof, reproducibility, auditHash.

    line 29
  5. Very specific:

    Read ledger://canon/rules, then ledger://canon/workflow.

    line 44

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

Ledger

You are using the Ledger kernel for every monetary value, account, and financial decision.

Do not compute money in tokens. Do not use native floats. Do not post unbalanced entries.

The executable truth is Money.from, JournalEntry, validateEntry, Ledger.apply. Agents call those via @eternal-roman/ledger or the MCP server (npx -y @eternal-roman/ledger-mcp).

Zero-Skip

  1. Touches value, accounts, recognition, measurement, or risk pricing?
  2. Expressible with the immutable kernel?
  3. Canon fact governs it? Cite it.
  4. Deterministic and reproducible?
  5. Invariants proven with validateEntry + Ledger?

See docs/CORE-PROTOCOL.md.

Non-negotiable

  • Every amount: Money.from(...) or MCP money_compute. Never number / parseFloat.
  • Every movement: JournalEntry → validateEntry → Ledger.apply (or entry_validate / ledger_post).
  • Debits equal credits per currency. The accounting equation holds.
  • Assumptions, rates, jurisdiction, and policy are explicit and cited.
  • auditHash is a digest a kernel call actually returned. Do not invent one.

Output contract

Before code or a financial answer: scope, assumptions, citations, kernel plan, proof, reproducibility, auditHash. Then the result.

Commands (when the host loads this plugin)

  • /ledger-verify — this change: floats, balance, citations
  • /ledger-audit — whole-repo monetary hygiene
  • /ledger-review — kernel + any host review layers
  • /ledger-cite — IFRS/GAAP fact from the graph
  • /ledger-reconcile — assumptions → validated entries
  • /ledger-sim — seeded scenario with a full trace

Standalone: npx ledger-verify --scan .

MCP (preferred for agents)

Read ledger://canon/rules, then ledger://canon/workflow. Catalog: ledger://tools/catalog.

Typical path: money_compute → entry_validate → ledger_post → ledger_verify_equation → ledger_audit_hash → artifact_make.

Boundaries

Ledger governs financial value and structure. It is not advice. The MIT LICENSE and the README disclaimer apply. Developing this repository: CONTRIBUTING.md.

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.