feat: Codex and Pi AGENTS.md carry beads, vault and dev-server rules
The beads sections come from live. The vault and dev-server text mirrors the global CLAUDE.md, replacing the older sysjournal-only section.
This commit is contained in:
1 parent
536fdd1834
commit
afbd45bab5
2 files changed
+90
-20
No files matched your search
+46
-10
@@ -8,18 +8,54 @@ precedence for project-specific work.
|
||||
- Use zsh-compatible syntax when writing shell commands or scripts.
|
||||
- Assume `~/.zshrc` can affect shell behavior.
|
||||
|
||||
## System Knowledge Journal (Obsidian)
|
||||
## Obsidian vaults
|
||||
|
||||
Maintain a running journal of **host/environment** changes in the Obsidian vault at `Tech/Infrastructure/`, using the shared `sysjournal` helper (on PATH). This is for *system administration*, NOT ordinary work inside a code repo.
|
||||
`~/Documents/Obsidian-Work` and `~/Documents/Obsidian-Personal` are the user's
|
||||
long-term memory. **Both vaults carry their own instructions, and those are
|
||||
authoritative.** This file is per-machine and drifts; the vault copies sync.
|
||||
|
||||
**Trigger — the task changes the machine/environment, not just repo code:** system config; services/daemons (systemd/launchd/cron); networking/DNS/VPN/firewall; VMs & host-level containers; drivers/kernel/boot; disks/mounts; build toolchains & global/system package installs; or **wiring an app into the host** (a systemd unit, cron job, opened port, service account).
|
||||
- The **`obsidian-notes` skill** owns the protocol — `vault` and `sysjournal`
|
||||
usage, recall-before-answering, folder ownership, guardrails. If this agent
|
||||
has not loaded it, read
|
||||
`~/Documents/Obsidian-Personal/Meta/skills/obsidian-notes/SKILL.md`.
|
||||
- Each vault's **`Meta/Note Conventions.md`** owns its note rules, and they are
|
||||
deliberately different between the two. Read with
|
||||
`vault conventions --vault <work|personal>` before authoring anything
|
||||
substantial.
|
||||
|
||||
**Do NOT journal** feature work, bug fixes, refactors, or tests *inside* a project repo. Discriminator: *does it change state outside the repo, on the host?* If no → skip. **Straddle case** (you build an app **and** install it as a service): journal only the **host-wiring** part (the unit/cron/port), not the app code.
|
||||
Two things to know without reading anything:
|
||||
|
||||
1. **Recall first.** Before diagnosing or acting on such a task, search the journal and read relevant hits:
|
||||
`sysjournal search <keywords>` (e.g. `sysjournal search systemd relay port`)
|
||||
2. **Journal after.** Once the change is made or the problem resolved:
|
||||
`sysjournal new "Short Descriptive Title" --type change --status deployed --tags systemd,relay`
|
||||
Then fill in the created note (its path is printed): **Why**, **What changed**, **Design decisions / gotchas**, **Verify** (command + observed result), **Status / follow-ups**. Link related notes with `[[wikilinks]]`.
|
||||
1. **Recall first.** `vault search <terms>` before answering from scratch about a
|
||||
work project or customer, the user's machines and home network, or anything
|
||||
they may have solved before. Terms are ANDed — 2–3 specific words.
|
||||
2. **Host/environment changes go to `sysjournal`, never `vault`.** The skill's
|
||||
"Which tool" table draws the line and states the trigger.
|
||||
|
||||
Keep it a real record — what changed, why, the gotcha you hit, how you verified. `sysjournal help` for the frontmatter schema (the `System Log MOC.md` Dataview index depends on it).
|
||||
`~/Documents/Obsidian25` is the pre-split original. It is **not** yet frozen: a
|
||||
VPS cron still writes `_planning/`, `_agent/` and `Health/Garmin/` there nightly.
|
||||
Never hand-write anywhere in it, and treat those three folders as owned by their
|
||||
programs in every vault.
|
||||
|
||||
## Dev servers
|
||||
- **Always bind dev, desk and preview servers to `0.0.0.0`, never `127.0.0.1` or
|
||||
`localhost`.** The user views them from another machine. This applies to every
|
||||
server started for the user to look at, including test-harness servers. If the
|
||||
app refuses non-loopback Host headers, turn that check off for the dev run too
|
||||
(e.g. an `-allow-lan` flag). Report the URL with the host's LAN name or IP.
|
||||
|
||||
## Beads (`bd`)
|
||||
|
||||
Some repos track execution work in beads. A repo is wired in when `bd where` succeeds there.
|
||||
|
||||
- In a wired repo, the session-start hook injects the workflow from `.beads/PRIME.md`. If it is
|
||||
missing from context — after compaction, or in a harness without the hook — run `bd prime`.
|
||||
- Beads holds execution work: tasks, blockers, discovered follow-ups, handoff. Intent stays in
|
||||
`.design/` when the repo has one; a bead never stands in for a plan.
|
||||
- Memory stays where it is: the harness memory and the Obsidian vaults. Never `bd remember`.
|
||||
- Pi has no session-start hook: in a wired repo, run `bd dolt pull` and then `bd prime` before
|
||||
anything else.
|
||||
- Beads syncs itself: each write pushes to origin, and the session-start hook pulls first. Don't
|
||||
run `bd dolt push` by hand unless a sync failure was reported. At handoff, say which beads
|
||||
changed.
|
||||
- To wire a repo in, run `~/code/agent-templates/beads/setup <repo>` — never plain
|
||||
`bd init`, which rewrites `AGENTS.md` and commits tool config.
|
||||
Reference in new issue
Block a user