agentleFS
OpenCovenOpenCoven/psyche-build/AGENTS.md

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.

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
  1. Very specific:

    Start only an open issue with no open blocked_by entry, and read its parent outcome for the exit gate.

    line 38
  2. Distinctive:

    Check for an existing open PR on the issue before starting a competing one.

    line 43
  3. Distinctive:

    Use the repository map to find the owning code, constraints, and checks for your change.

    line 49
  4. Distinctive:

    Before handoff, run the full repository source gate when the host can satisfy it:

    line 69
  5. Distinctive:

    Treat these as R3/R4 unless a narrower current contract proves otherwise:

    line 84
  6. Distinctive:

    Never weaken project scope, authority, confirmation, receipt, revocation, idempotency, work preservation, or recovery behavior to make a …

    line 92
  7. Distinctive:

    Start from current main in one branch/worktree per outcome.

    line 109
  8. Distinctive:

    Add or identify failing focused tests before a behavior change, then run the owning surface and the applicable repository gate.

    line 112
  9. Distinctive:

    Keep one PR independently reviewable.

    line 113

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

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/psyche owns 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

SurfaceOwnsMust not become
GitHub outcome issues, milestones, and Project #11Public outcomes, owners, priority, train, risk, acceptance gates, and externally legible statusA runtime identity model or proof that a user path works
GitHub sub-issues and issue dependenciesImplementation tasks under an outcome and their real orderingFamiliar, task, run, lane, action, or receipt identity
Pull requestsReviewable implementation slices and exact-head proofEvidence that an entire user path works merely because unit tests pass
Specs and plansDesign intent, decisions, and historical reasoningExecutable backlog or proof that behavior shipped
Acceptance recordsRuntime observations tied to immutable source and artifactsUnbounded 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_by entry, and read its parent outcome for the exit gate.
  • parked means off the active path: do not start it without explicit owner direction. owner-action means 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.

TaskStart here
Find or resume an issueTracking work and the live issue or PR
Set up a checkout or run checksContributing
Change delivery order or acceptance gatesRoadmap and Post-release execution
Change a support claim or qualify a releaseSupport 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 fast

Before handoff, run the full repository source gate when the host can satisfy it:

bash ./scripts/agent-check full

The 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/**, and protocol-fixtures/**;
  • native/desktop/psyche-build-tauri/src-tauri/** and native/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 outputCanonical command
src/utils/generated-agents-doc.tspnpm generate:hooks-docs
native/desktop/psyche-build-tauri/web/*.bundle.jspnpm --dir native/desktop/psyche-build-tauri build:web
native/ios/Psyche.xcodeproj/** and generated iOS Info.plistpnpm ios:project:generate (verify with pnpm ios:project:check)
dist/** and built frontend outputpnpm 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

  1. Start from current main in one branch/worktree per outcome; do not push directly to protected main.
  2. Inspect the current implementation and tests before changing behavior.
  3. Preserve public commands, schemas, persisted formats, errors, and security boundaries unless an approved design explicitly changes them.
  4. Add or identify failing focused tests before a behavior change, then run the owning surface and the applicable repository gate.
  5. Keep one PR independently reviewable. Split unrelated product, architecture, tracker, and documentation work.
  6. Record exact commands, exact head SHA, observed results, proof gaps, and rollback. Test counts do not substitute for production-path evidence.
  7. 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.