Skip to content

docs(readme): explain ag-rledger next to the MCP server - #1602

Merged
robcohen merged 3 commits into
mainfrom
docs/ag-rledger-readme
Jun 26, 2026
Merged

robcohen merged 3 commits into
mainfrom
docs/ag-rledger-readme

Conversation

@robcohen

Copy link
Copy Markdown
Member

What

Adds an "AI & agents" section to the README documenting ag-rledger (the agent-native CLI) next to the MCP server.

Why

ag-rledger now ships in the release archives (#1600) but wasn't explained anywhere in the README — only the MCP server was. The two are complementary AI surfaces; this clarifies when to use which.

How

  • New AI & agents section, placed right after Install (next to the MCP install row):
    • MCP server — interactive AI assistants (Claude/Cursor) over the Model Context Protocol.
    • ag-rledger — headless agents / pipelines; same subcommands as rledger but each call emits a structured JSON envelope (ok / exit_code / result.data / next_action).
  • Updated the "AI-ready" feature row to mention both.

Envelope shape + example are taken from the binary's integration test (tests/ag_rledger_test.rs), not invented.

🤖 Generated with Claude Code

…erver

Adds an 'AI & agents' section documenting the two AI integration surfaces:
the MCP server (interactive assistants) and ag-rledger (headless agents /
pipelines, structured JSON envelopes). ag-rledger now ships in release archives
(#1600) but was undocumented. Envelope shape + example taken from the binary's
integration test (ok / exit_code / result.data / next_action).
@robcohen
robcohen requested a review from a team as a code owner June 26, 2026 00:21
Copilot AI review requested due to automatic review settings June 26, 2026 00:21

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the project’s top-level documentation to explain ag-rledger (agent-native CLI) alongside the existing MCP server, clarifying rustledger’s two AI-facing integration surfaces.

Changes:

  • Expands the “AI-ready” feature row to mention both the MCP server and ag-rledger.
  • Adds a new “AI & agents” section describing when to use the MCP server vs ag-rledger, including an example JSON envelope output.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread README.md Resolved
Comment thread README.md Resolved
Comment thread README.md Resolved
@codecov

codecov Bot commented Jun 26, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@github-actions

Copy link
Copy Markdown
Contributor

✅ Compatibility Test Results

Metric Result
Check Compatibility 100%
BQL Compatibility 100%
Full AST Match 100%
Total Files 792
What's tested
  • Check: Exit codes and error counts match bean-check
  • BQL: Query results match bean-query
  • Files: ~800 test files downloaded from 10+ beancount repositories

Full results available in workflow artifacts

- build command: add --no-default-features (matches release; avoids pulling
  wasmtime/cranelift via the default python-plugin-wasm feature)
- example: use 'check --json' (result.data is only structured when the inner
  command emits JSON) and make the envelope valid JSON (drop trailing ', …')
- subcommands: 'extract' (the real import command, alias x), not 'import'
@robcohen
robcohen merged commit 89403b2 into main Jun 26, 2026
37 checks passed
@robcohen
robcohen deleted the docs/ag-rledger-readme branch June 26, 2026 00:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants