Skip to content

Commit a055c01

Browse files
tbitcsoz-agent
andcommitted
chore: add Session Bootstrap section to AGENTS.md template and self-AGENTS.md
Every project scaffolded or upgraded via specsmith will now include a Session Bootstrap section instructing agents to run four steps before any work: 1. pip install --pre --upgrade specsmith (keep current) 2. specsmith migrate-project (apply scaffold migrations) 3. specsmith audit (verify governance health) 4. specsmith sync (confirm YAML / JSON in sync) specsmith's own AGENTS.md gets a tailored variant (runs from editable source, no pip install step; uses py -m specsmith). The template change propagates to all governed projects via: specsmith upgrade --full Co-Authored-By: Oz <oz-agent@warp.dev>
1 parent 319d655 commit a055c01

2 files changed

Lines changed: 42 additions & 0 deletions

File tree

AGENTS.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,27 @@
22

33
This project is governed by **specsmith**.
44

5+
## Session Bootstrap
6+
7+
Run these steps at the start of **every** session before touching any code:
8+
9+
```bash
10+
# specsmith runs from editable source — no pip install needed here.
11+
# For all other projects, use: pip install --pre --upgrade specsmith
12+
13+
# 1. Verify governance health
14+
py -m specsmith audit
15+
16+
# 2. Confirm machine state matches governance YAML
17+
py -m specsmith sync
18+
19+
# 3. Check for pending migrations
20+
py -m specsmith migrate list
21+
```
22+
23+
Only proceed with the requested task once all three steps complete without errors.
24+
If `audit` reports failures, surface them to the user before starting work.
25+
526
## For AI Agents
627

728
All governance rules, session state, requirements, and epistemic constraints

src/specsmith/templates/agents.md.j2

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,27 @@
22

33
This project is governed by **specsmith**.
44

5+
## Session Bootstrap
6+
7+
Run these four steps at the start of **every** session before touching any code:
8+
9+
```bash
10+
# 1. Update specsmith to latest dev
11+
pip install --pre --upgrade specsmith
12+
13+
# 2. Migrate project scaffold if behind installed version
14+
specsmith migrate-project --project-dir .
15+
16+
# 3. Verify governance health
17+
specsmith audit --project-dir .
18+
19+
# 4. Confirm machine state matches governance YAML
20+
specsmith sync --project-dir .
21+
```
22+
23+
Only proceed with the requested task once all four steps complete without errors.
24+
If `audit` reports failures, surface them to the user before starting work.
25+
526
## For AI Agents
627

728
All governance rules, session state, requirements, and epistemic constraints

0 commit comments

Comments
 (0)