What context files actually do
Treat AGENTS.md as a short index of what the code cannot say, and measure every edit to it. Long prose context costs tokens and buys little; agents learn from the code itself.
The most careful study so far (Gloaguen and colleagues, ETH Zurich, arXiv 2602.11988 v3 of 29 September 2026) ran four agent-model pairs on SWE-bench Lite and 138 tasks from 12 repositories with developer-written context files. Context files “do not generally improve task success rates, while increasing inference cost by over 20%”, and “repository overviews … are not helpful”. Developer-written files helped “all agents but Claude Code”, the bank’s starting harness.1
Lauren Tan, whose trust principles the bank adopts, explains why: “code is memory”. Agents copy what they find, so one quick fix with a timer became 183 timers in about five weeks (see Lessons from the field).10
What this means for the bank:
- The root file holds verified commands, non-obvious rules and pointers. CI runs every documented command in a clean container, so it cannot quietly drift (inference).9
- Every edit is measured. A change to
AGENTS.md, a skill or a lint pack runs 10-20 representative tasks with and without it.1,12 A root-file change also needs the powered A/B test, and a skill theclaude plugin evalgate (see the eval programme). - Nobody commits a raw
/initdraft: a generated overview is exactly what the study found unhelpful. - Claude Code’s auto memory is off in shared and hosted sessions. It is machine-local and “not shared across machines or cloud environments”, so nobody reviews it.3 Learnings reach the repo only as pull requests (PRs).
- A correction that repeats becomes a check, encoded by weekly triage at the highest layer that works (decision c62; see the correction loop).2
Deep dive: study detail, caveats and contrary evidence 1 min
More from the ETH study: files generated by a language model lowered success slightly, and agents did follow the instructions they were given. The bank’s 10-20-task eval set copies the designs of this study and of Naresh Jain’s harness experiment, and catches large regressions.1,12
Two caveats apply. The study is a preprint, and its Claude Code configuration ran Sonnet 4.5, a model generation old. A Linux Foundation blog post reported the opposite on one project (an AGENTS.md cut cost by 26% over 18 runs), but its author says the results “may not apply to other projects or agents”.7 Anthropic’s own guidance now lists “Describe your architecture and file layout in CLAUDE.md” among the habits you can stop.8
Tan’s own words: “make your codebase as pristine as possible so that agents are always copying the good stuff” (“All Code Is Slop (Except Mine)”, 04:43),10 and “Your code base is a form of memory” (“The Rise Of AI Coworkers”, about 46:05).11
The skeleton at launch
The launch repository has few top-level entries, each with one job, and a hard line between what agents may change and what only people may change. Instructions, skills, ./x and hooks are harness-neutral. “Launch” means the platform’s walking skeleton, weeks 0-12.2
AGENTS.md # ≤100 lines: commands, rules, pointers
CLAUDE.md # one line: @AGENTS.md
x # ./x, the one entry point
services.yaml # owners and risk tiers per service
channels.yaml # Slack routing labels, incl. aml-restricted
.agents/skills/ # adopted pstack skills, verify-<surface>
.claude/ # generated, protected; base commit + image only
agents/catalog/ # agent types
platform/agents/tools/catalog.yaml # tool profiles
platform/agent-env/ # the one image
tools/agent-hooks/ # harness-neutral hooks
policy/
├── review-tiers.yml # → CODEOWNERS, rulesets, broker policy
└── banned-apis/ # rules with failing fixtures
contracts/ # openapi, asyncapi, proto, pact
fakes/ # stubs and twins
libs/money/ libs/ids/ # Money and ID types
ledger/
├── reference-model/ # human-owned
└── invariants/ # human-owned
services/<svc>/ # AGENTS.md ≤60 lines, feature map, CLI driver
apps/web/ apps/android/ apps/ios/
reporting/golden/ # xBRL-CSV golden files
research/ # agent output
docs/decisions/ # human ADRs
proof/ # run plans and claims
.audit/ # decision trails per change
Agents cannot change what steers or judges them. The git broker rejects agent commits to the skills, the .claude/ layer, ./x and its hooks, policy/, the catalogues, the image and the human-owned oracles; people change those as T2 changes (the highest risk tier, with two human approvers). An agent edit to AGENTS.md is itself T2 and shown to reviewers first; product code takes the tier of its changed paths.2
Three entries carry most of the safety load. policy/review-tiers.yml generates CODEOWNERS, the GitHub rulesets and the broker’s path policy, so the three cannot disagree. The ledger reference model and invariants are the oracle for money code, so no agent can redefine “correct”. And research/ keeps unreviewed agent prose out of docs/decisions/ and the instruction chain, a red-team fix against instruction poisoning.2
Every top-level entry, its purpose and how an agent change is handled 14 rows
| Entry | What it is for | Agent change |
|---|---|---|
| Instructions and policy | ||
AGENTS.md (root and per service) | Canonical instructions for every harness | T2, shown first |
CLAUDE.md | Generated one-line import, so Claude Code reads AGENTS.md predictably | T2 |
.agents/skills/, .claude/ | Canonical skills; the generated Claude Code layer (settings, skill links, hook wiring) | Blocked |
x, tools/agent-hooks/ | The entry point and the hook scripts that call it | Blocked |
policy/ | review-tiers.yml, the single source for CODEOWNERS, rulesets and broker policy; the banned-API pack | Blocked |
services.yaml, channels.yaml | Service owners and risk tiers; Slack routing labels, including the AML wall | T2 |
agents/catalog/, tool catalogue, platform/agent-env/ | Agent types, tool profiles, and the one signed image used by laptops, CI and hosted runs | Blocked |
| Code, contracts and oracles | ||
contracts/, fakes/ | API and event schemas that generate code; stubs and twins owned by the integrating squad | By tier |
libs/money, libs/ids | Money and identifier types that make float money and raw IDs unrepresentable | By tier |
ledger/reference-model, ledger/invariants, reporting/golden/ | Human-owned truth that money and reporting code is tested against | Blocked |
services/<svc>/, apps/* | Product code, each service with its own short AGENTS.md, feature map and CLI driver | By tier |
| Records | ||
research/ | The only place the research agent writes | Research agent only |
docs/decisions/ | Architecture decision records (ADRs) written by people | Human-written |
proof/, .audit/ | The agent’s plan and claims; its decision trail per change | Agent, marked untrusted |
services.yaml and channels.yaml is an inference: they set tiers, required suites and Slack routing (required suites are always read from the base commit, so a branch cannot lower its own). Source: recommendation §5.4, §6.1, §6.4, §7.1, §9.1.2./x: one lever for everyone
People, agent hooks, git hooks and CI all run the same commands through ./x, so a check passes or fails the same way everywhere. Hooks give fast feedback; only the CI run counts. In the recommendation’s words: “CI is the control; hooks are for speed.”2
./x; the time budgets match how often each one runsmain’s harness layer, is what counts. The budgets began as a t12 research proposal (inference there) that the recommendation adopts (§9.1). Source: recommendation §8, §9.1; t12 note.2,9All ten ./x commands and who calls them 10 rows
| Command | What it does | Main callers |
|---|---|---|
setup | Installs pinned toolchains and dependencies; safe to re-run | People, image build |
check --changed | Format, lint, banned APIs, types and architecture tests on affected targets | Stop hook, pre-commit, CI |
test | Runs the tests of one target or one test | Agents, people, pre-push |
verify <surface> | Drives the real surface (web UI, API, money logic) and captures evidence | Agents (human aid only); CI verify-run (proof of record) |
stack up | Starts a multi-service slice against vendor twins, from month 4 | Agents, CI |
gen | Regenerates code from contracts/; CI fails if the output differs | Agents, CI |
new | Scaffolds a service, app or library from a Copier template | People, agents |
evidence | Collects the artifacts for the PR | Agents, CI |
worktree-env | Prepares a separate environment for a git worktree, for parallel local sessions | People |
agent run | attach | Starts a hosted run; attaches to a hosted VM to steer it (attach from month 4) | People |
The budgets in the figure keep the fast lanes quick enough that nobody is tempted to skip them; pre-push covers affected tests, architecture tests and contract-breaking checks. Output is written for agents: a short summary, file:line errors and a non-zero exit with a hint that names the fix (inference).9
CI is the only gate because local hooks can be skipped. Anyone can run git commit --no-verify, and Claude Code’s documentation says a Bash deny rule “isn’t a security boundary around the program”.14 So CI’s verify-run re-runs the required suites at the PR head with main’s harness layer. Locally, the Stop hook will not let the agent finish until proof/plan.yaml exists and the fast checks are green.2
Every service also has a feature map and a CLI driver, Tan’s recipe for letting an agent check its own work on the real app (see Lessons from the field and the verification chapter).10
Deep dive: the Stop check in action, hook mechanics and feature maps 2 min
An illustrative run of the Stop check for the running example, then the mechanics behind it.
./x check --changed for the running example (ISSUE-12, a card spending-limit screen)$ ./x check --changed affected: apps/web → format ok 0.4s → lint + banned-apis ok 1.8s 0 new violations, ratchet holds → typecheck ok 6.2s → unit tests (affected) ok 21.0s 128 passed done in 29.6s (Stop budget 60s)
One set of hook scripts for two harnesses. The hooks are thin scripts in tools/agent-hooks/ that call ./x. Because Codex uses the same hook event names as Claude Code (PreToolUse, PostToolUse, Stop, SessionStart), the same scripts serve the second harness.15,16
How the Stop gate behaves. A Stop hook that exits with code 2 sends Claude back to work until the check passes; after eight blocked stops in a row with no tool call in between, Claude Code lets the turn end, so the cap is a backstop, not a loop.8 Because PostToolUse on edits misses changes made through shell commands, the Stop check scans the whole working tree.15
The budgets in detail. Format and lint of one edited file under 2 seconds, the Stop check on changed targets under 60 seconds, pre-commit under 10 seconds and pre-push under 3 minutes.9 Stripe aims lower still: its cached lints return fixes “in well under a second”.13
The feature map and driver. The map records “what features exist → how users reach it → what proves it works”, and a small CLI drives the real app (Tan’s slide shows app aria-click, app snapshot and app screenshot proof.png).10 pstack’s generator seeds one file per feature with four sections (sub-features, how to get to it, driving it, gotchas) and the rule “Never weaken the journey to make it pass”.17
Structure over prose
Every rule the bank cares about should fail a build, not sit in a paragraph. Following pstack’s /correct ladder, the trust pyramid in practice, a rule goes into architecture, types, “a lint or CI check whose error names the file, type, or function to use instead” or a test before it goes into docs. Each check must be shown failing on a real mistake, and exceptions carry “a reason, an expiry date, and a human’s approval”.18
Lint messages double as instructions: Birgitta Böckeler calls them “a positive kind of prompt injection”, and OpenAI’s harness team writes linters that “inject remediation instructions into agent context”.19,20 A fresh repo has no past mistakes to prove a rule against, so each rule in the day-one banned-API pack ships with a failing fixture instead.9
| Banned | Why it matters in a bank | The message points to |
|---|---|---|
| Floating-point money arithmetic | Rounding errors in balances and fees | Money from libs/money |
now(), random or UUID calls in domain code | Tests and replays stop being deterministic | Injected clock and ID generator |
Raw UPDATE or DELETE on journals | The ledger journal must stay append-only | Reversing entries (the database role also lacks the right) |
| Logging personal data | GDPR and data-minimisation duties | Structured logger with typed, redacted fields |
| HTTP clients without timeouts | One slow vendor stalls everything behind it | The shared client factory |
| Vendor SDKs outside adapters | Vendor lock-in and untested seams | The owning service’s adapters/ |
useEffect in product React code | Agents misuse it; Tan’s team banned it and says the problem is now “categorically eliminated” | Framework APIs |
TypeScript barrel files and any | Barrels hurt the “local reasoning” agents rely on; any switches types off | Direct imports; precise types |
| Test-environment detection in non-test code | Code that behaves differently under test makes every proof worthless | Nothing: navigator.webdriver, process.env.CI, Playwright and Maestro markers are banned outright |
Around the pack sit four more structural controls: compile-level module boundaries, contract-first code generation that CI checks for drift, ratchets that fail only on new violations, and comments limited to lint-checked tags such as REG: and INVARIANT:.9,18,2
Deep dive: how the rules are written, and the four structural controls 1 min
Rules are written once in ast-grep or Semgrep where possible, and natively (ESLint, Ruff, golangci-lint, Error Prone, clippy) where type information is needed.9
- Compile-level boundaries. Services depend only on
contracts/andlibs/, enforced first by the build (Gradle modules, Gointernal/packages, packageexports), then by architecture tests such as ArchUnit, dependency-cruiser and import-linter.9 - Contract-first code generation from one schema source.
./x genregenerates clients and servers fromcontracts/; CI regenerates and fails on any difference, and breaking-change checks run before push.9 - Ratchets. A rule added after code exists fails only when a change adds more violations, and becomes strict when the count reaches zero.18
- Tagged comments only. Tan’s team cut comments from 65,824 to 1,227 because agents use them to justify workarounds.10 The bank’s softer version keeps only lint-validated tags (
REG:,ADR-,INVARIANT:,SAFETY:), because regulatory traceability needs some comments; the lint checks that every referenced control and architecture decision record (ADR) exists.2
The build research leans towards TypeScript, one JVM language, Go and Python, with Rust only by architecture decision record (ADR). Each extra language costs a ruleset, a language server and an upgrade path, and cross-language work is harder for agents: on Snowflake’s monorepo, Java-only tasks passed 80% of trials against 55% for Java-plus-C++ tasks, although the 55% rests on only two tasks.22 In one small study, richer type-error messages raised agents’ repair rate (an inference for Kotlin, Go or TypeScript).23 This is a leaning, not yet a decision.24
Builds and caches
Builds stay simple at launch, and the build cache counts as part of the trust boundary.
Use moon and mise behind ./x, with native toolchains underneath. A Remote Execution API (REAPI) cache, kept in the bank’s own AWS account next to the CI runners (inference), is written only after merge by trusted CI. Agents never write the canonical cache, verify and agent/** workflows never restore a cache, and T2 proof suites run uncached. No Bazel spike in year 1; revisit Bazel at 20+ services with median (p50) CI time above 12 minutes.2
moon runs the task graph; mise pins the tools. moon works out which targets a change affects and supports a REAPI-compatible remote cache such as bazel-remote;25,24 mise pins every toolchain version and checks its lockfile in CI.26 Language-native builds (Gradle, Go, pnpm, uv) do the work, so the tools stay familiar.
Why not Bazel on day one. The build research recommended Bazel 9 with remote execution, so that a hermetic cached “test passed” could count as evidence, and proposal P4 adopted it.27,24 The judges found Bazel from day one, a remote-execution bake-off and a new sandbox vendor too heavy for a platform team of five or six, because the combination “front-loads platform weight before the inner loop is proven”.29 Uncached T2 proof runs remove the need for cached evidence, and ./x would hide a later switch from agents.2
Plan the build plane for agents, not people. At BazelCon 2026, Plaid reported that AI-assisted coding doubled its build volume during 2026.35 The bank sizes builds and caches for 5-10 times human build volume (inference) and measures cache hit rate separately for CI, people and agents from day 0.24
A poisoned cache entry would make a failing change look green. Aspect Build describes the same issue on shared remote-execution clusters, where audit logs “can’t tell the difference” between a person and an agent.36 Hence the rules above: only trusted post-merge CI writes, agent and PR workflows never restore, T2 proof runs uncached, and the S2 red-team spike tries to plant a cache entry before gate W-tech.2
Deep dive: build systems compared, versions and agent build load 2 min
Versions as of 24 November 2026: moon v2.6.5;24 mise v2026.11.12 (21 November 2026), which checks its lockfile with mise lock --check.26 Bazel 9 LTS was released on 20 January 2026 and is supported until December 2028.27,28
| Option | What it offers | Why not now | Verdict |
|---|---|---|---|
| moon 2.6.5 + mise, native toolchains | Affected-target detection, REAPI-compatible cache, familiar tools | Hermeticity is partial; smaller ecosystem | Chosen |
| Bazel 9 LTS (10 at release candidate) | One hermetic graph for every language; remote execution | High setup and upkeep for a small platform team; capacity goes to verification | Deferred |
| Nx 24 | Best JavaScript experience and agent integration | Its correctness net is a CI-side Nx Cloud feature; polyglot boundary checks need Nx Enterprise | Not chosen |
| Pants 2.33 | Strongest for Python | Weaker for TypeScript and mobile | Not chosen |
| Turborepo 2.11 | Simple for JavaScript and TypeScript | No JVM support | Not chosen |
| Buck2 | Fast and strict | Only date-tagged pre-releases; small external community | Not chosen |
More on agent build load: Plaid’s build volume is on track for four times its early-2026 baseline, and OpenAI reportedly said everything in its CI that was not on Bazel “was falling over under agent-generated load” (as reported, not verified against a recording).35 The 85% cache-hit threshold at gate L is not a build-cache target: it matches the model prompt-cache objective among the cost controls, covered in Observability, evals and cost.2
Context files that travel
Write instructions, skills and hooks once in harness-neutral places, generate the Claude Code layer from them, and load that layer only from trusted copies. This keeps the drilled exit to Codex cheap (see Models, harnesses and exit) and stops an agent from rewriting its own guardrails.
The rules that follow:
CLAUDE.mdis one line,@AGENTS.md, because Claude Code readsAGENTS.mdnatively only when noCLAUDE.mdexists; a committed import keeps loading predictable.42,3- Skills are canonical in
.agents/skills/, which Codex and Cursor read directly. Claude Code ignores.agents/, so each skill gets a generated symlink or copy in.claude/skills/.3,39,40,38 - CI checks the budgets. The instruction chain to any leaf stays under Codex’s 32 KiB cap, after which it stops loading files.37 Skill descriptions stay within Claude Code’s 1,536 characters,39 or the open specification’s 1,024 for skills meant for every harness (inference).44
- Package tasks start in the package directory, because Codex loads
AGENTS.mdfiles only from the repo root down to the working directory (inference).37,9
Who reads what, and the loading details behind these rules 5 rows
| File or folder | Claude Code | Codex | Cursor | Role in the bank |
|---|---|---|---|---|
AGENTS.md | Via import | Yes | Yes | Canonical instructions |
CLAUDE.md | Yes | No | No evidence | Generated import shim |
.agents/skills/ | No | Yes | Yes | Canonical skills |
.claude/skills/ | Yes | No | Yes | Generated links or copies |
| Hook settings | .claude/settings.json | .codex/hooks.json | Imports Claude’s | Generated; logic in tools/agent-hooks/ |
Claude Code has read AGENTS.md natively since v2.1.277 (18 September 2026), but only when no CLAUDE.md exists at or above the working directory, and a personal CLAUDE.local.md silently suppresses it. The committed import “never makes Claude read AGENTS.md twice”.42,3 The 1,536-character cap covers a skill’s description plus its usage hint.39
Agent Skills has been an open standard under the Agentic AI Foundation since 22 October 2026.43 Skills meant for every harness should also use only the specification’s frontmatter fields (inference).44
A branch can carry a poisoned AGENTS.md or skill that the next session on that branch would obey. So .claude/ is generated, protected by CODEOWNERS and the broker, and loaded only from the base commit and the image. Sessions on agent-authored heads (review, interrogate, resume, Babysit, maintenance, drills) mount AGENTS.md, CLAUDE.md and .codex/ read-only from the base commit, with project setting sources excluded.2,45 The overlay is not yet verified: spike S3 tests it in weeks 6-8, and the S2 red team tries a poisoned-branch AGENTS.md. See Security, compliance and governance.2
Specs and golden paths
Every task starts from a short, typed spec whose acceptance criteria name their evidence, and every new service starts from a template that already carries its guardrails. Both keep agent work in the repo, not in a chat thread: what an agent “can’t access in-context … effectively doesn’t exist”, as OpenAI’s harness team puts it.20
The coordinator drafts an agent-task.yml from the requester’s words, and the requester confirms it before any run starts (see Chat coordinator and agents). Acceptance criteria use EARS (Easy Approach to Requirements Syntax): short “When …, the … shall …”, “While …” and “If …” sentences that map cleanly to tests. On T1 and T2 the spec adds a fall-back plan and a security-impact note, because DORA rules require “documentation and communication of change details” and “fall-back procedures” (RTS 2024/1774, Art. 17(1)(d) and (e)).2,46
The agent-task.yml for the running example, ISSUE-12 20 lines
id: ISSUE-12
requester: u-7f2a91 # pseudonymous ID, never a name
type: implement
tier: T1 # computed from services.yaml and the changed paths,
# never chosen by the agent; only apps/web changes,
# so card authorisation (T2) is untouched
data_class: green-synthetic # code and synthetic data only
outcome: Cardholders can set a monthly spending limit on a card.
acceptance: # EARS form
- When the cardholder saves a monthly limit, the card settings screen
shall store it through the existing card-controls API and show it.
- While a limit is set, the card settings screen shall show
the remaining amount.
- If the limit field is empty or not a positive amount, the app
shall show an inline error.
evidence: [ui-web, api-sync, ui-mobile] # ui-mobile: no surface until
# month 4, so its claim is a gap
fallback_plan: <how to switch the change off, and what to undo>
security_impact: <new endpoints, data touched, authorisation changes>
out_of_scope: [ios]
#sq-payments. Each criterion names a surface whose evidence proves it; the angle-bracket fields are placeholders. The Slack thread is never the record: this file is.Specs stay light, and heavy harnesses go only where the risk is. Heavy spec frameworks create review load: Böckeler found that Kiro turned a small bug into “4 user stories with a total of 16 acceptance criteria”.47 In Naresh Jain’s experiment, a contract-heavy harness cost a frontier model about 7 times as much and changed nothing in the outcome, so the bank applies such harnesses only where integration seams carry the risk, on T2 paths.12
Deep dive: more evidence on spec and harness weight 1 min
Böckeler also found that Spec Kit produced “a LOT of markdown files”.47 Spec Kit is very active (v1.4.4 on 23 November 2026), and its presets could suit regulated workflows later, but not at launch.48
In Jain’s experiment the contract-heavy harness lifted a cheaper model from 3 to 10 accepted builds out of 10, while for the frontier model it used about 10.5 times the tokens. Unharnessed failures clustered at “protocol boundaries, resiliency paths, and integration seams”.12
Golden paths are Copier templates behind ./x new. Each emits the code with its AGENTS.md, a verify skill, architecture tests, a contract stub and a CODEOWNERS line, which Böckeler calls “harness templates”.2,19 copier update replays the recorded answers and re-applies the project’s changes on a new template version, which limits drift;6 CI instantiates every template and runs ./x check on the result (inference).9
Configuration is reviewed on a timer: instruction files, skills, lint packs and templates every 3-6 months and at each major model release, because “instructions written for your current model can work against a future one”.49,2
pstack: what we take from Lauren Tan’s skills
pstack is worth taking for its discipline, not its code. The bank copies 12 skills and four kickoff prompts as its own files, pinned to one commit, and adds more only through gated changes. Tan herself invites this: “go fork it, take our skills, combine them”.11
What it is. Tan’s public skill pack, written almost entirely in prose. The verified snapshot is v0.15.46 (MIT licence; cursor/plugins commit 7a583913 of 21 November 2026): 58 skills, 22 playbooks inside the poteto-mode router, and two subagents.5,50 With about 175 commits since May 2026 and no tags or releases, it has to be pinned by commit.51
Its value is discipline. Reproduce first; prove the change on the real artifact; keep writer and verifier separate; bind each verdict to a patch (git patch-id) so a rebase cannot carry an old verdict onto new code; and fail closed: “A gap does not count as a pass.”50,52 These map directly onto the bank’s proof chain.
The adoption runs in phases, and three items are skipped:
| When | Skills and playbooks |
|---|---|
| Launch (weeks 0-12) | in-your-own-words, sharpen, correct, prove-it-works, create-verification-skill (adapted), tdd, blast-radius, show-me-your-work, interrogate (T2 only, with bank lenses), ketchup, unslop, why; kickoff prompts Investigation, Bug fix, Feature and Babysit (“never authorizes merging”)50 |
| Gate L (month 5) | maintain-verification-skill; Autopilot-stack (“stop at verified”) on T0 and T1 |
| Month 7 and later | create-formal-verification-skill, statechart, swarm, arena |
| Skip | The Autopilot-full merge step, because an agent merging conflicts with the independence DORA requires between approving and implementing a change (RTS Art. 17(1)(b));46 Worktree cleanup; make-bot-ui |
Everything else enters through a gate. Skills not on the list are not banned: each enters only with a named use case, as a T2 change gated by claude plugin eval, which compares runs with and without the plugin and fails CI below a threshold.2,58 A quarterly upstream review replaces the design brief’s monthly sync of the whole generated tree, which the red team flagged (issue #30).2,4
Pin pstack at 7a583913, copy the 12 launch skills and four kickoff prompts as bank-owned files, and name skills explicitly in every bot prompt. Treat every later skill, and every change to an adopted one, as a T2 agent-configuration change with an eval gate.
Deep dive: how the copy is made, and four Claude Code fit traps 2 min
The bank copies the 12 launch skills, plus the watch-pr script that Babysit needs, into .agents/skills/ as bank-owned files with the MIT attribution and an UPSTREAM.md naming source commit 7a583913, and turns four playbooks (Investigation, Bug fix, Feature, Babysit) into kickoff prompts, without the poteto-mode router.2
pstack is written for Cursor; its Claude Code tree is generated, with a 68-line adapter the model reads at run time.53,54 Four traps follow, each with the bank’s answer. The first two are why bots and kickoff prompts name one leading skill explicitly.39,55
| Trap | Effect | Bank’s answer |
|---|---|---|
57 of 58 skills disable model invocation (all but setup-pstack) | Claude will not pick them up by itself; the prompt must name the skill, or the agent must read the file | Bots and kickoff prompts name skills explicitly |
In -p and Agent SDK runs only the first leading skill loads | A prompt naming two skills silently runs one | One leading skill per kickoff; others read as files |
cursor-team-kit dependencies (deslop, control-ui, control-cli) are missing | Steps that call them fail or are skipped | Port what is needed as bank skills |
| “Cloud” agents map only to a local worktree | No separate VM per verifier | Hosted sandboxes come from the platform (chapter 04) |
The copy rewrites references between skills to point at the bank’s copies.2 It also applies the five reconciliation fixes (all about model-panel mappings) and the open upstream watch-pr fix, which stops the script pulling fork PRs into a stack and printing unsanitised comment text (issue #1193; fix PR #1194 still open on 24 November 2026).56,57
What each phased skill does for the bank, with its verdict 21 rows
| Skill or playbook | Verdict | What it does for the bank |
|---|---|---|
| Launch (weeks 0-12): 12 skills and four kickoff prompts | ||
in-your-own-words | Adopt | The bot’s first reply restates the ask: the cheapest intent check |
sharpen | Adopt | Adds an outside test of what “right” means; mandatory for research asks |
correct | Adopt | Turns corrections into checks; rule-to-enforcer table from commit one |
prove-it-works | Adapt | Proof on the real artifact; keep artifacts on regulated paths |
create-verification-skill | Adapt | One verify-<surface> skill per surface, with evidence manifest, video, trace and synthetic data |
tdd | Adopt | “Prefer no new test over a bad test”; bug fixes route to it |
blast-radius | Adopt | Five-level ladder from “You said so” to “You reproduced it in the running app”; used on shared contracts |
show-me-your-work | Adapt | Decision trail per PR in .audit/; same-vendor reviewer; personal data scrubbed |
interrogate | Adapt | T2 only: run-proven adversarial review with bank lenses (conservation, retries, authorisation, personal data in logs, cut-offs, report schemas) |
ketchup | Adapt | The “come back to the thread” report, ported to Slack |
unslop | Adopt | Cuts reviewer load on agent prose |
why | Adapt | Decision provenance is audit material |
| Kickoffs: Investigation, Bug fix, Feature, Babysit | Adopt | Bank kickoff prompts; Babysit “never authorizes merging”50 |
| Gate L (month 5) | ||
maintain-verification-skill | Adopt | Daily drift audit of verify skills, at most one PR of corrections |
| Autopilot-stack | Adopt | “Stop at verified” overnight runs on T0 and T1 |
| Month 7 and later | ||
create-formal-verification-skill, statechart | Adopt | Formal models of ledger posting, idempotency, card holds and payment state machines, rendered as charts compliance can review |
swarm | Adopt | Fan-out verification with SHAs and method recorded; gaps are not passes |
arena | Adapt | Competing designs; the cross-vendor judge needs a patch to run in Claude Code |
| Skip | ||
| Autopilot-full merge step | Skip | An agent merging conflicts with the independence DORA requires between approving and implementing a change (RTS Art. 17(1)(b))46 |
| Worktree cleanup | Skip | Laptop-centric; hosted VMs are disposable |
make-bot-ui | Inspire | Tied to Grok Bot and Cursor with an unsafe posture; only the “server-held key” rule is kept |
Research verdicts for all 58 skills, plus agents and playbooks 66 rows
Copied from the design brief’s verdict table, which was built from the four verified pstack notes. Five items were relabelled by the verifiers relative to the earlier digest (for example poteto-help from adopt to adapt).4
| Skill | Verdict | Why |
|---|---|---|
| Core (3): adapt 3 | ||
poteto-mode | Adapt | Core rigour engine; needs bank gates, hook-enforced autonomy limits and Claude Code fixes |
setup-pstack | Adapt | Commit a project role file baked into images, not a per-user step |
poteto-help | Adapt | Cheap onboarding (light change); add bank skills |
| Principles (24): adopt 13, adapt 11 | ||
attack-the-premise | Adopt | Well-tested debugging discipline |
boundary-discipline | Adapt | Authorisation, limits and screening are controls, not “redundant validation” |
build-the-lever | Adopt | Rerunnable tooling backs verifiable agent work |
encode-lessons-in-structure | Adapt | Core of trust; restore the enforcement ladder; add controls as code |
exhaust-the-design-space | Adapt | For unprecedented ledger and auth designs; restore the cut when/when-not list |
experience-first | Adopt | “The user is whoever consumes the work” |
explain-the-number | Adapt | Extend to fraud, credit-model and reconciliation figures |
fix-root-causes | Adopt | Matches DORA’s root-cause culture |
foundational-thinking | Adopt | Fresh repo: CI, tests, shared types first |
guard-the-context-window | Adopt | Hygiene for coordinators and long sessions |
laziness-protocol | Adopt | Small diffs are easier to review and audit |
make-operations-idempotent | Adapt | Add idempotency keys, outbox and inbox, deduplication, reconciliation |
migrate-callers-then-delete-legacy-apis | Adapt | “External” includes app versions in the wild, partners and persisted events |
minimize-reader-load | Adopt | Reader load is reviewer load |
model-the-domain | Adopt | State machines for payment, KYC, card and loan lifecycles |
never-block-on-the-human | Adapt | Redraw around DORA change control; enforce in hooks and permissions |
outcome-oriented-execution | Adapt | Breakage only in unmerged stacks or behind flags; expand/contract migrations |
prove-it-works | Adapt | Central to verification; retain artifacts on regulated paths; restore the end-to-end line |
redesign-from-first-principles | Adopt | Keeps designs coherent |
separate-before-serializing-shared-state | Adopt | Parallel sessions and ledger sharding |
sequence-verifiable-units | Adopt | Stacked self-proving PRs are an audit-friendly record |
subtract-before-you-add | Adapt | The control catalogue is spec; agents must not delete compliance checks |
test-behavior-not-implementation | Adopt | Most evaluated principle; protects contract tests |
type-system-discipline | Adapt | Restore cut bullets; companions for other languages; money and identifier types |
| Thinking, communication and code style (16): adopt 7, adapt 8, inspire 1 | ||
bro | Adopt | “Say that plainly” for people in threads |
in-your-own-words | Adopt | Cheapest intent check; the bot’s first reply |
sharpen | Adopt | Adds an external oracle for “right”; mandatory for research asks |
how | Adopt | Read-only explainer; onboarding |
why | Adapt | Decision provenance is audit material; restore evidence tiers and source playbooks |
teach | Adopt | Composes how and why |
recall | Adapt | Needs a controlled transcript store; engineers run it on their own sessions |
interrogate | Adapt | Run-proven adversaries; fix worktree base, set the panel, add bank lenses |
figure-it-out | Adapt | Falsifiable done-predicate, harness first; bind rigour to risk classes |
ketchup | Adapt | The “come back to the thread” report; port to Slack |
unslop | Adopt | Cuts reviewer load on agent prose |
technical-writing | Adopt | Compact style rules for ADRs, runbooks and PR bodies |
no-comments | Adapt | Keep a clause for regulatory and tagged comments |
typescript-best-practices | Adapt | Make it a path-scoped rule plus lint; money and ID types; sibling languages |
reflect | Adapt | Retarget at the fork via PRs with correct and evals; no mining of raw human turns |
automate-me | Inspire | Personal modes fragment a team; borrow the mining method |
| Verification, design and build (15): adopt 10, adapt 3, inspire 2 | ||
create-verification-skill | Adapt | Core of verification; add evidence manifest, video and trace, multi-service verify-stack, synthetic-data rule |
maintain-verification-skill | Adopt | Daily drift audit, one-PR output; schedule via CI or bot |
create-formal-verification-skill | Adopt | Ledger posting, idempotency, ordering, card holds, payment state machines |
maintain-formal-verification-skill | Adopt | Separates a stale description from a real bug; trigger on path filters |
show-me-your-work | Adapt | Commit the decision trail per PR; replace the cross-vendor reviewer; scrub personal data |
blast-radius | Adopt | Five-level ladder from “You said so” to “You reproduced it in the running app” |
tdd | Adopt | “Prefer no new test over a bad test”; route bug fixes to it explicitly |
statechart | Adopt | TLA+ results as charts compliance can review; pre-bake TLC and Java |
benchmark-checklist | Adopt | Seven questions stop fake speedups |
ketchup-video | Inspire | A slide video, not a UI recording, so not evidence |
make-bot-ui | Inspire | Grok Bot and Cursor only, unsafe posture; keep the “server-held key” rule |
arena | Adapt | The cross-vendor judge never runs in Claude Code without a patch |
swarm | Adopt | Fan-out with SHAs and method; gaps are not passes |
architect | Adopt | Two sketches, one owner per piece of state |
correct | Adopt | Rule-to-enforcer table and hierarchy; day 0 |
| Agents, playbooks and sibling plugins (not counted as skills) | ||
worker.md | Adapt | Carries bank non-negotiables (“The bar in your kickoff is the whole bar”) |
poteto-agent, comment-sicko | Adapt | Invalid model slug and Cursor-only fields; restrict tools and add a regulatory keep-list for comments |
| Claude Code adapter | Adapt | Required; patch the gaps |
| Playbooks (13): Investigation, Bug fix, Trace forensics, Feature, Refactoring, Prototype, Visual parity, Eval, Babysit, Autopilot-stack, Session pickup, Pause safely, Multi-phase plan | Adopt | Babysit “never authorizes merging”; Eval gates skill changes |
| Playbooks (7): Perf issue, Runtime forensics, Hillclimb, Authoring a skill, Shipping, Autonomous run, Opening a PR | Adapt | Keep patch-id verdicts with a human merge; commit trails; hosted-only autonomous runs; evidence and risk class in PRs |
| Playbooks (2): Autopilot-full merge step, Worktree cleanup | Skip | RTS 17(1)(b); laptop-only |
benny Slack pack, orchestrate, guide | Inspire | Best open Slack-bot spec (coordinator is the sole Slack writer, children get no Slack token, draft PRs only); git-backed plans; prompt anatomy |
cursor-team-kit | Adapt | Port control-ui, control-cli, verify-this, deslop |