agentleFS
eternal-romaneternal-roman/ledger/llms.txt

ledger

llms.txt1 starsChanged 4 months agoMITView on GitHub

Exact-decimal double-entry kernel for AI agents. Do not compute money in tokens. Call the kernel. The TypeScript package @eternal-roman/ledger is the canonical kernel. The MCP server @eternal-roman/ledger-mcp is the agent interface. Invalid entries are rejected, never posted. money_compute, entry_validate, ledger_post, ledger_balance, ledger_trial_balance, ledger_verify_equation, ledger_audit_hash, ledger_verify_determinism, trace_run, cite_lookup, artifact_make, periods_create_lock, periods_guarded_post, closing_generate_entries, fx_compute_translation, depreciation_build_schedule, cashflow_statement, reconcile_positions, portfolio_relief, settlement_build_entries. /ledger-verify, /ledger-audit, /ledger-cite, /ledger-reconcile, /ledger-sim, /ledger-review. Skill sources under /skills/. Trading, portfolio lots, returns, crypto transfers, IFRS 16 lessee, period locks, closing, FX…

  • Installs packages

The file

We split this llms.txt into the rules it gives an agent

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

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Not a database. Not a bank.

    line 53

≈ “Common” is an estimate: at least 1 in 5 of the 4,067 llms.txt 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
llms.txt
# Ledger

> Exact-decimal double-entry kernel for AI agents. Do not compute money in tokens. Call the kernel.

The TypeScript package `@eternal-roman/ledger` is the canonical kernel. The MCP server `@eternal-roman/ledger-mcp` is the agent interface. Invalid entries are rejected, never posted.

## Start

- Agent contract: /AGENTS.md
- Protocol: /docs/CORE-PROTOCOL.md
- MCP how-to: /mcp/README.md
- Machine tool catalog (when the server is running): ledger://tools/catalog
- Pre-ship checklist: /docs/SUCCESS-CHECKLIST.md
- What the kernel rejects: /docs/ANTI-PATTERNS.md
- What ships today: /docs/SCOPE-AND-LAYERS.md

## Install

```
npx -y @eternal-roman/ledger-mcp
npm install @eternal-roman/ledger
npx ledger-verify --scan .
```

MCP config:

```
{ "mcpServers": { "ledger": { "command": "npx", "args": ["-y", "@eternal-roman/ledger-mcp"] } } }
```

## Invariants

- Money.from (or money_compute) for every amount. No floats.
- JournalEntry, >= 2 lines, balanced per currency, ISO date, no silent FX.
- Ledger.apply is immutable and re-validates. Fail-closed.
- auditHash is ledger-audit-v2 (account type + name included). Do not fabricate it.
- Fundamental equation: Assets + Expenses = Liabilities + Equity + Income, per currency.

## Tools (MCP)

money_compute, entry_validate, ledger_post, ledger_balance, ledger_trial_balance, ledger_verify_equation, ledger_audit_hash, ledger_verify_determinism, trace_run, cite_lookup, artifact_make, periods_create_lock, periods_guarded_post, closing_generate_entries, fx_compute_translation, depreciation_build_schedule, cashflow_statement, reconcile_positions, portfolio_relief, settlement_build_entries.

## Skills / commands

/ledger-verify, /ledger-audit, /ledger-cite, /ledger-reconcile, /ledger-sim, /ledger-review. Skill sources under /skills/.

## Optional layers

Trading, portfolio lots, returns, crypto transfers, IFRS 16 lessee, period locks, closing, FX translation, depreciation, cash flow, reconcile — all emit kernel JournalEntry objects. See /examples/.

## Not this

Not a database. Not a bank. Not advice. Citation graph is a starter set; verify against official standards.

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.