cezar AGENTS.md

A repository guide for cezar, a local tool for running and tracking coding-agent tasks in separate Git worktrees. It describes the command-line and browser interfaces, supported agents, workflows, and local data storage.

In plain words
What is it for?
Use it when developing cezar's TypeScript server, React interface, YAML workflows, Git worktree handling, coding-agent backends, live task tracking, or draft pull-request flow.
Why use it?
It explains how the orchestrator works without requiring accounts, a database, or cloud services. It also highlights safety points such as review gates and the rule that tasks are not merged automatically.

Instructions file for CodexOpenCode

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/open-mercato/cezar/agents-md
Clone the repo
git clone --depth 1 https://github.com/open-mercato/cezar

Made for: Codex, OpenCode.

Per session 7,646 This file is loaded in full into every session.
When invoked 7,646 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.07646 $0.07646
Opus 5 $0.03823 $0.03823
Sonnet 5 $0.01529 $0.01529
Haiku 4.5 $0.00765 $0.00765

Measured yesterday against content hash 1485c62efd1d, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

cezar AGENTS.md scanned grade A with 0 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 yesterday.

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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

AGENTS.md · 196 lines

How it starts

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

AGENTS.md — working in this repository

cezar is a parallel coding-agents orchestrator: a local cockpit (CLI + browser GUI) for running and tracking AI coding-agent tasks in a repo. You type a task, pick a workflow and a backend — Claude Code, Codex or OpenCode (experimental), or a mix per step — and watch it work live: steps, tool calls, tokens, diffs. Each task runs in its own git worktree, ends at a review gate (never auto-merges), and can be pushed as a draft PR through gh. Everything is local: no accounts, no database, no cloud — state is plain JSON, NDJSON and Markdown under .ai/cezar/. The server stack stays deliberately small: strict TypeScript (ESM, Node 20+), Hono + SSE, Zod at every boundary, and YAML workflows. The cockpit is React 19 + Vite + Tailwind v4 + shadcn/ui, compiled to static assets (the legacy vanilla UI was retired in R7). Every module is meant to be read in one sitting.

Zero config

cezar ships no config file the user must create and no setting they must set before it works. Every capability is discovered from what is already there — the repo, the environment, gh, the running processes — or it degrades quietly to a smaller cezar. .ai/cezar/config.json is optional and every key has a working default; .env is never auto-loaded.

New state may be written, never required: .ai/cezar/, ~/.cache/cez/, ~/.cezar/. Delete any of them and cezar rebuilds what it needs on the next run. State that a user must author, migrate, or repair is not state — it is configuration, and it needs a reason. One deliberate exception inside that rule: the project registry keeps a ~/.cezar/config.json.bak snapshot, so deleting config.json alone restores instead of resetting — delete the ~/.cezar directory for a true reset.

Practical rules:

  • When a feature seems to need configuration, the design is wrong. Discover it, or default it.
  • Features that widen exposure or cost (network, other processes) are opt-in behind a CEZ_* flag, off by default — the zero-config default is also the safe default.
  • Owner-approved exception: Open Mercato skill updates are default-on. They start only after the server listens, run at most once per six-hour cache window, use explicit lock-authorized names and fixed bounded npx argument arrays under a cross-process lock, and never block boot. CEZ_SKILLS_AUTO_UPDATE=0 or the global Settings override disables automatic application (background detection remains read-only).
  • A missing dependency, an absent peer, a read-only home: degrade to a smaller working cockpit, never fail the boot.
  • Prefer a proxy-free, daemon-free mechanism when one exists — and when it doesn't, keep the mechanism invisible: no process to manage, no port to remember, no file to edit.
  • Never trade a working default for a knob.
  • Adding, renaming, or removing a CEZ_* env var — or changing what its default does — MUST update .env.example in the same commit (and the README env table when the var is user-facing). .env.example is the env contract's single documentation surface; an undocumented env var is a bug.

Read the full file on GitHub · 196 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. yesterday First seen · 196 lines · 7,646 tokens per session scan A 1485c62efd1d

Subscribe to this mod's changes

cezar AGENTS.md is an instructions file published in the GitHub repository open-mercato/cezar (174 stars, last pushed yesterday), licensed MIT. It adds 7,646 tokens to every session, about $0.0382 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.