apex-agents 2.0.0 → 2.0.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.
- package/README.md +8 -8
- package/agents/cloud-native/system-design-architect.md +1 -1
- package/agents/engineering/typescript-pro.md +1 -1
- package/agents/product-launch/growth-marketer.md +1 -1
- package/agents/reverse-engineering/binary-decompiler.md +1 -1
- package/bin/mcp-server.js +7 -1
- package/instincts/karpathy-pitfalls.md +2 -2
- package/instincts/ponytail-minimal-code.md +2 -2
- package/package.json +3 -3
- package/scripts/audit-diff.js +1 -1
- package/scripts/caveman-mode.js +1 -1
- package/scripts/run-tests.js +24 -0
package/README.md
CHANGED
|
@@ -20,7 +20,7 @@ Generic AI coding prompts output generic, fragile code. They leave lazy `// TODO
|
|
|
20
20
|
* **True Babel AST Token Compactor**: Uses `@babel/parser` to strip function and method implementation bodies while preserving 100% syntactically valid TypeScript/JSX interfaces, exports, and signatures.
|
|
21
21
|
* **Persistent Cross-Session Memory (`apex-agents memory`)**: Records technical decisions, architecture contracts, and known bugs in `.agents/memory.json` and syncs them automatically into `CLAUDE.md` and `.cursorrules`.
|
|
22
22
|
* **38+ Specialized Domain Experts**: Need database tuning? Summon `@database-tuner`. Need system scale? Summon `@system-design-architect`. Need type safety? Summon `@typescript-pro`.
|
|
23
|
-
* **
|
|
23
|
+
* **13 Operational Instincts**: Grounded reflexes derived from real production failure modes: Zero-Slop Contract, Anti-Loop Circuit Breaker, LLM Hallucination Defense, Minimalist Code Discipline, and Anti-Cheat Test Protection.
|
|
24
24
|
* **Physical Pre-Commit Safety Hooks**: Intercepts credentials (AWS, Stripe, OpenAI) and scope drift at the `.git/hooks/pre-commit` level before files ever hit git.
|
|
25
25
|
* **Isolated Git Worktree Sandboxes**: Safely runs speculative AI features in `.worktrees/` without polluting your active working branch.
|
|
26
26
|
* **Native Model Context Protocol (MCP)**: Built-in JSON-RPC stdio MCP server for Claude Desktop, Cursor, and Antigravity.
|
|
@@ -173,7 +173,7 @@ Connect all 38+ specialists and 12 instincts directly to Claude Desktop, Cursor,
|
|
|
173
173
|
|
|
174
174
|
### 1. 🛠️ Core Engineering
|
|
175
175
|
- **Frontend Architect** (`@frontend-architect`): React 19, Next.js, state machines, accessible UI, 60fps GPU compositing.
|
|
176
|
-
- **TypeScript Pro** (`@typescript-pro`):
|
|
176
|
+
- **TypeScript Pro** (`@typescript-pro`): Advanced type generics, discriminated unions, template literals, zero-any policy.
|
|
177
177
|
- **Backend Systems Lead** (`@backend-systems-lead`): Distributed architectures, idempotency, rate limiting.
|
|
178
178
|
- **Database Tuner** (`@database-tuner`): B-Tree indexing, `EXPLAIN ANALYZE`, connection pooling.
|
|
179
179
|
- **API & Microservices Lead** (`@api-microservices-lead`): Event pipelines, WebSockets, gRPC.
|
|
@@ -191,13 +191,13 @@ Connect all 38+ specialists and 12 instincts directly to Claude Desktop, Cursor,
|
|
|
191
191
|
- **FFmpeg Pipeline Master** (`@ffmpeg-pipeline-master`): Faststart web streaming, NVENC hardware acceleration.
|
|
192
192
|
|
|
193
193
|
### 4. 🌐 Cloud-Native & Distributed Scale
|
|
194
|
-
- **System Design Architect** (`@system-design-architect`):
|
|
194
|
+
- **System Design Architect** (`@system-design-architect`): High-scale distributed patterns, sharding, caching topologies.
|
|
195
195
|
- **Serverless Edge Lead** (`@serverless-edge-lead`): Cloudflare Workers, sub-50ms cold starts, streaming SSR.
|
|
196
196
|
- **GraphQL Federation** (`@graphql-federation-architect`): Apollo Federation v2, DataLoader N+1 batching.
|
|
197
197
|
- **Event Sourcing Specialist** (`@event-sourcing-specialist`): Append-only event stores, CQRS, Outbox pattern.
|
|
198
198
|
|
|
199
199
|
### 5. 🔍 Reverse Engineering & Protocols
|
|
200
|
-
- **Native Binary Decompiler** (`@binary-decompiler`):
|
|
200
|
+
- **Native Binary Decompiler** (`@binary-decompiler`): Native ELF/PE/WASM binary analysis and protocol reverse engineering.
|
|
201
201
|
- **Binary & AST Inspector** (`@binary-ast-inspector`): Source map reconstruction, AST normalization, JS unminifying.
|
|
202
202
|
- **Network Security Auditor** (`@network-security-auditor`): TLS 1.3 audit, WebSocket hijacking defense.
|
|
203
203
|
|
|
@@ -208,7 +208,7 @@ Connect all 38+ specialists and 12 instincts directly to Claude Desktop, Cursor,
|
|
|
208
208
|
- **Dependency Scanner** (`@dependency-vulnerability-scanner`): npm audit, CVE remediation, supply chain defense.
|
|
209
209
|
|
|
210
210
|
### 7. ⚡ Deep Performance
|
|
211
|
-
- **CWV & LCP Doctor** (`@cwv-lcp-doctor`):
|
|
211
|
+
- **CWV & LCP Doctor** (`@cwv-lcp-doctor`): Core Web Vitals sub-2.5s LCP, zero CLS, INP main-thread scheduling.
|
|
212
212
|
- **Memory Leak Hunter** (`@memory-leak-hunter`): V8 heap snapshot analysis, detached DOM nodes.
|
|
213
213
|
- **Bundle Dietician** (`@bundle-dietician`): Tree-shaking, dead ghost dependency elimination.
|
|
214
214
|
- **SQL Query Optimizer** (`@sql-query-optimizer`): Keyset pagination, composite index scans.
|
|
@@ -224,7 +224,7 @@ Connect all 38+ specialists and 12 instincts directly to Claude Desktop, Cursor,
|
|
|
224
224
|
- **Kubernetes Architect** (`@k8s-cloud-architect`): Helm, HPA autoscaling, zero-downtime rolling updates.
|
|
225
225
|
|
|
226
226
|
### 10. 🚀 Product Launch & DevRel
|
|
227
|
-
- **Growth Marketer** (`@growth-marketer`):
|
|
227
|
+
- **Growth Marketer** (`@growth-marketer`): Conversion Rate Optimization (CRO), technical copywriting, viral launch loops.
|
|
228
228
|
- **Prompt Architect** (`@prompt-architect`): 6-step hierarchical system prompts for Claude, GPT-4o, and Gemini.
|
|
229
229
|
- **PR Artisan** (`@pr-artisan`): Conventional Commits, git diff analysis.
|
|
230
230
|
- **README Copywriter** (`@readme-copywriter`): Viral open-source READMEs, conversion hooks.
|
|
@@ -241,8 +241,8 @@ Connect all 38+ specialists and 12 instincts directly to Claude Desktop, Cursor,
|
|
|
241
241
|
6. **Anti-Drift Scope Boundary**: Restricts file modifications strictly to target boundary.
|
|
242
242
|
7. **Rationalization Breaker**: Eliminates common LLM excuses ("Tests pass so it must work").
|
|
243
243
|
8. **Systematic Investigation**: 4-phase iron law: Reproduce -> Isolate -> Hypothesize -> Verify.
|
|
244
|
-
9. **
|
|
245
|
-
10. **
|
|
244
|
+
9. **LLM Hallucination Defense**: Strict API verification and premature abstraction guards.
|
|
245
|
+
10. **Minimalist Code Discipline**: "The best code is the code you never wrote." Deletes before adding.
|
|
246
246
|
11. **Caveman Token Discipline**: 65% token drop telegraphic brevity mode for long autonomous loops.
|
|
247
247
|
12. **Editorial Diagram Rules**: Clean self-contained HTML/SVG cards without messy Mermaid spaghetti.
|
|
248
248
|
13. **Anti-Cheat Test Tampering**: Strictly forbids skipping tests (`it.skip`, `xit`) or commenting out assertions to fake green builds. Fix code, never weaken tests.
|
|
@@ -9,7 +9,7 @@ triggers: ["@system-design-architect", "system design", "distributed systems", "
|
|
|
9
9
|
# Agent: Distributed Systems Architect
|
|
10
10
|
|
|
11
11
|
## Identity & Role
|
|
12
|
-
You are the **Principal Distributed Systems & Scale Architect** of the Apex Agents Engineering Agency, grounded in
|
|
12
|
+
You are the **Principal Distributed Systems & Scale Architect** of the Apex Agents Engineering Agency, grounded in high-scale distributed systems and enterprise SRE paradigms. You design resilient, high-throughput, low-latency distributed architectures handling 10k to 10M+ concurrent users.
|
|
13
13
|
|
|
14
14
|
## Strict Negative Constraints
|
|
15
15
|
- NEVER propose monolithic database architectures for high-write workloads without a sharding, replication, or partitioning strategy.
|
|
@@ -9,7 +9,7 @@ triggers: ["@typescript-pro", "typescript", "type safety", "generics", "discrimi
|
|
|
9
9
|
# Agent: TypeScript Pro Architect
|
|
10
10
|
|
|
11
11
|
## Identity & Role
|
|
12
|
-
You are the **Principal TypeScript & Type Systems Architect** of the Apex Agents Engineering Agency
|
|
12
|
+
You are the **Principal TypeScript & Type Systems Architect** of the Apex Agents Engineering Agency. You transform fragile, loose TypeScript codebases into ironclad, self-documenting, type-safe enterprise systems with zero runtime performance penalties.
|
|
13
13
|
|
|
14
14
|
## Strict Negative Constraints
|
|
15
15
|
- NEVER allow `any` or untyped `Object` in production signatures; mandate strict `unknown` with runtime type narrowing or Zod schemas.
|
|
@@ -9,7 +9,7 @@ triggers: ["@growth-marketer", "cro", "marketing", "copywriting", "launch strate
|
|
|
9
9
|
# Agent: Growth Marketer & Copywriter
|
|
10
10
|
|
|
11
11
|
## Identity & Role
|
|
12
|
-
You are the **Principal Growth Engineer & Technical Copywriter** of the Apex Agents Engineering Agency. You bridge deep technical engineering with high-velocity developer adoption
|
|
12
|
+
You are the **Principal Growth Engineer & Technical Copywriter** of the Apex Agents Engineering Agency. You bridge deep technical engineering with high-velocity developer adoption across top developer-first ecosystems. You turn developer tools into viral products.
|
|
13
13
|
|
|
14
14
|
## Strict Negative Constraints
|
|
15
15
|
- NEVER write fluffy, corporate jargon; always lead with tangible, concrete developer pain and the immediate code-level remedy.
|
|
@@ -9,7 +9,7 @@ triggers: ["@binary-decompiler", "decompile binary", "disassemble", "ghidra", "r
|
|
|
9
9
|
# Agent: Native Binary Decompiler
|
|
10
10
|
|
|
11
11
|
## Identity & Role
|
|
12
|
-
You are the **Principal Native Binary & Protocol Decompiler** of the Apex Agents Engineering Agency.
|
|
12
|
+
You are the **Principal Native Binary & Protocol Decompiler** of the Apex Agents Engineering Agency. You reverse engineer native binaries (ELF, PE, Mach-O, WebAssembly, Android APKs), network wire protocols, and proprietary firmware using verifiable assembly, dynamic call traces, and reproducible evidence.
|
|
13
13
|
|
|
14
14
|
## Strict Negative Constraints
|
|
15
15
|
- NEVER speculate or assert binary behavior without citing concrete disassembler evidence (assembly offsets, decompiled C pseudocode, or dynamic API trace logs).
|
package/bin/mcp-server.js
CHANGED
|
@@ -8,6 +8,12 @@ const __filename = fileURLToPath(import.meta.url);
|
|
|
8
8
|
const __dirname = path.dirname(__filename);
|
|
9
9
|
const ROOT_DIR = path.resolve(__dirname, '..');
|
|
10
10
|
|
|
11
|
+
let pkgVersion = '2.0.0';
|
|
12
|
+
try {
|
|
13
|
+
const pkg = JSON.parse(fs.readFileSync(path.join(ROOT_DIR, 'package.json'), 'utf-8'));
|
|
14
|
+
if (pkg.version) pkgVersion = pkg.version;
|
|
15
|
+
} catch {}
|
|
16
|
+
|
|
11
17
|
// Helper to read agent files
|
|
12
18
|
function getAgentContent(agentId) {
|
|
13
19
|
if (!agentId) return null;
|
|
@@ -140,7 +146,7 @@ function handleMessage(msg) {
|
|
|
140
146
|
},
|
|
141
147
|
serverInfo: {
|
|
142
148
|
name: 'apex-agents-mcp',
|
|
143
|
-
version:
|
|
149
|
+
version: pkgVersion
|
|
144
150
|
}
|
|
145
151
|
});
|
|
146
152
|
return;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
#
|
|
1
|
+
# LLM Hallucination & Coding Pitfalls Antidotes
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Foundational engineering rules defending against common Large Language Model failure modes when writing code in autonomous harnesses.
|
|
4
4
|
|
|
5
5
|
## The 5 Fatal LLM Failure Modes:
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Minimalist Code Engineering Discipline
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Core engineering principle: "Make your AI agent operate with senior developer discipline. The best code is the code you never wrote."
|
|
4
4
|
|
|
5
5
|
## The Iron Laws of Minimal Code:
|
|
6
6
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "apex-agents",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"description": "The Sovereign AI Engineering Agency: Babel AST Context Compactor, Codebase Dependency Graph & Cycle Detection, Anti-Test-Tampering Security, Session Handoff Engine, Persistent Cross-Session Memory, Physical Worktree Sandboxes, Pre-Commit Hardened Gates, and Native MCP Server for Claude Code, Cursor, Codex, Windsurf, Copilot, and Antigravity",
|
|
5
5
|
"main": "bin/apex.js",
|
|
6
6
|
"bin": {
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
},
|
|
10
10
|
"type": "module",
|
|
11
11
|
"scripts": {
|
|
12
|
-
"test": "node ./scripts/validate-agents.js && node
|
|
13
|
-
"test:unit": "node
|
|
12
|
+
"test": "node ./scripts/validate-agents.js && node ./scripts/run-tests.js",
|
|
13
|
+
"test:unit": "node ./scripts/run-tests.js",
|
|
14
14
|
"test:agents": "node ./scripts/validate-agents.js",
|
|
15
15
|
"eval": "node ./bin/apex.js eval",
|
|
16
16
|
"benchmark": "node ./bin/apex.js eval",
|
package/scripts/audit-diff.js
CHANGED
|
@@ -165,7 +165,7 @@ export function auditDiff(diffText) {
|
|
|
165
165
|
severity: 'WARNING',
|
|
166
166
|
category: 'TEST_DISCIPLINE',
|
|
167
167
|
file: 'Pull Request / Diff',
|
|
168
|
-
description: `Modified ${codeFiles.length} source code file(s) with 0 accompanying test updates. Violation of
|
|
168
|
+
description: `Modified ${codeFiles.length} source code file(s) with 0 accompanying test updates. Violation of Zero-Slop TDD Discipline!`,
|
|
169
169
|
snippet: codeFiles.slice(0, 3).join(', ') + (codeFiles.length > 3 ? '...' : '')
|
|
170
170
|
});
|
|
171
171
|
}
|
package/scripts/caveman-mode.js
CHANGED
|
@@ -49,7 +49,7 @@ export function handleCavemanCommand(action = 'show', targetDir = process.cwd())
|
|
|
49
49
|
console.log(`\n${c.yellow}Caveman mode disabled. Normal conversational length restored.${c.reset}\n`);
|
|
50
50
|
} else {
|
|
51
51
|
console.log(`\n${c.cyan}${c.bold}🪨 APEX AGENTS: CAVEMAN 65% TOKEN REDUCER${c.reset}`);
|
|
52
|
-
console.log(`${c.gray}
|
|
52
|
+
console.log(`${c.gray}Telegraphic brevity protocol: Extreme density for maximum token thrift.${c.reset}\n`);
|
|
53
53
|
console.log(`${c.bold}Directive snippet:${c.reset}`);
|
|
54
54
|
console.log(c.yellow + CAVEMAN_PROMPT.trim() + c.reset + '\n');
|
|
55
55
|
console.log(`Usage:`);
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
import fs from 'fs';
|
|
4
|
+
import path from 'path';
|
|
5
|
+
import { spawn } from 'child_process';
|
|
6
|
+
import { fileURLToPath } from 'url';
|
|
7
|
+
|
|
8
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
9
|
+
const __dirname = path.dirname(__filename);
|
|
10
|
+
const ROOT_DIR = path.resolve(__dirname, '..');
|
|
11
|
+
const testsDir = path.join(ROOT_DIR, 'tests');
|
|
12
|
+
|
|
13
|
+
const testFiles = fs.readdirSync(testsDir)
|
|
14
|
+
.filter((f) => f.endsWith('.test.js'))
|
|
15
|
+
.map((f) => path.join(testsDir, f));
|
|
16
|
+
|
|
17
|
+
const child = spawn(process.execPath, ['--test', ...testFiles], {
|
|
18
|
+
stdio: 'inherit',
|
|
19
|
+
cwd: ROOT_DIR
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
child.on('exit', (code) => {
|
|
23
|
+
process.exit(code || 0);
|
|
24
|
+
});
|