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: Track and guide humans through complex multi-step real-world processes. Use when a user needs help with a bureaucratic, legal, technical, or any multi-step procedure that requires organized tracking, step-by-step guidance, and progress monitoring. Triggers on requests like "help me with this process", "guide me through", "track this project", "create a quest", or any complex task that benefits from being broken into manageable steps presented one at a time. Also triggers for existing quests: "how's my quest going", "what's next on [process]", "update my progress". This is for multi-session/multi-day processes, not simple one-off tasks. The quest replaces scattered memory files — it IS the memory for long-running processes.4---5
6
7# Quests — Guided Process Framework
8
9A 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.
10
11## Philosophy
12
13- **One step at a time**: `quest next` shows only the current task — no overwhelm
14- **Quest as memory**: `quest context` gives the agent everything needed in minimal tokens
15- **Living document**: Steps can be added, removed, reordered, and modified at any time
16- **Human-friendly**: `quest brief` generates summaries suitable for messaging
17
18## CLI: `skills/quests/scripts/quest.py` (symlink as `quest`)
19
20Data stored at `$WORKSPACE/data/quests.json`. Quest IDs are auto-generated from names (slugified).
21
22### Conventions
23
24- **Auto-resolution**: When only one quest is active, the quest argument is optional
25- **Fuzzy matching**: Quests match by exact ID, ID prefix, or name substring
26- **Optional args**: `quest done` with no step completes the current active step
27
28### Quick Start
29```bash
30quest new "Fix car" --priority high --deadline 2026-06-01
31quest add car "Get documents" --desc "Gather all paperwork"
32quest substep car 1 "Find insurance certificate"
33quest learn car "Tax exemption requires 12 months abroad"
34quest decide car "Use contract dates as proof" --reason "No PERE registration"
35quest contact car "Agency" --phone "555-1234" --role "Tax office"
36quest next car # Present current step to human
37quest done car 1.1 # Mark substep done
38quest context car # Reload full context (~1K tokens)
39```
40
41### Resuming a Quest (New Session)
42```bash
43quest list # Find active quests
44quest context myquest # Load full state — replaces reading memory files
45quest next myquest # Present current step to human
46```
47
48### Commands Reference
49
50**Quest lifecycle:**
51- `new <name> [--desc] [--priority low|medium|high] [--deadline DATE] [--tags a,b]`
52- `list [--all]` — list active (or all including archived)
53- `delete <quest> [--archive]` — archive is reversible, delete is permanent
54
55**Steps (fully flexible):**
56- `add <quest> <title> [--desc]` — append a step
57- `insert <quest> <position> <title> [--desc]` — insert at specific position
58- `remove <quest> <step>` — remove a step or substep (e.g. `3` or `2.1`)
59- `substep <quest> <step> <title>` — add substep to a step
60- `done [quest] [step]` — complete step/substep (auto-advances to next)
61- `skip [quest] [step]` — skip a step
62- `block <quest> <step> <reason>` — mark step as blocked
63- `unblock <quest> <step>` — unblock
64- `edit <quest> [step] [--title] [--desc]` — edit step or quest-level fields
65- `reorder <quest> <step> <position>` — move step to new position
66
67**Context & Memory** (the core feature):
68- `learn <quest> <fact>` — record a key fact (quest-level, affects all steps)
69- `decide <quest> <decision> [--reason]` — record a decision with rationale
70- `risk <quest> <concern>` — flag a risk or concern
71- `note <quest> <step> <text>` — add a note to a specific step (step-level)
72- `summarize <quest> <text>` — update the high-level context summary
73- `context [quest] [--json]` — compact context dump (~500-1500 chars)
74- `brief [quest]` — human-friendly summary for async messaging
75- `log [quest] [-n LIMIT]` — timestamped activity log
76
77> **`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").
78
79**Metadata:**
80- `meta <quest> [--priority] [--deadline] [--tags a,b] [--remove]`
81- `contact <quest> [name] [--phone] [--email] [--role] [--url]` — add or list contacts
82- `link <quest> [url] [--label]` — add or list reference links
83
84**Templates:**
85- `template save <quest> [template_name]` — save quest structure as reusable template
86- `template list` — list available templates
87- `template use <template> [quest_name]` — create new quest from template
88
89**Display:**
90- `next [quest]` — current step only (for presenting to human)
91- `show [quest] [-v]` — full quest with all steps and context
92- `status [quest]` — quick progress overview
93
94**Export:**
95- `export <quest> [--file path]` — markdown export
96- `json [quest]` — raw JSON (all quests if no arg)
97
98## Agent Guidelines
99
100### When (Not) to Create a Quest
101- **Create**: Multi-session processes, bureaucratic tasks, anything >3 steps spanning multiple days
102- **Don't create**: Simple one-off tasks, quick lookups, things that fit in one conversation
103
104### Starting a New Quest
1051. Create with `quest new` — set priority and deadline if known
1062. Add 5-12 steps with `quest add` (use substeps for granularity)
1073. Record initial facts with `quest learn`
1084. Add contacts, links, and risks as discovered
1095. Present first step with `quest next`
110
111### Session Resumption
112At the start of any session involving an existing quest:
1131. `quest list` — check what's active
1142. `quest context <id>` — reload full state (replaces reading memory files)
1153. `quest next <id>` — see where the human left off
116
117### During the Process
118- Record everything: facts (`learn`), decisions (`decide`), risks (`risk`)
119- Update summary with `quest summarize` as understanding evolves
120- Add/remove/reorder steps freely as the process changes
121- Use `quest brief` when messaging the human asynchronously (WhatsApp/Discord recap)
122- Use `quest next` in interactive conversation
123
124### Presenting to Humans
125- **Always use `quest next`** — never show the full step list unprompted
126- When human completes something → `quest done` → auto-advances
127- When blocked → `quest block` with clear reason
128- When human provides info → `quest learn` or `quest note`
129
130### Multiple Active Quests
131Auto-resolution only works with one active quest. When multiple are active, always specify the quest ID explicitly.
132
133### Quest Completion
134When all steps are done, the quest auto-completes. Consider:
135- `quest export <quest> --file` to save a permanent record
136- `quest template save` if the process might repeat
137- `quest delete <quest> --archive` to clean up while preserving data
138
139### Token Efficiency
140- `quest context` outputs ~500-1500 chars with full situational awareness
141- No need for separate memory files, trackers, or project docs
142- The quest IS the memory — facts, decisions, contacts, risks, all in one place
143- Use `quest context --json` for structured programmatic access