Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions captain/templates/AGENTS.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# <CREW_NAME> standing rules

The controller's own file. Scope instructions: every thread in the crew reads it. Each
rule that came from the owner keeps the date and the exact words, so lanes can cite it as
a standing approval instead of asking again. Append; never rewrite an owner's words.
The controller's own instructions file. On Capy, crew threads do not automatically
read it; they read `CREW.md` on every turn. This is a shared-drive file, not an access
boundary. Keep Captain-only instructions here. Record any owner words a lane must cite
in `CREW.md`'s standing-approvals table, with the date, exact words and scope, so lanes
can cite the approval instead of asking again. Append; never rewrite an owner's words.

## Mandate (<owner>, <date>)
"<the owner's words for what this crew is for>"
Expand Down
1 change: 1 addition & 0 deletions changelog.d/clarify-captain-rule-sharing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- **Captain setup guidance now says where shared rules belong.** On Capy, crew threads read `CREW.md` every turn; they do not automatically read the Captain's `AGENTS.md`. The guide and standing-rules template direct lane-facing rules and the owner words lanes need to cite to `CREW.md` and its existing standing-approvals table. Contributed by @szsunyuan.
11 changes: 7 additions & 4 deletions crew/docs/captain.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ surface. Keep it small and predictable:

| Path | Who writes | What it holds |
|---|---|---|
| `AGENTS.md` | the controller | standing rules and the owner's decisions, each with date and words ([template](../../captain/templates/AGENTS.md)) |
| `CREW.md` | the controller | the lanes' contract ([template](../../captain/templates/CREW.md)) |
| `AGENTS.md` | the controller | the Captain's own rules and the owner's decisions, each with date and words ([template](../../captain/templates/AGENTS.md)) |
| `CREW.md` | the controller | the lanes' contract and standing approvals ([template](../../captain/templates/CREW.md)) |
| `DIGEST.md` | the controller | Needs you / New / In progress, rewritten every turn ([template](../../captain/templates/DIGEST.md)) |
| `NOTES.md` | the controller | the append-only timestamped log the digest is derived from ([template](../../captain/templates/NOTES.md)) |
| `skills/<name>/SKILL.md` | the controller | crew procedures the lanes load (the runbooks) |
Expand All @@ -73,8 +73,11 @@ surface. Keep it small and predictable:
| `handoffs/` | lanes | datasets and specs the next lane needs; `handoffs/flaky-ledger.md` is the flaky ledger ([template](../../captain/templates/flaky-ledger.md)) |
| `plans/` | the controller | approved plans, with their Approvals table |

Scope instructions in the drive root (`AGENTS.md`, `CREW.md`) apply to every thread in
the crew, so a rule written there needs no relaying.
On [Capy](https://docs.capy.ai/captains), drive-root `AGENTS.md` supplies the Captain's
instructions; crew threads do not automatically read it. They read `CREW.md` on every
turn. Keep lane-facing rules in `CREW.md`, and record any owner words a lane must cite
in its standing-approvals table, with the date, exact words and scope, rather than
only in `AGENTS.md`.

On Capy, `tools.capy.read` returns a view of a file, not the whole file: roughly the first
38,000 characters, with each line cut at 2,000. A program that reads a file, changes it
Expand Down
Loading