opencodekit 0.21.10 → 0.23.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 (213) hide show
  1. package/README.md +1 -1
  2. package/dist/index.js +4 -25
  3. package/dist/template/.opencode/.template-manifest.json +115 -188
  4. package/dist/template/.opencode/AGENTS.md +127 -484
  5. package/dist/template/.opencode/README.md +2 -2
  6. package/dist/template/.opencode/agent/build.md +158 -356
  7. package/dist/template/.opencode/agent/explore.md +0 -1
  8. package/dist/template/.opencode/agent/plan.md +7 -16
  9. package/dist/template/.opencode/agent/review.md +0 -1
  10. package/dist/template/.opencode/agent/scout.md +2 -3
  11. package/dist/template/.opencode/agent/vision.md +0 -1
  12. package/dist/template/.opencode/artifacts/.active +1 -0
  13. package/dist/template/.opencode/artifacts/example/plan.md +12 -0
  14. package/dist/template/.opencode/artifacts/example/progress.md +4 -0
  15. package/dist/template/.opencode/artifacts/example/research.md +4 -0
  16. package/dist/template/.opencode/artifacts/example/spec.md +16 -0
  17. package/dist/template/.opencode/artifacts/todo.md +5 -0
  18. package/dist/template/.opencode/artifacts/verify.log +4 -0
  19. package/dist/template/.opencode/command/clarify.md +46 -0
  20. package/dist/template/.opencode/command/commit.md +53 -0
  21. package/dist/template/.opencode/command/create.md +29 -71
  22. package/dist/template/.opencode/command/design.md +1 -2
  23. package/dist/template/.opencode/command/explore.md +3 -4
  24. package/dist/template/.opencode/command/fix.md +55 -0
  25. package/dist/template/.opencode/command/improve-architecture.md +55 -0
  26. package/dist/template/.opencode/command/init.md +86 -69
  27. package/dist/template/.opencode/command/plan.md +30 -60
  28. package/dist/template/.opencode/command/pr.md +10 -28
  29. package/dist/template/.opencode/command/refactor.md +65 -0
  30. package/dist/template/.opencode/command/research.md +7 -29
  31. package/dist/template/.opencode/command/review-codebase.md +6 -13
  32. package/dist/template/.opencode/command/ship.md +136 -78
  33. package/dist/template/.opencode/command/test.md +66 -0
  34. package/dist/template/.opencode/command/ui-review.md +2 -4
  35. package/dist/template/.opencode/command/verify.md +15 -23
  36. package/dist/template/.opencode/dcp.jsonc +96 -85
  37. package/dist/template/.opencode/memory/README.md +4 -6
  38. package/dist/template/.opencode/memory/_templates/adr.md +45 -0
  39. package/dist/template/.opencode/memory/_templates/prd.md +1 -1
  40. package/dist/template/.opencode/memory/_templates/roadmap.md +1 -1
  41. package/dist/template/.opencode/memory/_templates/state.md +1 -1
  42. package/dist/template/.opencode/memory/project/gotchas.md +4 -4
  43. package/dist/template/.opencode/memory/project/project.md +2 -2
  44. package/dist/template/.opencode/memory/project/roadmap.md +1 -1
  45. package/dist/template/.opencode/memory/project/state.md +2 -2
  46. package/dist/template/.opencode/memory/project/tech-stack.md +2 -2
  47. package/dist/template/.opencode/memory/session-context.md +1 -1
  48. package/dist/template/.opencode/opencode.json +14 -152
  49. package/dist/template/.opencode/plugin/README.md +2 -2
  50. package/dist/template/.opencode/plugin/guard.ts +62 -0
  51. package/dist/template/.opencode/plugin/{lib/memory-admin-tools.ts → memory/admin.ts} +4 -4
  52. package/dist/template/.opencode/plugin/{lib → memory}/capture.ts +1 -1
  53. package/dist/template/.opencode/plugin/{lib → memory}/compile.ts +2 -2
  54. package/dist/template/.opencode/plugin/{lib → memory}/context.ts +1 -1
  55. package/dist/template/.opencode/plugin/{lib → memory}/curator.ts +1 -1
  56. package/dist/template/.opencode/plugin/{lib → memory}/db/observations.ts +102 -3
  57. package/dist/template/.opencode/plugin/{lib → memory}/db/schema.ts +43 -1
  58. package/dist/template/.opencode/plugin/{lib → memory}/db/types.ts +22 -0
  59. package/dist/template/.opencode/plugin/{lib/memory-db.ts → memory/db.ts} +1 -1
  60. package/dist/template/.opencode/plugin/{lib → memory}/distill.ts +1 -1
  61. package/dist/template/.opencode/plugin/{lib/memory-helpers.ts → memory/helpers.ts} +5 -1
  62. package/dist/template/.opencode/plugin/{lib/memory-hooks.ts → memory/hooks.ts} +1 -1
  63. package/dist/template/.opencode/plugin/{lib → memory}/index-generator.ts +2 -2
  64. package/dist/template/.opencode/plugin/{lib → memory}/inject.ts +1 -1
  65. package/dist/template/.opencode/plugin/{lib → memory}/lint.ts +2 -2
  66. package/dist/template/.opencode/plugin/memory/tools.ts +322 -0
  67. package/dist/template/.opencode/plugin/{lib → memory}/validate.ts +2 -2
  68. package/dist/template/.opencode/plugin/memory.ts +7 -17
  69. package/dist/template/.opencode/plugin/srcwalk.ts +721 -0
  70. package/dist/template/.opencode/skill/agent-code-quality-gate/SKILL.md +98 -0
  71. package/dist/template/.opencode/skill/behavioral-kernel/SKILL.md +52 -0
  72. package/dist/template/.opencode/skill/brainstorming/SKILL.md +1 -1
  73. package/dist/template/.opencode/skill/browser-testing-with-devtools/SKILL.md +85 -0
  74. package/dist/template/.opencode/skill/code-cleanup/SKILL.md +114 -0
  75. package/dist/template/.opencode/skill/code-navigation/SKILL.md +142 -0
  76. package/dist/template/.opencode/skill/code-review-and-quality/SKILL.md +131 -0
  77. package/dist/template/.opencode/skill/context-engineering/SKILL.md +1 -1
  78. package/dist/template/.opencode/skill/debugging-and-error-recovery/SKILL.md +109 -0
  79. package/dist/template/.opencode/skill/deep-module-design/SKILL.md +207 -0
  80. package/dist/template/.opencode/skill/development-lifecycle/SKILL.md +26 -45
  81. package/dist/template/.opencode/skill/gemini-large-context/SKILL.md +4 -4
  82. package/dist/template/.opencode/skill/git-workflow-and-versioning/SKILL.md +77 -0
  83. package/dist/template/.opencode/skill/grill-me/SKILL.md +140 -0
  84. package/dist/template/.opencode/skill/memory-system/SKILL.md +9 -10
  85. package/dist/template/.opencode/skill/opensrc/references/example-workflow.md +1 -1
  86. package/dist/template/.opencode/skill/planning-and-task-breakdown/SKILL.md +116 -0
  87. package/dist/template/.opencode/skill/shipping-and-launch/SKILL.md +95 -0
  88. package/dist/template/.opencode/skill/source-driven-development/SKILL.md +103 -0
  89. package/dist/template/.opencode/skill/spec-driven-development/SKILL.md +121 -0
  90. package/dist/template/.opencode/skill/srcwalk/SKILL.md +161 -0
  91. package/dist/template/.opencode/skill/subagent-driven-development/SKILL.md +1 -1
  92. package/dist/template/.opencode/skill/ubiquitous-language/SKILL.md +184 -0
  93. package/dist/template/.opencode/skill/using-git-worktrees/SKILL.md +6 -6
  94. package/dist/template/.opencode/skill/verification-before-completion/SKILL.md +6 -6
  95. package/dist/template/.opencode/skill/verification-before-completion/references/VERIFICATION_PROTOCOL.md +5 -5
  96. package/package.json +76 -76
  97. package/dist/template/.opencode/AGENT_ALIGNMENT.md +0 -564
  98. package/dist/template/.opencode/agent/painter.md +0 -83
  99. package/dist/template/.opencode/command/compound.md +0 -240
  100. package/dist/template/.opencode/command/curate.md +0 -299
  101. package/dist/template/.opencode/command/handoff.md +0 -149
  102. package/dist/template/.opencode/command/health.md +0 -356
  103. package/dist/template/.opencode/command/init-context.md +0 -297
  104. package/dist/template/.opencode/command/init-user.md +0 -125
  105. package/dist/template/.opencode/command/iterate.md +0 -200
  106. package/dist/template/.opencode/command/lfg.md +0 -173
  107. package/dist/template/.opencode/command/resume.md +0 -78
  108. package/dist/template/.opencode/command/status.md +0 -126
  109. package/dist/template/.opencode/command/ui-slop-check.md +0 -169
  110. package/dist/template/.opencode/plans/1768385996691-silent-wizard.md +0 -247
  111. package/dist/template/.opencode/plans/1770006237537-mighty-otter.md +0 -418
  112. package/dist/template/.opencode/plans/1770006913647-glowing-forest.md +0 -170
  113. package/dist/template/.opencode/plans/1770013678126-witty-planet.md +0 -278
  114. package/dist/template/.opencode/plans/1770112267595-shiny-rocket.md +0 -258
  115. package/dist/template/.opencode/plans/swarm-protocol.md +0 -123
  116. package/dist/template/.opencode/plugin/lib/memory-tools.ts +0 -535
  117. package/dist/template/.opencode/skill/agent-evals/SKILL.md +0 -208
  118. package/dist/template/.opencode/skill/anti-ai-slop/SKILL.md +0 -76
  119. package/dist/template/.opencode/skill/augment-context-engine/SKILL.md +0 -122
  120. package/dist/template/.opencode/skill/augment-context-engine/mcp.json +0 -6
  121. package/dist/template/.opencode/skill/beads/SKILL.md +0 -182
  122. package/dist/template/.opencode/skill/beads/references/BEST_PRACTICES.md +0 -27
  123. package/dist/template/.opencode/skill/beads/references/BOUNDARIES.md +0 -219
  124. package/dist/template/.opencode/skill/beads/references/DEPENDENCIES.md +0 -124
  125. package/dist/template/.opencode/skill/beads/references/EXAMPLES.md +0 -45
  126. package/dist/template/.opencode/skill/beads/references/FILE_CLAIMING.md +0 -101
  127. package/dist/template/.opencode/skill/beads/references/GIT_SYNC.md +0 -25
  128. package/dist/template/.opencode/skill/beads/references/HIERARCHY.md +0 -71
  129. package/dist/template/.opencode/skill/beads/references/MULTI_AGENT.md +0 -40
  130. package/dist/template/.opencode/skill/beads/references/RESUMABILITY.md +0 -177
  131. package/dist/template/.opencode/skill/beads/references/SESSION_PROTOCOL.md +0 -61
  132. package/dist/template/.opencode/skill/beads/references/TASK_CREATION.md +0 -38
  133. package/dist/template/.opencode/skill/beads/references/TROUBLESHOOTING.md +0 -38
  134. package/dist/template/.opencode/skill/beads/references/WORKFLOWS.md +0 -226
  135. package/dist/template/.opencode/skill/brand-asset-protocol/SKILL.md +0 -222
  136. package/dist/template/.opencode/skill/code-search-patterns/SKILL.md +0 -224
  137. package/dist/template/.opencode/skill/code-simplification/SKILL.md +0 -211
  138. package/dist/template/.opencode/skill/context-condensation/SKILL.md +0 -149
  139. package/dist/template/.opencode/skill/context-initialization/SKILL.md +0 -69
  140. package/dist/template/.opencode/skill/context-management/SKILL.md +0 -390
  141. package/dist/template/.opencode/skill/deep-research/SKILL.md +0 -384
  142. package/dist/template/.opencode/skill/design-direction-advisor/SKILL.md +0 -139
  143. package/dist/template/.opencode/skill/dispatching-parallel-agents/SKILL.md +0 -191
  144. package/dist/template/.opencode/skill/executing-plans/SKILL.md +0 -247
  145. package/dist/template/.opencode/skill/figma-go/SKILL.md +0 -65
  146. package/dist/template/.opencode/skill/finishing-a-development-branch/SKILL.md +0 -357
  147. package/dist/template/.opencode/skill/full-output-enforcement/SKILL.md +0 -62
  148. package/dist/template/.opencode/skill/gh-address-comments/SKILL.md +0 -29
  149. package/dist/template/.opencode/skill/gh-address-comments/scripts/fetch_comments.py +0 -237
  150. package/dist/template/.opencode/skill/gh-fix-ci/SKILL.md +0 -38
  151. package/dist/template/.opencode/skill/gh-fix-ci/scripts/inspect_pr_checks.py +0 -509
  152. package/dist/template/.opencode/skill/hi-fi-prototype-html/SKILL.md +0 -253
  153. package/dist/template/.opencode/skill/html-deck-export/SKILL.md +0 -189
  154. package/dist/template/.opencode/skill/index-knowledge/SKILL.md +0 -413
  155. package/dist/template/.opencode/skill/memory-grounding/SKILL.md +0 -68
  156. package/dist/template/.opencode/skill/playwriter/SKILL.md +0 -158
  157. package/dist/template/.opencode/skill/portless/SKILL.md +0 -109
  158. package/dist/template/.opencode/skill/prd/SKILL.md +0 -146
  159. package/dist/template/.opencode/skill/prd-task/SKILL.md +0 -182
  160. package/dist/template/.opencode/skill/prd-task/references/prd-schema.json +0 -124
  161. package/dist/template/.opencode/skill/prompt-leverage/SKILL.md +0 -90
  162. package/dist/template/.opencode/skill/prompt-leverage/references/framework.md +0 -91
  163. package/dist/template/.opencode/skill/prompt-leverage/scripts/augment_prompt.py +0 -157
  164. package/dist/template/.opencode/skill/receiving-code-review/SKILL.md +0 -263
  165. package/dist/template/.opencode/skill/reconcile/SKILL.md +0 -183
  166. package/dist/template/.opencode/skill/reflection-checkpoints/SKILL.md +0 -183
  167. package/dist/template/.opencode/skill/requesting-code-review/SKILL.md +0 -443
  168. package/dist/template/.opencode/skill/requesting-code-review/references/specialist-profiles.md +0 -108
  169. package/dist/template/.opencode/skill/requesting-code-review/review.md +0 -160
  170. package/dist/template/.opencode/skill/rtk-command-compression/SKILL.md +0 -134
  171. package/dist/template/.opencode/skill/screenshot/SKILL.md +0 -48
  172. package/dist/template/.opencode/skill/screenshot/scripts/ensure_macos_permissions.sh +0 -54
  173. package/dist/template/.opencode/skill/screenshot/scripts/macos_display_info.swift +0 -22
  174. package/dist/template/.opencode/skill/screenshot/scripts/macos_permissions.swift +0 -40
  175. package/dist/template/.opencode/skill/screenshot/scripts/macos_window_info.swift +0 -126
  176. package/dist/template/.opencode/skill/screenshot/scripts/take_screenshot.ps1 +0 -163
  177. package/dist/template/.opencode/skill/screenshot/scripts/take_screenshot.py +0 -585
  178. package/dist/template/.opencode/skill/security-threat-model/SKILL.md +0 -36
  179. package/dist/template/.opencode/skill/security-threat-model/references/prompt-template.md +0 -255
  180. package/dist/template/.opencode/skill/security-threat-model/references/security-controls-and-assets.md +0 -32
  181. package/dist/template/.opencode/skill/sharing-skills/SKILL.md +0 -214
  182. package/dist/template/.opencode/skill/skill-creator/SKILL.md +0 -181
  183. package/dist/template/.opencode/skill/skill-installer/SKILL.md +0 -58
  184. package/dist/template/.opencode/skill/skill-installer/scripts/github_utils.py +0 -21
  185. package/dist/template/.opencode/skill/skill-installer/scripts/install-skill-from-github.py +0 -313
  186. package/dist/template/.opencode/skill/skill-installer/scripts/list-skills.py +0 -106
  187. package/dist/template/.opencode/skill/swarm-coordination/SKILL.md +0 -244
  188. package/dist/template/.opencode/skill/swarm-coordination/references/architecture.md +0 -39
  189. package/dist/template/.opencode/skill/swarm-coordination/references/delegation-worker-protocol.md +0 -145
  190. package/dist/template/.opencode/skill/swarm-coordination/references/dependency-graph.md +0 -50
  191. package/dist/template/.opencode/skill/swarm-coordination/references/drift-check.md +0 -90
  192. package/dist/template/.opencode/skill/swarm-coordination/references/integration-beads.md +0 -20
  193. package/dist/template/.opencode/skill/swarm-coordination/references/launch-flow.md +0 -186
  194. package/dist/template/.opencode/skill/swarm-coordination/references/reconciler.md +0 -172
  195. package/dist/template/.opencode/skill/swarm-coordination/references/tier-enforcement.md +0 -78
  196. package/dist/template/.opencode/skill/swarm-coordination/references/tmux-integration.md +0 -134
  197. package/dist/template/.opencode/skill/systematic-debugging/SKILL.md +0 -402
  198. package/dist/template/.opencode/skill/terse-output-mode/SKILL.md +0 -95
  199. package/dist/template/.opencode/skill/think-in-code/SKILL.md +0 -136
  200. package/dist/template/.opencode/skill/ux-quality-gates/SKILL.md +0 -137
  201. package/dist/template/.opencode/skill/v1-run/SKILL.md +0 -175
  202. package/dist/template/.opencode/skill/v1-run/mcp.json +0 -6
  203. package/dist/template/.opencode/skill/verification-gates/SKILL.md +0 -63
  204. package/dist/template/.opencode/skill/visual-analysis/SKILL.md +0 -154
  205. package/dist/template/.opencode/skill/web-design-guidelines/SKILL.md +0 -46
  206. package/dist/template/.opencode/skill/workspace-setup/SKILL.md +0 -76
  207. package/dist/template/.opencode/skill/writing-plans/SKILL.md +0 -320
  208. /package/dist/template/.opencode/plugin/{lib → memory}/compact.ts +0 -0
  209. /package/dist/template/.opencode/plugin/{lib → memory}/db/graph.ts +0 -0
  210. /package/dist/template/.opencode/plugin/{lib → memory}/db/maintenance.ts +0 -0
  211. /package/dist/template/.opencode/plugin/{lib → memory}/db/pipeline.ts +0 -0
  212. /package/dist/template/.opencode/plugin/{lib → memory}/notify.ts +0 -0
  213. /package/dist/template/.opencode/plugin/{lib → memory}/operation-log.ts +0 -0
