fix: preserve agent memory files when installing RA-H rules

- Add RA-H graph memory as a marked section instead of replacing files
- Make install-rules idempotent for AGENTS.md and CLAUDE.md
- Document the demo-safe memory file setup command

Generated with Claude Code
This commit is contained in:
“BeeRad”
2026-04-21 08:57:37 +10:00
parent 07ca873702
commit e4f51148fa
6 changed files with 46 additions and 6 deletions
+8
View File
@@ -88,9 +88,17 @@ Once connected, the agent should:
If you use external agents through this MCP server, you may add one short instruction line to your agent memory file (`AGENTS.md`, `CLAUDE.md`, etc.) as optional reinforcement:
```md
## RA-H Graph Memory
Retrieve relevant RA-H context before substantive work, search before creating, and keep durable writeback prompts brief and confirmation-gated.
```
Install or refresh that guidance without replacing the rest of the memory file:
```bash
npx -y ra-h-mcp-server@latest install-rules --client codex --target . --yes
```
RA-H should still work well without this line. The MCP tools, server instructions, skills, and docs are meant to carry the core behavior on their own.
Do not create contradictory instruction files. Prefer one short reinforcement line over a pile of overlapping guidance.