chipping-orchestrator
AGENTS.md16 starsChanged 57 days agoApache-2.0View on GitHub
This file is the entry point for AI coding agents (Codex, Claude, etc.) working on this repository. CLAUDE.md is a symlink to this file, so both conventions resolve to the same content. It is loaded into every agent session — keep it short. It routes to the authoritative documents; detail belongs there, not here. Update this file only when repository-wide agent instructions, safety rules, or documentation routing change — never to track a moved handler, helper, module, or test. chipping-orchestrator…
- Reads credentials
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,736 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
The file
We split this AGENTS.md into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 62
Read .agents/skills/develop/SKILL.md before changing anything under orchestrator/, tests/, or docs/.
≈ “Common” is an estimate: at least 1 in 5 of the 16,597 AGENTS.md 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.
Files
Repository guide for AI agents
This file is the entry point for AI coding agents (Codex, Claude, etc.) working on this repository. CLAUDE.md is a
symlink to this file, so both conventions resolve to the same content.
It is loaded into every agent session — keep it short. It routes to the authoritative documents; detail belongs there, not here. Update this file only when repository-wide agent instructions, safety rules, or documentation routing change — never to track a moved handler, helper, module, or test.
What this project is
chipping-orchestrator is a GitHub-Issue-driven workflow that watches issues on configured repos, drives them through a
label-based state machine, and spawns local CLI agents (codex, claude) in per-issue git worktrees to implement
them and open PRs. State lives entirely in GitHub (one workflow label + one pinned JSON comment per issue), so the
orchestrator process is stateless.
Where the details live
docs/README.md is the documentation landing page: it maps every page in the set, grouped the way the
site's navigation groups them. Open it when the area below is not obviously the right one. Which documentation
addresses stay stable is in the develop skill.
- User-facing overview:
README.md - Architecture, module ownership, process / agent / push model:
docs/architecture.md, with the per-package inventory on the pages underdocs/architecture/ - Workflow state machine (labels, per-tick flow, pinned state, stage handlers):
docs/state-machine.md, with the label, delivery-stage, conversation-stage, and lifecycle pages underdocs/state-machine/ - Agent roles, conversation contracts, command specs, session lifecycles:
docs/workflow.md, with the role, conversation, and spec pages underdocs/workflow/ - Configuration / env vars:
docs/configuration.mdis the reference, with the observability settings and the operator runbooks underdocs/configuration/; basic knobs in.env.example, common advanced overrides in.env.example.advanced - Observability:
docs/observability.mdmaps every surface, with the event-stream, trajectory, database, dashboard, and usage-parser pages underdocs/observability/ - Security checklist and operator-owned controls:
docs/security.md - Development conventions and the pre-push checklist:
.agents/skills/develop/SKILL.md
Repository layout
Top level only. Which module owns what is in
docs/architecture.md and the focused pages under
docs/architecture/, which are the single place that inventory is maintained.
orchestrator/— the Python package. The root carries the version,cli.py(the composition point thechipping-orchestratorconsole script calls), and__main__.py(thepython -m orchestratorform over it); every other module lives under a subpackage named after what it owns:workflow/(tick loop, label dispatch, and the per-label stage handlers underworkflow/stages/),github/,git/,agents/,scheduler/,config/,skills/,runtime/(the polling process),apps/(thestreamlit runtargets), andobservability/(analytics sink, dashboards, usage parser).tests/— pytest suite, mirroring the package layout (tests/workflow/,tests/github/,tests/git/, …). In-memory GitHub doubles live intests/support/github/.docs/— architecture, state-machine, workflow, configuration, observability, and security references.plans/— human working notes, not specifications (see below).analytics-db/— operator-owned local analytics database (see below).run.sh— production launcher that auto-restarts after self-modifying merges..env.example/.env.example.advanced— basic and advanced configuration templates.
Development
Read .agents/skills/develop/SKILL.md before changing anything under
orchestrator/, tests/, or docs/. It carries the commands, commit format, license headers, test placement,
comment rules, and dependency policy.
Any agent that sizes or splits an issue, including the late adjudication of an oversized committed change, must first
read .agents/skills/decompose/SKILL.md. It carries what a child's scope has to
include, the residual test every proposed child passes, and how the initial and late stages differ.
The repo targets Python 3.12+ and installs from the lockfile with uv:
uv sync --locked # creates .venv/ and installs runtime + dev deps from uv.lock
uv run pytest tests # run the test suite
uv run python -m orchestrator --once # one polling tick then exitTests are the primary correctness gate. Add or update tests for any behavioral change.
Safety and compatibility
analytics-db/data/is off limits. It is the operator-owned Docker bind mount holding the local analytics Postgres volume — runtime state, not source. Never traverse, read, modify, permission-repair, delete, or re-run any command against it with elevated privileges. If a tool reports it as unreadable, that is expected: targettestsexplicitly (the defaultpytestconfig already ignores the directory) rather than escalating access.- Workflow labels and pinned-state JSON fields are a compatibility contract. Live issues already carry them, so a
rename is a migration, not a refactor. The same holds for comment marker text, watermark fields, and event payload
shapes. When touching the state machine, agent invocation, or stage handlers, read
docs/state-machine.mdanddocs/workflow.mdfirst. - Secrets.
GITHUB_TOKENis deliberately not loaded from.env. Tokens live in~/.config/<owner>/<repo>/tokenor the process environment. Rationale:docs/configuration.md. plans/is working notes, not spec. Files underplans/(roadmap, design explorations, proposals) are non-authoritative. Implement what the issue asks for, do not cite aplans/document in code, comments, or commit messages, and leave those files untouched unless the issue explicitly asks you to edit one.
Out of scope without explicit ask
- New external dependencies, frameworks, or services.
- Reformatting unrelated files or churning whitespace.
- "Future-proofing" abstractions for hypothetical features. Implement what the issue asks for and stop.
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
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.

