dual-brain 4.2.0 → 4.5.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/orchestrator.json CHANGED
@@ -3,66 +3,87 @@
3
3
  "claude": {
4
4
  "plan": "$100",
5
5
  "models": {
6
- "opus": { "tier": "think", "input_per_mtok": 5.0, "output_per_mtok": 25.0, "context_window": 1000000, "max_output": 128000 },
7
- "sonnet": { "tier": "execute", "input_per_mtok": 3.0, "output_per_mtok": 15.0, "context_window": 1000000, "max_output": 64000 },
8
- "haiku": { "tier": "search", "input_per_mtok": 1.0, "output_per_mtok": 5.0, "context_window": 200000, "max_output": 64000 }
6
+ "opus": {
7
+ "tier": "think",
8
+ "input_per_mtok": 5.0,
9
+ "output_per_mtok": 25.0,
10
+ "context_window": 1000000,
11
+ "max_output": 128000,
12
+ "model_id": "claude-opus-4-6",
13
+ "strengths": ["agentic coding", "complex reasoning", "tool use", "error recovery", "architecture decisions"],
14
+ "weaknesses": ["higher latency", "tokenizer tax on 4.7 (12-35% more tokens)"],
15
+ "best_for": "architecture, security review, complex debugging, multi-step planning",
16
+ "avoid_for": "simple file reads, grep, formatting — wasteful at this tier"
17
+ },
18
+ "sonnet": {
19
+ "tier": "execute",
20
+ "input_per_mtok": 3.0,
21
+ "output_per_mtok": 15.0,
22
+ "context_window": 1000000,
23
+ "max_output": 64000,
24
+ "model_id": "claude-sonnet-4-6",
25
+ "strengths": ["best speed/intelligence ratio", "precise minimal diffs", "1M context", "extended thinking"],
26
+ "weaknesses": ["less reliable on complex multi-step reasoning than Opus"],
27
+ "best_for": "implementation, refactoring, test writing, code edits, git operations",
28
+ "avoid_for": "architecture decisions, security audits — upgrade to think tier"
29
+ },
30
+ "haiku": {
31
+ "tier": "search",
32
+ "input_per_mtok": 1.0,
33
+ "output_per_mtok": 5.0,
34
+ "context_window": 200000,
35
+ "max_output": 64000,
36
+ "model_id": "claude-haiku-4-5-20251001",
37
+ "strengths": ["fastest latency", "cheapest", "good enough for read-only tasks"],
38
+ "weaknesses": ["200k context (vs 1M for others)", "weaker reasoning", "older knowledge cutoff"],
39
+ "best_for": "file lookups, grep, explore, read-only research, listing files",
40
+ "avoid_for": "any task requiring edits, reasoning, or judgment"
41
+ }
9
42
  }
10
43
  },
11
44
  "openai": {
12
45
  "plan": "$100",
13
46
  "models": {
14
- "gpt-5.5": { "tier": "think", "input_per_mtok": 5.0, "output_per_mtok": 30.0, "context_window": 1000000, "max_output": 128000 },
15
- "gpt-5.4": { "tier": "execute", "input_per_mtok": 2.5, "output_per_mtok": 15.0, "context_window": 1000000, "max_output": 128000 },
16
- "gpt-4.1-mini": { "tier": "search", "input_per_mtok": 0.40, "output_per_mtok": 1.60, "context_window": 1047576, "max_output": 32768 }
47
+ "gpt-5.5": {
48
+ "tier": "think",
49
+ "input_per_mtok": 5.0,
50
+ "output_per_mtok": 30.0,
51
+ "context_window": 1000000,
52
+ "max_output": 128000,
53
+ "model_id": "gpt-5.5",
54
+ "strengths": ["complex reasoning", "fast interactive responses", "strong code review", "independent perspective from Claude"],
55
+ "weaknesses": ["different failure modes than Claude — feature not bug for dual-brain"],
56
+ "best_for": "independent code review (dual-brain), second opinions on architecture",
57
+ "codex_compatible": true
58
+ },
59
+ "gpt-5.4": {
60
+ "tier": "execute",
61
+ "input_per_mtok": 2.5,
62
+ "output_per_mtok": 15.0,
63
+ "context_window": 1000000,
64
+ "max_output": 128000,
65
+ "model_id": "gpt-5.4",
66
+ "strengths": ["good speed/cost ratio", "1M context", "strong instruction following"],
67
+ "weaknesses": ["less capable reasoning than gpt-5.5"],
68
+ "best_for": "implementation and execution tasks via Codex",
69
+ "codex_compatible": true
70
+ },
71
+ "gpt-4.1-mini": {
72
+ "tier": "search",
73
+ "input_per_mtok": 0.40,
74
+ "output_per_mtok": 1.60,
75
+ "context_window": 1047576,
76
+ "max_output": 32768,
77
+ "model_id": "gpt-4.1-mini",
78
+ "strengths": ["extremely cheap", "good instruction following", "1M context"],
79
+ "weaknesses": ["32k max output", "no reasoning chain"],
80
+ "best_for": "cheap search/lookup tasks via Codex",
81
+ "codex_compatible": true
82
+ }
17
83
  }
18
84
  }
19
85
  },
20
86
 
