micode 0.8.3 → 0.8.4

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/README.md CHANGED
@@ -35,7 +35,7 @@ Transform designs into implementation plans with bite-sized tasks (2-5 min each)
35
35
  Execute in git worktree for isolation. The **Executor** orchestrates implementer→reviewer cycles with parallel execution via fire-and-check pattern.
36
36
 
37
37
  ### Session Continuity
38
- Maintain context across sessions with structured compaction. Run `/ledger` to create/update `thoughts/ledgers/CONTINUITY_{session}.md`. Auto-clears at 60% context usage.
38
+ Maintain context across sessions with structured compaction. Run `/ledger` to create/update `thoughts/ledgers/CONTINUITY_{session}.md`.
39
39
 
40
40
  ## Commands
41
41
 
@@ -81,7 +81,7 @@ Maintain context across sessions with structured compaction. Run `/ledger` to cr
81
81
 
82
82
  - **Think Mode** - Keywords like "think hard" enable 32k token thinking budget
83
83
  - **Ledger Loader** - Injects continuity ledger into system prompt
84
- - **Auto-Clear Ledger** - At 60% context, saves ledger and clears session
84
+ - **Auto-Compact** - At 50% context usage, automatically summarizes session to reduce context
85
85
  - **File Ops Tracker** - Tracks read/write/edit for deterministic logging
86
86
  - **Artifact Auto-Index** - Indexes artifacts in thoughts/ directories
87
87
  - **Context Injector** - Injects ARCHITECTURE.md, CODE_STYLE.md
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "micode",
3
- "version": "0.8.3",
3
+ "version": "0.8.4",
4
4
  "description": "OpenCode plugin with Brainstorm-Research-Plan-Implement workflow",
5
5
  "module": "src/index.ts",
6
6
  "main": "src/index.ts",
@@ -11,6 +11,7 @@
11
11
  "INSTALL_CLAUDE.md"
12
12
  ],
13
13
  "scripts": {
14
+ "prepare": "lefthook install",
14
15
  "build": "tsc --noEmit",
15
16
  "typecheck": "tsc --noEmit",
16
17
  "prepublishOnly": "bun run typecheck",
@@ -38,12 +39,14 @@
38
39
  "url": "https://github.com/vtemian/micode/issues"
39
40
  },
40
41
  "dependencies": {
41
- "@opencode-ai/plugin": "^1.0.224",
42
- "bun-pty": "^0.4.5"
42
+ "@opencode-ai/plugin": "1.1.6",
43
+ "bun-pty": "^0.4.5",
44
+ "valibot": "^1.2.0"
43
45
  },
44
46
  "devDependencies": {
45
47
  "@biomejs/biome": "^2.3.10",
46
48
  "bun-types": "latest",
49
+ "lefthook": "^2.0.13",
47
50
  "typescript": "^5.7.3"
48
51
  }
49
52
  }
