zenox 1.0.2 → 1.0.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Ayush
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,192 +1,145 @@
1
- # zenox
1
+ <p align="center">
2
+ <img src="https://res.cloudinary.com/dyetf2h9n/image/upload/v1768073623/ZENOX_e4boob.png" alt="Zenox" width="600" />
3
+ </p>
2
4
 
3
- OpenCode plugin for intelligent agent orchestration with specialized subagents and parallel background tasks.
5
+ <h1 align="center">ZENOX</h1>
4
6
 
5
- ## Features
7
+ <p align="center">
8
+ <strong>Intelligent agent orchestration for OpenCode</strong>
9
+ </p>
6
10
 
7
- - **4 Specialized Subagents**: Explorer, Librarian, Oracle, UI-Planner
8
- - **Background Tasks**: Parallel agent execution for comprehensive research
9
- - **Auto-Update**: Automatic update checking with toast notifications
10
- - **Auto-Loaded MCP Servers**: exa, grep_app, sequential-thinking
11
- - **Smart Orchestration**: Automatically teaches Build/Plan agents how to delegate
12
- - **CLI Installer**: Easy setup with model configuration via `bunx zenox install`
11
+ <p align="center">
12
+ <a href="https://www.npmjs.com/package/zenox"><img src="https://img.shields.io/npm/v/zenox.svg?style=flat-square" alt="npm version" /></a>
13
+ <!-- <a href="https://www.npmjs.com/package/zenox"><img src="https://img.shields.io/npm/dm/zenox.svg?style=flat-square" alt="npm downloads" /></a> -->
14
+ <a href="https://github.com/CYBERBOYAYUSH/zenox/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square" alt="license" /></a>
15
+ </p>
13
16
 
14
- ## Installation
17
+ ---
15
18
 
