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.
- package/dist/index.js +1 -1
- package/dist/template/.opencode/AGENTS.md +116 -499
- package/dist/template/.opencode/README.md +1 -1
- package/dist/template/.opencode/agent/build.md +56 -396
- package/dist/template/.opencode/agent/explore.md +15 -16
- package/dist/template/.opencode/agent/general.md +2 -2
- package/dist/template/.opencode/agent/plan.md +3 -3
- package/dist/template/.opencode/agent/review.md +2 -3
- package/dist/template/.opencode/agent/scout.md +34 -16
- package/dist/template/.opencode/agent/vision.md +0 -1
- package/dist/template/.opencode/command/clarify.md +48 -0
- package/dist/template/.opencode/command/commit.md +53 -0
- package/dist/template/.opencode/command/design.md +4 -4
- package/dist/template/.opencode/command/fix.md +56 -0
- package/dist/template/.opencode/command/improve-architecture.md +55 -0
- package/dist/template/.opencode/command/init.md +88 -68
- package/dist/template/.opencode/command/refactor.md +66 -0
- package/dist/template/.opencode/command/review-codebase.md +1 -1
- package/dist/template/.opencode/command/ship.md +1 -1
- package/dist/template/.opencode/command/test.md +66 -0
- package/dist/template/.opencode/dcp.jsonc +29 -46
- package/dist/template/.opencode/memory/README.md +3 -5
- package/dist/template/.opencode/memory/_templates/adr.md +45 -0
- package/dist/template/.opencode/memory/project/gotchas.md +1 -1
- package/dist/template/.opencode/memory/project/user.md +1 -2
- package/dist/template/.opencode/memory/session-context.md +1 -1
- package/dist/template/.opencode/opencode.json +10 -332
- package/dist/template/.opencode/plugin/README.md +1 -1
- package/dist/template/.opencode/plugin/guard.ts +62 -0
- package/dist/template/.opencode/plugin/{lib/memory-admin-tools.ts → memory/admin.ts} +4 -4
- package/dist/template/.opencode/plugin/{lib → memory}/capture.ts +1 -1
- package/dist/template/.opencode/plugin/{lib → memory}/compile.ts +2 -2
- package/dist/template/.opencode/plugin/{lib → memory}/context.ts +1 -1
- package/dist/template/.opencode/plugin/{lib → memory}/curator.ts +1 -1
- package/dist/template/.opencode/plugin/{lib → memory}/db/observations.ts +102 -3
- package/dist/template/.opencode/plugin/{lib → memory}/db/schema.ts +43 -1
- package/dist/template/.opencode/plugin/{lib → memory}/db/types.ts +22 -0
- package/dist/template/.opencode/plugin/{lib/memory-db.ts → memory/db.ts} +1 -1
- package/dist/template/.opencode/plugin/{lib → memory}/distill.ts +1 -1
- package/dist/template/.opencode/plugin/{lib/memory-helpers.ts → memory/helpers.ts} +5 -1
- package/dist/template/.opencode/plugin/{lib/memory-hooks.ts → memory/hooks.ts} +1 -1
- package/dist/template/.opencode/plugin/{lib → memory}/index-generator.ts +2 -2
- package/dist/template/.opencode/plugin/{lib → memory}/inject.ts +1 -1
- package/dist/template/.opencode/plugin/{lib → memory}/lint.ts +2 -2
- package/dist/template/.opencode/plugin/memory/tools.ts +322 -0
- package/dist/template/.opencode/plugin/{lib → memory}/validate.ts +2 -2
- package/dist/template/.opencode/plugin/memory.ts +7 -17
- package/dist/template/.opencode/plugin/srcwalk.ts +721 -0
- package/dist/template/.opencode/skill/agent-code-quality-gate/SKILL.md +98 -0
- package/dist/template/.opencode/skill/behavioral-kernel/SKILL.md +52 -0
- package/dist/template/.opencode/skill/browser-testing-with-devtools/SKILL.md +85 -0
- package/dist/template/.opencode/skill/code-cleanup/SKILL.md +114 -0
- package/dist/template/.opencode/skill/code-navigation/SKILL.md +142 -0
- package/dist/template/.opencode/skill/code-review-and-quality/SKILL.md +131 -0
- package/dist/template/.opencode/skill/debugging-and-error-recovery/SKILL.md +109 -0
- package/dist/template/.opencode/skill/deep-module-design/SKILL.md +207 -0
- package/dist/template/.opencode/skill/git-workflow-and-versioning/SKILL.md +77 -0
- package/dist/template/.opencode/skill/grill-me/SKILL.md +140 -0
- package/dist/template/.opencode/skill/memory-system/SKILL.md +9 -10
- package/dist/template/.opencode/skill/planning-and-task-breakdown/SKILL.md +116 -0
- package/dist/template/.opencode/skill/shipping-and-launch/SKILL.md +95 -0
- package/dist/template/.opencode/skill/source-driven-development/SKILL.md +103 -0
- package/dist/template/.opencode/skill/spec-driven-development/SKILL.md +121 -0
- package/dist/template/.opencode/skill/srcwalk/SKILL.md +161 -0
- package/dist/template/.opencode/skill/ubiquitous-language/SKILL.md +184 -0
- package/dist/template/.opencode/tool/context7.ts +1 -1
- package/dist/template/.opencode/tool/grepsearch.ts +1 -1
- package/package.json +1 -1
- package/dist/template/.opencode/AGENT_ALIGNMENT.md +0 -564
- package/dist/template/.opencode/agent/painter.md +0 -83
- package/dist/template/.opencode/command/compound.md +0 -240
- package/dist/template/.opencode/command/curate.md +0 -299
- package/dist/template/.opencode/command/handoff.md +0 -149
- package/dist/template/.opencode/command/health.md +0 -356
- package/dist/template/.opencode/command/init-context.md +0 -297
- package/dist/template/.opencode/command/init-user.md +0 -125
- package/dist/template/.opencode/command/iterate.md +0 -200
- package/dist/template/.opencode/command/lfg.md +0 -173
- package/dist/template/.opencode/command/resume.md +0 -78
- package/dist/template/.opencode/command/status.md +0 -126
- package/dist/template/.opencode/command/ui-slop-check.md +0 -169
- package/dist/template/.opencode/plugin/lib/memory-tools.ts +0 -535
- package/dist/template/.opencode/skill/agent-evals/SKILL.md +0 -208
- package/dist/template/.opencode/skill/anti-ai-slop/SKILL.md +0 -76
- package/dist/template/.opencode/skill/augment-context-engine/SKILL.md +0 -122
- package/dist/template/.opencode/skill/augment-context-engine/mcp.json +0 -6
- package/dist/template/.opencode/skill/brand-asset-protocol/SKILL.md +0 -222
- package/dist/template/.opencode/skill/code-search-patterns/SKILL.md +0 -253
- package/dist/template/.opencode/skill/code-simplification/SKILL.md +0 -211
- package/dist/template/.opencode/skill/context-condensation/SKILL.md +0 -149
- package/dist/template/.opencode/skill/context-initialization/SKILL.md +0 -69
- package/dist/template/.opencode/skill/context-management/SKILL.md +0 -390
- package/dist/template/.opencode/skill/deep-research/SKILL.md +0 -384
- package/dist/template/.opencode/skill/design-direction-advisor/SKILL.md +0 -139
- package/dist/template/.opencode/skill/dispatching-parallel-agents/SKILL.md +0 -191
- package/dist/template/.opencode/skill/executing-plans/SKILL.md +0 -247
- package/dist/template/.opencode/skill/figma-go/SKILL.md +0 -65
- package/dist/template/.opencode/skill/finishing-a-development-branch/SKILL.md +0 -357
- package/dist/template/.opencode/skill/full-output-enforcement/SKILL.md +0 -62
- package/dist/template/.opencode/skill/gh-address-comments/SKILL.md +0 -29
- package/dist/template/.opencode/skill/gh-address-comments/scripts/fetch_comments.py +0 -237
- package/dist/template/.opencode/skill/gh-fix-ci/SKILL.md +0 -38
- package/dist/template/.opencode/skill/gh-fix-ci/scripts/inspect_pr_checks.py +0 -509
- package/dist/template/.opencode/skill/hi-fi-prototype-html/SKILL.md +0 -253
- package/dist/template/.opencode/skill/html-deck-export/SKILL.md +0 -189
- package/dist/template/.opencode/skill/index-knowledge/SKILL.md +0 -413
- package/dist/template/.opencode/skill/memory-grounding/SKILL.md +0 -68
- package/dist/template/.opencode/skill/playwriter/SKILL.md +0 -158
- package/dist/template/.opencode/skill/portless/SKILL.md +0 -109
- package/dist/template/.opencode/skill/prd/SKILL.md +0 -146
- package/dist/template/.opencode/skill/prd-task/SKILL.md +0 -182
- package/dist/template/.opencode/skill/prd-task/references/prd-schema.json +0 -124
- package/dist/template/.opencode/skill/prompt-leverage/SKILL.md +0 -90
- package/dist/template/.opencode/skill/prompt-leverage/references/framework.md +0 -91
- package/dist/template/.opencode/skill/prompt-leverage/scripts/augment_prompt.py +0 -157
- package/dist/template/.opencode/skill/receiving-code-review/SKILL.md +0 -263
- package/dist/template/.opencode/skill/reconcile/SKILL.md +0 -183
- package/dist/template/.opencode/skill/reflection-checkpoints/SKILL.md +0 -183
- package/dist/template/.opencode/skill/requesting-code-review/SKILL.md +0 -443
- package/dist/template/.opencode/skill/requesting-code-review/references/specialist-profiles.md +0 -108
- package/dist/template/.opencode/skill/requesting-code-review/review.md +0 -160
- package/dist/template/.opencode/skill/rtk-command-compression/SKILL.md +0 -134
- package/dist/template/.opencode/skill/screenshot/SKILL.md +0 -48
- package/dist/template/.opencode/skill/screenshot/scripts/ensure_macos_permissions.sh +0 -54
- package/dist/template/.opencode/skill/screenshot/scripts/macos_display_info.swift +0 -22
- package/dist/template/.opencode/skill/screenshot/scripts/macos_permissions.swift +0 -40
- package/dist/template/.opencode/skill/screenshot/scripts/macos_window_info.swift +0 -126
- package/dist/template/.opencode/skill/screenshot/scripts/take_screenshot.ps1 +0 -163
- package/dist/template/.opencode/skill/screenshot/scripts/take_screenshot.py +0 -585
- package/dist/template/.opencode/skill/security-threat-model/SKILL.md +0 -36
- package/dist/template/.opencode/skill/security-threat-model/references/prompt-template.md +0 -255
- package/dist/template/.opencode/skill/security-threat-model/references/security-controls-and-assets.md +0 -32
- package/dist/template/.opencode/skill/sharing-skills/SKILL.md +0 -214
- package/dist/template/.opencode/skill/skill-creator/SKILL.md +0 -181
- package/dist/template/.opencode/skill/skill-installer/SKILL.md +0 -58
- package/dist/template/.opencode/skill/skill-installer/scripts/github_utils.py +0 -21
- package/dist/template/.opencode/skill/skill-installer/scripts/install-skill-from-github.py +0 -313
- package/dist/template/.opencode/skill/skill-installer/scripts/list-skills.py +0 -106
- package/dist/template/.opencode/skill/swarm-coordination/SKILL.md +0 -244
- package/dist/template/.opencode/skill/swarm-coordination/references/architecture.md +0 -39
- package/dist/template/.opencode/skill/swarm-coordination/references/delegation-worker-protocol.md +0 -145
- package/dist/template/.opencode/skill/swarm-coordination/references/dependency-graph.md +0 -50
- package/dist/template/.opencode/skill/swarm-coordination/references/drift-check.md +0 -90
- package/dist/template/.opencode/skill/swarm-coordination/references/integration-beads.md +0 -20
- package/dist/template/.opencode/skill/swarm-coordination/references/launch-flow.md +0 -186
- package/dist/template/.opencode/skill/swarm-coordination/references/reconciler.md +0 -172
- package/dist/template/.opencode/skill/swarm-coordination/references/tier-enforcement.md +0 -78
- package/dist/template/.opencode/skill/swarm-coordination/references/tmux-integration.md +0 -134
- package/dist/template/.opencode/skill/systematic-debugging/SKILL.md +0 -402
- package/dist/template/.opencode/skill/terse-output-mode/SKILL.md +0 -95
- package/dist/template/.opencode/skill/think-in-code/SKILL.md +0 -136
- package/dist/template/.opencode/skill/ux-quality-gates/SKILL.md +0 -137
- package/dist/template/.opencode/skill/v1-run/SKILL.md +0 -175
- package/dist/template/.opencode/skill/v1-run/mcp.json +0 -6
- package/dist/template/.opencode/skill/verification-gates/SKILL.md +0 -63
- package/dist/template/.opencode/skill/visual-analysis/SKILL.md +0 -154
- package/dist/template/.opencode/skill/web-design-guidelines/SKILL.md +0 -46
- package/dist/template/.opencode/skill/workspace-setup/SKILL.md +0 -76
- package/dist/template/.opencode/skill/writing-plans/SKILL.md +0 -320
- /package/dist/template/.opencode/plugin/{lib → memory}/compact.ts +0 -0
- /package/dist/template/.opencode/plugin/{lib → memory}/db/graph.ts +0 -0
- /package/dist/template/.opencode/plugin/{lib → memory}/db/maintenance.ts +0 -0
- /package/dist/template/.opencode/plugin/{lib → memory}/db/pipeline.ts +0 -0
- /package/dist/template/.opencode/plugin/{lib → memory}/notify.ts +0 -0
- /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,
|
|
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:
|
|
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
|
|
26
|
-
//
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
//
|
|
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-*"
|
|
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-
|
|
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`
|
|
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
|
-
- **
|
|
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
|
|
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
|
-->
|