opencodekit 0.21.9 → 0.22.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (165) hide show
  1. package/dist/index.js +1 -1
  2. package/dist/template/.opencode/AGENTS.md +116 -499
  3. package/dist/template/.opencode/README.md +1 -1
  4. package/dist/template/.opencode/agent/build.md +56 -396
  5. package/dist/template/.opencode/agent/explore.md +15 -16
  6. package/dist/template/.opencode/agent/general.md +2 -2
  7. package/dist/template/.opencode/agent/plan.md +3 -3
  8. package/dist/template/.opencode/agent/review.md +2 -3
  9. package/dist/template/.opencode/agent/scout.md +34 -16
  10. package/dist/template/.opencode/agent/vision.md +0 -1
  11. package/dist/template/.opencode/command/clarify.md +48 -0
  12. package/dist/template/.opencode/command/commit.md +53 -0
  13. package/dist/template/.opencode/command/design.md +4 -4
  14. package/dist/template/.opencode/command/fix.md +56 -0
  15. package/dist/template/.opencode/command/improve-architecture.md +55 -0
  16. package/dist/template/.opencode/command/init.md +88 -68
  17. package/dist/template/.opencode/command/refactor.md +66 -0
  18. package/dist/template/.opencode/command/review-codebase.md +1 -1
  19. package/dist/template/.opencode/command/ship.md +1 -1
  20. package/dist/template/.opencode/command/test.md +66 -0
  21. package/dist/template/.opencode/dcp.jsonc +29 -46
  22. package/dist/template/.opencode/memory/README.md +3 -5
  23. package/dist/template/.opencode/memory/_templates/adr.md +45 -0
  24. package/dist/template/.opencode/memory/project/gotchas.md +1 -1
  25. package/dist/template/.opencode/memory/project/user.md +1 -2
  26. package/dist/template/.opencode/memory/session-context.md +1 -1
  27. package/dist/template/.opencode/opencode.json +10 -332
  28. package/dist/template/.opencode/plugin/README.md +1 -1
  29. package/dist/template/.opencode/plugin/guard.ts +62 -0
  30. package/dist/template/.opencode/plugin/{lib/memory-admin-tools.ts → memory/admin.ts} +4 -4
  31. package/dist/template/.opencode/plugin/{lib → memory}/capture.ts +1 -1
  32. package/dist/template/.opencode/plugin/{lib → memory}/compile.ts +2 -2
  33. package/dist/template/.opencode/plugin/{lib → memory}/context.ts +1 -1
  34. package/dist/template/.opencode/plugin/{lib → memory}/curator.ts +1 -1
  35. package/dist/template/.opencode/plugin/{lib → memory}/db/observations.ts +102 -3
  36. package/dist/template/.opencode/plugin/{lib → memory}/db/schema.ts +43 -1
  37. package/dist/template/.opencode/plugin/{lib → memory}/db/types.ts +22 -0
  38. package/dist/template/.opencode/plugin/{lib/memory-db.ts → memory/db.ts} +1 -1
  39. package/dist/template/.opencode/plugin/{lib → memory}/distill.ts +1 -1
  40. package/dist/template/.opencode/plugin/{lib/memory-helpers.ts → memory/helpers.ts} +5 -1
  41. package/dist/template/.opencode/plugin/{lib/memory-hooks.ts → memory/hooks.ts} +1 -1
  42. package/dist/template/.opencode/plugin/{lib → memory}/index-generator.ts +2 -2
  43. package/dist/template/.opencode/plugin/{lib → memory}/inject.ts +1 -1
  44. package/dist/template/.opencode/plugin/{lib → memory}/lint.ts +2 -2
  45. package/dist/template/.opencode/plugin/memory/tools.ts +322 -0
  46. package/dist/template/.opencode/plugin/{lib → memory}/validate.ts +2 -2
  47. package/dist/template/.opencode/plugin/memory.ts +7 -17
  48. package/dist/template/.opencode/plugin/srcwalk.ts +721 -0
  49. package/dist/template/.opencode/skill/agent-code-quality-gate/SKILL.md +98 -0
  50. package/dist/template/.opencode/skill/behavioral-kernel/SKILL.md +52 -0
  51. package/dist/template/.opencode/skill/browser-testing-with-devtools/SKILL.md +85 -0
  52. package/dist/template/.opencode/skill/code-cleanup/SKILL.md +114 -0
  53. package/dist/template/.opencode/skill/code-navigation/SKILL.md +142 -0
  54. package/dist/template/.opencode/skill/code-review-and-quality/SKILL.md +131 -0
  55. package/dist/template/.opencode/skill/debugging-and-error-recovery/SKILL.md +109 -0
  56. package/dist/template/.opencode/skill/deep-module-design/SKILL.md +207 -0
  57. package/dist/template/.opencode/skill/git-workflow-and-versioning/SKILL.md +77 -0
  58. package/dist/template/.opencode/skill/grill-me/SKILL.md +140 -0
  59. package/dist/template/.opencode/skill/memory-system/SKILL.md +9 -10
  60. package/dist/template/.opencode/skill/planning-and-task-breakdown/SKILL.md +116 -0
  61. package/dist/template/.opencode/skill/shipping-and-launch/SKILL.md +95 -0
  62. package/dist/template/.opencode/skill/source-driven-development/SKILL.md +103 -0
  63. package/dist/template/.opencode/skill/spec-driven-development/SKILL.md +121 -0
  64. package/dist/template/.opencode/skill/srcwalk/SKILL.md +161 -0
  65. package/dist/template/.opencode/skill/ubiquitous-language/SKILL.md +184 -0
  66. package/dist/template/.opencode/tool/context7.ts +1 -1
  67. package/dist/template/.opencode/tool/grepsearch.ts +1 -1
  68. package/package.json +1 -1
  69. package/dist/template/.opencode/AGENT_ALIGNMENT.md +0 -564
  70. package/dist/template/.opencode/agent/painter.md +0 -83
  71. package/dist/template/.opencode/command/compound.md +0 -240
  72. package/dist/template/.opencode/command/curate.md +0 -299
  73. package/dist/template/.opencode/command/handoff.md +0 -149
  74. package/dist/template/.opencode/command/health.md +0 -356
  75. package/dist/template/.opencode/command/init-context.md +0 -297
  76. package/dist/template/.opencode/command/init-user.md +0 -125
  77. package/dist/template/.opencode/command/iterate.md +0 -200
  78. package/dist/template/.opencode/command/lfg.md +0 -173
  79. package/dist/template/.opencode/command/resume.md +0 -78
  80. package/dist/template/.opencode/command/status.md +0 -126
  81. package/dist/template/.opencode/command/ui-slop-check.md +0 -169
  82. package/dist/template/.opencode/plugin/lib/memory-tools.ts +0 -535
  83. package/dist/template/.opencode/skill/agent-evals/SKILL.md +0 -208
  84. package/dist/template/.opencode/skill/anti-ai-slop/SKILL.md +0 -76
  85. package/dist/template/.opencode/skill/augment-context-engine/SKILL.md +0 -122
  86. package/dist/template/.opencode/skill/augment-context-engine/mcp.json +0 -6
  87. package/dist/template/.opencode/skill/brand-asset-protocol/SKILL.md +0 -222
  88. package/dist/template/.opencode/skill/code-search-patterns/SKILL.md +0 -253
  89. package/dist/template/.opencode/skill/code-simplification/SKILL.md +0 -211
  90. package/dist/template/.opencode/skill/context-condensation/SKILL.md +0 -149
  91. package/dist/template/.opencode/skill/context-initialization/SKILL.md +0 -69
  92. package/dist/template/.opencode/skill/context-management/SKILL.md +0 -390
  93. package/dist/template/.opencode/skill/deep-research/SKILL.md +0 -384
  94. package/dist/template/.opencode/skill/design-direction-advisor/SKILL.md +0 -139
  95. package/dist/template/.opencode/skill/dispatching-parallel-agents/SKILL.md +0 -191
  96. package/dist/template/.opencode/skill/executing-plans/SKILL.md +0 -247
  97. package/dist/template/.opencode/skill/figma-go/SKILL.md +0 -65
  98. package/dist/template/.opencode/skill/finishing-a-development-branch/SKILL.md +0 -357
  99. package/dist/template/.opencode/skill/full-output-enforcement/SKILL.md +0 -62
  100. package/dist/template/.opencode/skill/gh-address-comments/SKILL.md +0 -29
  101. package/dist/template/.opencode/skill/gh-address-comments/scripts/fetch_comments.py +0 -237
  102. package/dist/template/.opencode/skill/gh-fix-ci/SKILL.md +0 -38
  103. package/dist/template/.opencode/skill/gh-fix-ci/scripts/inspect_pr_checks.py +0 -509
  104. package/dist/template/.opencode/skill/hi-fi-prototype-html/SKILL.md +0 -253
  105. package/dist/template/.opencode/skill/html-deck-export/SKILL.md +0 -189
  106. package/dist/template/.opencode/skill/index-knowledge/SKILL.md +0 -413
  107. package/dist/template/.opencode/skill/memory-grounding/SKILL.md +0 -68
  108. package/dist/template/.opencode/skill/playwriter/SKILL.md +0 -158
  109. package/dist/template/.opencode/skill/portless/SKILL.md +0 -109
  110. package/dist/template/.opencode/skill/prd/SKILL.md +0 -146
  111. package/dist/template/.opencode/skill/prd-task/SKILL.md +0 -182
  112. package/dist/template/.opencode/skill/prd-task/references/prd-schema.json +0 -124
  113. package/dist/template/.opencode/skill/prompt-leverage/SKILL.md +0 -90
  114. package/dist/template/.opencode/skill/prompt-leverage/references/framework.md +0 -91
  115. package/dist/template/.opencode/skill/prompt-leverage/scripts/augment_prompt.py +0 -157
  116. package/dist/template/.opencode/skill/receiving-code-review/SKILL.md +0 -263
  117. package/dist/template/.opencode/skill/reconcile/SKILL.md +0 -183
  118. package/dist/template/.opencode/skill/reflection-checkpoints/SKILL.md +0 -183
  119. package/dist/template/.opencode/skill/requesting-code-review/SKILL.md +0 -443
  120. package/dist/template/.opencode/skill/requesting-code-review/references/specialist-profiles.md +0 -108
  121. package/dist/template/.opencode/skill/requesting-code-review/review.md +0 -160
  122. package/dist/template/.opencode/skill/rtk-command-compression/SKILL.md +0 -134
  123. package/dist/template/.opencode/skill/screenshot/SKILL.md +0 -48
  124. package/dist/template/.opencode/skill/screenshot/scripts/ensure_macos_permissions.sh +0 -54
  125. package/dist/template/.opencode/skill/screenshot/scripts/macos_display_info.swift +0 -22
  126. package/dist/template/.opencode/skill/screenshot/scripts/macos_permissions.swift +0 -40
  127. package/dist/template/.opencode/skill/screenshot/scripts/macos_window_info.swift +0 -126
  128. package/dist/template/.opencode/skill/screenshot/scripts/take_screenshot.ps1 +0 -163
  129. package/dist/template/.opencode/skill/screenshot/scripts/take_screenshot.py +0 -585
  130. package/dist/template/.opencode/skill/security-threat-model/SKILL.md +0 -36
  131. package/dist/template/.opencode/skill/security-threat-model/references/prompt-template.md +0 -255
  132. package/dist/template/.opencode/skill/security-threat-model/references/security-controls-and-assets.md +0 -32
  133. package/dist/template/.opencode/skill/sharing-skills/SKILL.md +0 -214
  134. package/dist/template/.opencode/skill/skill-creator/SKILL.md +0 -181
  135. package/dist/template/.opencode/skill/skill-installer/SKILL.md +0 -58
  136. package/dist/template/.opencode/skill/skill-installer/scripts/github_utils.py +0 -21
  137. package/dist/template/.opencode/skill/skill-installer/scripts/install-skill-from-github.py +0 -313
  138. package/dist/template/.opencode/skill/skill-installer/scripts/list-skills.py +0 -106
  139. package/dist/template/.opencode/skill/swarm-coordination/SKILL.md +0 -244
  140. package/dist/template/.opencode/skill/swarm-coordination/references/architecture.md +0 -39
  141. package/dist/template/.opencode/skill/swarm-coordination/references/delegation-worker-protocol.md +0 -145
  142. package/dist/template/.opencode/skill/swarm-coordination/references/dependency-graph.md +0 -50
  143. package/dist/template/.opencode/skill/swarm-coordination/references/drift-check.md +0 -90
  144. package/dist/template/.opencode/skill/swarm-coordination/references/integration-beads.md +0 -20
  145. package/dist/template/.opencode/skill/swarm-coordination/references/launch-flow.md +0 -186
  146. package/dist/template/.opencode/skill/swarm-coordination/references/reconciler.md +0 -172
  147. package/dist/template/.opencode/skill/swarm-coordination/references/tier-enforcement.md +0 -78
  148. package/dist/template/.opencode/skill/swarm-coordination/references/tmux-integration.md +0 -134
  149. package/dist/template/.opencode/skill/systematic-debugging/SKILL.md +0 -402
  150. package/dist/template/.opencode/skill/terse-output-mode/SKILL.md +0 -95
  151. package/dist/template/.opencode/skill/think-in-code/SKILL.md +0 -136
  152. package/dist/template/.opencode/skill/ux-quality-gates/SKILL.md +0 -137
  153. package/dist/template/.opencode/skill/v1-run/SKILL.md +0 -175
  154. package/dist/template/.opencode/skill/v1-run/mcp.json +0 -6
  155. package/dist/template/.opencode/skill/verification-gates/SKILL.md +0 -63
  156. package/dist/template/.opencode/skill/visual-analysis/SKILL.md +0 -154
  157. package/dist/template/.opencode/skill/web-design-guidelines/SKILL.md +0 -46
  158. package/dist/template/.opencode/skill/workspace-setup/SKILL.md +0 -76
  159. package/dist/template/.opencode/skill/writing-plans/SKILL.md +0 -320
  160. /package/dist/template/.opencode/plugin/{lib → memory}/compact.ts +0 -0
  161. /package/dist/template/.opencode/plugin/{lib → memory}/db/graph.ts +0 -0
  162. /package/dist/template/.opencode/plugin/{lib → memory}/db/maintenance.ts +0 -0
  163. /package/dist/template/.opencode/plugin/{lib → memory}/db/pipeline.ts +0 -0
  164. /package/dist/template/.opencode/plugin/{lib → memory}/notify.ts +0 -0
  165. /package/dist/template/.opencode/plugin/{lib → memory}/operation-log.ts +0 -0
