Skip to content
Anonyfox

GhostPaw souls

Agent identity that changes only when the evidence agrees, and goes back with one call

TL;DR

GhostPaw souls keeps an AI agent's identity, from my open‑source GhostPaw family: a system prompt of traits backed by evidence. It changes only when two sources agree over a day, every level‑up can be reverted, and my Grok bots' mentor keeps one soul per bot.

Live
  1. 1
  2. 2
  3. 3
  4. 4
  5. 5

Visit GhostPaw soulssouls.ghostpaw.dev, opens the library's website

The souls.ghostpaw.dev start page on a black ground: the GhostPaw/souls wordmark with a cyan block cursor, the version 0.6.3, the headline Change your agent's prompt when the evidence agrees, two paragraphs on essence, traits and reversible level-ups, an install line with a Copy button, and on the right a wolf's head drawn in glowing cyan lines with violet crystal shards around it and a 0 runtime dependencies badgeFIG. 1 The souls site, its wolf art AI‑generatedCaptured

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
FIG. 2 One soul on day 5 of the run belowsouls 0.6.3
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.

Timing diagram of the Reviewer soul over six days, as GhostPaw souls 0.6.3 computed it with a fixed clock and strict mode: three session shards on days 0, 1 and 2 keep READY low and a refinement is refused; a CI shard on day 3 raises READY; revising trait 1 with four shards cited drops it again; on day 4 a level-up plan that drops trait 1 is refused; a session shard on day 5 raises READY and the level steps from 1 to 2; on day 6 the level-up is reverted to level 1. day 0 day 1 day 2 day 3 day 4 day 5 day 6 SESSION CI READY LEVEL #1 #2 #3 #4 #5 LV 1 LV 2 LV 1 3 pending, all from one source 4 pending · 2 sources · 3 days no shard since the last change 1 2 3 4 5 6 Timing diagram of the Reviewer soul over six days, as GhostPaw souls 0.6.3 computed it with a fixed clock and strict mode: three session shards on days 0, 1 and 2 keep READY low and a refinement is refused; a CI shard on day 3 raises READY; revising trait 1 with four shards cited drops it again; on day 4 a level-up plan that drops trait 1 is refused; a session shard on day 5 raises READY and the level steps from 1 to 2; on day 6 the level-up is reverted to level 1. d0 d1 d2 d3 d4 d5 d6 SESSION CI READY LEVEL #1 #2 #3 #4 #5 LV 1 LV 2 LV 1 1 2 3 4 5 6
  1. 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_soul
  2. 2A 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_soul
  3. 3Revise 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_soul
  4. 4A 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_soul
  5. 5Level 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_soul
  6. 6Revert · 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
FIG. 3 The Reviewer soul's readiness and level, day by day, strict mode, fixed clocksouls 0.6.3, run

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

  1. r1trait 1 seededoperator correction
  2. r2trait 2 seededoperator correction
  3. r3trait 1 reworded4 shards cited
  4. r4essence, level uplevel 2
  5. 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

FIG. 4 Level 2 as render --into wrote it; after the revert, the block the next render writessouls 0.6.3, the run above

Why 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.

Source of truthsouls.dbsouls, essences, traits with provenance, shards, levels, every revision
OutputAGENTS.mdthe block between <!-- souls:begin --> and <!-- souls:end -->; the rest of the file stays yours

SOUL.md as the source of truthnow a rendering you can diff, not the only copy

FIG. 4b The source flipped: the soul lives in SQLite, the file is written from itsouls 0.6.3
  • Overwritten by a tool or a bot

    The soul lives in SQLite; the file is only rendered from it, and diff shows 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.

Texta throwaway folder20 linessouls 0.6.3
$ 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 serverghostpaw-souls mcp
  • CLIghostpaw-souls
  • Agent SkillSKILL.md + 9 guides
GHOSTPAWSOULS0.6.3 · MIT
  • search_souls
  • review_souls
  • inspect_souls_item
  • observe_soul
  • refine_soul
  • level_up_soul
  • manage_soul
  • trace_soul
  • review_traces

~/.ghostpaw/souls.dbone SQLite file, copy it, back it up, open it with any SQLite tool

FIG. 5 The package: four doors on the left, nine tools on the right, one file under itfrom src/tools

Install

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.

Shellinstall6 linesNode 24+
# 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
TypeScriptagent.ts17 linesNode 24+
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.

B0 · Nightly one‑to‑onesThe mentor bot

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
FIG. 6 The mentor and the bots it keeps a soul for, by what they doAs of
M1 · Maintainer

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.

Runs without me
  • 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
Waits for my yes
  • 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.

  1. MEMORY.md S1 · Belief memoryGhostPaw codexBeliefs instead of a memory filev0.8.0 · replaces MEMORY.md
  2. SOUL.md S2 · Identity memoryGhostPaw soulsAn identity that changes with evidencev0.6.3 · replaces SOUL.md
  3. skills/ S3 · Procedural memoryGhostPaw grimoireProcedures that get better and keep their historyv0.7.4 · replaces skills/
  4. USER.md S4 · Social memoryGhostPaw affinityContacts instead of a user notev0.7.3 · replaces USER.md
  5. TODO.md S5 · Commitment memoryGhostPaw questlogQuests instead of a to‑do listv0.14.2 · replaces TODO.md
FIG. 7 Five files an agent keeps, five libraries that replace themVersions as of

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.com. Write to me