@@ -4,7 +4,7 @@ import type { AgentConfig } from "@opencode-ai/sdk";
4
4
  export const artifactSearcherAgent: AgentConfig = {
5
5
  description: "Searches past handoffs, plans, and ledgers for relevant precedent",
6
6
  mode: "subagent",
7
- model: "anthropic/claude-sonnet-4-20250514",
7
+ model: "openai/gpt-5.2-codex",
8
8
  temperature: 0.3,
9
9
  tools: {
10
10
  edit: false,
@@ -3,7 +3,7 @@ import type { AgentConfig } from "@opencode-ai/sdk";
3
3
  export const brainstormerAgent: AgentConfig = {
4
4
  description: "Refines rough ideas into fully-formed designs through collaborative questioning",
5
5
  mode: "primary",
6
- model: "anthropic/claude-opus-4-5",
6
+ model: "openai/gpt-5.2-codex",
7
7
  temperature: 0.7,
8
8
  tools: {
9
9
  spawn_agent: false, // Primary agents use built-in Task tool, not spawn_agent
@@ -3,7 +3,7 @@ import type { AgentConfig } from "@opencode-ai/sdk";
3
3
  export const codebaseAnalyzerAgent: AgentConfig = {
4
4
  description: "Explains HOW code works with precise file:line references",
5
5
  mode: "subagent",
6
- model: "anthropic/claude-opus-4-5",
6
+ model: "openai/gpt-5.2-codex",
7
7
  temperature: 0.2,
8
8
  tools: {
9
9
  write: false,
@@ -3,7 +3,7 @@ import type { AgentConfig } from "@opencode-ai/sdk";
3
3
  export const codebaseLocatorAgent: AgentConfig = {
4
4
  description: "Finds WHERE files live in the codebase",
5
5
  mode: "subagent",
6
- model: "anthropic/claude-opus-4-5",
6
+ model: "openai/gpt-5.2-codex",
7
7
  temperature: 0.1,
8
8
  tools: {
9
9
  write: false,
@@ -141,7 +141,7 @@ Just do it - including obvious follow-up actions.
141
141
  export const primaryAgent: AgentConfig = {
142
142
  description: "Pragmatic orchestrator. Direct, honest, delegates to specialists.",
143
143
  mode: "primary",
144
- model: "anthropic/claude-opus-4-5",
144
+ model: "openai/gpt-5.2-codex",
145
145
  temperature: 0.2,
146
146
  thinking: {
147
147
  type: "enabled",
@@ -3,7 +3,7 @@ import type { AgentConfig } from "@opencode-ai/sdk";
3
3
  export const executorAgent: AgentConfig = {
4
4
  description: "Executes plan task-by-task with parallel execution where possible",
5
5
  mode: "subagent",
6
- model: "anthropic/claude-opus-4-5",
6
+ model: "openai/gpt-5.2-codex",
7
7
  temperature: 0.2,
8
8
  prompt: `<environment>
9
9
  You are running as part of the "micode" OpenCode plugin (NOT Claude Code).
@@ -3,7 +3,7 @@ import type { AgentConfig } from "@opencode-ai/sdk";
3
3
  export const implementerAgent: AgentConfig = {
4
4
  description: "Executes implementation tasks from a plan",
5
5
  mode: "subagent",
6
- model: "anthropic/claude-opus-4-5",
6
+ model: "openai/gpt-5.2-codex",
7
7
  temperature: 0.1,
8
8
  prompt: `<environment>
9
9
  You are running as part of the "micode" OpenCode plugin (NOT Claude Code).
@@ -4,7 +4,7 @@ import type { AgentConfig } from "@opencode-ai/sdk";
4
4
  export const ledgerCreatorAgent: AgentConfig = {
5
5
  description: "Creates and updates continuity ledgers for session state preservation",
6
6
  mode: "subagent",
7
- model: "anthropic/claude-sonnet-4-20250514",
7
+ model: "openai/gpt-5.2-codex",
8
8
  temperature: 0.2,
9
9
  tools: {
10
10
  edit: false,
@@ -3,7 +3,7 @@ import type { AgentConfig } from "@opencode-ai/sdk";
3
3
  export const patternFinderAgent: AgentConfig = {
4
4
  description: "Finds existing patterns and examples to model after",
5
5
  mode: "subagent",
6
- model: "anthropic/claude-opus-4-5",
6
+ model: "openai/gpt-5.2-codex",
7
7
  temperature: 0.2,
8
8
  tools: {
9
9
  write: false,
@@ -3,7 +3,7 @@ import type { AgentConfig } from "@opencode-ai/sdk";
3
3
  export const plannerAgent: AgentConfig = {
4
4
  description: "Creates detailed implementation plans with exact file paths, complete code examples, and TDD steps",
5
5
  mode: "subagent",
6
- model: "anthropic/claude-opus-4-5",
6
+ model: "openai/gpt-5.2-codex",
7
7
  temperature: 0.3,
8
8
  prompt: `<environment>
9
9
  You are running as part of the "micode" OpenCode plugin (NOT Claude Code).
@@ -218,7 +218,7 @@ Available micode agents: codebase-locator, codebase-analyzer, pattern-finder.
218
218
 
219
219
  export const projectInitializerAgent: AgentConfig = {
220
220
  mode: "subagent",
221
- model: "anthropic/claude-opus-4-5",
221
+ model: "openai/gpt-5.2-codex",
222
222
  temperature: 0.3,
223
223
  maxTokens: 32000,
224
224
  prompt: PROMPT,
@@ -3,7 +3,7 @@ import type { AgentConfig } from "@opencode-ai/sdk";
3
3
  export const reviewerAgent: AgentConfig = {
4
4
  description: "Reviews implementation for correctness and style",
5
5
  mode: "subagent",
6
- model: "anthropic/claude-opus-4-5",
6
+ model: "openai/gpt-5.2-codex",
7
7
  temperature: 0.3,
8
8
  tools: {
9
9
  write: false,