16
- ### Quick Install (Recommended)
19
+ Zenox supercharges [OpenCode](https://opencode.ai) with specialized AI agents that handle different aspects of development. Instead of one agent doing everything, you get a team of experts — each optimized for their domain.
17
20
 
18
- ```bash
19
- bunx zenox install
20
- ```
21
+ ## Why Zenox?
21
22
 
22
- This will:
23
- - Create `opencode.json` if it doesn't exist
24
- - Add zenox to your plugins array
25
- - Let you configure custom models for each agent (optional)
26
- - Detect models from your existing opencode.json config
23
+ Most AI coding assistants use a single model for everything. Zenox takes a different approach:
27
24
 
28
- ### Manual Install
25
+ - **Explorer** finds code fast — optimized for codebase search with a lightweight model
26
+ - **Librarian** digs deep into docs — researches libraries, finds GitHub examples, citations included
27
+ - **Oracle** thinks strategically — architecture decisions, debugging, technical trade-offs
28
+ - **UI Planner** designs beautifully — CSS, animations, interfaces that don't look AI-generated
29
29
 
30
- Add to your `opencode.json`:
30
+ The main agent automatically delegates to specialists when needed. You don't have to manage them.
31
31
 
32
- ```json
33
- {
34
- "plugins": ["zenox"]
35
- }
36
- ```
37
-
38
- > **Note**: Don't pin the version (e.g., `zenox@1.0.0`) if you want automatic updates.
39
-
40
- Restart OpenCode and the plugin is ready to use.
41
-
42
- ## CLI Commands
32
+ ## Quick Start
43
33
 
44
34
  ```bash
45
- # Interactive install with model configuration
46
35
  bunx zenox install
47
-
48
- # Non-interactive mode (uses default models)
49
- bunx zenox install --no-tui
50
-
51
- # Reconfigure agent models later
52
- bunx zenox config
53
- bunx zenox models # alias
54
-
55
- # Specify config path
56
- bunx zenox install --config ./path/to/opencode.json
57
-
58
- # Help
59
- bunx zenox --help
60
36
  ```
61
37
 
62
- ### Model Configuration
63
-
64
- During installation, you can choose to customize models for each agent:
65
-
66
- 1. **Use recommended defaults** - No config file needed
67
- 2. **Customize models** - Pick from:
68
- - Recommended default model
69
- - Models defined in your opencode.json
70
- - Enter a custom model name (see [models.dev](https://models.dev))
71
-
72
- Custom models are saved to `~/.config/opencode/zenox.json`.
38
+ That's it. Restart OpenCode and the agents are ready.
73
39
 
74
40
  ## Agents
75
41
 
76
- ### @explorer
77
- Fast codebase search specialist.
78
- - "Where is X implemented?"
79
- - "Find all files containing Y"
80
- - Pattern matching and locating implementations
81
-
82
- **Default Model**: `anthropic/claude-haiku-4-5`
42
+ | Agent | What it does | Default Model |
43
+ |-------|-------------|---------------|
44
+ | **Explorer** | Codebase search, file discovery, pattern matching | `claude-haiku-4-5` |
45
+ | **Librarian** | Library research, docs lookup, GitHub examples | `claude-sonnet-4-5` |
46
+ | **Oracle** | Architecture decisions, debugging strategy, code review | `gpt-5.2` |
47
+ | **UI Planner** | Frontend design, CSS, animations, visual polish | `gemini-3-pro-high` |
83
48
 
84
- ### @librarian
85
- Open-source research agent.
86
- - "How does library X work?"
87
- - "Show me implementation examples"
88
- - Finding official documentation
49
+ ### How delegation works
89
50
 
90
- **Default Model**: `anthropic/claude-sonnet-4-5`
51
+ You don't need to call agents directly. The main agent (Build/Plan) automatically delegates:
91
52
 
92
- ### @oracle
93
- Strategic technical advisor.
94
- - Architecture decisions
95
- - Code review and debugging strategy
96
- - Technical trade-offs analysis
53
+ ```
54
+ You: "Where's the authentication logic?"
55
+ Explorer searches the codebase
97
56
 
98
- **Default Model**: `openai/gpt-5.2`
57
+ You: "How does React Query handle caching?"
58
+ → Librarian fetches official docs + real examples
99
59
 
100
- ### @ui-planner
101
- Designer-turned-developer.
102
- - Beautiful UI/UX implementation
103
- - Frontend aesthetics and animations
104
- - Visual design without mockups
60
+ You: "Should I use Redux or Zustand here?"
61
+ → Oracle analyzes trade-offs for your codebase
105
62
 
106
- **Default Model**: `google/gemini-3-pro-high`
63
+ You: "Make this dashboard look better"
64
+ → UI Planner redesigns with proper aesthetics
65
+ ```
107
66
 
108
67
  ## Background Tasks
109
68
 
110
- For parallel research, use background tasks instead of sequential agents:
69
+ Need comprehensive research? Fire multiple agents in parallel:
111
70
 
112
71
  ```
113
- // Launch parallel research (all run simultaneously)
114
72
  background_task(agent="explorer", description="Find auth code", prompt="...")
115
- background_task(agent="explorer", description="Find db layer", prompt="...")
116
- background_task(agent="librarian", description="Best practices", prompt="...")
73
+ background_task(agent="librarian", description="JWT best practices", prompt="...")
117
74
 
118
- // Continue working while they run...
119
- // [NOTIFICATION: All background tasks complete!]
120
-
121
- // Retrieve results
122
- background_output(task_id="bg_abc123")
75
+ // Both run simultaneously while you keep working
76
+ // You're notified when all tasks complete
123
77
  ```
124
78
 
125
- ### When to Use
126
-
127
- | Scenario | Use Background Tasks |
128
- |----------|---------------------|
129
- | Comprehensive exploration | YES - fire 3-4 agents in parallel |
130
- | Codebase + external docs | YES - explore + librarian in parallel |
131
- | Result A needed before B | NO - use sequential Task |
132
-
133
- ## Auto-Update
134
-
135
- Zenox automatically checks for updates on startup:
136
-
137
- 1. **Startup Toast**: Shows current version when plugin loads
138
- 2. **Update Check**: Queries npm registry for latest version
139
- 3. **Cache Invalidation**: If update available, clears Bun cache
140
- 4. **Update Toast**: Notifies you to restart OpenCode
141
-
142
- To disable auto-updates, pin your version: `"zenox@1.0.0"`
143
-
144
79
  ## Configuration
145
80
 
146
- ### Via CLI (Recommended)
81
+ ### Custom Models
82
+
83
+ During installation, choose "Customize models" to pick your own. Or run later:
147
84
 
148
85
  ```bash
149
86
  bunx zenox config
150
87
  ```
151
88
 
152
- Interactive UI to select models for each agent.
89
+ Config saves to `~/.config/opencode/zenox.json`:
153
90
 
154
- ### Manual Configuration
91
+ ```json
92
+ {
93
+ "agents": {
94
+ "explorer": { "model": "anthropic/claude-sonnet-4.5" },
95
+ "oracle": { "model": "openai/gpt-5.2" }
96
+ }
97
+ }
98
+ ```
155
99
 
156
- Create `~/.config/opencode/zenox.json`:
100
+ ### Disable Agents or MCPs
157
101
 
158
102
  ```json
159
103
  {
160
- "agents": {
161
- "explorer": { "model": "anthropic/claude-sonnet-4" },
162
- "oracle": { "model": "openai/gpt-4o" }
163
- },
164
- "disabled_agents": [],
165
- "disabled_mcps": []
104
+ "disabled_agents": ["ui-planner"],
105
+ "disabled_mcps": ["grep_app"]
166
106
  }
167
107
  ```
168
108
 
169
- ## Auto-Loaded MCP Servers
109
+ ## Included MCP Servers
110
+
111
+ Zenox auto-loads these tools for agents to use:
170
112
 
171
- | MCP Server | Description |
172
- |------------|-------------|
173
- | `exa` | Web search, code context, URL crawling |
174
- | `grep_app` | GitHub code search across millions of repos |
175
- | `sequential-thinking` | Structured reasoning for complex problems |
113
+ | Server | Purpose |
114
+ |--------|---------|
115
+ | **exa** | Web search, docs lookup, URL crawling |
116
+ | **grep_app** | Search millions of GitHub repos instantly |
117
+ | **sequential-thinking** | Step-by-step reasoning for complex problems |
176
118
 
177
- ## Development
119
+ ## CLI
178
120
 
179
121
  ```bash
180
- bun install
181
- bun run build
182
- bun run typecheck
122
+ bunx zenox install # Add to opencode.json + configure models
123
+ bunx zenox install --no-tui # Non-interactive (uses defaults)
124
+ bunx zenox config # Reconfigure models anytime
125
+ bunx zenox --help # Show all commands
183
126
  ```
184
127
 
128
+ ## Auto-Update
129
+
130
+ Zenox checks for updates on startup. When a new version drops:
131
+
132
+ 1. You see a toast notification
133
+ 2. Bun cache is invalidated
134
+ 3. Restart to get the update
135
+
136
+ Pin a version to disable: `"zenox@1.0.3"` in your plugins array.
137
+
185
138
  ## Credits
186
139
 
187
- - **[OpenCode](https://opencode.ai)** — The CLI tool this plugin extends
188
- - **[oh-my-opencode](https://github.com/code-yeongyu/oh-my-opencode)** by YeonGyu Kim — Inspiration for orchestration patterns
140
+ - [OpenCode](https://opencode.ai) — The CLI this extends
141
+ - [oh-my-opencode](https://github.com/code-yeongyu/oh-my-opencode) — Inspiration for orchestration patterns
189
142
 
190
143
  ## License
191
144
 
192
- MIT
145
+ [MIT](LICENSE)
package/dist/index.js CHANGED
@@ -17460,9 +17460,9 @@ function createAutoUpdateHook(ctx, options = {}) {
17460
17460
  await invalidatePackageCache();
17461
17461
  await ctx.client.tui.showToast({
17462
17462
  body: {
17463
- title: `${PACKAGE_NAME} v${updateInfo.latestVersion}`,
17464
- message: `Update available. Restart OpenCode to apply.`,
17465
- variant: "info",
17463
+ title: `\uD83C\uDD95 ${PACKAGE_NAME} v${updateInfo.latestVersion}`,
17464
+ message: `Fresh update dropped! Restart to level up.`,
17465
+ variant: "success",
17466
17466
  duration: TOAST_DURATION
17467
17467
  }
17468
17468
  }).catch(() => {});
@@ -17473,9 +17473,9 @@ function createAutoUpdateHook(ctx, options = {}) {
17473
17473
  async function showVersionToast(ctx, version2) {
17474
17474
  await ctx.client.tui.showToast({
17475
17475
  body: {
17476
- title: `${PACKAGE_NAME} v${version2}`,
17477
- message: "Plugin loaded",
17478
- variant: "info",
17476
+ title: `\u26A1 ${PACKAGE_NAME} v${version2}`,
17477
+ message: "Agents assembled. Let's build!",
17478
+ variant: "success",
17479
17479
  duration: TOAST_DURATION
17480
17480
  }
17481
17481
  }).catch(() => {});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zenox",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "OpenCode plugin with specialized agents (explorer, librarian, oracle, ui-planner), background tasks for parallel execution, and smart orchestration",
5
5
  "author": "Ayush",
6
6
  "license": "MIT",