@@ -0,0 +1,66 @@
1
+ ---
2
+ description: Write or generate tests for code
3
+ argument-hint: "<file or function> [--unit|--integration|--e2e]"
4
+ agent: build
5
+ ---
6
+
7
+ # Test: $ARGUMENTS
8
+
9
+ Write or generate tests for the specified code.
10
+
11
+ ## Load Skills
12
+
13
+ ```typescript
14
+ skill({ name: "test-driven-development" });
15
+ skill({ name: "testing-anti-patterns" });
16
+ skill({ name: "verification-before-completion" });
17
+ ```
18
+
19
+ ## Parse Arguments
20
+
21
+ | Argument | Default | Description |
22
+ |---|---|---|
23
+ | `<file or function>` | required | File path or function name to test |
24
+ | `--unit` | auto | Unit test (default for utils, helpers) |
25
+ | `--integration` | false | Integration test (default for API, DB) |
26
+ | `--e2e` | false | End-to-end test (requires full setup) |
27
+
28
+ ## Process
29
+
30
+ ### Phase 1: Understand
31
+
32
+ 1. Read the file and understand the function/module contract
33
+ 2. Identify: inputs, outputs, side effects, error states, edge cases
34
+ 3. Check existing tests for patterns and structure
35
+
36
+ ### Phase 2: Write Tests
37
+
38
+ Cover:
39
+ - Happy path (expected input → expected output)
40
+ - Edge cases (empty, null, boundary values)
41
+ - Error states (invalid input, missing dependencies)
42
+ - Contract invariants (what must always be true)
43
+
44
+ Follow the existing test patterns in the project. If none exist, check `vitest.config.ts`.
45
+
46
+ ### Phase 3: Run and Verify
47
+
48
+ ```bash
49
+ vitest <path> # or npm test
50
+ ```
51
+
52
+ TDD if writing implementation simultaneously: RED → GREEN → REFACTOR.
53
+
54
+ ## Anti-Patterns
55
+
56
+ - Testing implementation details instead of behavior
57
+ - Mocking without understanding the real dependency
58
+ - Test-only code in production files (exporting internals just for tests)
59
+ - Brittle assertions (matching full objects when partial match suffices)
60
+
61
+ ## Output
62
+
63
+ Report:
64
+ 1. Tests written
65
+ 2. Coverage summary
66
+ 3. Verification results
@@ -1,18 +1,22 @@
1
1
  {
2
2
  "$schema": "https://raw.githubusercontent.com/Opencode-DCP/opencode-dynamic-context-pruning/master/dcp.schema.json",
3
3
  "enabled": true,
4
+ // Disable auto-update for config stability — update explicitly when pinning new versions.
5
+ // v3.1.10+ auto-update is mature; set true if you want rolling bug fixes.
6
+ "autoUpdate": false,
4
7
  "debug": false,
5
8
  // "off" | "minimal" | "detailed" — keep minimal for low-noise dev flow
6
9
  "pruneNotification": "minimal",
7
10
  // "chat" (in-conversation) or "toast" (system notification)
8
11
  "pruneNotificationType": "toast",
9
- // Slash commands: /dcp context, /dcp stats, /dcp sweep, /dcp compress, /dcp decompress, /dcp recompress
12
+ // Slash commands: /dcp context, /dcp stats, /dcp sweep, /dcp compress,
13
+ // /dcp decompress, /dcp recompress, /dcp manual
10
14
  "commands": {
11
15
  "enabled": true,
12
16
  // Additional tools to protect from /dcp sweep (supports glob wildcards)
13
17
  "protectedTools": ["observation", "memory-*"]
14
18
  },
15
- // Manual mode: disables autonomous context management
19
+ // Manual mode: when enabled, tools only run via /dcp commands — no autonomous pruning
16
20
  "manualMode": {
17
21
  "enabled": false,
18
22
  "automaticStrategies": true
@@ -22,17 +26,15 @@
22
26
  "enabled": false,
23
27
  "turns": 4
24
28
  },
25
- // Glob patterns for files that should never be auto-pruned
26
- // Keep tight: broad patterns reduce DCP effectiveness
27
- // .opencode/** and .beads/** removed — memory-* and tilth_* outputs
28
- // already survive compression via compress.protectedTools
29
+ // Glob patterns matched against tool parameters.filePath keep tight
30
+ // Broad patterns reduce DCP effectiveness
29
31
  "protectedFilePatterns": [
30
32
  "**/.env*",
31
33
  "**/AGENTS.md",
34
+ "**/opencode.json*",
32
35
  "**/package.json",
33
36
  "**/tsconfig.json"
34
37
  ],
35
- // Unified context compression tool (v3.1.0)
36
38
  "compress": {
37
39
  // "range" (stable) compresses spans into block summaries
38
40
  // "message" (experimental) compresses individual raw messages
@@ -40,45 +42,14 @@
40
42
  // "allow" (no prompt) | "ask" (prompt) | "deny" (tool not registered)
41
43
  "permission": "allow",
42
44
  "showCompression": false,
43
- // v3.1.0: active summary tokens extend effective maxContextLimit
45
+ // v3.1.0+: active summary tokens extend effective maxContextLimit
44
46
  "summaryBuffer": true,
47
+ // v3.1.10+: percentage strings now use the model input budget directly —
48
+ // safe for GitHub Copilot and all other providers (no modelContextLimit required)
45
49
  // Soft upper threshold: above this, strong compression nudges fire
46
- // Use numeric values — percentage requires modelContextLimit from runtime
47
- // which may be unavailable for some provider/model combos (e.g. GitHub Copilot)
48
- // Rule: must be BELOW OpenCode emergency threshold (model_max - reserved - max_output)
49
- // For Copilot Claude (216k ctx, 64k out, 16k reserved): emergency = 136k
50
- // So DCP must start compressing well before 136k
51
- "maxContextLimit": 100000,
52
- // Per-model override for maxContextLimit (takes priority over global)
53
- "modelMaxLimits": {
54
- // Claude: 216k ctx, 64k out → emergency at 136k → DCP starts at 110k
55
- "github-copilot/claude-opus-4.6": 110000,
56
- "github-copilot/claude-opus-4.5": 110000,
57
- "github-copilot/claude-sonnet-4.6": 110000,
58
- "github-copilot/claude-sonnet-4.5": 110000,
59
- "github-copilot/claude-sonnet-4": 110000,
60
- // Haiku: smaller model, be more conservative
61
- "github-copilot/claude-haiku-4.5": 90000,
62
- // GPT/Gemini: assume similar 200k+ windows
63
- "github-copilot/gpt-5.4": 110000,
64
- "github-copilot/gpt-5.3-codex": 110000,
65
- "github-copilot/gemini-3.1-pro-preview": 110000
66
- },
50
+ "maxContextLimit": "75%",
67
51
  // Soft lower threshold: below this, turn/iteration reminders are off
68
- // Use numeric values — same reason as maxContextLimit above
69
- "minContextLimit": 50000,
70
- // Per-model override for minContextLimit (takes priority over global)
71
- "modelMinLimits": {
72
- "github-copilot/claude-opus-4.6": 65000,
73
- "github-copilot/claude-opus-4.5": 65000,
74
- "github-copilot/claude-sonnet-4.6": 65000,
75
- "github-copilot/claude-sonnet-4.5": 65000,
76
- "github-copilot/claude-sonnet-4": 65000,
77
- "github-copilot/claude-haiku-4.5": 50000,
78
- "github-copilot/gpt-5.4": 65000,
79
- "github-copilot/gpt-5.3-codex": 65000,
80
- "github-copilot/gemini-3.1-pro-preview": 65000
81
- },
52
+ "minContextLimit": "30%",
82
53
  // How often context-limit nudge fires above maxContextLimit (1 = every fetch)
83
54
  "nudgeFrequency": 5,
84
55
  // Messages since last user message before adding compression reminders
@@ -87,11 +58,23 @@
87
58
  "nudgeForce": "soft",
88
59
  // Keep user messages compressible to avoid permanent context growth
89
60
  "protectUserMessages": false,
90
- // Auto-protected by DCP: task, skill, todowrite, todoread, compress, batch, plan_enter, plan_exit, write, edit
61
+ // v3.1.11+: preserve text wrapped in <protect>...</protect> during compression
62
+ "protectTags": false,
63
+ // Optional per-model max context limits — only if you need different thresholds
64
+ // per model. Uncomment and adjust for your models:
65
+ // "modelMaxLimits": {
66
+ // "anthropic/claude-sonnet-4.6": "80%",
67
+ // "openai/gpt-5.3-codex": "80%",
68
+ // "github/github-copilot": "65%"
69
+ // },
70
+ // "modelMinLimits": {
71
+ // "anthropic/claude-sonnet-4.6": "30%"
72
+ // },
73
+ // Auto-protected by DCP: task, skill, todowrite, todoread, compress, batch,
74
+ // plan_enter, plan_exit, write, edit
91
75
  // Only list ADDITIONAL tools whose outputs should be appended to compression summaries
92
- "protectedTools": ["observation", "memory-*", "tilth_*"]
76
+ "protectedTools": ["observation", "memory-*"]
93
77
  },
94
- // Experimental features
95
78
  "experimental": {
96
79
  // Allow DCP processing in subagent sessions (default: false)
97
80
  "allowSubAgents": false,
@@ -38,11 +38,9 @@ memory/
38
38
 
39
39
  | Tool | Purpose |
40
40
  | ------------------- | --------------------------------------------- |
41
- | `observation()` | Write structured observations to SQLite |
42
- | `memory-search()` | FTS5 full-text search (returns compact index) |
43
- | `memory-get()` | Fetch full observation details by ID |
44
- | `memory-timeline()` | Get chronological context around anchor |
45
- | `memory-update()` | Update markdown files in memory |
41
+ | `observation()` | Write structured observations to SQLite or give feedback on existing ones |
42
+ | `memory-search()` | FTS5 full-text search (returns compact index) or read memory files by path |
43
+ | `memory-admin()` | Memory system administration: maintenance, migration, lint, compile, index |
46
44
 
47
45
  ## PARA Categories
48
46
 
@@ -0,0 +1,45 @@
1
+ # ADR: [short title of decision]
2
+
3
+ **Status:** [proposed | accepted | deprecated | superseded]
4
+ **Date:** [YYYY-MM-DD]
5
+ **Context:** [bead-id, issue/Linear ticket, or session reference]
6
+
7
+ ## Context
8
+
9
+ What is the problem we are solving? What forces are at play? What constraints do we have?
10
+
11
+ ## Decision
12
+
13
+ What did we decide to do? Be specific. This is the answer to the problem stated above.
14
+
15
+ ## Rationale
16
+
17
+ Why this approach over the alternatives? What evidence or reasoning supports this decision?
18
+
19
+ ## Consequences
20
+
21
+ What becomes easier or harder because of this decision? What tradeoffs did we accept?
22
+
23
+ ### Positive
24
+
25
+ - [benefit 1]
26
+ - [benefit 2]
27
+
28
+ ### Negative
29
+
30
+ - [cost / risk 1]
31
+ - [cost / risk 2]
32
+
33
+ ## Alternatives Considered
34
+
35
+ ### Alternative 1: [name]
36
+
37
+ Pros/cons and why it was rejected.
38
+
39
+ ### Alternative 2: [name]
40
+
41
+ Pros/cons and why it was rejected.
42
+
43
+ ## Notes
44
+
45
+ - [Anything else? Links to related ADRs, PRDs, specs?]
@@ -53,7 +53,7 @@ The edit tool (`str_replace`) is the #1 source of failures in LLM coding. Models
53
53
  ## Memory System
54
54
 
55
55
  - Subagents (explore, scout, review) should NOT write to memory - only leader agents
56
- - Use `observation: false` and `memory-update: false` in agent configs to enforce
56
+ - Use `observation: false` in agent configs to enforce
57
57
 
58
58
  ## Build System
59
59
 
@@ -30,8 +30,7 @@ updated: 2025-01-06
30
30
  ## Editing Tool Preferences
31
31
 
32
32
  - **Primary**: `edit` tool (str_replace) and `patch` tool
33
- - **Secondary/Fallback**: `tilth_tilth_edit` (hash-anchored edits)only when str_replace fails
34
- - **Reading/Search**: `tilth_tilth_read` and `tilth_tilth_search` are fine to use freely
33
+ - **Reading/Search**: `srcwalk` CLI via bash `srcwalk find <symbol>`, `srcwalk <file>`, `srcwalk map`
35
34
 
36
35
  ## Rules to Always Follow
37
36
 
@@ -6,7 +6,7 @@ updated: 2025-01-08
6
6
  # Session Context
7
7
 
8
8
  <!--
9
- Agent-maintained via memory-update tool.
9
+ Agent-maintained via observation tool.
10
10
  Update when: goal changes, key decision made, state shifts, uncertainty discovered.
11
11
  After compaction: read this file, ask 1-3 targeted questions if gaps exist.
12
12
  -->