21
- "model_intelligence": {
22
- "opus": {
23
- "model_id": "claude-opus-4-6",
24
- "strengths": ["agentic coding", "complex reasoning", "tool use", "error recovery", "architecture decisions"],
25
- "weaknesses": ["higher latency", "tokenizer tax on 4.7 (12-35% more tokens)"],
26
- "best_for": "architecture, security review, complex debugging, multi-step planning",
27
- "avoid_for": "simple file reads, grep, formatting — wasteful at this tier"
28
- },
29
- "sonnet": {
30
- "model_id": "claude-sonnet-4-6",
31
- "strengths": ["best speed/intelligence ratio", "precise minimal diffs", "1M context", "extended thinking"],
32
- "weaknesses": ["less reliable on complex multi-step reasoning than Opus"],
33
- "best_for": "implementation, refactoring, test writing, code edits, git operations",
34
- "avoid_for": "architecture decisions, security audits — upgrade to think tier"
35
- },
36
- "haiku": {
37
- "model_id": "claude-haiku-4-5-20251001",
38
- "strengths": ["fastest latency", "cheapest", "good enough for read-only tasks"],
39
- "weaknesses": ["200k context (vs 1M for others)", "weaker reasoning", "older knowledge cutoff"],
40
- "best_for": "file lookups, grep, explore, read-only research, listing files",
41
- "avoid_for": "any task requiring edits, reasoning, or judgment"
42
- },
43
- "gpt-5.5": {
44
- "model_id": "gpt-5.5",
45
- "strengths": ["complex reasoning", "fast interactive responses", "strong code review", "independent perspective from Claude"],
46
- "weaknesses": ["different failure modes than Claude — feature not bug for dual-brain"],
47
- "best_for": "independent code review (dual-brain), second opinions on architecture",
48
- "codex_compatible": true
49
- },
50
- "gpt-5.4": {
51
- "model_id": "gpt-5.4",
52
- "strengths": ["good speed/cost ratio", "1M context", "strong instruction following"],
53
- "weaknesses": ["less capable reasoning than gpt-5.5"],
54
- "best_for": "implementation and execution tasks via Codex",
55
- "codex_compatible": true
56
- },
57
- "gpt-4.1-mini": {
58
- "model_id": "gpt-4.1-mini",
59
- "strengths": ["extremely cheap", "good instruction following", "1M context"],
60
- "weaknesses": ["32k max output", "no reasoning chain"],
61
- "best_for": "cheap search/lookup tasks via Codex",
62
- "codex_compatible": true
63
- }
64
- },
65
-
66
87
  "tiers": {
67
88
  "search": {
68
89
  "description": "Read-only lookups, exploration, grep, find, file reads",
@@ -100,46 +121,6 @@
100
121
  "model_routing_note": "Claude Code model: param may be silently ignored (issue #43869). Set CLAUDE_CODE_SUBAGENT_MODEL env var as fallback if subagents all run on parent model."
101
122
  },
102
123
 
103
- "codex_skills": {
104
- "review": {
105
- "description": "Independent GPT code review via ChatGPT subscription",
106
- "command": "node .claude/hooks/dual-brain-review.mjs",
107
- "requires": "codex_auth"
108
- },
109
- "quality_gate": {
110
- "description": "Config-driven quality gate with review artifacts",
111
- "command": "node .claude/hooks/quality-gate.mjs"
112
- },
113
- "cost_report": {
114
- "description": "Session activity and cost estimate by model tier",
115
- "command": "node .claude/hooks/cost-report.mjs"
116
- },
117
- "test": {
118
- "description": "Self-test harness for all orchestrator hooks",
119
- "command": "node .claude/hooks/test-orchestrator.mjs"
120
- },
121
- "health_check": {
122
- "description": "Verify all hooks are wired and system is healthy",
123
- "command": "node .claude/hooks/health-check.mjs"
124
- },
125
- "session_report": {
126
- "description": "Comprehensive session-end summary: activity by tier, routing compliance, quality gate status, data quality, drift warnings",
127
- "command": "node .claude/hooks/session-report.mjs"
128
- },
129
- "setup_wizard": {
130
- "description": "Interactive setup wizard — configures Claude Code hooks, dual-provider routing (Claude + OpenAI/Codex), subscription tiers, and cost-tracking settings",
131
- "command": "node .claude/hooks/setup-wizard.mjs"
132
- },
133
- "gpt_dispatch": {
134
- "description": "Dispatch execution tasks to GPT via Codex CLI",
135
- "command": "node .claude/hooks/gpt-work-dispatcher.mjs"
136
- },
137
- "budget_balance": {
138
- "description": "Show provider balance status and routing recommendations",
139
- "command": "node .claude/hooks/budget-balancer.mjs"
140
- }
141
- },
142
-
143
124
  "pricing_verified": "2026-05-13",
144
125
 
145
126
  "budgets": {
@@ -153,11 +134,7 @@
153
134
  "routing": {
154
135
  "strategy": "hybrid-specialized-balanced",
155
136
  "codex_startup_penalty_ms": 20000,
156
- "min_codex_task_ms": 180000,
157
- "dual_thinking_permission_threshold": {
158
- "estimated_tokens": 50000,
159
- "agent_count": 2
160
- }
137
+ "min_codex_task_ms": 180000
161
138
  },
162
139
 
163
140
  "providers": {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "dual-brain",
3
- "version": "4.2.0",
4
- "description": "Dual-provider orchestration for Claude Code — tiered routing, budget balancing, and GPT dual-brain review across Claude + OpenAI subscriptions",
3
+ "version": "4.5.0",
4
+ "description": "Data-Tools Dual-Brain — dual-provider orchestration extension for data-tools/replit-tools. Tiered routing, budget balancing, and GPT dual-brain review across Claude + OpenAI subscriptions",
5
5
  "type": "module",
6
6
  "bin": {
7
7
  "dual-brain": "./install.mjs"
@@ -25,6 +25,11 @@
25
25
  "scripts": {
26
26
  "test": "node hooks/test-orchestrator.mjs"
27
27
  },
28
+ "dataTools": {
29
+ "extension": true,
30
+ "requires": "replit-tools",
31
+ "credit": "Built on data-tools by Steve Moraco"
32
+ },
28
33
  "engines": {
29
34
  "node": ">=20.0.0"
30
35
  },