@@ -1,87 +1,98 @@
1
1
  {
2
- "$schema": "https://raw.githubusercontent.com/Opencode-DCP/opencode-dynamic-context-pruning/master/dcp.schema.json",
3
- "enabled": true,
4
- // Disable auto-update for config stability — update explicitly when pinning new versions
5
- // (v3.1.10+: auto-update is supported; set true if you want rolling bug fixes)
6
- "autoUpdate": false,
7
- "debug": false,
8
- // "off" | "minimal" | "detailed" — keep minimal for low-noise dev flow
9
- "pruneNotification": "minimal",
10
- // "chat" (in-conversation) or "toast" (system notification)
11
- "pruneNotificationType": "toast",
12
- // Slash commands: /dcp context, /dcp stats, /dcp sweep, /dcp compress,
13
- // /dcp decompress, /dcp recompress, /dcp manual
14
- "commands": {
15
- "enabled": true,
16
- // Additional tools to protect from /dcp sweep (supports glob wildcards)
17
- "protectedTools": ["observation", "memory-*"]
18
- },
19
- // Manual mode: when enabled, tools only run via /dcp commands — no autonomous pruning
20
- "manualMode": {
21
- "enabled": false,
22
- "automaticStrategies": true
23
- },
24
- // Protect recent tool outputs from pruning
25
- "turnProtection": {
26
- "enabled": false,
27
- "turns": 4
28
- },
29
- // Glob patterns matched against tool parameters.filePath — keep tight
30
- // Broad patterns reduce DCP effectiveness
31
- "protectedFilePatterns": [
32
- "**/.env*",
33
- "**/AGENTS.md",
34
- "**/package.json",
35
- "**/tsconfig.json"
36
- ],
37
- "compress": {
38
- // "range" (stable) compresses spans into block summaries
39
- // "message" (experimental) compresses individual raw messages
40
- "mode": "range",
41
- // "allow" (no prompt) | "ask" (prompt) | "deny" (tool not registered)
42
- "permission": "allow",
43
- "showCompression": false,
44
- // v3.1.0+: active summary tokens extend effective maxContextLimit
45
- "summaryBuffer": true,
46
- // v3.1.10+: percentage strings now use the model input budget directly —
47
- // safe for GitHub Copilot and all other providers (no modelContextLimit required)
48
- // Soft upper threshold: above this, strong compression nudges fire
49
- "maxContextLimit": "75%",
50
- // Soft lower threshold: below this, turn/iteration reminders are off
51
- "minContextLimit": "30%",
52
- // How often context-limit nudge fires above maxContextLimit (1 = every fetch)
53
- "nudgeFrequency": 5,
54
- // Messages since last user message before adding compression reminders
55
- "iterationNudgeThreshold": 15,
56
- // "strong" = more likely to compress, "soft" = less likely
57
- "nudgeForce": "soft",
58
- // Keep user messages compressible to avoid permanent context growth
59
- "protectUserMessages": false,
60
- // v3.1.11+: preserve text wrapped in <protect>...</protect> during compression
61
- "protectTags": false,
62
- // Auto-protected by DCP: task, skill, todowrite, todoread, compress, batch,
63
- // plan_enter, plan_exit, write, edit
64
- // Only list ADDITIONAL tools whose outputs should be appended to compression summaries
65
- "protectedTools": ["observation", "memory-*"]
66
- },
67
- "experimental": {
68
- // Allow DCP processing in subagent sessions (default: false)
69
- "allowSubAgents": false,
70
- // Enable user-editable prompt overrides under dcp-prompts directories
71
- "customPrompts": true
72
- },
73
- // Automatic pruning strategies (zero LLM cost)
74
- "strategies": {
75
- // Removes duplicate tool calls (same tool + same arguments), keeps most recent
76
- "deduplication": {
77
- "enabled": true,
78
- "protectedTools": []
79
- },
80
- // Prunes inputs from errored tool calls after N turns (error messages preserved)
81
- "purgeErrors": {
82
- "enabled": true,
83
- "turns": 4,
84
- "protectedTools": []
85
- }
86
- }
2
+ "$schema": "https://raw.githubusercontent.com/Opencode-DCP/opencode-dynamic-context-pruning/master/dcp.schema.json",
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,
7
+ "debug": false,
8
+ // "off" | "minimal" | "detailed" — keep minimal for low-noise dev flow
9
+ "pruneNotification": "minimal",
10
+ // "chat" (in-conversation) or "toast" (system notification)
11
+ "pruneNotificationType": "toast",
12
+ // Slash commands: /dcp context, /dcp stats, /dcp sweep, /dcp compress,
13
+ // /dcp decompress, /dcp recompress, /dcp manual
14
+ "commands": {
15
+ "enabled": true,
16
+ // Additional tools to protect from /dcp sweep (supports glob wildcards)
17
+ "protectedTools": ["observation", "memory-*"],
18
+ },
19
+ // Manual mode: when enabled, tools only run via /dcp commands — no autonomous pruning
20
+ "manualMode": {
21
+ "enabled": false,
22
+ "automaticStrategies": true,
23
+ },
24
+ // Protect recent tool outputs from pruning
25
+ // Reasoning models (mimo, deepseek) need chain-of-thought context preserved
26
+ "turnProtection": {
27
+ "enabled": true,
28
+ "turns": 4,
29
+ },
30
+ // Glob patterns matched against tool parameters.filePath — keep tight
31
+ // Broad patterns reduce DCP effectiveness
32
+ "protectedFilePatterns": [
33
+ "**/.env*",
34
+ "**/AGENTS.md",
35
+ "**/opencode.json*",
36
+ "**/package.json",
37
+ "**/tsconfig.json",
38
+ ],
39
+ "compress": {
40
+ // "range" (stable) compresses spans into block summaries
41
+ // "message" (experimental) compresses individual raw messages
42
+ "mode": "range",
43
+ // "allow" (no prompt) | "ask" (prompt) | "deny" (tool not registered)
44
+ "permission": "allow",
45
+ "showCompression": false,
46
+ // v3.1.0+: active summary tokens extend effective maxContextLimit
47
+ "summaryBuffer": true,
48
+ // Free tier effective limits: deepseek-v4-flash ~262K, mimo-v2.5 ~200K
49
+ // Using absolute token numbers (not percentages) since reported ctx (1M) ≠ effective ctx
50
+ // Soft upper threshold: above this, strong compression nudges fire
51
+ "maxContextLimit": 140000,
52
+ // Soft lower threshold: below this, turn/iteration reminders are off
53
+ "minContextLimit": 50000,
54
+ // Tighter nudge cadence limited effective context fills fast on long sessions
55
+ "nudgeFrequency": 3,
56
+ // Messages since last user message before adding compression reminders
57
+ "iterationNudgeThreshold": 15,
58
+ // "strong" = more likely to compress, "soft" = less likely
59
+ // Soft keeps reasoning continuity for mimo — avoid abortive compression
60
+ "nudgeForce": "soft",
61
+ // Keep user messages compressible to avoid permanent context growth
62
+ "protectUserMessages": false,
63
+ // v3.1.11+: preserve text wrapped in <protect>...</protect> during compression
64
+ "protectTags": false,
65
+ // Per-model max context limits — absolute numbers tuned to free tier effective limits
66
+ "modelMaxLimits": {
67
+ "opencode/deepseek-v4-flash-free": 170000,
68
+ },
69
+ "modelMinLimits": {
70
+ "opencode/deepseek-v4-flash-free": 50000,
71
+ },
72
+ // Auto-protected by DCP: task, skill, todowrite, todoread, compress, batch,
73
+ // plan_enter, plan_exit, write, edit
74
+ // Only list ADDITIONAL tools whose outputs should be appended to compression summaries
75
+ "protectedTools": ["observation", "memory-*"],
76
+ },
77
+ "experimental": {
78
+ // Allow DCP processing in subagent sessions (default: false)
79
+ "allowSubAgents": false,
80
+ // Enable user-editable prompt overrides under dcp-prompts directories
81
+ "customPrompts": true,
82
+ },
83
+ // Automatic pruning strategies (zero LLM cost)
84
+ "strategies": {
85
+ // Removes duplicate tool calls (same tool + same arguments), keeps most recent
86
+ "deduplication": {
87
+ "enabled": true,
88
+ "protectedTools": [],
89
+ },
90
+ // Prunes inputs from errored tool calls after N turns (error messages preserved)
91
+ // Aggressive: 2 turns — errors waste precious effective context
92
+ "purgeErrors": {
93
+ "enabled": true,
94
+ "turns": 2,
95
+ "protectedTools": [],
96
+ },
97
+ },
87
98
  }
