bukio-cli: Instructions file for Codex

AGENTS.md

bukio-cli AGENTS.md is an instructions file for Codex, OpenCode from erikvankempen/bukio-cli. It costs 25,056 tokens per session, scanned D, original, Apache-2.0.

An instruction manual for using bukio-cli, a command-line tool for managing books and their accounting records across 16 market profiles.

In plain words
What is it for?
Running bukio-cli commands safely, checking results, managing entries, and following the tool's jurisdiction and environment conventions.
Why use it?
It sets rules that protect the audit trail and database, such as previewing changes, naming the actor, using JSON output, and reversing errors instead of deleting posted entries.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions AGENTS.md.

This is erikvankempen/bukio-cli's own configuration. It tells Codex and OpenCode how to work on bukio-cli itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything bukio-cli configures →

Reuse

Borrowing it

Nothing to install: this file belongs to erikvankempen/bukio-cli. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/erikvankempen/bukio-cli/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/erikvankempen/bukio-cli

Made for: Codex, OpenCode.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for bukio-cli AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/erikvankempen/bukio-cli/agents-md/github.svg)](https://agentmods.dev/instructions/erikvankempen/bukio-cli/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/erikvankempen/bukio-cli/agents-md"><img src="https://agentmods.dev/badge/instructions/erikvankempen/bukio-cli/agents-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for bukio-cli AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/erikvankempen/bukio-cli/agents-md"><img src="https://agentmods.dev/badge/instructions/erikvankempen/bukio-cli/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 25,056 This file is loaded in full into every session.
When invoked 25,056 The same file — it is already loaded in full.
Security scan D 3 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.25056 $0.25056
Opus 5.5 $0.10022 $0.10022
Sonnet 5.5 $0.05011 $0.05011
Haiku 4.5 $0.02506 $0.02506

Measured 1mo ago against content hash 05ca42f28021, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade D, and why

bukio-cli AGENTS.md scanned grade D with 3 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

| `UPDATE_DOWNLOAD_FAILED` / `UPDATE_NO_ARTIFACT` / `UPDATE_CHECKSUM_MISMATCH` / `UPDATE_BAD_MARKER` / `UPDATE_FAILED` | `bukio update` on a downloaded binary: the release, its `SHA256SUMS` or the artifact could not be f

Downloads and executes remote codehighSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

curl -fsSL https://raw.githubusercontent.com/erikvankempen/bukio-cli/main/install.sh | sh

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -fsSL https://raw.githubusercontent.com/erikvankempen/bukio-cli/main/install.sh | sh
AGENTS.md · 986 lines

How it starts

The opening of the file, as written. The whole thing — 986 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AGENTS.md — bukio-cli Agent Manual

This file is the agent's manual for bukio-cli. Read it before driving the tool. It assumes you have shell access to the machine where bukio-cli is installed and that bukio is on PATH.


Install (no toolchain)

curl -fsSL https://raw.githubusercontent.com/erikvankempen/bukio-cli/main/install.sh | sh
bukio --version

The installer is non-interactive and idempotent: it detects the platform, verifies the download against the release's SHA256SUMS and installs into ~/.local/bin. Use --version v0.18.2 to pin a release, --system for /usr/local/bin. If this machine already has Rust, cargo binstall bukio-cli does the same thing. Update with bukio update (see §3) — never by compiling.

1. House rules (non-negotiable)

  1. Dry-run before you mutate. Every mutating command accepts --dry-run. Run it, read the plan, then run without --dry-run.
  2. Identify yourself. Every command requires a named actor: --actor '<role>:<name>' or env BUKIO_ACTOR — agent:bartholomeus for the agent, human:erik for the owner. A bare human/agent is rejected (ACTOR_REQUIRED/INVALID_ACTOR); anonymous actors would pollute the audit trail.
  3. Parse --json, never scrape text. Every command prints one JSON document with --json. Exit code 0 = success, 1 = failure.
  4. Never touch the SQLite file directly. No sqlite3 CLI, no raw SQL. The engine + triggers exist to protect the books. If you need a capability that doesn't exist, say so instead of hacking the DB.
  5. Never delete posted entries. Correct mistakes with entry reverse (which posts a contra-entry) and re-book.
  6. Verify after every mutation. At minimum: bukio report trial-balance --json → data.balanced must be true (when you've posted anything).
  7. Money is integer cents. amount_cents in JSON is the truth. amount strings are for humans. No floats, ever.
  8. Archive every source document. When booking an invoice (or any posted document — purchase invoice, credit note, bank proof), copy the original PDF/image/XML to ~/.bukio/invoices/ next to the live DB before finishing, named YYYY-MM-DD_<vendor-slug>_<invoice-number>.<ext> (see 6.17). The books then carry their paper trail.
  9. Signing is required once a company enforces it. bukio actor enforce --on makes a valid actor signature mandatory: unsigned or unverifiable commands are refused before anything is written. Never work around an enforced company — not with --dry-run (also refused), not with a different --actor (must be enrolled), not by disabling the gate. Only an enrolled actor can disable enforcement (actor enforce --off is refused for unenrolled/keyless actors) — and it is an audited act: ask first. Consequence accepted by design: if all enrolled keys are lost, the CLI is locked out on that company (recovery = restore a backup, or the owner edits the DB directly).
  10. Enrol per company — and enrol before enforcing. An actor's key is enrolled per company DB (bukio actor register runs against the current --db). Register in every company the actor works in; a key valid in one company is not valid in another. First enrolment is operator-gated: under actor enforce on, registering a brand-new actor is refused (ACTOR_KEY_UNKNOWN) — an already-enrolled actor (the operator) must flip enforce --off (itself refused for unenrolled actors) → actor register → enforce --on, each an audited act. Rotation re-enrolment stays possible under enforce (the revoked actor's actor register is exempt — it is the only way back in). If a command is refused with ACTOR_KEY_UNKNOWN/ACTOR_KEY_REVOKED, run bukio actor verify and fix enrolment or rotate (actor keygen --force + actor register).
  11. Human keys are passphrase-protected; use sessions. human: keys are encrypted — run bukio actor unlock once per session (default 12 h, --ttl-hours to change) or set BUKIO_SIGNING_PASSPHRASE; actor lock clears the session. Never store a passphrase in a script next to the key; prefer the session for interactive work.
  12. Cron/system actors sign from their key file. system:/agent: keys are plain files — a cron job or agent that has the key file signs automatically. Give unattended jobs their own actor (system:backup, system:cron) with its own enrolled key, so the audit trail shows which system acted. --sign-key <path> overrides the key file; the resolution order is --sign-key → session → BUKIO_SIGNING_PASSPHRASE → <config>/keys/<role>-<name>.key.

Read the full file on GitHub · 986 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · +1 lines · +159 tokens per session 05ca42f28021
  2. 1mo ago Changed · +29 lines · +382 tokens per session scan A → D 52824628797d
  3. 2mo ago Changed · +3 lines · +171 tokens per session ff928c5a4c87
  4. 2mo ago First seen · 953 lines · 24,344 tokens per session scan A 18e4164a691e

Subscribe to this mod's changes

bukio-cli AGENTS.md is an instructions file published in the GitHub repository erikvankempen/bukio-cli (3 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 25,056 tokens to every session, about $0.1002 per session on Opus 5.5. A static security scan graded it D with 3 findings (asks for root, downloads and executes remote code, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

bukio-cli AGENTS.md compared with instructions from other repositories

bukio-cli AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
bukio-cli AGENTS.mderikvankempen/bukio-cliInstructions file31mo agoApache-2.0D25,056Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,649GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
vscode model-prompts.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA2,022GitHub Copilot