psyche-build
AGENTS.md3 starsChanged todayMITView on GitHub
This file applies to the entire repository. A more specific AGENTS.md may narrow these rules for its subtree. Human instructions and repository policy take precedence over this guide. Psyche Build is OpenCoven's coding cockpit and product client. It owns user-facing cockpit behavior and product-local composition around projects, panes, terminals, tmux sessions, worktrees, branches, optional provider integrations, and platform clients. Psyche Build does not own the durable OpenCoven identity or orchestration protocol: GitHub Issues and the Psyche Build Project (#11) are…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 33,398 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.
In this repositoryOne other file it gives its agents.
- code-reviewSkill
The file
We split this AGENTS.md into the rules it gives an agent
9 rules. About 0 are common, 8 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈8
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 38
Start only an open issue with no open blocked_by entry, and read its parent outcome for the exit gate.
- Distinctive: line 43
Check for an existing open PR on the issue before starting a competing one.
- Distinctive: line 49
Use the repository map to find the owning code, constraints, and checks for your change.
- Distinctive: line 69
Before handoff, run the full repository source gate when the host can satisfy it:
- Distinctive: line 84
Treat these as R3/R4 unless a narrower current contract proves otherwise:
- Distinctive: line 92
Never weaken project scope, authority, confirmation, receipt, revocation, idempotency, work preservation, or recovery behavior to make a …
- Distinctive: line 109
Start from current main in one branch/worktree per outcome.
- Distinctive: line 112
Add or identify failing focused tests before a behavior change, then run the owning surface and the applicable repository gate.
- Distinctive: line 113
Keep one PR independently reviewable.
≈ “Common” is an estimate: at least 1 in 5 of the 43,423 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
Psyche Build agent guide
This file applies to the entire repository. A more specific AGENTS.md may narrow these rules for its subtree. Human instructions and repository policy take precedence over this guide.
Repository role
Psyche Build is OpenCoven's coding cockpit and product client. It owns user-facing cockpit behavior and product-local composition around projects, panes, terminals, tmux sessions, worktrees, branches, optional provider integrations, and platform clients.
Psyche Build does not own the durable OpenCoven identity or orchestration protocol:
OpenCoven/psycheowns canonical familiar, task, lane, run, lease, approval, action, receipt, recovery, and compatibility semantics.- The Coven daemon owns process and PTY execution, project-boundary enforcement, and authoritative runtime events.
- Psyche Build consumes those contracts through versioned adapters. It must not direct-read Psyche's database, duplicate canonical protocol state, or infer authority/completion from a UI selection, tmux pane, process, path, worktree, branch, provider session, or GitHub issue.
- Issue #253 owns the future immutable Psyche profile pin and compatibility canary. Until that lands, do not claim Psyche protocol conformance.
Planning and evidence contract
| Surface | Owns | Must not become |
| GitHub outcome issues, milestones, and Project #11 | Public outcomes, owners, priority, train, risk, acceptance gates, and externally legible status | A runtime identity model or proof that a user path works |
| GitHub sub-issues and issue dependencies | Implementation tasks under an outcome and their real ordering | Familiar, task, run, lane, action, or receipt identity |
| Pull requests | Reviewable implementation slices and exact-head proof | Evidence that an entire user path works merely because unit tests pass |
| Specs and plans | Design intent, decisions, and historical reasoning | Executable backlog or proof that behavior shipped |
| Acceptance records | Runtime observations tied to immutable source and artifacts | Unbounded logs, screenshots without provenance, or maintainer memory |
GitHub Issues and the Psyche Build Project (#11) are the only planning store; there is no generated mirror. Follow Tracking work: outcomes close by hand with an evidence comment, and a PR references an outcome with Refs #N, never a closing keyword. Beads was retired under #473; do not run bd against this repository.
Finding the current work
The nearest release and its work items are a milestone, not a document. Do not infer the active work from dated plans.
gh issue list --milestone "macOS public beta" --search "-label:parked -label:owner-action"
gh api repos/OpenCoven/psyche-build/issues/<N>/dependencies/blocked_by --jq '.[] | "#\(.number) \(.state) \(.title)"'- Start only an open issue with no open
blocked_byentry, and read its parent outcome for the exit gate. parkedmeans off the active path: do not start it without explicit owner direction.owner-actionmeans the next step needs the owner's credentials, settings access, people, or publication authority: prepare, do not perform.- Check for an existing open PR on the issue before starting a competing one.
- Tracking work has the full query set and the label and milestone vocabulary.
Canonical routing
Use the repository map to find the owning code, constraints, and checks for your change.
| Task | Start here |
| Find or resume an issue | Tracking work and the live issue or PR |
| Set up a checkout or run checks | Contributing |
| Change delivery order or acceptance gates | Roadmap and Post-release execution |
| Change a support claim or qualify a release | Support matrix and Release acceptance |
For architecture and security, follow the links for the affected surface in the repository map. Use the plan classification when consulting dated designs and plans.
Deterministic entrypoints
From a clean checkout:
bash ./scripts/agent-bootstrap
bash ./scripts/agent-check fastBefore handoff, run the full repository source gate when the host can satisfy it:
bash ./scripts/agent-check fullThe full gate does not pretend iOS proof exists. Set PSYCHE_AGENT_CHECK_IOS=1 only on a compatible macOS host with the repository-pinned Xcode, simulator, and XcodeGen available. Physical-device and distribution claims always require their separate acceptance evidence.
Risk and review
- R1 — documentation or isolated tests: ordinary focused review and relevant checks.
- R2 — product behavior: focused behavior tests, owning-surface checks, accessibility where applicable, and user-path evidence.
- R3 — authority, security, protocol, persistence, recovery, or consequential actions: threat/failure-boundary review, compatibility evidence, negative tests, and independent review before merge.
- R4 — release, repository governance, credentials, generated-source ownership, or cross-repository identity: explicit design/owner approval, exact-head required checks, durable acceptance evidence, rollback, and independent security/quality review.
Treat these as R3/R4 unless a narrower current contract proves otherwise:
src/control/**,src/services/bridge/**, andprotocol-fixtures/**;native/desktop/psyche-build-tauri/src-tauri/**andnative/ios/**;.github/workflows/**,.github/actions/**, release scripts, signing/notarization/TestFlight paths, and package/toolchain pins;- Project #11 configuration, tracker automation, and bulk GitHub issue mutations;
- authentication, capability leases, approvals, receipts, revocation, idempotency, persistence, cleanup, recovery, and migrations.
Never weaken project scope, authority, confirmation, receipt, revocation, idempotency, work preservation, or recovery behavior to make a test pass.
Generated outputs
Edit generators and source inputs, not generated artifacts:
| Generated output | Canonical command |
src/utils/generated-agents-doc.ts | pnpm generate:hooks-docs |
native/desktop/psyche-build-tauri/web/*.bundle.js | pnpm --dir native/desktop/psyche-build-tauri build:web |
native/ios/Psyche.xcodeproj/** and generated iOS Info.plist | pnpm ios:project:generate (verify with pnpm ios:project:check) |
dist/** and built frontend output | pnpm build |
Generated changes must be reproducible, reviewed with their source change, and left clean after the documented check. Do not edit checked-in bundles by hand.
Change discipline
- Start from current
mainin one branch/worktree per outcome; do not push directly to protectedmain. - Inspect the current implementation and tests before changing behavior.
- Preserve public commands, schemas, persisted formats, errors, and security boundaries unless an approved design explicitly changes them.
- Add or identify failing focused tests before a behavior change, then run the owning surface and the applicable repository gate.
- Keep one PR independently reviewable. Split unrelated product, architecture, tracker, and documentation work.
- Record exact commands, exact head SHA, observed results, proof gaps, and rollback. Test counts do not substitute for production-path evidence.
- Resolve every current review finding and wait for terminal required checks before merge.
Pushing branches, opening or merging PRs, applying GitHub issue or Project mutations, publishing packages/releases, changing repository settings, and using signing/distribution credentials are external side effects. Perform only the side effects explicitly authorized for the task.
Protected data
Never put credentials, tokens, private keys, certificate or signing material, raw prompts, unrestricted terminal output, private repository contents, complete environment dumps, private infrastructure URLs, or unredacted personal paths in issues, pull requests, logs, fixtures, screenshots, or retained evidence. Prefer bounded enumerated state, sanitized identifiers, digests, and explicit omission/redaction manifests. Fail closed when a field cannot be shown safe.
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.

