nexus-agents 2.6.0 → 2.26.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/README.md +70 -64
- package/dist/chunk-2FKBWTRT.js +8671 -0
- package/dist/chunk-2FKBWTRT.js.map +1 -0
- package/dist/{chunk-U6PLZTD6.js → chunk-6E3NMMEY.js} +10 -71
- package/dist/chunk-6E3NMMEY.js.map +1 -0
- package/dist/chunk-6G4LDOMR.js +776 -0
- package/dist/chunk-6G4LDOMR.js.map +1 -0
- package/dist/chunk-E2IN5SXP.js +2104 -0
- package/dist/chunk-E2IN5SXP.js.map +1 -0
- package/dist/{chunk-7YMTGMHI.js → chunk-EBU4ZD7I.js} +62145 -40107
- package/dist/chunk-EBU4ZD7I.js.map +1 -0
- package/dist/chunk-JWIQNGJQ.js +62 -0
- package/dist/chunk-JWIQNGJQ.js.map +1 -0
- package/dist/chunk-KPVWS427.js +111 -0
- package/dist/chunk-KPVWS427.js.map +1 -0
- package/dist/chunk-NO5JYJ4X.js +365 -0
- package/dist/chunk-NO5JYJ4X.js.map +1 -0
- package/dist/chunk-SM37N7GX.js +2847 -0
- package/dist/chunk-SM37N7GX.js.map +1 -0
- package/dist/chunk-UP2VWCW5.js +38 -0
- package/dist/chunk-X2M7OF27.js +72 -0
- package/dist/chunk-X2M7OF27.js.map +1 -0
- package/dist/cli.d.ts +10 -3
- package/dist/cli.js +13389 -13316
- package/dist/cli.js.map +1 -1
- package/dist/dist-Y5F6UM2N.js +45490 -0
- package/dist/dist-Y5F6UM2N.js.map +1 -0
- package/dist/doctor-deep-FJA7WOFV.js +13 -0
- package/dist/index.d.ts +14359 -5345
- package/dist/index.js +1297 -1108
- package/dist/index.js.map +1 -1
- package/dist/model-capabilities-types-CSWO27YN.d.ts +18 -0
- package/dist/{pr-reviewer-helpers-EVFQKF5W.js → pr-reviewer-helpers-XCY7HOPE.js} +4 -3
- package/dist/pr-reviewer-helpers-XCY7HOPE.js.map +1 -0
- package/dist/setup-command-HB3UVJKC.js +26 -0
- package/dist/setup-command-HB3UVJKC.js.map +1 -0
- package/dist/setup-config-PIUIJKF6.js +9 -0
- package/dist/setup-config-PIUIJKF6.js.map +1 -0
- package/dist/workflows/templates/docs-audit.yaml +108 -0
- package/dist/workflows/templates/infrastructure-audit.yaml +123 -0
- package/dist/workflows/templates/research-review.yaml +84 -0
- package/dist/workflows/templates/standards-review.yaml +131 -0
- package/package.json +42 -13
- package/scripts/postinstall.js +12 -0
- package/src/workflows/templates/docs-audit.yaml +108 -0
- package/src/workflows/templates/infrastructure-audit.yaml +123 -0
- package/src/workflows/templates/research-review.yaml +84 -0
- package/src/workflows/templates/standards-review.yaml +131 -0
- package/dist/chunk-7YMTGMHI.js.map +0 -1
- package/dist/chunk-DGUM43GV.js +0 -11
- package/dist/chunk-U6PLZTD6.js.map +0 -1
- /package/dist/{chunk-DGUM43GV.js.map → chunk-UP2VWCW5.js.map} +0 -0
- /package/dist/{pr-reviewer-helpers-EVFQKF5W.js.map → doctor-deep-FJA7WOFV.js.map} +0 -0
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
[](https://opensource.org/licenses/MIT)
|
|
6
6
|
[](https://nodejs.org)
|
|
7
|
-
[](https://www.typescriptlang.org)
|
|
8
8
|
[](https://modelcontextprotocol.io)
|
|
9
9
|
[](https://www.npmjs.com/package/nexus-agents)
|
|
10
10
|
|
|
@@ -12,14 +12,17 @@
|
|
|
12
12
|
|
|
13
13
|
## Overview
|
|
14
14
|
|
|
15
|
-
Nexus Agents is an MCP (Model Context Protocol) server that coordinates multiple AI experts to handle software development tasks. It provides a unified interface for different AI models and enables multi-agent collaboration through
|
|
15
|
+
Nexus Agents is an MCP (Model Context Protocol) server that coordinates multiple AI experts to handle software development tasks. It provides a unified interface for different AI models and enables multi-agent collaboration through an Orchestrator and 10 specialized experts.
|
|
16
16
|
|
|
17
17
|
### Key Capabilities
|
|
18
18
|
|
|
19
|
-
- **Multi-Agent Orchestration** -
|
|
20
|
-
- **Model Diversity** - Support for Claude,
|
|
21
|
-
- **Workflow Automation** - YAML-based templates for repeatable processes
|
|
22
|
-
- **
|
|
19
|
+
- **Multi-Agent Orchestration** - Orchestrator coordinates 10 specialized experts for complex tasks
|
|
20
|
+
- **Model Diversity** - Support for Claude, Gemini, Codex, and OpenCode (with custom OpenAI-compatible endpoints)
|
|
21
|
+
- **Workflow Automation** - 11 YAML-based templates for repeatable processes
|
|
22
|
+
- **Consensus Voting** - Multi-agent voting with higher-order Bayesian aggregation
|
|
23
|
+
- **Memory System** - 5 typed backends (session, belief, agentic, adaptive, typed)
|
|
24
|
+
- **24 MCP Tools** - Full integration with Claude Code, Claude Desktop, and other MCP clients
|
|
25
|
+
- **Security-First Design** - Defense in depth with input validation and untrusted input hardening
|
|
23
26
|
|
|
24
27
|
---
|
|
25
28
|
|
|
@@ -50,29 +53,23 @@ npx nexus-agents
|
|
|
50
53
|
### Programmatic Usage
|
|
51
54
|
|
|
52
55
|
```typescript
|
|
53
|
-
import {
|
|
54
|
-
createServer,
|
|
55
|
-
startStdioServer,
|
|
56
|
-
TechLead,
|
|
57
|
-
createClaudeAdapter,
|
|
58
|
-
ExpertFactory,
|
|
59
|
-
} from 'nexus-agents';
|
|
56
|
+
import { startStdioServer, ExpertFactory, createClaudeAdapter } from 'nexus-agents';
|
|
60
57
|
|
|
61
|
-
// Start MCP server
|
|
58
|
+
// Start MCP server (recommended — used by Claude Code, Claude Desktop, etc.)
|
|
62
59
|
const result = await startStdioServer({
|
|
63
60
|
name: 'my-server',
|
|
64
61
|
version: '1.0.0',
|
|
65
62
|
});
|
|
66
63
|
|
|
67
|
-
// Or use programmatically
|
|
64
|
+
// Or use programmatically with model adapters
|
|
68
65
|
const adapter = createClaudeAdapter({
|
|
69
66
|
model: 'claude-sonnet-4-20250514',
|
|
70
67
|
});
|
|
71
|
-
const techLead = new TechLead({ adapter });
|
|
72
68
|
|
|
73
69
|
// Create experts dynamically
|
|
74
70
|
const factory = new ExpertFactory(adapter);
|
|
75
71
|
const codeExpert = factory.create({ type: 'code' });
|
|
72
|
+
const securityExpert = factory.create({ type: 'security' });
|
|
76
73
|
```
|
|
77
74
|
|
|
78
75
|
### Claude Desktop Integration
|
|
@@ -99,34 +96,35 @@ Add to your Claude Desktop configuration (`~/Library/Application Support/Claude/
|
|
|
99
96
|
|
|
100
97
|
### Multi-Agent Orchestration
|
|
101
98
|
|
|
102
|
-
The
|
|
99
|
+
The Orchestrator agent analyzes incoming tasks and delegates to specialized experts:
|
|
103
100
|
|
|
104
|
-
| Expert
|
|
105
|
-
|
|
|
106
|
-
| **Code Expert**
|
|
107
|
-
| **Architecture Expert**
|
|
108
|
-
| **Security Expert**
|
|
109
|
-
| **Documentation Expert**
|
|
110
|
-
| **Testing Expert**
|
|
101
|
+
| Expert | Specialization |
|
|
102
|
+
| ------------------------- | ------------------------------------------------------ |
|
|
103
|
+
| **Code Expert** | Implementation, debugging, optimization, refactoring |
|
|
104
|
+
| **Architecture Expert** | System design, patterns, trade-offs, scalability |
|
|
105
|
+
| **Security Expert** | Vulnerability analysis, secure coding, threat modeling |
|
|
106
|
+
| **Documentation Expert** | Technical writing, API docs, code comments |
|
|
107
|
+
| **Testing Expert** | Test strategies, coverage analysis, test generation |
|
|
108
|
+
| **DevOps Expert** | CI/CD, deployment, containerization |
|
|
109
|
+
| **Research Expert** | Literature review, state-of-the-art analysis |
|
|
110
|
+
| **PM Expert** | Product management, requirements, priorities |
|
|
111
|
+
| **UX Expert** | User experience, usability, accessibility |
|
|
112
|
+
| **Infrastructure Expert** | Server management, bare metal, networking |
|
|
111
113
|
|
|
112
|
-
Experts can collaborate on complex tasks. The
|
|
114
|
+
Experts can collaborate on complex tasks. The Orchestrator combines their outputs into a single response.
|
|
113
115
|
|
|
114
116
|
### Model Adapters
|
|
115
117
|
|
|
116
118
|
Use different AI models through unified interfaces:
|
|
117
119
|
|
|
118
|
-
| Provider
|
|
119
|
-
|
|
|
120
|
-
| **Claude**
|
|
121
|
-
| **
|
|
122
|
-
| **
|
|
123
|
-
| **
|
|
120
|
+
| Provider | CLI | Best For |
|
|
121
|
+
| ------------ | -------- | ---------------------------------- |
|
|
122
|
+
| **Claude** | claude | Complex reasoning, analysis |
|
|
123
|
+
| **Gemini** | gemini | Long context, multimodal |
|
|
124
|
+
| **Codex** | codex | Code generation, reasoning |
|
|
125
|
+
| **OpenCode** | opencode | Custom OpenAI-compatible endpoints |
|
|
124
126
|
|
|
125
|
-
Model selection uses
|
|
126
|
-
|
|
127
|
-
```
|
|
128
|
-
Fast (quick queries) -> Balanced (most tasks) -> Powerful (complex reasoning)
|
|
129
|
-
```
|
|
127
|
+
Model selection uses composite routing: Budget → Zero-cost → Preference → TOPSIS → LinUCB bandit.
|
|
130
128
|
|
|
131
129
|
### Workflow Engine
|
|
132
130
|
|
|
@@ -156,13 +154,23 @@ steps:
|
|
|
156
154
|
|
|
157
155
|
### MCP Tools
|
|
158
156
|
|
|
159
|
-
The server exposes
|
|
157
|
+
The server exposes 24 MCP tools for integration. Key tools include:
|
|
158
|
+
|
|
159
|
+
| Tool | Description |
|
|
160
|
+
| -------------------- | ---------------------------------------------- |
|
|
161
|
+
| `orchestrate` | Analyze task and coordinate expert execution |
|
|
162
|
+
| `create_expert` | Create a specialized expert agent |
|
|
163
|
+
| `execute_expert` | Execute a task using a created expert |
|
|
164
|
+
| `run_workflow` | Execute a workflow template |
|
|
165
|
+
| `delegate_to_model` | Route task to optimal model |
|
|
166
|
+
| `consensus_vote` | Multi-model consensus voting on proposals |
|
|
167
|
+
| `research_discover` | Discover papers/repos from external sources |
|
|
168
|
+
| `memory_query` | Query across all memory backends |
|
|
169
|
+
| `issue_triage` | Triage GitHub issues with trust classification |
|
|
170
|
+
| `repo_analyze` | Analyze GitHub repository structure |
|
|
171
|
+
| `repo_security_plan` | Generate security scanning pipeline for a repo |
|
|
160
172
|
|
|
161
|
-
|
|
162
|
-
| --------------- | -------------------------------------------- |
|
|
163
|
-
| `orchestrate` | Analyze task and coordinate expert execution |
|
|
164
|
-
| `create_expert` | Dynamically create a specialized expert |
|
|
165
|
-
| `run_workflow` | Execute a predefined workflow template |
|
|
173
|
+
See the root [README](../../README.md) for the complete list of all 24 tools.
|
|
166
174
|
|
|
167
175
|
---
|
|
168
176
|
|
|
@@ -174,14 +182,18 @@ nexus-agents/
|
|
|
174
182
|
│ └── nexus-agents/ # Main package
|
|
175
183
|
│ ├── src/
|
|
176
184
|
│ │ ├── core/ # Shared types, Result<T,E>, errors, logger
|
|
177
|
-
│ │ ├── config/ # Configuration
|
|
185
|
+
│ │ ├── config/ # Configuration, model registry, timeouts
|
|
178
186
|
│ │ ├── adapters/ # Model adapters (Claude, OpenAI, Gemini, Ollama)
|
|
179
|
-
│ │ ├── agents/ # Agent framework (
|
|
180
|
-
│ │ ├── workflows/ # Workflow engine and templates
|
|
181
|
-
│ │ ├── mcp/ # MCP server and tool definitions
|
|
182
|
-
│ │ ├── cli-adapters/ # External CLI integration (Claude/Gemini/Codex
|
|
183
|
-
│ │ ├── context/ # Token counting, work balancing
|
|
184
|
-
│ │ ├── consensus/ # Multi-agent voting
|
|
187
|
+
│ │ ├── agents/ # Agent framework (Orchestrator, Experts)
|
|
188
|
+
│ │ ├── workflows/ # Workflow engine and 11 YAML templates
|
|
189
|
+
│ │ ├── mcp/ # MCP server and 24 tool definitions
|
|
190
|
+
│ │ ├── cli-adapters/ # External CLI integration (Claude/Gemini/Codex/OpenCode)
|
|
191
|
+
│ │ ├── context/ # Token counting, work balancing
|
|
192
|
+
│ │ ├── consensus/ # Multi-agent voting with higher-order aggregation
|
|
193
|
+
│ │ ├── memory/ # 5 typed memory backends (session, belief, agentic, adaptive, typed)
|
|
194
|
+
│ │ ├── security/ # Input sanitization, trust classification, policy gate
|
|
195
|
+
│ │ ├── orchestration/# Graph workflows, AOrchestra, worker dispatch
|
|
196
|
+
│ │ ├── pipeline/ # Task contracts, plugin registry, event bus
|
|
185
197
|
│ │ ├── index.ts # Main exports
|
|
186
198
|
│ │ └── cli.ts # CLI entry point
|
|
187
199
|
│ └── package.json
|
|
@@ -191,18 +203,18 @@ nexus-agents/
|
|
|
191
203
|
└── pnpm-workspace.yaml
|
|
192
204
|
```
|
|
193
205
|
|
|
194
|
-
See [
|
|
206
|
+
See [docs/architecture/README.md](../../docs/architecture/README.md) for detailed module descriptions.
|
|
195
207
|
|
|
196
208
|
### Dependency Flow
|
|
197
209
|
|
|
198
210
|
```
|
|
199
|
-
MCP Server (external boundary)
|
|
211
|
+
MCP Server (external boundary, 24 tools)
|
|
200
212
|
↓
|
|
201
|
-
|
|
213
|
+
Orchestration Layer (workflows, graph execution, worker dispatch)
|
|
202
214
|
↓
|
|
203
|
-
Agents Layer (
|
|
215
|
+
Agents Layer (Orchestrator, 10 Expert types)
|
|
204
216
|
↓
|
|
205
|
-
Adapters Layer (Claude,
|
|
217
|
+
Adapters Layer (Claude, Gemini, Codex, OpenCode CLIs)
|
|
206
218
|
↓
|
|
207
219
|
Core Layer (Types, Result<T,E>, Errors, Logger)
|
|
208
220
|
```
|
|
@@ -278,15 +290,13 @@ const adapter = factory.create({ provider: 'anthropic', model: 'claude-sonnet-4-
|
|
|
278
290
|
### Agents
|
|
279
291
|
|
|
280
292
|
```typescript
|
|
281
|
-
import {
|
|
282
|
-
|
|
283
|
-
// Create TechLead for orchestration
|
|
284
|
-
const techLead = new TechLead({ adapter });
|
|
293
|
+
import { ExpertFactory } from 'nexus-agents';
|
|
285
294
|
|
|
286
|
-
// Create experts
|
|
295
|
+
// Create experts for specific domains
|
|
287
296
|
const factory = new ExpertFactory(adapter);
|
|
288
297
|
const codeExpert = factory.create({ type: 'code' });
|
|
289
298
|
const securityExpert = factory.create({ type: 'security' });
|
|
299
|
+
const infraExpert = factory.create({ type: 'infrastructure' });
|
|
290
300
|
```
|
|
291
301
|
|
|
292
302
|
### MCP Server
|
|
@@ -314,7 +324,7 @@ if (result.ok) {
|
|
|
314
324
|
|
|
315
325
|
- Node.js 22.x LTS
|
|
316
326
|
- pnpm 9.x
|
|
317
|
-
- TypeScript 5.
|
|
327
|
+
- TypeScript 5.9+
|
|
318
328
|
|
|
319
329
|
### Setup
|
|
320
330
|
|
|
@@ -395,10 +405,6 @@ MIT - See [LICENSE](../../LICENSE) for details.
|
|
|
395
405
|
|
|
396
406
|
---
|
|
397
407
|
|
|
398
|
-
## Acknowledgments
|
|
399
|
-
|
|
400
|
-
This project is a clean-room rewrite inspired by [claude-team-mcp](https://github.com/original/claude-team-mcp), with attribution preserved per MIT license.
|
|
401
|
-
|
|
402
408
|
---
|
|
403
409
|
|
|
404
410
|
Built with Claude Code
|