opencodekit 0.16.0 → 0.16.1

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 (119) hide show
  1. package/dist/index.js +1 -1
  2. package/dist/template/.opencode/AGENTS.md +64 -3
  3. package/dist/template/.opencode/command/create.md +34 -0
  4. package/dist/template/.opencode/command/design.md +35 -0
  5. package/dist/template/.opencode/command/handoff.md +15 -0
  6. package/dist/template/.opencode/command/init.md +40 -47
  7. package/dist/template/.opencode/command/plan.md +1 -0
  8. package/dist/template/.opencode/command/pr.md +15 -0
  9. package/dist/template/.opencode/command/research.md +3 -0
  10. package/dist/template/.opencode/command/resume.md +1 -0
  11. package/dist/template/.opencode/command/review-codebase.md +30 -0
  12. package/dist/template/.opencode/command/ship.md +43 -0
  13. package/dist/template/.opencode/command/start.md +1 -0
  14. package/dist/template/.opencode/command/status.md +24 -1
  15. package/dist/template/.opencode/command/ui-review.md +31 -0
  16. package/dist/template/.opencode/command/verify.md +35 -7
  17. package/dist/template/.opencode/memory/project/tech-stack.md +25 -22
  18. package/dist/template/.opencode/memory.db +0 -0
  19. package/dist/template/.opencode/memory.db-shm +0 -0
  20. package/dist/template/.opencode/memory.db-wal +0 -0
  21. package/dist/template/.opencode/opencode.json +817 -916
  22. package/dist/template/.opencode/package.json +1 -0
  23. package/dist/template/.opencode/plans/1770006237537-mighty-otter.md +418 -0
  24. package/dist/template/.opencode/plans/1770006913647-glowing-forest.md +170 -0
  25. package/dist/template/.opencode/plans/1770013678126-witty-planet.md +278 -0
  26. package/dist/template/.opencode/plugin/lib/memory-db.ts +828 -0
  27. package/dist/template/.opencode/plugin/memory.ts +38 -1
  28. package/dist/template/.opencode/skill/index-knowledge/SKILL.md +76 -31
  29. package/dist/template/.opencode/skill/memory-system/SKILL.md +110 -55
  30. package/dist/template/.opencode/tool/memory-get.ts +143 -0
  31. package/dist/template/.opencode/tool/memory-maintain.ts +167 -0
  32. package/dist/template/.opencode/tool/memory-migrate.ts +319 -0
  33. package/dist/template/.opencode/tool/memory-read.ts +17 -46
  34. package/dist/template/.opencode/tool/memory-search.ts +131 -28
  35. package/dist/template/.opencode/tool/memory-timeline.ts +105 -0
  36. package/dist/template/.opencode/tool/memory-update.ts +21 -26
  37. package/dist/template/.opencode/tool/observation.ts +112 -100
  38. package/dist/template/.opencode/tsconfig.json +19 -19
  39. package/package.json +1 -1
  40. package/dist/template/.opencode/memory/_templates/README.md +0 -73
  41. package/dist/template/.opencode/memory/_templates/observation.md +0 -39
  42. package/dist/template/.opencode/memory/_templates/prompt-engineering.md +0 -333
  43. package/dist/template/.opencode/memory/observations/2026-01-22-decision-agents-md-prompt-engineering-improvement.md +0 -29
  44. package/dist/template/.opencode/memory/observations/2026-01-25-decision-agent-roles-build-orchestrates-general-e.md +0 -14
  45. package/dist/template/.opencode/memory/observations/2026-01-25-decision-simplified-swarm-helper-tool-to-fix-type.md +0 -20
  46. package/dist/template/.opencode/memory/observations/2026-01-25-decision-use-beads-as-swarm-board-source-of-truth.md +0 -14
  47. package/dist/template/.opencode/memory/observations/2026-01-25-learning-user-wants-real-swarm-coordination-guida.md +0 -15
  48. package/dist/template/.opencode/memory/observations/2026-01-28-decision-created-deep-research-skill-for-thorough.md +0 -29
  49. package/dist/template/.opencode/memory/observations/2026-01-28-decision-gh-grep-mcp-wrapper-vs-native-grep-searc.md +0 -21
  50. package/dist/template/.opencode/memory/observations/2026-01-28-decision-oracle-tool-optimal-usage-patterns.md +0 -32
  51. package/dist/template/.opencode/memory/observations/2026-01-28-learning-ampcode-deep-mode-research-integration-w.md +0 -42
  52. package/dist/template/.opencode/memory/observations/2026-01-28-pattern-research-delegation-pattern-explore-for-.md +0 -32
  53. package/dist/template/.opencode/memory/observations/2026-01-29-decision-copilot-auth-plugin-rate-limit-handling.md +0 -27
  54. package/dist/template/.opencode/memory/observations/2026-01-29-decision-spec-driven-approach-for-opencodekit.md +0 -21
  55. package/dist/template/.opencode/memory/observations/2026-01-29-learning-karpathy-llm-coding-insights-dec-2025.md +0 -44
  56. package/dist/template/.opencode/memory/observations/2026-01-30-decision-github-copilot-claude-routing-keep-disab.md +0 -32
  57. package/dist/template/.opencode/memory/observations/2026-01-30-discovery-context-management-research-critical-gap.md +0 -14
  58. package/dist/template/.opencode/memory/observations/2026-01-30-discovery-kimi-k2-5-agent-swarm-architecture-patte.md +0 -45
  59. package/dist/template/.opencode/memory/observations/2026-01-30-pattern-swarm-tools-architecture.md +0 -28
  60. package/dist/template/.opencode/memory/observations/2026-01-31-decision-copilot-auth-plugin-updated-with-baseurl.md +0 -63
  61. package/dist/template/.opencode/memory/observations/2026-01-31-decision-created-dedicated-worker-agent-for-swarm.md +0 -20
  62. package/dist/template/.opencode/memory/observations/2026-01-31-decision-rollback-to-v1-1-47-for-copilot-claude-r.md +0 -21
  63. package/dist/template/.opencode/memory/observations/2026-01-31-decision-simplified-swarm-to-task-tool-pattern.md +0 -44
  64. package/dist/template/.opencode/memory/observations/2026-01-31-decision-swarm-architecture-task-tool-over-tmux.md +0 -33
  65. package/dist/template/.opencode/memory/observations/2026-01-31-decision-worker-skills-defined-for-swarm-delegati.md +0 -30
  66. package/dist/template/.opencode/memory/observations/2026-01-31-learning-gpt-reasoning-config-for-github-copilot.md +0 -51
  67. package/dist/template/.opencode/memory/observations/2026-01-31-learning-opencode-copilot-auth-comparison-finding.md +0 -61
  68. package/dist/template/.opencode/memory/observations/2026-01-31-learning-opencode-copilot-reasoning-architecture-.md +0 -66
  69. package/dist/template/.opencode/memory/observations/2026-01-31-learning-opencode-custom-tools-api.md +0 -48
  70. package/dist/template/.opencode/memory/observations/2026-01-31-learning-opencode-v1-1-48-skills-as-slash-command.md +0 -21
  71. package/dist/template/.opencode/memory/observations/2026-01-31-learning-swarm-system-simplified-removed-mailbox-.md +0 -30
  72. package/dist/template/.opencode/memory/observations/2026-01-31-learning-v1-1-48-native-copilot-reasoning-via-pr-.md +0 -45
  73. package/dist/template/.opencode/memory/observations/2026-01-31-warning-cannot-add-custom-config-to-opencode-jso.md +0 -18
  74. package/dist/template/.opencode/memory/observations/2026-01-31-warning-copilot-claude-v1-endpoint-returns-404-c.md +0 -48
  75. package/dist/template/.opencode/memory/observations/2026-01-31-warning-opencode-v1-1-48-claude-thinking-block-s.md +0 -51
  76. package/dist/template/.opencode/memory/observations/2026-02-01-decision-add-skills-vs-commands-to-global-agents-.md +0 -15
  77. package/dist/template/.opencode/memory/observations/2026-02-01-decision-build-agent-auto-loads-skills-contextual.md +0 -31
  78. package/dist/template/.opencode/memory/observations/2026-02-01-decision-fixed-agent-configuration-for-opencodeki.md +0 -25
  79. package/dist/template/.opencode/memory/observations/2026-02-01-decision-focused-agents-md-upgrade-for-opencode-k.md +0 -14
  80. package/dist/template/.opencode/memory/observations/2026-02-01-decision-implement-tier-1-permission-upgrades.md +0 -15
  81. package/dist/template/.opencode/memory/observations/2026-02-01-decision-instructions-config-explicit-paths-not-w.md +0 -40
  82. package/dist/template/.opencode/memory/observations/2026-02-01-decision-merged-context-into-memory-project-singl.md +0 -42
  83. package/dist/template/.opencode/memory/observations/2026-02-01-decision-oracle-tool-should-use-review-agent-not-.md +0 -14
  84. package/dist/template/.opencode/memory/observations/2026-02-01-decision-plan-agent-auto-loads-skills-contextuall.md +0 -31
  85. package/dist/template/.opencode/memory/observations/2026-02-01-decision-plan-phased-oracle-command-merge-into-ne.md +0 -14
  86. package/dist/template/.opencode/memory/observations/2026-02-01-decision-prd-workflow-uses-prd-and-prd-task-skill.md +0 -23
  87. package/dist/template/.opencode/memory/observations/2026-02-01-decision-prefer-review-agent-via-opencode-cli-ove.md +0 -14
  88. package/dist/template/.opencode/memory/observations/2026-02-01-decision-remove-oracle-tool-add-ship-command-with.md +0 -14
  89. package/dist/template/.opencode/memory/observations/2026-02-01-decision-remove-oracle-tool-and-add-ship-command-.md +0 -14
  90. package/dist/template/.opencode/memory/observations/2026-02-01-decision-remove-oracle-tool-and-add-ship-command.md +0 -14
  91. package/dist/template/.opencode/memory/observations/2026-02-01-decision-remove-skills-vs-commands-section-from-a.md +0 -14
  92. package/dist/template/.opencode/memory/observations/2026-02-01-decision-replace-oracle-tool-with-ship-command-fl.md +0 -14
  93. package/dist/template/.opencode/memory/observations/2026-02-01-decision-replace-oracle-with-ship-command-workflo.md +0 -14
  94. package/dist/template/.opencode/memory/observations/2026-02-01-decision-replace-proxypal-oracle-with-cli-review-.md +0 -14
  95. package/dist/template/.opencode/memory/observations/2026-02-01-decision-simplified-dist-template-only-tech-stack.md +0 -50
  96. package/dist/template/.opencode/memory/observations/2026-02-01-decision-simplified-templates-only-tech-stack-md.md +0 -26
  97. package/dist/template/.opencode/memory/observations/2026-02-01-decision-subagents-load-minimal-skills-stay-lean.md +0 -29
  98. package/dist/template/.opencode/memory/observations/2026-02-01-decision-user-approved-permission-upgrades-in-ope.md +0 -15
  99. package/dist/template/.opencode/memory/observations/2026-02-01-discovery-verify-command-already-implemented.md +0 -28
  100. package/dist/template/.opencode/memory/observations/2026-02-01-feature-openspec-phase-b-complete-template-upgra.md +0 -43
  101. package/dist/template/.opencode/memory/observations/2026-02-01-learning-build-agent-should-use-dynamic-lsp-not-f.md +0 -14
  102. package/dist/template/.opencode/memory/observations/2026-02-01-learning-kimi-k2-5-model-requires-temperature-1-0.md +0 -22
  103. package/dist/template/.opencode/memory/observations/2026-02-01-learning-opencode-context-injection-already-imple.md +0 -27
  104. package/dist/template/.opencode/memory/observations/2026-02-01-learning-opencode-context-injection-uses-instruct.md +0 -35
  105. package/dist/template/.opencode/memory/observations/2026-02-01-learning-update-build-agent-prompt-to-use-context.md +0 -14
  106. package/dist/template/.opencode/memory/observations/2026-02-01-learning-upgrade-agents-md-using-opencode-expert-.md +0 -14
  107. package/dist/template/.opencode/memory/observations/2026-02-01-learning-upgrade-agents-md-with-opencode-expert-g.md +0 -14
  108. package/dist/template/.opencode/memory/observations/2026-02-01-learning-upgrade-agents-md-with-opencode-expert-r.md +0 -14
  109. package/dist/template/.opencode/memory/observations/2026-02-01-learning-user-prefers-copilot-gpt-5-2-codex-mediu.md +0 -14
  110. package/dist/template/.opencode/memory/observations/2026-02-01-learning-user-wants-general-agent-prompt-contextu.md +0 -15
  111. package/dist/template/.opencode/memory/observations/2026-02-01-learning-user-wants-general-agent-prompt-reviewed.md +0 -15
  112. package/dist/template/.opencode/memory/project/architecture.md +0 -60
  113. package/dist/template/.opencode/memory/project/command-rules.md +0 -122
  114. package/dist/template/.opencode/memory/project/commands.md +0 -72
  115. package/dist/template/.opencode/memory/project/conventions.md +0 -68
  116. package/dist/template/.opencode/memory/project/gotchas.md +0 -41
  117. /package/dist/template/.opencode/memory/_templates/{project/tech-stack.md → tech-stack.md} +0 -0
  118. /package/dist/template/.opencode/memory/{user.example.md → _templates/user.md} +0 -0
  119. /package/dist/template/.opencode/memory/{user.md → project/user.md} +0 -0
