You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .context/AGENT_PLAYBOOK.md
+24-19Lines changed: 24 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,16 +12,20 @@
12
12
13
13
## Session History
14
14
15
-
**IMPORTANT**: Check `.context/sessions/` for full conversation dumps from previous sessions.
15
+
**IMPORTANT**: Check `.context/sessions/` for full conversation dumps from
16
+
previous sessions.
16
17
17
18
If you're confused about context or need a deep dive into past discussions:
18
19
```
19
20
ls .context/sessions/
20
21
```
21
22
22
-
**Curated session files** are named `YYYY-MM-DD-HHMMSS-<topic>.md` (e.g., `2025-01-20-164600-feature-discussion.md`). These are updated throughout the session.
23
+
**Curated session files** are named `YYYY-MM-DD-HHMMSS-<topic>.md`
|`.context/` file format changes |`docs/context-files.md`|
20
-
| AI tool integration changes |`docs/integrations.md`|
21
-
| New features |`docs/index.md` (if user-facing) |
22
17
23
-
**How to remember:** When marking a CLI-related task complete, check if `docs/` needs updating. Add `#doc-impact` tag to tasks that affect documentation.
**Context**: Multiple sessions per day would overwrite each other. Also, multiple compacts in the same minute could collide.
87
+
**Context**: Multiple sessions per day would overwrite each other.
88
+
Also, multiple compacts in the same minute could collide.
84
89
85
-
**Decision**: Use `YYYY-MM-DD-HHMMSS-<topic>.md` format for session files. Two file types:
90
+
**Decision**: Use `YYYY-MM-DD-HHMMSS-<topic>.md` format for session files.
91
+
Two file types:
86
92
-**Curated sessions**: `HHMMSS-<topic>.md` - updated throughout session
87
93
-**Auto-snapshots**: `HHMMSS-<event>.jsonl` - immutable once created
88
94
@@ -99,11 +105,12 @@ ctx init # Creates BOTH .context/ AND .claude/hooks/
99
105
100
106
---
101
107
102
-
## [2025-01-20] Auto-Save Before Compact
108
+
## [2026-01-20] Auto-Save Before Compact
103
109
104
110
**Status**: Accepted (to be implemented)
105
111
106
-
**Context**: `ctx compact` archives old tasks. Information could be lost if not captured.
112
+
**Context**: `ctx compact` archives old tasks. Information could be
113
+
lost if not captured.
107
114
108
115
**Decision**: `ctx compact` should auto-save a session dump before archiving:
109
116
1. Save current state to `.context/sessions/YYYY-MM-DD-HHMM-pre-compact.md`
@@ -121,16 +128,19 @@ ctx init # Creates BOTH .context/ AND .claude/hooks/
121
128
122
129
---
123
130
124
-
## [2025-01-20] Handle CLAUDE.md Creation/Merge in ctx init
131
+
## [2026-01-20] Handle CLAUDE.md Creation/Merge in ctx init
125
132
126
133
**Status**: Accepted (to be implemented)
127
134
128
-
**Context**: Both `claude init` and `ctx init` want to create/modify CLAUDE.md. Users of ctx will likely want ctx's context-aware version, but may already have a CLAUDE.md from `claude init`.
135
+
**Context**: Both `claude init` and `ctx init` want to create/modify CLAUDE.md.
136
+
Users of ctx will likely want ctx's context-aware version,
137
+
but may already have a CLAUDE.md from `claude init`.
-**No CLAUDE.md exists** → Create it with ctx's context-loading template
132
141
-**CLAUDE.md exists** → Don't overwrite. Instead:
133
-
1.**Backup first** → Copy to `CLAUDE.md.<unix_timestamp>.bak` (e.g., `CLAUDE.md.1737399000.bak`)
142
+
1.**Backup first** → Copy to `CLAUDE.md.<unix_timestamp>.bak`
143
+
(e.g., `CLAUDE.md.1737399000.bak`)
134
144
2. Check if it already has ctx content (idempotent check via marker comment)
135
145
3. If not, output the snippet to append and offer to merge
136
146
4.`ctx init --merge` flag to auto-append without prompting
@@ -154,7 +164,9 @@ ctx init # Creates BOTH .context/ AND .claude/hooks/
154
164
155
165
**Status**: Accepted (implemented)
156
166
157
-
**Context**: Original implementation hardcoded absolute paths in hooks (e.g., `/home/parallels/WORKSPACE/ActiveMemory/dist/ctx-linux-arm64`). This breaks when:
167
+
**Context**: Original implementation hardcoded absolute paths in hooks
@@ -177,7 +189,7 @@ ctx init # Creates BOTH .context/ AND .claude/hooks/
177
189
178
190
---
179
191
180
-
## [2025-01-20] Use SessionEnd Hook for Auto-Save
192
+
## [2026-01-20] Use SessionEnd Hook for Auto-Save
181
193
182
194
**Status**: Accepted (implemented)
183
195
@@ -201,17 +213,22 @@ ctx init # Creates BOTH .context/ AND .claude/hooks/
201
213
202
214
---
203
215
204
-
## [2025-01-21] Separate Orchestrator Directive from Agent Tasks
216
+
## [2026-01-21] Separate Orchestrator Directive from Agent Tasks
205
217
206
218
**Status**: Accepted
207
219
208
-
**Context**: Two task systems existed: `IMPLEMENTATION_PLAN.md` (Ralph Loop orchestrator) and `.context/TASKS.md` (ctx's own context). Ralph would find IMPLEMENTATION_PLAN.md complete and exit, ignoring .context/TASKS.md.
220
+
**Context**: Two task systems existed: `IMPLEMENTATION_PLAN.md`
221
+
(Ralph Loop orchestrator) and `.context/TASKS.md` (ctx's own context).
222
+
Ralph would find IMPLEMENTATION_PLAN.md complete and exit,
223
+
ignoring .context/TASKS.md.
209
224
210
225
**Decision**: Clean separation of concerns:
211
226
-**`.context/TASKS.md`** = Agent's mind. Tasks the agent decided need doing.
212
-
-**`IMPLEMENTATION_PLAN.md`** = Orchestrator's directive. A single meta-task: "Check your tasks."
0 commit comments