station
AGENTS.md2 starsChanged 59 days agoApache-2.0View on GitHub
main is governed by the main requires green checks ruleset, and a merge queue is part of it. What that means in practice: - Arm auto-merge; do not merge by hand. gh pr merge <n> --repo kontourai/station --auto. Auto-merge is opt-in PER PR — a PR whose checks are green but which nobody armed simply sits forever. That, not a broken gate, is the usual reason a ready PR has not landed. - Pass no merge-method flag. The queue owns…
- Commits and pushes
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,691 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 repository16 other files it gives its agents.
- scripts/AGENTS.mdAGENTS.md
- src-desktop/AGENTS.mdAGENTS.md
- src-server/AGENTS.mdAGENTS.md
- src-ui/AGENTS.mdAGENTS.md
- tests/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- scripts/CLAUDE.mdCLAUDE.md
- src-desktop/CLAUDE.mdCLAUDE.md
- src-server/CLAUDE.mdCLAUDE.md
- src-ui/CLAUDE.mdCLAUDE.md
- tests/CLAUDE.mdCLAUDE.md
- deslopSkill
- documentation-auditSkill
- security-triageSkill
- tauri-v2-buildSkill
- test-auditSkill
The file
We split this AGENTS.md into the rules it gives an agent
8 rules. About 0 are common, 4 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 7
Use an isolated Station home, instance name, and non-default ports.
- Very specific: line 8
Run npm run dependencies:ci to arm hooks.
- Very specific: line 10
Never git push --no-verify.
- Distinctive: line 15
If an explicit submission handoff is active, freeze the worktree.
- Distinctive: line 51
Arm, confirm once with the query above, then stop: Never poll the queue; a red or conflicted dequeue shows only on the PR itself.
- Distinctive: line 75
Commit and confirm a clean tree before mutation.
- Distinctive: line 100
Read docs/glossary.md, the affected canonical guide, and docs/architecture/module-map.md only when their topic is in scope.
- Very specific: line 104
After changes, run veritas readiness and address any FAIL lines before finishing.
≈ “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
Station agent instructions
Start here
- GitHub owns live work state. Check
git status -sband its relationship toorigin/main. - Work only in a sibling worktree (
../station-worktrees/<lane>), never the primary checkout or a nested worktree. Preserve intentional changes: never usegit stash; after review begins, integrate upstream withgit merge origin/main, not rebase. - Use an isolated Station home, instance name, and non-default ports. Ports 3141 and 3000 belong to the user.
- Run
npm run dependencies:cito arm hooks. Before editing, usenpm run gate:for -- <paths...>; it routes to focused evidence. Run selected tests withnpm run test:focused -- <file...>, not ad-hocnpx vitest. - Managed installs use pinned pnpm;
npm runis the script interface. Never run raw npm installs in this workspace. - Never
git push --no-verify; no required CI check re-runs the pre-push gates. The transfer gate readsSTATION_TRANSFER_BASELINE_ROOT; slow hardware raisesSTATION_TRANSFER_CAPTURE_TIMEOUT_MS(see docs/guides/testing.md). npm run test:changed -- --base=origin/main --explainselects a diagnostic lane; exit 3 is provisional/deferred, not completion. For ordinary pull requests, run focused evidence andnpm run ci:fast; GitHub's merge queue verifies the synthesized latest-main candidate. Do not runnpm run full:regressionlocally merely becausemainmoved.- Pre-push and PR CI own the full typecheck; locally use
gate:forevidence or onetypecheck:<lane>, and never background a fulltypecheckorci:fastto poll its sentinel. Every lane shares host-wide tsc slots (testing guide). - The reusable hosted full-regression workflow owns canonical completion receipts for Nightly and tagged preview/stable promotions. CI
workflow_dispatchis the explicit diagnostic escape hatch. Buildertests-evidenceuses that exact-SHA promotion receipt; focused test evidence remains diagnostic. - Diagnose the failure rather than rerun-to-green: a red lane is a signal to diagnose, not a request to rerun until green. For a redundant same-digest run, join or reuse the existing lease.
- If an explicit submission handoff is active, freeze the worktree. Never use shell background or relaunch loops, and do not edit or remove a worktree with a live handoff.
Landing a pull request
main is governed by the main requires green checks ruleset, and a merge
queue is part of it. What that means in practice:
- Arm auto-merge; do not merge by hand.
gh pr merge <n> --repo kontourai/station --auto. Auto-merge is opt-in PER PR — a PR whose checks are green but which nobody armed simply sits forever. That, not a broken gate, is the usual reason a ready PR has not landed. - Pass no merge-method flag. The queue owns the strategy, and
gh pr merge --squashis refused withThe merge strategy for main is set by the merge queue. Do not reach forallowed_merge_methodsto settle this: thepull_requestrule lists["squash","merge"], which reads as permission to pass--squashand is the wrong conclusion. The binding value ismerge_method: "SQUASH"on themerge_queuerule (gh api repos/kontourai/station/rulesets/<id>). The queue squashes; you just do not get to say so. gh pr mergewarns on success — read the queue, not the exit text. A refused method flag prints a!line that looks like a failure while the PR is queued anyway, and a second attempt then reportsalready queued to merge.autoMergeRequestis alsonullfor an entry that is already IN the queue, so the obvious check says "not armed" when it is. Confirm against the queue itself:gh api graphql -f query='{ repository(owner:"kontourai", name:"station") { mergeQueue { entries(first:20) { nodes { position state pullRequest { number } } } } } }'- The queue batches (3 builds, 3 merges,
ALLGREEN); a red entry is removed and those behind it rebuild. - Automate with the app token, not your quota
(setup); read PR and
check status over REST (
gh api repos/...). - Arm, confirm once with the query above, then stop. Never poll the queue; a red or conflicted dequeue shows only on the PR itself.
- Required checks:
fast-checks,CodeQL JavaScript and TypeScript,Dependency review,Windows PR portable floor,build-ios-verification,Merge-queue regression(the ruleset is the authority:gh api repos/kontourai/station/rules/branches/main). Branches are NOT required to be up to date (strict: false), so you do not have to rebase onto every intervening commit — but two independently green PRs can still breakmainin combination.main-health.ymlfiles a P1 when that happens. - Attribution matters. The ruleset sets
require_extra_approval_for_unattributed_changes, so a commit whose author GitHub cannot attribute needs an extra approval. Keep authorship real and put delegate credit in aCo-authored-by:trailer. - Do not arm another lane's in-flight PR. Coordinate with the owning
session first (
ListAgents/SendMessage); a merge is not yours to make because the checks happen to be green.
Test and performance evidence
Tests must reach the behavior their names claim and fail when it breaks. Structural scans prove structural rules; helper tests do not prove caller integration. Missing prerequisites and caught errors must not become success.
For fixture repair, cleanup, or performance work, follow the test-effectiveness route. npm run gate:for -- <paths> prints the executable checks. Use typed fixtures and real user actions; profile before adding performance abstractions.
Commit and confirm a clean tree before mutation. Preserve intervening edits and report baseline, injected failure, and restored outcomes. Review the delta of a fix, and bind measurements to their revision and environment.
Issue references
archive#NNNN is kontourai/station-archive, the pre-2026-08-28 history. Here, #27–#601 re-file archive issues under new numbers (most carry a "Migrated from the pre-public backlog" line), so low numbers exist in both repos.
A bare #NNNN means this repo, except pre-reset text in areas the sweep skipped (notably packages/cli, packages/sdk, packages/connect, scripts). When unsure, check both repos. Write #NNNN for this repo, archive#NNNN for the archive.
Read only the route you need
For behavior or public-contract changes, use documentation-audit.
Codex loads only this root automatically; read the routed scope explicitly. Claude's nested CLAUDE.md imports its paired AGENTS.md.
| Touched path | Read |
| Documentation | docs/guides/documentation.md |
src-server/** | src-server/AGENTS.md |
src-ui/** | src-ui/AGENTS.md |
scripts/**, .github/**, root configuration, package scripts | scripts/AGENTS.md |
src-desktop/** | src-desktop/AGENTS.md |
packages/contracts/** | packages/contracts/AGENTS.md |
packages/sdk/** | packages/sdk/AGENTS.md |
tests/** | tests/AGENTS.md |
Read docs/glossary.md, the affected canonical guide, and docs/architecture/module-map.md only when their topic is in scope. Station consumes sibling Kontour products through published contracts, never their internals.
<!-- veritas:governance-block:start -->This repo uses Veritas for AI governance. Read .veritas/GOVERNANCE.md before making changes.
After changes, run veritas readiness and address any FAIL lines before finishing.
<!-- veritas:governance-block:end -->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.