@@ -1,28 +0,0 @@
1
- ---
2
- type: discovery
3
- created: 2026-02-01T15:16:50.162Z
4
- confidence: high
5
- valid_until: null
6
- superseded_by: null
7
- concepts: ["verify", "command", "openspec", "completeness", "correctness", "coherence"]
8
- files: [".opencode/command/verify.md"]
9
- ---
10
-
11
- # 💡 Verify command already implemented
12
-
13
- 🟢 **Confidence:** high
14
-
15
- The `/verify` command already exists at `.opencode/command/verify.md` with full implementation:
16
-
17
- **Three dimensions:**
18
- 1. Completeness - Are all required artifacts present? All tasks addressed?
19
- 2. Correctness - Do automated gates pass? (build, test, lint, typecheck)
20
- 3. Coherence - Do artifacts agree with each other? No contradictions?
21
-
22
- **Features:**
23
- - `--quick` - Skip coherence check, gates only
24
- - `--fix` - Auto-fix issues where possible
25
- - Multi-language support (Node, Rust, Python, Go)
26
- - Updates bead notes with verification results
27
-
28
- This was identified as "short-term" in OpenSpec research but is already done!
@@ -1,43 +0,0 @@
1
- ---
2
- type: feature
3
- created: 2026-02-01T13:54:45.946Z
4
- confidence: high
5
- valid_until: null
6
- superseded_by: null
7
- concepts: ["openspec", "templates", "context-injection", "workflow", "beads"]
8
- files: [".opencode/memory/_templates/proposal.md", ".opencode/memory/_templates/spec.md", ".opencode/memory/_templates/tasks.md", ".opencode/context/project.md", "opencode.json", ".opencode/opencode.json", ".opencode/memory/_templates/README.md", ".opencode/command/plan.md"]
9
- ---
10
-
11
- # ✨ OpenSpec Phase B Complete: Template Upgrade + Context Injection
12
-
13
- 🟢 **Confidence:** high
14
-
15
- ## Phase B Complete
16
-
17
- Adapted OpenSpec patterns into the kit + beads system:
18
-
19
- ### New Templates Created
20
- - `.opencode/memory/_templates/proposal.md` - Captures WHY (motivation, impact)
21
- - `.opencode/memory/_templates/spec.md` - WHEN/THEN behavioral requirements
22
- - `.opencode/memory/_templates/tasks.md` - Numbered implementation checklists
23
-
24
- ### Context Injection Added
25
- - `.opencode/context/project.md` - Tech stack, constraints, integrations
26
- - Added to `opencode.json` instructions[] for auto-injection into all prompts
27
-
28
- ### Key Adaptation Decisions
29
- 1. **Kept our comprehensive style** - OpenSpec templates are minimal scaffolds (~10 lines), ours provide more structure
30
- 2. **Used instructions[] not config.yaml** - OpenCode's native mechanism vs OpenSpec's custom parser
31
- 3. **No CLI tooling** - We're AI-native, commands ARE the interface
32
- 4. **Flat template structure** - No per-schema subdirectories (simpler)
33
-
34
- ### OpenSpec Patterns NOT Adopted
35
- - Canonical spec maintenance (our beads are ephemeral)
36
- - Delta spec merging (no long-running specs)
37
- - Multiple schema workflows (keeping single flow for now)
38
- - Shell completions (not relevant for AI workflow)
39
-
40
- ### Files Modified
41
- - `.opencode/opencode.json` - Added context/project.md to instructions[]
42
- - `.opencode/memory/_templates/README.md` - Documented all templates
43
- - `.opencode/command/plan.md` - Added templates reference section
@@ -1,14 +0,0 @@
1
- ---
2
- type: learning
3
- created: 2026-02-01T10:01:36.015Z
4
- confidence: high
5
- valid_until: null
6
- superseded_by: null
7
- concepts: ["build agent", "LSP", "dynamic tooling", "gpt-5.2-codex", "prompt update"]
8
- ---
9
-
10
- # 📚 Build agent should use dynamic LSP, not forced 9 calls
11
-
12
- 🟢 **Confidence:** high
13
-
14
- User reports that with gpt-5.2-codex, build agent prompt forces 9 LSP tool calls. User wants build agent prompt updated to use dynamic, best-practice LSP usage (only the needed operations).
@@ -1,22 +0,0 @@
1
- ---
2
- type: learning
3
- created: 2026-02-01T04:58:58.391Z
4
- confidence: high
5
- valid_until: null
6
- superseded_by: null
7
- concepts: ["kimi_k25", "temperature", "thinking mode", "opencode zen", "model configuration", "scout agent"]
8
- ---
9
-
10
- # 📚 Kimi K2.5 model requires temperature 1.0
11
-
12
- 🟢 **Confidence:** high
13
-
14
- The kimi_k25 (Kimi K2.5) model is a thinking mode model that requires temperature to be exactly 1.0. The parameter is immutable - you cannot set custom temperatures.
15
-
16
- Error message: "Parameter 'temperature' is immutable for kimi_k25 and must be 1.0 (thinking mode). Got 0.3."
17
-
18
- Solution options:
19
- 1. Change scout.md temperature from 0.3 to 1.0 to use kimi-k2.5-free
20
- 2. Use a different model like minimax-m2.1-free that supports custom temperatures
21
-
22
- Other thinking models in opencode.json also have "temperature": 1 in their configuration (e.g., big-pickle, glm-4.6, glm-4.7 with reasoning enabled).
@@ -1,27 +0,0 @@
1
- ---
2
- type: learning
3
- created: 2026-02-01T15:16:13.160Z
4
- confidence: high
5
- valid_until: null
6
- superseded_by: null
7
- concepts: ["opencode", "context-injection", "instructions", "agents-md", "config"]
8
- files: ["AGENTS.md", ".opencode/memory/user.md", "project/tech-stack.md", ".opencode/AGENTS.md"]
9
- ---
10
-
11
- # 📚 OpenCode context injection already implemented
12
-
13
- 🟢 **Confidence:** high
14
-
15
- OpenCode doesn't support `context` or `rules` fields from OpenSpec research.
16
-
17
- Instead, OpenCode uses:
18
- 1. `instructions` array in opencode.json → files injected into prompts (we have: user.md, tech-stack.md)
19
- 2. `AGENTS.md` files → rules and guidelines (project-level + global)
20
- 3. `command` field in opencode.json → per-command customization
21
-
22
- Our current setup already follows best practices:
23
- - `.opencode/memory/user.md` + `project/tech-stack.md` via instructions[]
24
- - `.opencode/AGENTS.md` for global rules
25
- - `.opencode/command/*.md` for commands
26
-
27
- No additional context injection needed - we're already doing it right!
@@ -1,35 +0,0 @@
1
- ---
2
- type: learning
3
- created: 2026-02-01T13:39:55.750Z
4
- confidence: high
5
- valid_until: null
6
- superseded_by: null
7
- concepts: ["opencode", "openspec", "context injection", "instructions", "config", "prompt", "agent configuration"]
8
- files: [".opencode/memory/project/context.md"]
9
- ---
10
-
11
- # 📚 OpenCode context injection uses 'instructions' not 'context'
12
-
13
- 🟢 **Confidence:** high
14
-
15
- OpenCode config (opencode.json) doesn't have a `context` field like OpenSpec's config.yaml. Instead, it uses:
16
-
17
- 1. **`instructions`** - Array of file paths that get injected into prompts
18
- - Current: `[".opencode/memory/user.md", ".opencode/memory/project/*.md"]`
19
- - These files are loaded and included in the system prompt
20
-
21
- 2. **Per-agent `prompt`** - Custom prompt string per agent via `agent.<name>.prompt`
22
-
23
- 3. **Per-command `template`** - Via `command.<name>.template`
24
-
25
- OpenSpec's approach:
26
- - `context:` - Global context injected into ALL artifacts
27
- - `rules:` - Per-artifact rules (e.g., `rules.proposal: ["Include rollback plan"]`)
28
-
29
- To adapt OpenSpec's context injection pattern to OpenCode:
30
- - Use `instructions` with well-structured markdown files
31
- - Create `.opencode/memory/project/context.md` for global project context
32
- - Use agent-specific `prompt` fields for per-agent rules
33
- - Or create command-specific files that commands load via skill pattern
34
-
35
- Key difference: OpenCode's approach is file-based, OpenSpec's is config-based inline text.
@@ -1,14 +0,0 @@
1
- ---
2
- type: learning
3
- created: 2026-02-01T10:05:57.086Z
4
- confidence: high
5
- valid_until: null
6
- superseded_by: null
7
- concepts: ["build agent", "prompt", "LSP", "contextual usage", "best practice"]
8
- ---
9
-
10
- # 📚 Update build agent prompt to use contextual LSP
11
-
12
- 🟢 **Confidence:** high
13
-
14
- User wants the build agent prompt updated to avoid forcing all 9 LSP calls. They want a brutal, best-practice policy: use LSP contextually (documentSymbol/hover first, add other ops only when needed).
@@ -1,14 +0,0 @@
1
- ---
2
- type: learning
3
- created: 2026-02-01T10:26:42.193Z
4
- confidence: high
5
- valid_until: null
6
- superseded_by: null
7
- concepts: ["AGENTS.md", "opencode-expert", "project rules", "opencode kit"]
8
- ---
9
-
10
- # 📚 Upgrade AGENTS.md using opencode-expert reference
11
-
12
- 🟢 **Confidence:** high
13
-
14
- User requested upgrading project rules in AGENTS.md for an OpenCode kit, referencing dmmulroy/.dotfiles opencode-expert.md.
@@ -1,14 +0,0 @@
1
- ---
2
- type: learning
3
- created: 2026-02-01T10:27:47.569Z
4
- confidence: high
5
- valid_until: null
6
- superseded_by: null
7
- concepts: ["AGENTS.md", "opencode-expert", "configuration", "best practices"]
8
- ---
9
-
10
- # 📚 Upgrade AGENTS.md with OpenCode expert guidance
11
-
12
- 🟢 **Confidence:** high
13
-
14
- User requested a focused upgrade to AGENTS.md using dmmulroy/.dotfiles opencode-expert.md as reference for OpenCode configuration best practices and links.
@@ -1,14 +0,0 @@
1
- ---
2
- type: learning
3
- created: 2026-02-01T10:27:01.422Z
4
- confidence: high
5
- valid_until: null
6
- superseded_by: null
7
- concepts: ["AGENTS.md", "opencode-expert", "project rules", "opencode kit"]
8
- ---
9
-
10
- # 📚 Upgrade AGENTS.md with OpenCode expert rules
11
-
12
- 🟢 **Confidence:** high
13
-
14
- User requested upgrading project AGENTS.md using dmmulroy/.dotfiles opencode-expert.md as reference to make the kit better for OpenCode users.
@@ -1,14 +0,0 @@
1
- ---
2
- type: learning
3
- created: 2026-02-01T09:56:48.021Z
4
- confidence: high
5
- valid_until: null
6
- superseded_by: null
7
- concepts: ["copilot", "gpt-5.2-codex", "medium", "speed", "model preference"]
8
- ---
9
-
10
- # 📚 User prefers Copilot GPT-5.2-Codex medium for speed
11
-
12
- 🟢 **Confidence:** high
13
-
14
- User reports that GitHub Copilot gpt-5.2-codex medium variant provides good speed and is preferred for their OpenCode setup.
@@ -1,15 +0,0 @@
1
- ---
2
- type: learning
3
- created: 2026-02-01T10:19:23.691Z
4
- confidence: high
5
- valid_until: null
6
- superseded_by: null
7
- concepts: ["general agent", "LSP", "contextual usage", "prompt update"]
8
- files: [".opencode/agent/general.md"]
9
- ---
10
-
11
- # 📚 User wants general agent prompt contextual LSP
12
-
13
- 🟢 **Confidence:** high
14
-
15
- User asked to update .opencode/agent/general.md to use contextual LSP usage (avoid forced LSP calls), similar to build agent prompt.
@@ -1,15 +0,0 @@
1
- ---
2
- type: learning
3
- created: 2026-02-01T10:18:29.926Z
4
- confidence: high
5
- valid_until: null
6
- superseded_by: null
7
- concepts: ["general agent", "prompt review", "LSP policy", "best practice", "opencode"]
8
- files: [".opencode/agent/general.md"]
9
- ---
10
-
11
- # 📚 User wants general agent prompt reviewed and tightened
12
-
13
- 🟢 **Confidence:** high
14
-
15
- User requested a review of .opencode/agent/general.md and wants a more brutal/best-practice upgrade similar to build agent prompt changes (e.g., LSP usage policy).
@@ -1,60 +0,0 @@
1
- ---
2
- purpose: Key modules, directory structure, architectural decisions
3
- updated: { { DATE } }
4
- ---
5
-
6
- # Project Architecture
7
-
8
- ## Directory Structure
9
-
10
- ```
11
- src/ # Source code
12
- index.ts # Entry point
13
- commands/ # CLI commands
14
- utils/ # Utilities
15
-
16
- dist/ # Built output
17
- .opencode/ # OpenCode configuration
18
- .beads/ # Task tracking
19
- ```
20
-
21
- ## Key Modules
22
-
23
- ### Module Name
24
-
25
- **Purpose**: Brief description
26
-
27
- **Files**:
28
-
29
- - `src/module/file.ts`
30
-
31
- **Dependencies**:
32
-
33
- - External libs
34
- - Internal modules
35
-
36
- ## Data Flow
37
-
38
- ```
39
- User Action
40
- → Module A
41
- → Module B
42
- → External Service
43
- ```
44
-
45
- ## External Dependencies
46
-
47
- - **Library**: Version, purpose
48
- - **Service**: API endpoint, auth method
49
-
50
- ## Architectural Decisions
51
-
52
- | Decision | Rationale | Trade-offs |
53
- | -------- | ------------ | ------------ |
54
- | Choice 1 | Why this way | Limitation 1 |
55
-
56
- ## TODO
57
-
58
- - [ ] Document missing modules
59
- - [ ] Add dependency diagram
60
- - [ ] Map data flow diagrams
@@ -1,122 +0,0 @@
1
- ---
2
- purpose: Per-command context and rules injected during command execution
3
- updated: 2026-02-01
4
- pattern: OpenSpec context/rules injection adapted for OpenCodeKit
5
- ---
6
-
7
- # Command-Specific Rules
8
-
9
- Rules automatically injected based on active command context.
10
-
11
- ## Planning Commands
12
-
13
- ### /plan
14
-
15
- - Include rollback plan for risky changes
16
- - Break tasks into independently-testable units
17
- - Estimate complexity per task (S/M/L)
18
- - Identify dependencies between tasks explicitly
19
-
20
- ### /design
21
-
22
- - Research existing patterns before proposing new ones
23
- - Include concrete file paths in all designs
24
- - Show interface contracts for public APIs
25
- - Specify error handling strategy
26
-
27
- ### /research
28
-
29
- - Cite sources with URLs
30
- - Distinguish facts from inferences
31
- - Note confidence level (high/medium/low)
32
- - Identify gaps in available information
33
-
34
- ## Implementation Commands
35
-
36
- ### /start
37
-
38
- - Check for existing bead before creating new
39
- - Load relevant memory files first
40
- - Verify task context with `bd show <id>`
41
-
42
- ### /resume
43
-
44
- - Re-read spec before continuing
45
- - Check what's already completed
46
- - Don't re-implement existing work
47
-
48
- ### /ship
49
-
50
- - Run all verification gates before claiming done
51
- - Include test evidence in close reason
52
- - Never skip lint/typecheck even for "small" changes
53
-
54
- ## Review Commands
55
-
56
- ### /review
57
-
58
- - Focus on correctness over style
59
- - Identify security implications
60
- - Check for unhandled edge cases
61
- - Suggest simplifications where possible
62
-
63
- ### /verify
64
-
65
- - Check completeness: all artifacts exist
66
- - Check correctness: implementation matches spec
67
- - Check coherence: no contradictions between artifacts
68
-
69
- ### /ui-review
70
-
71
- - Check accessibility (WCAG compliance)
72
- - Verify responsive behavior
73
- - Identify inconsistent patterns
74
-
75
- ## Handoff Commands
76
-
77
- ### /handoff
78
-
79
- - Include current bead state
80
- - List completed vs remaining tasks
81
- - Note any blockers or decisions needed
82
- - Provide session context for continuity
83
-
84
- ### /init
85
-
86
- - Don't overwrite existing memory files
87
- - Detect project type from existing files
88
- - Set up minimal viable structure first
89
-
90
- ## Context Injection
91
-
92
- These rules are automatically considered when:
93
-
94
- 1. User invokes a command explicitly (e.g., `/plan`)
95
- 2. Agent recognizes a command-like workflow
96
- 3. Subagent receives delegated work matching a command pattern
97
-
98
- ---
99
-
100
- ## Tech Stack Rules (Project-Specific)
101
-
102
- When working in this project, always:
103
-
104
- - **Runtime**: Use Bun (not Node.js)
105
- - **Language**: TypeScript with ESM imports
106
- - **Linting**: Run `npm run lint:fix` before commits
107
- - **Types**: Run `npm run typecheck` to validate
108
- - **Formatting**: Use Biome (configured in biome.json)
109
-
110
- ## Git Rules
111
-
112
- - Never commit to main directly
113
- - Always ask before `git push`
114
- - Use conventional commit format: `type(scope): message`
115
- - Never force push unless explicitly requested
116
-
117
- ## File Structure Rules
118
-
119
- - Commands go in `.opencode/command/`
120
- - Skills go in `.opencode/skill/`
121
- - Memory files go in `.opencode/memory/`
122
- - Plugin code goes in `.opencode/plugin/`
@@ -1,72 +0,0 @@
1
- ---
2
- purpose: Build, test, lint, deploy commands discovered for this project
3
- updated: { { DATE } }
4
- ---
5
-
6
- # Project Commands
7
-
8
- ## Development
9
-
10
- ```bash
11
- npm run dev # Start development server
12
- bun run src/index.ts # Run CLI directly
13
- ```
14
-
15
- ## Build
16
-
17
- ```bash
18
- npm run build # Build for production
19
- bun build ... # Additional build options
20
- ```
21
-
22
- ## Test
23
-
24
- ```bash
25
- bun test # Run all tests
26
- bun test --watch # Watch mode
27
- bun test file.ts # Run single file
28
- ```
29
-
30
- ## Lint
31
-
32
- ```bash
33
- npm run lint # Check for issues
34
- npm run lint:fix # Auto-fix issues
35
- ```
36
-
37
- ## Typecheck
38
-
39
- ```bash
40
- npm run typecheck # TypeScript checking only
41
- ```
42
-
43
- ## Database
44
-
45
- ```bash
46
- npm run db:push # Push schema changes
47
- npm run db:studio # Open database UI
48
- ```
49
-
50
- ## Deployment
51
-
52
- ```bash
53
- npm run deploy # Deploy to production
54
- ```
55
-
56
- ## CI/CD
57
-
58
- - **Lint**: Runs on push
59
- - **Test**: Runs on push
60
- - **Deploy**: Triggers on main branch
61
-
62
- ## Beads (Task Tracking)
63
-
64
- ```bash
65
- bd ready # Find unblocked tasks
66
- bd list --status=open # All open issues
67
- bd show <id> # Full details
68
- bd create "Title" -p 2 # Create task
69
- bd update <id> --status in_progress # Claim
70
- bd close <id> --reason "Done" # Complete
71
- bd sync # Push to git
72
- ```
@@ -1,68 +0,0 @@
1
- ---
2
- purpose: Code patterns, commit style, team conventions
3
- updated: { { DATE } }
4
- ---
5
-
6
- # Project Conventions
7
-
8
- ## Code Style
9
-
10
- ### TypeScript
11
-
12
- - **Module**: ESNext, bundler moduleResolution
13
- - **Strict**: Disabled
14
- - **Imports**: Group stdlib, third-party, local
15
-
16
- ### Python
17
-
18
- - **Version**: 3.10+
19
- - **Style**: type hints required, dataclasses for config
20
-
21
- ## Naming Conventions
22
-
23
- | Type | Convention | Example |
24
- | --------- | ---------- | ----------------- |
25
- | Classes | PascalCase | `UserService` |
26
- | Functions | snake_case | `get_user_data()` |
27
- | Variables | snake_case | `user_data` |
28
- | Constants | UPPER_CASE | `MAX_RETRIES` |
29
- | Files | kebab-case | `user-service.ts` |
30
-
31
- ## Import Order
32
-
33
- ```typescript
34
- // 1. Node.js stdlib
35
- import fs from "node:fs/promises";
36
- import path from "node:path";
37
-
38
- // 2. Third-party
39
- import { cli } from "cac";
40
- import { log } from "@clack/prompts";
41
-
42
- // 3. Local
43
- import { initCommand } from "./commands/init.js";
44
- ```
45
-
46
- ## Commit Messages
47
-
48
- ```
49
- type(scope): subject
50
-
51
- body (optional)
52
-
53
- footer (optional)
54
- ```
55
-
56
- **Types**: `feat`, `fix`, `docs`, `style`, `refactor`, `test`, `chore`
57
-
58
- ## Code Review
59
-
60
- - **Self-review**: Run lint/typecheck before PR
61
- - **Test coverage**: Add tests for new features
62
- - **Docs**: Update README for user-facing changes
63
-
64
- ## Patterns to Avoid
65
-
66
- - Premature abstraction
67
- - Circular dependencies
68
- - Magic numbers/strings
@@ -1,41 +0,0 @@
1
- ---
2
- purpose: Footguns, edge cases, and "don't forget this" warnings
3
- updated: { { DATE } }
4
- ---
5
-
6
- # Project Gotchas
7
-
8
- ## Configuration Quirks
9
-
10
- ### Field Name
11
-
12
- **Issue**: What goes wrong
13
- **Fix**: How to handle it
14
-
15
- ## Dependencies
16
-
17
- ### Package Name
18
-
19
- **Version**: x.y.z
20
- **Why Required**: Purpose
21
- **Gotcha**: Edge case or limitation
22
-
23
- ## Time Wasters
24
-
25
- ### Issue Description
26
-
27
- **Symptoms**: What you'll see
28
- **Cause**: Root cause
29
- **Fix**: Solution
30
-
31
- ## Common Errors
32
-
33
- | Error Message | Cause | Fix |
34
- | ------------- | ------ | --------- |
35
- | "Error: ..." | Reason | Fix steps |
36
-
37
- ## TODO
38
-
39
- - [ ] Document more edge cases
40
- - [ ] Add troubleshooting section
41
- - [ ] List known issues