The beads sections come from live. The vault and dev-server text mirrors the global CLAUDE.md, replacing the older sysjournal-only section.
62 lines
3.1 KiB
Markdown
62 lines
3.1 KiB
Markdown
# Global Pi Configuration
|
||
|
||
Global instructions for the Pi coding agent, shared with the Claude Code and
|
||
Codex setups on this machine. Project-level `AGENTS.md` / `CLAUDE.md` files take
|
||
precedence for project-specific work.
|
||
|
||
## Shell
|
||
- Use zsh-compatible syntax when writing shell commands or scripts.
|
||
- Assume `~/.zshrc` can affect shell behavior.
|
||
|
||
## Obsidian vaults
|
||
|
||
`~/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.
|
||
|
||
- 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.
|
||
|
||
Two things to know without reading anything:
|
||
|
||
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.
|
||
|
||
`~/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.
|