@@ -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
 
@@ -76,7 +74,7 @@ memory/
76
74
  ### Session End
77
75
 
78
76
  1. Summary appended to `daily/YYYY-MM-DD.md`
79
- 2. Sync beads: `br sync --flush-only`
77
+ 2. Plan files in `.opencode/artifacts/<slug>/` are git-tracked — commit changes when closing a session
80
78
 
81
79
  ## Philosophy
82
80
 
@@ -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?]
@@ -15,7 +15,7 @@
15
15
 
16
16
  ```yaml
17
17
  depends_on: [] # Bead IDs that must complete before this one
18
- parallel: true # Can run concurrently with other parallel beads
18
+ parallel: true # Can run concurrently with other parallel tasks
19
19
  conflicts_with: [] # Bead IDs that modify same files (cannot parallelize)
20
20
  blocks: [] # Bead IDs waiting on this one
21
21
  estimated_hours: 2 # Time estimate for planning
@@ -78,7 +78,7 @@ updated: 2024-12-21
78
78
 
79
79
  - `Not Started` - No work begun
80
80
  - `In Progress` - Active development
81
- - `Complete` - All beads closed
81
+ - `Complete` - All tasks closed
82
82
 
83
83
  **Type:**
84
84
 
@@ -16,7 +16,7 @@ updated: 2024-12-21
16
16
 
17
17
  ## Recent Completed Work
18
18
 
19
- <!-- Last 3-5 completed beads -->
19
+ <!-- Last 3-5 completed tasks -->
20
20
 
21
21
  | Bead | Title | Completed | Summary |
22
22
  | ------ | ------- | --------- | ------------------ |
@@ -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
 
@@ -61,7 +61,7 @@ The edit tool (`str_replace`) is the #1 source of failures in LLM coding. Models
61
61
  - Build copies `.opencode/` to `dist/template/` via rsync
62
62
  - Run `npm run build` to regenerate
63
63
 
64
- ## Beads
64
+ ## Plans
65
65
 
66
- - Only leader agents (build, plan) should modify beads state
67
- - Subagents read with `br show <id>`, report findings back
66
+ - Only leader agents (build, plan) should modify plan files in `.opencode/artifacts/<slug>/`
67
+ - Subagents read plan files, report findings back
@@ -17,7 +17,7 @@ OpenCodeKit (`ock`) enables developers to bootstrap AI-assisted development envi
17
17
  - [ ] Generated projects include all essential files (AGENTS.md, skills, commands, memory)
18
18
  - [ ] 100% of generated templates pass validation (typecheck, lint)
19
19
  - [ ] Templates are customizable through CLI prompts or config
20
- - [ ] Integration with beads for task tracking works out-of-the-box
20
+ - [ ] Integration with artifacts for task tracking works out-of-the-box
21
21
 
22
22
  ## Target Users
23
23
 
@@ -49,7 +49,7 @@ OpenCodeKit (`ock`) enables developers to bootstrap AI-assisted development envi
49
49
  - **CLI Framework:** cac
50
50
  - **UI Prompts:** @clack/prompts
51
51
  - **Validation:** zod
52
- - **Task Tracking:** beads_rust (br)
52
+ - **Task Tracking:** `.opencode/artifacts/` - Per-feature task tracking with `<slug>/{spec,plan,progress,research}.md`
53
53
 
54
54
  ## Current Phase
55
55
 
@@ -127,7 +127,7 @@ updated: 2026-02-12
127
127
 
128
128
  - `Not Started` - No work begun
129
129
  - `In Progress` - Active development
130
- - `Complete` - All beads closed
130
+ - `Complete` - All tasks closed
131
131
 
132
132
  **Type:**
133
133
 
@@ -52,7 +52,7 @@ updated: 2026-02-12
52
52
 
53
53
  - Target: solo developers and teams
54
54
  - Key differentiator: validated, ready-to-use templates
55
- - Integration with beads_rust for task tracking
55
+ - Integration with artifacts for task tracking
56
56
 
57
57
  ### Process
58
58
 
@@ -65,7 +65,7 @@ updated: 2026-02-12
65
65
  1. [ ] Define plugin system architecture
66
66
  2. [ ] Design custom template API
67
67
  3. [ ] Create Scale phase implementation plan
68
- 4. [ ] Identify Scale phase beads
68
+ 4. [ ] Identify Scale phase tasks
69
69
 
70
70
  ## Session Handoff
71
71
 
@@ -18,7 +18,7 @@ This file is automatically injected into ALL AI prompts via `opencode.json` inst
18
18
  - **CLI Framework:** cac (^6.7.14) - Command-line argument parsing
19
19
  - **UI Prompts:** @clack/prompts (^0.7.0) - Interactive CLI prompts
20
20
  - **Validation:** zod (^3.25.76) - Schema validation
21
- - **Task Tracking:** beads-village (^1.3.3) - Git-backed task management
21
+ - **Task Tracking:** `.opencode/artifacts/` - Per-feature task tracking with `<slug>/{spec,plan,progress,research}.md`
22
22
  - **AI SDK:** @ai-sdk/provider (^3.0.6) - AI provider integration
23
23
 
24
24
  ## Build & Tools
@@ -45,7 +45,7 @@ This file is automatically injected into ALL AI prompts via `opencode.json` inst
45
45
  ## Active Integrations
46
46
 
47
47
  - **OpenCode AI:** @opencode-ai/plugin (^1.1.12) - OpenCode integration
48
- - **Beads CLI:** beads_rust (br) - Task tracking CLI
48
+ - **File Tracking:** `.opencode/artifacts/` - Per-feature task tracking with `<slug>/{spec,plan,progress,research}.md`
49
49
 
50
50
  ---
51
51
 
@@ -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
  -->
@@ -4,64 +4,45 @@
4
4
  "agent": {
5
5
  "build": {
6
6
  "description": "Primary development agent with full codebase access",
7
- "model": "github-copilot/gpt-5.4"
7
+ "model": "opencode/deepseek-v4-flash-free"
8
8
  },
9
9
  "compaction": {
10
10
  "description": "Session summarizer for context continuity across compactions"
11
11
  },
12
12
  "explore": {
13
13
  "description": "Fast codebase search specialist",
14
- "model": "github-copilot/gpt-5.4-mini"
14
+ "model": "opencode/deepseek-v4-flash-free"
15
15
  },
16
16
  "general": {
17
17
  "description": "General-purpose subagent for fast, well-defined tasks; delegates complexity quickly",
18
- "model": "github-copilot/gpt-5.3-codex"
19
- },
20
- "painter": {
21
- "description": "Image generation and editing specialist using Gemini 3 Pro Image. Use for creating UI mockups, app icons, hero images, visual assets, and editing/redacting existing images",
22
- "model": "proxypal/gemini-3.1-flash-image"
18
+ "model": "opencode/deepseek-v4-flash-free"
23
19
  },
24
20
  "plan": {
25
21
  "description": "Primary planning agent for architecture and multi-phase execution",
26
- "model": "github-copilot/gpt-5.4"
22
+ "model": "opencode/mimo-v2.5-free"
27
23
  },
28
24
  "review": {
29
25
  "description": "Code review, debugging, and security audit specialist",
30
- "model": "github-copilot/gpt-5.3-codex"
26
+ "model": "opencode/deepseek-v4-flash-free"
31
27
  },
32
28
  "scout": {
33
29
  "description": "External research specialist for library docs and patterns",
34
- "model": "github-copilot/gpt-5.4"
30
+ "model": "opencode/deepseek-v4-flash-free"
35
31
  },
36
32
  "vision": {
37
33
  "description": "Visual content specialist for multimodal analysis and UI/UX guidance",
38
- "model": "github-copilot/gemini-3.1-pro-preview"
34
+ "model": "opencode/mimo-v2.5-free"
39
35
  }
40
36
  },
41
37
  "autoupdate": false,
42
38
  "compaction": {
43
39
  "auto": true,
44
- "reserved": 2048
40
+ "reserved": 4096
45
41
  },
46
42
  "formatter": {
47
- "biome": {
48
- "command": ["npx", "@biomejs/biome", "check", "--write", "$FILE"],
49
- "extensions": [".js", ".jsx", ".ts", ".tsx", ".json", ".jsonc"]
50
- },
51
- "cargo-fmt": {
52
- "command": ["cargo", "fmt", "--", "$FILE"],
53
- "extensions": [".rs"]
54
- },
55
- "java-formatter": {
56
- "command": ["google-java-format", "--replace", "$FILE"],
57
- "environment": {
58
- "JAVA_HOME": "{env:JAVA_HOME}"
59
- },
60
- "extensions": [".java"]
61
- },
62
- "laravel-pint": {
63
- "command": ["npx", "laravel-pint", "--preset", "psr12", "$FILE"],
64
- "extensions": [".php"]
43
+ "oxfmt": {
44
+ "command": ["npx", "oxfmt", "$FILE"],
45
+ "extensions": [".js", ".jsx", ".ts", ".tsx", ".json", ".jsonc", ".cjs", ".mjs", ".mts"]
65
46
  }
66
47
  },
67
48
  "instructions": [
@@ -91,7 +72,7 @@
91
72
  "type": "local"
92
73
  }
93
74
  },
94
- "model": "github-copilot/gpt-5.4",
75
+ "model": "opencode/mimo-v2.5-free",
95
76
  "permission": {
96
77
  "bash": {
97
78
  "*": "allow",
@@ -134,12 +115,7 @@
134
115
  "*token*": "deny"
135
116
  }
136
117
  },
137
- "plugin": [
138
- "@tarquinen/opencode-dcp@latest",
139
- "@franlol/opencode-md-table-formatter@0.0.3",
140
- "openslimedit@latest",
141
- "opencodex-fast@latest"
142
- ],
118
+ "plugin": ["@tarquinen/opencode-dcp@latest", "openslimedit@latest", "opencodex-fast@latest"],
143
119
  "provider": {
144
120
  "github-copilot": {
145
121
  "models": {
@@ -451,113 +427,6 @@
451
427
  "timeout": 600000
452
428
  }
453
429
  },
454
- "openai": {
455
- "models": {
456
- "gpt-5.2": {
457
- "variants": {
458
- "fast": {
459
- "disabled": true
460
- },
461
- "high": {
462
- "include": ["reasoning.encrypted_content"],
463
- "reasoningEffort": "high",
464
- "reasoningSummary": "auto",
465
- "textVerbosity": "low"
466
- },
467
- "medium": {
468
- "include": ["reasoning.encrypted_content"],
469
- "reasoningEffort": "medium",
470
- "reasoningSummary": "auto",
471
- "textVerbosity": "low"
472
- }
473
- }
474
- },
475
- "gpt-5.2-codex": {
476
- "variants": {
477
- "fast": {
478
- "disabled": true
479
- },
480
- "high": {
481
- "include": ["reasoning.encrypted_content"],
482
- "reasoningEffort": "high",
483
- "reasoningSummary": "auto",
484
- "textVerbosity": "low"
485
- },
486
- "medium": {
487
- "include": ["reasoning.encrypted_content"],
488
- "reasoningEffort": "medium",
489
- "reasoningSummary": "auto",
490
- "textVerbosity": "low"
491
- },
492
- "xhigh": {
493
- "include": ["reasoning.encrypted_content"],
494
- "reasoningEffort": "xhigh",
495
- "reasoningSummary": "auto",
496
- "textVerbosity": "low"
497
- }
498
- }
499
- },
500
- "gpt-5.3-codex": {
501
- "variants": {
502
- "fast": {
503
- "disabled": true
504
- },
505
- "high": {
506
- "include": ["reasoning.encrypted_content"],
507
- "reasoningEffort": "high",
508
- "reasoningSummary": "auto",
509
- "textVerbosity": "low"
510
- },
511
- "medium": {
512
- "include": ["reasoning.encrypted_content"],
513
- "reasoningEffort": "medium",
514
- "reasoningSummary": "auto",
515
- "textVerbosity": "low"
516
- },
517
- "xhigh": {
518
- "include": ["reasoning.encrypted_content"],
519
- "reasoningEffort": "xhigh",
520
- "reasoningSummary": "auto",
521
- "textVerbosity": "low"
522
- }
523
- }
524
- },
525
- "gpt-5.4": {
526
- "attachment": true,
527
- "limit": {
528
- "context": 400000,
529
- "output": 128000
530
- },
531
- "modalities": {
532
- "input": ["text", "image"],
533
- "output": ["text"]
534
- },
535
- "options": {
536
- "reasoningEffort": "medium",
537
- "reasoningSummary": "auto",
538
- "textVerbosity": "medium"
539
- },
540
- "reasoning": true,
541
- "temperature": true,
542
- "tool_call": true,
543
- "variants": {
544
- "high": {
545
- "include": ["reasoning.encrypted_content"],
546
- "reasoningEffort": "high",
547
- "reasoningSummary": "auto"
548
- },
549
- "low": {
550
- "reasoningEffort": "low",
551
- "reasoningSummary": "auto"
552
- },
553
- "medium": {
554
- "reasoningEffort": "medium",
555
- "reasoningSummary": "auto"
556
- }
557
- }
558
- }
559
- }
560
- },
561
430
  "proxypal": {
562
431
  "models": {
563
432
  "claude-opus-4.6": {
@@ -814,13 +683,6 @@
814
683
  "share": "manual",
815
684
  "small_model": "opencode/gpt-5-nano",
816
685
  "watcher": {
817
- "ignore": [
818
- "node_modules/**",
819
- ".git/**",
820
- "dist/**",
821
- "build/**",
822
- "*.log",
823
- ".DS_Store"
824
- ]
686
+ "ignore": ["node_modules/**", ".git/**", "dist/**", "build/**", "*.log", ".DS_Store"]
825
687
  }
826
688
  }
@@ -41,8 +41,8 @@ plugin/
41
41
  - Curates observations from distillations via pattern matching
42
42
  - Injects relevant knowledge into system prompt (BM25 _ recency _ confidence scoring)
43
43
  - Manages context window via messages.transform (token budget enforcement)
44
- - Merges compaction logic (beads, handoffs, project memory, knowledge)
45
- - Provides 11 tools: observation, memory-search, memory-get, memory-read, memory-update, memory-timeline, memory-graph-add, memory-graph-query, memory-graph-invalidate, memory-compact, memory-admin
44
+ - Merges compaction logic (plans, handoffs, project memory, knowledge)
45
+ - Provides 3 tools: observation, memory-search, memory-admin
46
46
 
47
47
  - `sessions.ts`
48
48
  - Provides tools: `find_sessions`, `read_session`