bilig

Aider WorkPaper Conventions

Use this when Aider is editing a repo that contains workbook-shaped business logic: pricing, approvals, payouts, budgets, forecasts, import validation, stale XLSX formula caches, or spreadsheet formula readback after changing cells.

Aider’s official convention flow is a good fit for this: load a small CONVENTIONS.md file as read-only context with /read CONVENTIONS.md or aider --read CONVENTIONS.md, or configure .aider.conf.yml so Aider loads the file automatically from the repo. Bilig keeps that path boring and explicit:

First Check

Run the package-owned proof before trusting an agent workflow:

npm exec --yes --package @bilig/workpaper@latest -- bilig-evaluate --door agent-mcp --json

The result must include verified: true, the edited cell, before value, after formula readback, exported or persisted WorkPaper state, and restore or restart readback. A write call alone is not proof.

If the workbook contains provider-backed formulas such as IMPORTRANGE, run the boundary case too:

npm exec --yes --package @bilig/workpaper@latest -- bilig-evaluate --door agent-mcp --scenario provider-backed --json

Load Aider

In this repo, Aider loads the conventions automatically because .aider.conf.yml contains:

read:
  - CONVENTIONS.md

In another repo, either copy the same two files or explicitly start Aider with the conventions:

aider --read CONVENTIONS.md

Keep CONVENTIONS.md focused on Aider’s workbook proof policy. Broad repo policy belongs in AGENTS.md; project MCP wiring belongs in an MCP config that the host actually reads.

WorkPaper Path

When state must persist, run the local file-backed MCP server from the conventions:

npm exec --package @bilig/workpaper@latest -- bilig-workpaper-mcp --workpaper ./.bilig/pricing.workpaper.json --init-demo-workpaper --writable

When the source is an .xlsx, start with the risk tool instead:

npm exec --package @bilig/workpaper@latest -- bilig-workpaper-mcp --from-xlsx ./pricing.xlsx

That XLSX mode reports workbook risk indicators before an agent trusts the imported WorkPaper. It does not certify Excel compatibility.

Required Aider Response

Before saying a workbook is updated, Aider should return:

If any readback step fails, report the blocker. Do not treat a write call, terminal exit code, screenshot, or cached XLSX value as the final result.

Current Source Boundary

The checked-in Bilig source contains the Aider convention path through CONVENTIONS.md and .aider.conf.yml. Public @latest command surfaces should still be checked with bilig-evaluate --door agent-mcp --json before use, because npm publishing can lag the repository.

Official Aider Docs Checked