GhostPaw questlog

What GhostPaw questlog keeps for each task
GhostPaw questlog is the task library of my GhostPaw family. A task is a quest: one commitment with a title, an objective, its timing and the quests it waits for. It is done only when the agent writes down what happened, and abandoned only with a reason. Whether a quest is available, blocked or overdue is never stored; questlog works it out on every read, so the list cannot go stale.
It started as the first library of the family, on . The package is @ghostpaw/questlog, the command ghostpaw-questlog, and it runs on your machine in one SQLite file, with nothing to host and no key to manage.
Quest #1
- Title
- Chase invoice 4471
- Objective
- Get invoice 4471 paid or a date for it
- Marker
- ! available computed on read: “!” available, grey “?” blocked
- Due
- or a scheduled window, or not before a date
- Repeat
- none a repeatable quest spawns fresh ones from an RRULE
- Unlocks
- #2 Close the November books
- Tags
- #billing
- Outcome
- empty required to finish, a reason to abandon
- Runtime
- Node 24's built-in
node:sqlite; one file,~/.ghostpaw/questlog.db - Dependencies
- 0 at runtime; release binaries bring Node with them
- Ways in
- TypeScript library, MCP server, CLI and Agent Skill
- MCP tools
- 14, from one registry
- Time
- Deadlines, windows, not-before dates and RFC 5545 repeats
- Version
- 0.14.2, ; MIT
- Tests
- 450 passing on Node 24.14.0, run
The GhostPaw questlog board: write the outcome
This is GhostPaw's own invoice story, one week of it, and every state and message on the board came from questlog 0.14.2: I ran its agent tools against a fresh database with a fixed clock. Quest #1 is held at the moment the agent wants to finish it. Write what happened into its outcome field, and watch what questlog lets through. Nothing you type leaves this page.
The week of Mon 30 Nov, replayed with a fixed clockGhostPaw questlog 0.14.2 · Europe/Berlin
Quest #1 · in progress
Chase invoice 4471
#billingdue Fri 4 Decstarted Mon 30 Nov, 09:02
Done stays dark until the outcome is writtenDone: the outcome is on record
The replay wrote Paid, confirmed by Lena in the group
Quest #2 · unlocked by #1
Close the November books
#billingdue Thu 10 Dec
Blocked. run_quest start answers: Quest "Close the November books" is blocked by Chase invoice 4471.
Available. Its prerequisite succeeded, so the marker turns to “!”.
Repeatable #1 · every Monday
Check the billing export
FREQ=WEEKLY;BYDAY=MOEurope/Berlin
- Mon 30 NovQuest #4 · done · Export read: 4471 paid, nothing else open
- Mon 7 DecQuest #5 · spawned fresh, available
Quest #3 · abandoned
Send a dunning letter for 4471
Reason kept: Paid before the letter went out
A ghost: out of every list of open work, still on record with its reason.
- Mon 30 Nov, 09:01
run_quest start #2errorQuest "Close the November books" is blocked by Chase invoice 4471. - Thu 3 Dec, 16:00
run_quest finish #1, no outcomeneeds_clarificationWhat outcome should be recorded for quest `Chase invoice 4471`? - Thu 3 Dec, 16:00
run_quest finish #1 with an outcomesuccessFinished quest `Chase invoice 4471`. - Thu 3 Dec, 16:03
run_quest finish #1 againerrorResolved quests cannot be resolved again. - Mon 7 Dec, 09:00
manage_repeatable spawn_duesuccessSpawned 1 repeatable quest occurrences.
Why GhostPaw questlog and not a TODO.md
A TODO.md is easy to start and easy to read, and it holds a tick, nothing more. The agent ticks the box, forgets to tick it, or ticks it on a test it deleted, and the file cannot tell the difference. Here is the same week as a file and as quests.
TODO.md7 lines
- [x] Chase invoice 4471
- [ ] Close the November books
- [ ] Send a dunning letter for 4471
- [ ] Check the billing export (Mondays)
- [x] Fix the export script
- ## BLOCKED: books wait for 4471
- [x] Tests pass
questlog.db2 done, 2 open, 1 ghost
- #1 Chase invoice 4471done · “Paid, confirmed by Lena in the group”
- #2 Close the November booksavailable since #1 succeeded · due 10 Dec
- #4 Check the billing exportdone 30 Nov · “Export read: 4471 paid, nothing else open”
- #5 Check the billing exportspawned Mon 7 Dec by
FREQ=WEEKLY;BYDAY=MO #3 Send a dunning letter for 4471abandoned · “Paid before the letter went out”
- A tick says nothing
Finishing a quest takes a written outcome, and abandoning one a reason; both stay on the record.
- Blocked is just a heading
An unlock is a real prerequisite: the agent's start call is refused until the quest before it succeeds.
- No sense of time
Deadlines, scheduled windows, not-before dates and RRULE repeats live on the same record.
- The list drifts
Available, blocked and overdue are computed on every read, from one file that outlives the session.
- Done twice, or undone
A resolved quest cannot be resolved again; a changed plan becomes a new quest beside the old one.
The same week, in the terminal
The session on the right is real output from questlog 0.14.2, run on a throwaway database: the start that is refused, the finish without an outcome, the finish with one, and the finish that comes once too often.
The limit is worth saying plainly, and the questlog site says it too: an outcome is text. It records what the agent claims; it does not run your tests. What changes is that the claim is written, per quest, where you can read it and check it. The refusal to start blocked work sits in the agent's tools and the CLI; force starts it anyway with a warning, and the library's own startQuest stays permissive for code that knows better.
$ ghostpaw-questlog add 'Chase invoice 4471' --due 2026-12-04 --tag billing
Created quest `Chase invoice 4471`. (id 1)
$ ghostpaw-questlog add 'Close the November books' --due 2026-12-10 --tag billing
Created quest `Close the November books`. (id 2)
$ ghostpaw-questlog organize_work --action add_unlock --fromQuestId 1 --toQuestId 2 > /dev/null
$ ghostpaw-questlog start 2
Quest "Close the November books" is blocked by Chase invoice 4471.
Finish the blocking prerequisites before starting this quest, or set force to true.
$ ghostpaw-questlog start 1
Started quest `Chase invoice 4471`. (id 1)
$ ghostpaw-questlog done 1
What outcome should be recorded for quest `Chase invoice 4471`?
Missing: --outcome
Usage: questlog done <id> --outcome '...'
$ ghostpaw-questlog done 1 --outcome 'Paid, confirmed by Lena in the group'
Finished quest `Chase invoice 4471`. (id 1)
$ ghostpaw-questlog start 2
Started quest `Close the November books`. (id 2)
$ ghostpaw-questlog done 1 --outcome Paid
Could not complete run-quest action `finish`.
Resolved quests cannot be resolved again.
GhostPaw questlog keeps time on the same record
A to-do, a deadline, an appointment, something that cannot start before Monday and something that comes back every week are the same thing in questlog: a quest with different timing fields. No scheduler runs inside it; your code or your harness decides when to read, and two features make that cheap.
- To-do
no timeavailable whenever it is read - Deadline
dueAtdue 4 Dec, overdue after it - Appointment
scheduledStartAta window on 8 Dec - Not before
notBeforeAtdeferred until Mon 7 Dec - Repeat
RRULEa fresh quest every Monday, 09:00 Berlin
A cron job picks each due item once
due --within 2h --claim cron lists what is due and marks it for that consumer, so the next run gets only what is new. A scheduler that costs nothing until there is work.
A harness is woken, not polled
tick sends quest.due, quest.overdue, quest.unblocked, repeatable.spawned and rumor.captured to the targets you add. Each batch carries only ids, types and times, never titles, and is signed with x-questlog-signature, an HMAC-SHA256 over the timestamp and body.
Four ways into GhostPaw questlog, 14 tools
The library, the MCP server, the CLI and the Agent Skill are generated from one registry of tools, and a check in CI fails when they drift apart. The registry has 14 tools; the README and the site still say twelve, from before manage_hooks and due joined with the webhooks.
- Library
@ghostpaw/questlog - MCP server
ghostpaw-questlog mcp - CLI
ghostpaw-questlog - Agent Skill
SKILL.md+ 26 guides
search_questlogreview_questloginspect_questlog_itemcapture_rumorshape_workplan_questrun_questorganize_workmanage_repeatabletag_workreward_workretire_workmanage_hooksdue
~/.ghostpaw/questlog.dbone SQLite file, copy it, back it up, open it with any SQLite tool
src/toolsInstall
An MCP client gets the 14 tools with one line; a Node 24 program imports the same functions. Release binaries for Linux, macOS and Windows check their checksums on install and bring Node along. The README measured it with 10,000 quests in a file database on Node 24.14.0: a search takes 0.06 ms at the median. Creating a quest takes 0.22 ms.
# as an MCP server for any MCP client
npx -y @ghostpaw/questlog mcp
# in Claude Code
claude mcp add ghostpaw-questlog -- ghostpaw-questlog mcp
# as a library
npm install @ghostpaw/questlog
import { DatabaseSync } from 'node:sqlite';
import { initQuestlogTables, read, write }
from '@ghostpaw/questlog';
const db = new DatabaseSync('questlog.db');
initQuestlogTables(db);
const q = write.createQuest(db, {
title: 'Chase invoice 4471',
objective: 'Get it paid or a date for it',
});
write.startQuest(db, q.id);
write.finishQuest(db, q.id,
'Paid, confirmed by Lena in the group');
const blocked = read.listBlockedQuests(db);
GhostPaw questlog in use by my Grok bots
My Grok bots keep their open work in GhostPaw questlog, so a run starts from what is really open, and what was finished says how. Here is who uses it and for what, and the bot that maintains the library itself.
- B1 · Its own workThe GhostPaw maintainer
Every bug report from the fleet and every planned fix is a quest, tagged by library: more than 130 so far. It closes each one with an outcome that names the commit or the release.
- B2 · My blockersThe chief of staff
Keeps the things only I can decide as quests on one board, through the CLI, so nothing that waits for me gets lost between days.
- B3 · Nightly runCosmolytic Studio
The shop's bot starts its nightly run from questlog: a search, the list of available quests, and
Cosmolytic Studioshape_workfor what came in. - B4 · Product pushAgentpreneur Lab
The product bot runs its sales push as quests with due dates; a follow-up that changes becomes a new quest, with an outcome on the old one.
Agentpreneur Lab - B5 · Follow-upsThe desk bots
Close every outreach follow-up with an outcome, so the next run knows what was said and to whom.
A bot maintains GhostPaw questlog
One of my Grok bots owns the GhostPaw libraries: code, tests, docs, the sites and the releases, and it tracks that work in questlog itself. Much of questlog came from bots tripping over it: the hint that names the missing outcome, quest revise, time zones on repeats, and the due claims for cron.
- 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; questlog is the one that remembers what was promised.
-
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 questlog, read it, or write to me
The site has the install lines for every platform and a board that replays three quests from the README; the repository has the code, the changelog and every test. It is a 0.x release, so test upgrades against a backup.
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
- souls.ghostpaw.devGhostPaw soulsLive, stage 1 of 5
- lfm.cashlfmLive, stage 3 of 5
- lfr.emaillfrLive, stage 2 of 5
- github.comMagpie HTMLLive, stage 1 of 5
