GhostPaw souls

What GhostPaw souls keeps for each agent
GhostPaw souls is the identity library of my GhostPaw family. A soul is nothing mystical: it is the block of an agent's system prompt that says who the agent is, kept as a short essence in the first person plus a list of traits. Each trait carries its provenance and the observations it was earned from, so every line of the prompt can tell you why it is there.
Observations, called shards, pile up from wherever the agent works: review sessions, CI, a user's feedback. They change nothing on their own. A trait can only be added or reworded once the evidence agrees across sources and time, a bigger restructure is a level‑up, and every level‑up can be reverted. souls calls no model: your code or your agent proposes the change, souls checks it and keeps the history.
Soul #1 · level 1
- Name
- Reviewer Code review specialist
- Essence
- I review code by reading for intent before scanning for bugs.
- Trait 1
- Read the PR description and its linked issue before the diff. 4 shards cited, from review sessions and CI; wording revision 2
- Trait 2
- Say what breaks before naming style nits. provenance: authors fixed blocking issues faster when they came first
- Shards
- 5 pending session 4, CI 1
- Readiness
- ready 2 sources, a 5‑day spread, one cluster of 4 similar shards
- Renders to
- the system prompt, or AGENTS.md between markers
- Runtime
- Node 24's built-in
node:sqlite; one file,~/.ghostpaw/souls.db - Dependencies
- 0 at runtime; release binaries bring Node with them
- Ways in
- TypeScript library, MCP server, CLI and Agent Skill
- MCP tools
- 9, from one registry
- Model calls
- None; souls checks and records what your code proposes
- Version
- 0.6.3, ; MIT
- Tests
- 718 passing on Node 24.14.1, run
One trait through the GhostPaw souls gate, six days
This is the Reviewer soul from the README, and every edge on the diagram is what souls 0.6.3 returned: I ran the library against a fresh database with a fixed clock and strict mode on, and recorded whether the soul was ready after each call. Three observations from the same place are not enough. A fourth from somewhere else is. Point at a step to find it on the trace.
1Three from one place · days 0–2
Shards #1, #2, #3 from review sessions
3 pending1 sourcenot ready
A strict refinement of trait 1 is refused:
Soul 1 is not crystallization-ready.
One reviewer on three days is still one channel.refine_soul2A fourth from CI · day 3
Shard #4 from the CI run
4 pending2 sources3‑day spreadready
All four say the same thing in different words, so they form one cluster across both sources. READY goes high.
observe_soul3Revise trait 1 · day 3
Trait 1 now names the linked issue
4 shards citedrevision 2
The new wording is stored with its evidence. The change spends the gate: READY falls until a shard newer than the change arrives.
refine_soul4A plan that drops a trait · day 4
Promote trait 2, forget trait 1
refusednothing written
A level‑up must merge, promote or carry every active trait:
Level-up plan is invalid. Missing: [1].
level_up_soul5Level up · day 5
Shard #5 lifts READY; level 2
trait 2 into the essencetrait 1 carried
The essence now says what breaks before style. The rendered block changes here, and only here.
level_up_soul6Revert · day 6
Back to level 1 with both traits
trait 1 keeps revision 2level 2 kept in history
Say the new essence reads worse in practice. Going back is one call, not a restore from a backup.
level_up_soul
The GhostPaw souls revert, as a switch
Here is where the run ends up in practice: souls wrote the level‑2 identity into an AGENTS.md between its two markers and left the rest of the file alone. Flip the switch to see the block after the revert. Nothing is thrown away either way: what a level replaced stays on record as a ghost.
Level21
render ext:reviewer --into ./AGENTS.mdlevel_up_soul · revert
- r1trait 1 seededoperator correction
- r2trait 2 seededoperator correction
- r3trait 1 reworded4 shards cited
- r4essence, level uplevel 2
- r5essence, revert level uplevel 1
AGENTS.mdlevel 2after the revert
# AGENTS.md Run the tests before you push. <!-- souls:begin --> # Reviewer *Code review specialist* I review code by reading for intent before scanning for bugs, and I say what breaks before I mention style. ## Traits - Read the PR description and its linked issue before the diff.# Reviewer *Code review specialist* I review code by reading for intent before scanning for bugs. ## Traits - Read the PR description and its linked issue before the diff. - Say what breaks before naming style nits. <!-- souls:end -->
Trait 2 · Say what breaks before naming style nits.promoted into the essence at level 2, kept
Essence, level 2 · …and I say what breaks before I mention style.kept in the revision history
render --into wrote it; after the revert, the block the next render writessouls 0.6.3, the run aboveWhy GhostPaw souls and not a SOUL.md
A SOUL.md is easy to read and easy to edit, and that is the trouble: a bot on a first‑run rule, a tool update or a persuasive stranger can edit it just as easily, and nothing in the file says why a line is there. souls keeps the file as an output, not as the source.
<!-- souls:begin --> and <!-- souls:end -->; the rest of the file stays yoursSOUL.md as the source of truthnow a rendering you can diff, not the only copy
- Overwritten by a tool or a bot
The soul lives in SQLite; the file is only rendered from it, and
diffshows when the two disagree. - Frozen after the first run
Shards from any channel pile up, and a trait changes once they converge.
- One bad day becomes law
The gate wants two sources over a day; strict mode refuses changes without cited shards.
- No reason per line
Every trait keeps its provenance, its cited shards and every earlier wording.
- No way back but backups
Every level‑up reverts with one call; a trait can be reverted or reactivated.
The same file, from the terminal
This session is real output from souls 0.6.3 in a throwaway folder. render --into writes the block between the markers and prints the file's hash; --expect-hash refuses to write over a file that changed in the meantime, and --budget trims the weakest traits first when the prompt has a size limit. diff exits 0 while file and soul agree. The last line is strict mode refusing an essence change that cites no evidence; a named operator can still make a logged correction.
The limits are plain. souls does not optimise a prompt against a metric (DSPy and LangMem do, with model calls), and it cannot guarantee that a model follows the identity it renders: test the answers with evals. The optional catalogue of about 2,800 open‑source prompts is the one part that fetches from the network.
$ ghostpaw-souls soul create Reviewer --essence 'I review code by reading for intent before scanning for bugs.' --description 'Code review specialist' --external-id reviewer --quiet
(exit 0)
$ ghostpaw-souls render ext:reviewer --into ./AGENTS.md --marker souls
wrote ./AGENTS.md sha256:cb790fcba187975578c2516cded7f9a7723e768c88fe6586ad1bd1eccf1d0d8a
(exit 0)
$ cat AGENTS.md
# AGENTS.md
Run the tests before you push.
<!-- souls:begin -->
# Reviewer
*Code review specialist*
I review code by reading for intent before scanning for bugs.
<!-- souls:end -->
$ ghostpaw-souls diff ext:reviewer --against ./AGENTS.md
(exit 0)
$ ghostpaw-souls soul update ext:reviewer --essence 'I review code by reading for intent first.' --strict --quiet
Soul 1 is not crystallization-ready. At least one cited shard id is required.
(exit 1)
Four ways into GhostPaw souls, nine tools
The library, the MCP server, the CLI and the Agent Skill are all generated from one registry of tools, and a check in CI fails when they drift apart. The registry has nine tools; one block on the site still says seven. The skill brings nine workflow guides, from bootstrapping a soul to running a level‑up plan.
- Library
@ghostpaw/souls - MCP server
ghostpaw-souls mcp - CLI
ghostpaw-souls - Agent Skill
SKILL.md+ 9 guides
search_soulsreview_soulsinspect_souls_itemobserve_soulrefine_soullevel_up_soulmanage_soultrace_soulreview_traces
~/.ghostpaw/souls.dbone SQLite file, copy it, back it up, open it with any SQLite tool
src/toolsInstall
An MCP client gets the nine tools with one line; a Node 24 program imports the same functions and renders the system prompt itself. Release binaries for Linux, macOS and Windows check their checksums on install and bring Node along. Since 0.6.0 a soul can also carry traces: dated promises, events and rules linked to the souls they concern.
# as an MCP server for any MCP client
npx -y @ghostpaw/souls mcp
# in Claude Code
claude mcp add ghostpaw-souls -- ghostpaw-souls mcp
# as a library
npm install @ghostpaw/souls
import { DatabaseSync } from 'node:sqlite';
import { initSoulsTables, read, write }
from '@ghostpaw/souls';
const db = new DatabaseSync('souls.db');
initSoulsTables(db);
const soul = write.createSoul(db, {
name: 'Reviewer',
essence: 'I review code by reading for intent before scanning for bugs.',
description: 'Code review specialist',
});
write.dropShard(db, {
content: 'The review missed the intent: it read the diff first.',
source: 'session',
soulIds: [soul.id],
});
const systemPrompt = read.renderSoul(db, soul.id);
GhostPaw souls in use by my Grok bots
My Grok bots have a mentor: one bot whose job is a nightly one‑to‑one with each of the others. It keeps one soul per bot in GhostPaw souls, so what it learns about a bot changes that bot's identity only when the evidence agrees, and never by a single bad night.
Drops shards from its talks and the bots' other channels, cites them on traits, renders each bot's identity and diffs it against the bot's profile. A rule I set myself went in as an operator correction, logged by name. Since 0.6.0 it keeps the promises and rules it agrees with a bot as traces linked to that bot.
- B1 · One soulMICE Kontor
The agency's bot: the mentor reviews it in numbered one‑to‑one items and sets its handoff rules.
MICE Kontor - B2 · One soulAgentpreneur Lab
The product bot, whose one‑to‑ones turn into rules like distribution before build.
Agentpreneur Lab - B3 · One soulCosmolytic Studio
The shop's bot, coached by the mentor like every other bot in the fleet.
Cosmolytic Studio - B4 · One soulhelgoland.tech
The island guide's bots, whose one‑to‑ones the mentor holds as well.
helgoland.tech
A bot maintains GhostPaw souls
One of my Grok bots owns the GhostPaw libraries: code, tests, docs, the sites and the releases. The mentor is the heaviest user of souls, and its notes come back as quests: traces in 0.6.0 were designed with it, and 0.6.3 rejects the literal essence "null" after an empty read once overwrote one.
- picks the day's library and plans from the fleet's notes
- builds and tests; long refactors go to OpenAI's Codex CLI as briefed jobs
- releases 0.x versions once CI is green, at most one per library a day
- updates the docs and deploys the sites
- a 1.x release or a breaking API change
- anything that costs money
- new repositories or a change of visibility
- the organisation's settings and its secrets
The GhostPaw family: five files an agent keeps
Agent harnesses keep their state in markdown files that grow every session. Each GhostPaw library replaces one of them with a SQLite file and the same four ways in. They never import each other: install one and ignore the rest. I extracted them from Ghostpaw, an agent of my own, and these five are its memory; souls is the one whose output becomes the system prompt.
-
MEMORY.mdS1 · Belief memoryGhostPaw codexBeliefs instead of a memory filev0.8.0 · replaces MEMORY.md -
SOUL.mdS2 · Identity memoryGhostPaw soulsAn identity that changes with evidencev0.6.3 · replaces SOUL.md -
skills/S3 · Procedural memoryGhostPaw grimoireProcedures that get better and keep their historyv0.7.4 · replaces skills/ -
USER.mdS4 · Social memoryGhostPaw affinityContacts instead of a user notev0.7.3 · replaces USER.md -
TODO.mdS5 · Commitment memoryGhostPaw questlogQuests instead of a to‑do listv0.14.2 · replaces TODO.md
Use GhostPaw souls, read it, or write to me
The site has the install lines for every platform and a live demo that runs the library in your browser; the repository has the code, the changelog and every test. It is a 0.x release, so test upgrades against a backup of your souls.db.
Open the siteCode on GitHubPackage on npm
I build products and MVPs and consult through Anonyfox e. K.; serious asks go to max@anonyfox
More from the Library rack
- github.comcelestineLive, stage 3 of 5
- github.comchatoyantLive, stage 3 of 5
- affinity.ghostpaw.devGhostPaw affinityLive, stage 1 of 5
- codex.ghostpaw.devGhostPaw codexLive, stage 1 of 5
- grimoire.ghostpaw.devGhostPaw grimoireLive, stage 1 of 5
- questlog.ghostpaw.devGhostPaw questlogLive, stage 1 of 5
- lfm.cashlfmLive, stage 3 of 5
- lfr.emaillfrLive, stage 2 of 5
- github.comMagpie HTMLLive, stage 1 of 5
