Quests — Guided Process Framework
A standardized framework for AI agents to track and guide humans through complex long-term tasks. The quest is the single source of truth — context, decisions, contacts, risks, and progress live inside the quest, not scattered across memory files.
Philosophy
- One step at a time:
quest next shows only the current task — no overwhelm
- Quest as memory:
quest context gives the agent everything needed in minimal tokens
- Living document: Steps can be added, removed, reordered, and modified at any time
- Human-friendly:
quest brief generates summaries suitable for messaging
CLI: skills/quests/scripts/quest.py (symlink as quest)
Data stored at $WORKSPACE/data/quests.json. Quest IDs are auto-generated from names (slugified).
Conventions
- Auto-resolution: When only one quest is active, the quest argument is optional
- Fuzzy matching: Quests match by exact ID, ID prefix, or name substring
- Optional args:
quest done with no step completes the current active step
Quick Start
quest new "Fix car" --priority high --deadline 2026-06-01
quest add car "Get documents" --desc "Gather all paperwork"
quest substep car 1 "Find insurance certificate"
quest learn car "Tax exemption requires 12 months abroad"
quest decide car "Use contract dates as proof" --reason "No PERE registration"
quest contact car "Agency" --phone "555-1234" --role "Tax office"
quest next car # Present current step to human
quest done car 1.1 # Mark substep done
quest context car # Reload full context (~1K tokens)
Resuming a Quest (New Session)
quest list # Find active quests
quest context myquest # Load full state — replaces reading memory files
quest next myquest # Present current step to human
Commands Reference
Quest lifecycle:
new <name> [--desc] [--priority low|medium|high] [--deadline DATE] [--tags a,b]
list [--all] — list active (or all including archived)
delete <quest> [--archive] — archive is reversible, delete is permanent
Steps (fully flexible):
add <quest> <title> [--desc] — append a step
insert <quest> <position> <title> [--desc] — insert at specific position
remove <quest> <step> — remove a step or substep (e.g. 3 or 2.1)
substep <quest> <step> <title> — add substep to a step
done [quest] [step] — complete step/substep (auto-advances to next)
skip [quest] [step] — skip a step
block <quest> <step> <reason> — mark step as blocked
unblock <quest> <step> — unblock
edit <quest> [step] [--title] [--desc] — edit step or quest-level fields
reorder <quest> <step> <position> — move step to new position
Context & Memory (the core feature):
learn <quest> <fact> — record a key fact (quest-level, affects all steps)
decide <quest> <decision> [--reason] — record a decision with rationale
risk <quest> <concern> — flag a risk or concern
note <quest> <step> <text> — add a note to a specific step (step-level)
summarize <quest> <text> — update the high-level context summary
context [quest] [--json] — compact context dump (~500-1500 chars)
brief [quest] — human-friendly summary for async messaging
log [quest] [-n LIMIT] — timestamped activity log
learn vs note: Use learn for facts that affect the whole quest ("Tax exemption requires 12 months"). Use note for step-specific info ("Carlos said he has the CoC already").
Metadata:
meta <quest> [--priority] [--deadline] [--tags a,b] [--remove]
contact <quest> [name] [--phone] [--email] [--role] [--url] — add or list contacts
link <quest> [url] [--label] — add or list reference links
Templates:
template save <quest> [template_name] — save quest structure as reusable template
template list — list available templates
template use <template> [quest_name] — create new quest from template
Display:
next [quest] — current step only (for presenting to human)
show [quest] [-v] — full quest with all steps and context
status [quest] — quick progress overview
Export:
export <quest> [--file path] — markdown export
json [quest] — raw JSON (all quests if no arg)
Agent Guidelines
When (Not) to Create a Quest
- Create: Multi-session processes, bureaucratic tasks, anything >3 steps spanning multiple days
- Don't create: Simple one-off tasks, quick lookups, things that fit in one conversation
Starting a New Quest
- Create with
quest new — set priority and deadline if known
- Add 5-12 steps with
quest add (use substeps for granularity)
- Record initial facts with
quest learn
- Add contacts, links, and risks as discovered
- Present first step with
quest next
Session Resumption
At the start of any session involving an existing quest:
quest list — check what's active
quest context <id> — reload full state (replaces reading memory files)
quest next <id> — see where the human left off
During the Process
- Record everything: facts (
learn), decisions (decide), risks (risk)
- Update summary with
quest summarize as understanding evolves
- Add/remove/reorder steps freely as the process changes
- Use
quest brief when messaging the human asynchronously (WhatsApp/Discord recap)
- Use
quest next in interactive conversation
Presenting to Humans
- Always use
quest next — never show the full step list unprompted
- When human completes something →
quest done → auto-advances
- When blocked →
quest block with clear reason
- When human provides info →
quest learn or quest note
Multiple Active Quests
Auto-resolution only works with one active quest. When multiple are active, always specify the quest ID explicitly.
Quest Completion
When all steps are done, the quest auto-completes. Consider:
quest export <quest> --file to save a permanent record
quest template save if the process might repeat
quest delete <quest> --archive to clean up while preserving data
Token Efficiency
quest context outputs ~500-1500 chars with full situational awareness
- No need for separate memory files, trackers, or project docs
- The quest IS the memory — facts, decisions, contacts, risks, all in one place
- Use
quest context --json for structured programmatic access
1---2name: quests3description: Quests — Guided Process Framework4---56# Quests — Guided Process Framework78A standardized framework for AI agents to track and guide humans through complex long-term tasks. The quest is the **single source of truth** — context, decisions, contacts, risks, and progress live inside the quest, not scattered across memory files.910## Philosophy1112- **One step at a time**: `quest next` shows only the current task — no overwhelm13- **Quest as memory**: `quest context` gives the agent everything needed in minimal tokens14- **Living document**: Steps can be added, removed, reordered, and modified at any time15- **Human-friendly**: `quest brief` generates summaries suitable for messaging1617## CLI: `skills/quests/scripts/quest.py` (symlink as `quest`)1819Data stored at `$WORKSPACE/data/quests.json`. Quest IDs are auto-generated from names (slugified).2021### Conventions2223- **Auto-resolution**: When only one quest is active, the quest argument is optional24- **Fuzzy matching**: Quests match by exact ID, ID prefix, or name substring25- **Optional args**: `quest done` with no step completes the current active step2627### Quick Start28```bash29quest new "Fix car" --priority high --deadline 2026-06-0130quest add car "Get documents" --desc "Gather all paperwork"31quest substep car 1 "Find insurance certificate"32quest learn car "Tax exemption requires 12 months abroad"33quest decide car "Use contract dates as proof" --reason "No PERE registration"34quest contact car "Agency" --phone "555-1234" --role "Tax office"35quest next car # Present current step to human36quest done car 1.1 # Mark substep done37quest context car # Reload full context (~1K tokens)38```3940### Resuming a Quest (New Session)41```bash42quest list # Find active quests43quest context myquest # Load full state — replaces reading memory files44quest next myquest # Present current step to human45```4647### Commands Reference4849**Quest lifecycle:**50- `new <name> [--desc] [--priority low|medium|high] [--deadline DATE] [--tags a,b]`51- `list [--all]` — list active (or all including archived)52- `delete <quest> [--archive]` — archive is reversible, delete is permanent5354**Steps (fully flexible):**55- `add <quest> <title> [--desc]` — append a step56- `insert <quest> <position> <title> [--desc]` — insert at specific position57- `remove <quest> <step>` — remove a step or substep (e.g. `3` or `2.1`)58- `substep <quest> <step> <title>` — add substep to a step59- `done [quest] [step]` — complete step/substep (auto-advances to next)60- `skip [quest] [step]` — skip a step61- `block <quest> <step> <reason>` — mark step as blocked62- `unblock <quest> <step>` — unblock63- `edit <quest> [step] [--title] [--desc]` — edit step or quest-level fields64- `reorder <quest> <step> <position>` — move step to new position6566**Context & Memory** (the core feature):67- `learn <quest> <fact>` — record a key fact (quest-level, affects all steps)68- `decide <quest> <decision> [--reason]` — record a decision with rationale69- `risk <quest> <concern>` — flag a risk or concern70- `note <quest> <step> <text>` — add a note to a specific step (step-level)71- `summarize <quest> <text>` — update the high-level context summary72- `context [quest] [--json]` — compact context dump (~500-1500 chars)73- `brief [quest]` — human-friendly summary for async messaging74- `log [quest] [-n LIMIT]` — timestamped activity log7576> **`learn` vs `note`**: Use `learn` for facts that affect the whole quest ("Tax exemption requires 12 months"). Use `note` for step-specific info ("Carlos said he has the CoC already").7778**Metadata:**79- `meta <quest> [--priority] [--deadline] [--tags a,b] [--remove]`80- `contact <quest> [name] [--phone] [--email] [--role] [--url]` — add or list contacts81- `link <quest> [url] [--label]` — add or list reference links8283**Templates:**84- `template save <quest> [template_name]` — save quest structure as reusable template85- `template list` — list available templates86- `template use <template> [quest_name]` — create new quest from template8788**Display:**89- `next [quest]` — current step only (for presenting to human)90- `show [quest] [-v]` — full quest with all steps and context91- `status [quest]` — quick progress overview9293**Export:**94- `export <quest> [--file path]` — markdown export95- `json [quest]` — raw JSON (all quests if no arg)9697## Agent Guidelines9899### When (Not) to Create a Quest100- **Create**: Multi-session processes, bureaucratic tasks, anything >3 steps spanning multiple days101- **Don't create**: Simple one-off tasks, quick lookups, things that fit in one conversation102103### Starting a New Quest1041. Create with `quest new` — set priority and deadline if known1052. Add 5-12 steps with `quest add` (use substeps for granularity)1063. Record initial facts with `quest learn`1074. Add contacts, links, and risks as discovered1085. Present first step with `quest next`109110### Session Resumption111At the start of any session involving an existing quest:1121. `quest list` — check what's active1132. `quest context <id>` — reload full state (replaces reading memory files)1143. `quest next <id>` — see where the human left off115116### During the Process117- Record everything: facts (`learn`), decisions (`decide`), risks (`risk`)118- Update summary with `quest summarize` as understanding evolves119- Add/remove/reorder steps freely as the process changes120- Use `quest brief` when messaging the human asynchronously (WhatsApp/Discord recap)121- Use `quest next` in interactive conversation122123### Presenting to Humans124- **Always use `quest next`** — never show the full step list unprompted125- When human completes something → `quest done` → auto-advances126- When blocked → `quest block` with clear reason127- When human provides info → `quest learn` or `quest note`128129### Multiple Active Quests130Auto-resolution only works with one active quest. When multiple are active, always specify the quest ID explicitly.131132### Quest Completion133When all steps are done, the quest auto-completes. Consider:134- `quest export <quest> --file` to save a permanent record135- `quest template save` if the process might repeat136- `quest delete <quest> --archive` to clean up while preserving data137138### Token Efficiency139- `quest context` outputs ~500-1500 chars with full situational awareness140- No need for separate memory files, trackers, or project docs141- The quest IS the memory — facts, decisions, contacts, risks, all in one place142- Use `quest context --json` for structured programmatic access