Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
76 commits
Select commit Hold shift + click to select a range
ac8ce21
fix: resolve plugin-sdk build error from extensions/shared imports
ApiliumDevTeam Mar 15, 2026
e6d7d56
fix: add missing fast-glob dependency for code-tools plugin
ApiliumDevTeam Mar 15, 2026
0633b19
chore: bump to v0.3.0 for remote terminal feature
ApiliumDevTeam Mar 15, 2026
ad90224
feat: add remote-exec plugin with 3 agent tools
ApiliumDevTeam Mar 15, 2026
f327b2b
feat: add /run command with confirmation UX for remote-exec plugin
ApiliumDevTeam Mar 15, 2026
046c18f
fix: remove unused imports flagged by eslint
ApiliumDevTeam Mar 15, 2026
b20621c
feat: add session management and output paging for /run command
ApiliumDevTeam Mar 15, 2026
75f7a1b
fix: remove double-formatting in paged output
ApiliumDevTeam Mar 15, 2026
943b3ba
feat: add command history and session env vars for /run command
ApiliumDevTeam Mar 15, 2026
e7f74ab
fix: remove unused imports flagged by eslint
ApiliumDevTeam Mar 15, 2026
6d53450
fix: harden env blocklist and add missing edge case tests
ApiliumDevTeam Mar 15, 2026
bae969e
feat: add command aliases, output masking, and session status for /run
ApiliumDevTeam Mar 15, 2026
1973fcd
fix: remove unused imports flagged by eslint
ApiliumDevTeam Mar 15, 2026
4299c55
feat: add command blocklist, session reset, and config viewer for /run
ApiliumDevTeam Mar 15, 2026
ec27a7c
fix: add ReDoS protection and remove redundant session lookup in /run…
ApiliumDevTeam Mar 15, 2026
645597f
fix: harden rate limits, env blocklist, audit chain, and background b…
ApiliumDevTeam Mar 15, 2026
82c9a96
fix: expand output masking, cap blocked patterns, escape display, ded…
ApiliumDevTeam Mar 15, 2026
3d62dd4
feat: add PIN authentication module and session state integration
ApiliumDevTeam Mar 15, 2026
9ff4977
test: add PIN auth unit tests and /run PIN integration tests
ApiliumDevTeam Mar 15, 2026
bb3c576
fix: improve background execution detection to catch mid-command &
ApiliumDevTeam Mar 15, 2026
a4a71c3
fix: bound private key regex, prune stale rate limits, per-sender rat…
ApiliumDevTeam Mar 15, 2026
4c8f4c5
fix: align with repair plan — PS4 blocklist, required audit param, ex…
ApiliumDevTeam Mar 15, 2026
a981648
fix: resolve 48 code review findings across all v0.3.0 remote termina…
ApiliumDevTeam Mar 15, 2026
4a3b294
test: add re-scan gap coverage and remove last non-null assertion
ApiliumDevTeam Mar 15, 2026
a2043ee
fix: correct type annotations in nodes, devices, and debug UI control…
ApiliumDevTeam Mar 15, 2026
d0b61e2
feat: add MCP dashboard with metrics collector and portal tab
ApiliumDevTeam Mar 16, 2026
6f62a2f
feat: wire MCP and Kaneru tabs into portal navigation and i18n
ApiliumDevTeam Mar 16, 2026
1291035
feat: surface Kaneru — CLI, MCP tools, UI dashboard, gateway method
ApiliumDevTeam Mar 16, 2026
f02ca34
fix: replace fake GitHub token in tests to pass push protection
ApiliumDevTeam Mar 16, 2026
2d9d448
fix: resolve Kaneru facade bugs and add M1 test coverage
ApiliumDevTeam Mar 16, 2026
909cc2d
feat: add venture layer foundation — ventures, chain, directives
ApiliumDevTeam Mar 16, 2026
70536d9
feat: add mission system with atomic claim and state machine
ApiliumDevTeam Mar 16, 2026
6eca27a
feat: add pulse scheduler with trigger coalescing
ApiliumDevTeam Mar 16, 2026
7c8cfbc
feat: add fuel controller with event-sourced cost tracking
ApiliumDevTeam Mar 16, 2026
98453d4
feat: surface venture layer — MCP tools, CLI, UI dashboard, gateway
ApiliumDevTeam Mar 16, 2026
a0259fc
feat: add agent learning profiles with EMA expertise tracking
ApiliumDevTeam Mar 16, 2026
28b0c2d
feat: add cross-agent knowledge transfer via namespace fusion
ApiliumDevTeam Mar 16, 2026
257136d
feat: add consensus decision history with queryable reasoning
ApiliumDevTeam Mar 16, 2026
9b7b308
feat: surface memory moat — learning, transfer, decisions in facade/C…
ApiliumDevTeam Mar 16, 2026
d94d036
feat: add Kaneru Dojo — pre-built venture templates
ApiliumDevTeam Mar 17, 2026
ed965ff
feat: add channel-native operations for Kaneru notifications
ApiliumDevTeam Mar 17, 2026
3e8b531
feat: add agent terminal service for remote command execution
ApiliumDevTeam Mar 17, 2026
179ff43
feat: add distributed ventures via P2P DAG synchronization
ApiliumDevTeam Mar 17, 2026
519fff7
feat: surface M4 — dojo, sync, terminal in facade, CLI, MCP tools
ApiliumDevTeam Mar 17, 2026
2d61b96
feat: blend Q-learning with expertise profiles for semantic routing
ApiliumDevTeam Mar 17, 2026
037b611
feat: wire mission lifecycle orchestration and channel notifications
ApiliumDevTeam Mar 17, 2026
ab45c66
feat: add P2P auto-discovery via Cortex mDNS and peer API
ApiliumDevTeam Mar 17, 2026
2f7ce8d
feat: add Dojo marketplace integration via Skill Hub
ApiliumDevTeam Mar 17, 2026
effc1c0
fix: use hub.apilium.com via existing HubClient instead of duplicate …
ApiliumDevTeam Mar 17, 2026
c25f742
feat: add mission comments for threaded discussion on work units
ApiliumDevTeam Mar 17, 2026
86cb844
feat: add project management within ventures
ApiliumDevTeam Mar 17, 2026
a18ec2b
feat: add cost analytics with time-series, provider breakdown, foreca…
ApiliumDevTeam Mar 17, 2026
5c33062
feat: surface comments, projects, cost analytics in facade and CLI
ApiliumDevTeam Mar 17, 2026
7dd4abd
feat: add visual chain tree, squad builder, and mission detail to portal
ApiliumDevTeam Mar 17, 2026
e2f72ae
feat: add 4-step setup wizard for guided venture creation
ApiliumDevTeam Mar 18, 2026
c73b745
fix: apply dark theme to setup wizard with hardcoded colors
ApiliumDevTeam Mar 18, 2026
76eeb92
fix: use Mayros theme variables in wizard (accent #ff5c5c, card #181b22)
ApiliumDevTeam Mar 18, 2026
dc91fc5
refactor: extract shared task classification and remove consensus dou…
ApiliumDevTeam Mar 18, 2026
b8fb2cb
feat: add venture-aware canvas with A2UI surfaces in web portal
ApiliumDevTeam Mar 18, 2026
ee83547
feat: add Kaneru Command Bar — Ctrl+K venture-aware Spotlight overlay
ApiliumDevTeam Mar 18, 2026
6bbe0ec
fix: change command bar shortcut from Ctrl+K to Ctrl+/ to avoid brows…
ApiliumDevTeam Mar 18, 2026
6ba607b
feat: add voice input button to chat compose area
ApiliumDevTeam Mar 18, 2026
21ca07d
fix: redesign voice button as circular mic inside textarea
ApiliumDevTeam Mar 18, 2026
28fec8e
fix: add missing isVoiceAvailable import that broke chat rendering
ApiliumDevTeam Mar 18, 2026
ad0161c
fix: redesign chat compose as unified rounded box with inline toolbar
ApiliumDevTeam Mar 18, 2026
6994a0f
security: sanitize triple values, validate hub templates, deduplicate…
ApiliumDevTeam Mar 18, 2026
bbcc17f
refactor: remove orphan code, wire lifecycle hooks, clean dead methods
ApiliumDevTeam Mar 18, 2026
23f183f
docs: update README with Kaneru venture system for v0.3.0
ApiliumDevTeam Mar 18, 2026
153e444
fix: populate squad builder agents from kaneru dashboard response
ApiliumDevTeam Mar 19, 2026
3e88a8e
chore: bump REQUIRED_CORTEX_VERSION to 0.6.3 for v0.3.0 release
ApiliumDevTeam Mar 19, 2026
d3fda8c
fix: resolve all 17 Windows path failures for cross-platform tests
ApiliumDevTeam Mar 19, 2026
1ddecca
fix: cortex installer handles updates correctly on all platforms
ApiliumDevTeam Mar 19, 2026
7d5c731
fix: postinstall checks version before skipping, handles Windows rename
ApiliumDevTeam Mar 19, 2026
3a0a4b4
feat: add Cortex cleanup to uninstall with explicit data loss warning
ApiliumDevTeam Mar 19, 2026
ddbfa5f
docs: add install/update/uninstall sections to README
ApiliumDevTeam Mar 19, 2026
fee30d7
feat: Kaneru v0.3.0 — AI venture management system (#39)
ApiliumDevTeam Mar 19, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
118 changes: 113 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<img src="https://img.shields.io/badge/node-%3E%3D22.12.0-339933?style=for-the-badge&logo=node.js&logoColor=white" alt="Node.js >= 22.12.0">
<img src="https://img.shields.io/badge/TypeScript-strict-3178C6?style=for-the-badge&logo=typescript&logoColor=white" alt="TypeScript">
<img src="https://img.shields.io/badge/extensions-55-8B5CF6?style=for-the-badge" alt="55 extensions">
<img src="https://img.shields.io/badge/platform-macOS%20%7C%20Linux-999?style=for-the-badge" alt="macOS | Linux">
<img src="https://img.shields.io/badge/platform-macOS%20%7C%20Linux%20%7C%20Windows-999?style=for-the-badge" alt="macOS | Linux | Windows">
<img src="https://img.shields.io/badge/MCP-Compatible-6366F1?style=for-the-badge&logo=data:image/svg%2bxml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0id2hpdGUiPjxwYXRoIGQ9Ik0xMiAyQzYuNDggMiAyIDYuNDggMiAxMnM0LjQ4IDEwIDEwIDEwIDEwLTQuNDggMTAtMTBTMTcuNTIgMiAxMiAyem0wIDE4Yy00LjQyIDAtOC0zLjU4LTgtOHMzLjU4LTggOC04IDggMy41OCA4IDgtMy41OCA4LTggOHoiLz48cGF0aCBkPSJNMTIgNmMtMy4zMSAwLTYgMi42OS02IDZzMi42OSA2IDYgNiA2LTIuNjkgNi02LTIuNjktNi02LTZ6Ii8+PC9zdmc+" alt="MCP Compatible">
<img src="https://img.shields.io/badge/Works_with-Claude-D97706?style=for-the-badge&logo=anthropic&logoColor=white" alt="Works with Claude">
</p>
Expand All @@ -33,9 +33,9 @@

---

**Mayros** is an open-source AI agent framework that runs on your own devices. It ships with an interactive **coding CLI** (`mayros code`), connects to **17 messaging channels** (WhatsApp, Telegram, Slack, Discord, Signal, iMessage, Teams, and more), speaks and listens on **macOS/iOS/Android**, and has a **knowledge graph** that remembers everything across sessions. All backed by a local-first Gateway and an 20-layer security architecture.
**Mayros** is an open-source AI agent framework that runs on your own devices. It ships with an interactive **coding CLI** (`mayros code`), connects to **17+ messaging channels** (WhatsApp, Telegram, Slack, Discord, Signal, iMessage, Teams, and more), speaks and listens on **macOS/iOS/Android**, and has a **knowledge graph** that remembers everything across sessions. **Kaneru** — the multi-agent venture system — lets you build AI companies that learn, remember, and improve over time. All backed by a local-first Gateway and a 20-layer security architecture.

> **55 extensions · 11,700+ tests · 29 hooks · MCP server & client · Multi-model · Multi-agent**
> **55+ extensions · 12,400+ tests · 29 hooks · MCP server & client · Multi-model · Multi-agent · Kaneru ventures**

```bash
npm install -g @apilium/mayros@latest
Expand All @@ -56,7 +56,8 @@ mayros code # interactive coding CLI
| 🎙️ **Voice** | Always-on Voice Wake + Talk Mode on macOS, iOS, Android | None |
| 🖥️ **IDE** | VSCode + JetBrains plugins with chat, plan, traces, KG | VSCode only |
| 📊 **Observability** | Full trace system, decision graph, session fork/rewind | Basic logging |
| 🔌 **Extensions** | 55 plugin extensions, 29 hook types, MCP server + client (4 transports) | Limited plugins |
| 🔌 **Extensions** | 55+ plugin extensions, 29 hook types, MCP server + client (4 transports) | Limited plugins |
| 🏢 **Kaneru** | AI ventures with missions, squads, Q-learning routing, decision audit, fuel control | No organizational layer |
| 🗺️ **Plan Mode** | Cortex-backed semantic planning: explore → assert → approve → execute | Simple plan files |

---
Expand All @@ -74,8 +75,27 @@ mayros onboard --install-daemon

The wizard sets up the Gateway, workspace, channels, and skills. It installs the Gateway as a background daemon (launchd/systemd) so it stays running.

The installer automatically downloads [AIngle Cortex](https://github.com/ApiliumCode/aingle) (the semantic memory sidecar). No separate install needed.

New install? Start here: **[Getting Started](https://apilium.com/en/doc/mayros/start/getting-started)** · Upgrading? **[Updating guide](https://apilium.com/en/doc/mayros/install/updating)** (and run `mayros doctor`)

### Update

```bash
mayros update # updates Mayros + Cortex automatically
# or: npm install -g @apilium/mayros@latest
```

### Uninstall

```bash
mayros uninstall # interactive — choose what to remove
mayros uninstall --all # remove everything (service, state, workspace, cortex)
mayros uninstall --dry-run # preview without deleting
```

A detailed data loss warning is always shown before deletion — listing every category of data (knowledge graph, ventures, agent memory, decision history, etc.).

---

## Coding CLI
Expand Down Expand Up @@ -258,7 +278,7 @@ Point any MCP client to `http://127.0.0.1:19100/mcp` (Streamable HTTP) or `http:

AI coding CLIs have no memory between sessions. Mayros + [AIngle Cortex](https://github.com/ApiliumCode/aingle) fill that gap: semantic knowledge graph, DAG audit trail, vector search, and ZK proofs — all local-first.

Any MCP-compatible client gets instant access to 21 tools via a single command:
Any MCP-compatible client gets instant access to 45+ tools via a single command:

```bash
claude mcp add mayros -- mayros serve --stdio # Claude Code
Expand Down Expand Up @@ -324,6 +344,93 @@ CLI: `mayros workflow run|list` · `mayros dashboard team|summary|agent` · `may

---

## Kaneru — AI Venture Management

Kaneru turns Mayros into a full AI venture platform. Create organizations of agents that learn, coordinate, and improve over time — all stored in Cortex, all DAG-auditable.

### Quick Start

```bash
# Install a pre-built venture template (security-audit, content-pipeline, devops-squad)
mayros kaneru dojo install --template security-audit --name "My Security Team"

# Or use the web portal Setup Wizard: open dashboard → Ventures → New Venture
mayros dashboard
```

### Ventures & Missions

```bash
mayros kaneru venture create --name "Acme" --prefix ACM --directive "Ship fast" --fuel-limit 10000
mayros kaneru mission create --venture <id> --title "Audit auth module" --priority critical
mayros kaneru mission claim --mission <id> --agent scanner --run run-001
mayros kaneru mission transition --mission <id> --status review --run run-001
mayros kaneru comment add --mission <id> --author scanner --content "SQL injection found"
```

### Agents That Learn

Agents build expertise profiles over time. Q-learning + EMA scoring routes missions to the best agent automatically.

```bash
mayros kaneru learn profile --agent scanner # see agent expertise
mayros kaneru learn top --domain typescript --task-type security-scan # best agents for a task
mayros kaneru route --mission "Fix SQL injection" --agents scanner,reviewer,fixer # smart routing
```

### Cost Analytics & Fuel Control

```bash
mayros kaneru fuel summary --venture <id> # spend overview
mayros kaneru fuel analytics --venture <id> --period weekly # time-series + provider breakdown
mayros kaneru fuel forecast --venture <id> # burn rate + days until exhausted
```

### Decision Audit

```bash
mayros kaneru consensus --squad <id> --question "Ship or block?"
mayros kaneru decisions list --venture <id>
mayros kaneru decisions explain --decision <id> # full reasoning with votes
```

### Distributed Ventures (P2P)

```bash
mayros kaneru discover --venture <id> # auto-discover peers via mDNS
mayros kaneru sync --venture <id> # DAG-sync venture state with peers
```

### Web Portal

The portal at `http://localhost:18789` includes:

- **Ventures tab** — venture table, mission kanban, chain of command tree, fuel bars
- **Kaneru tab** — squads, Q-learning router, squad builder
- **Canvas tab** — A2UI surfaces (overview, missions, chain, fuel) — interactive, venture-aware
- **Setup Wizard** — 4-step guided venture creation (Venture → Agent → Mission → Launch)
- **Command Bar** (Ctrl+/) — Spotlight-style overlay with venture context and voice input

### MCP Tools (24)

Any MCP client (Claude, Cursor, Cline) gets access to 24 Kaneru tools:

| Tool | Purpose |
|------|---------|
| `kaneru_venture_create/list` | Venture CRUD |
| `kaneru_mission_create/claim/list/transition` | Mission lifecycle |
| `kaneru_fuel_summary/analytics/forecast` | Cost control |
| `kaneru_dojo_list/install` | Venture templates |
| `kaneru_learn_profile/top` | Agent expertise |
| `kaneru_decisions_list/explain` | Decision audit |
| `kaneru_sync/terminal_exec` | P2P sync + remote execution |
| `kaneru_squad_create/run/status` | Multi-agent squads |
| `kaneru_delegate/consensus/route/fuse/mailbox` | Coordination |

CLI: `mayros kaneru` — 18 subcommand groups with 40+ commands total

---

## IDE Plugins

Mayros lives inside your editor, connected via Gateway WebSocket.
Expand Down Expand Up @@ -361,6 +468,7 @@ Both connect to `ws://127.0.0.1:18789`.
| ------------- | ------------------------- | ------------------------------------------------------------------------- |
| Skills | `semantic-skills` | QuickJS WASM sandbox, 6 semantic tools, skill marketplace |
| Agents | `agent-mesh` | Teams, workflows, consensus (majority/weighted/Byzantine/Raft), mailbox |
| Ventures | `kaneru` | Ventures, missions, projects, fuel, learning profiles, decision history |
| Memory | `memory-semantic` | Cortex integration, rules engine, agent memory, contextual awareness |
| Observability | `semantic-observability` | Traces, decision graph, session fork/rewind |
| Indexer | `code-indexer` | Codebase scanning + RDF mapping (incremental) |
Expand Down
25 changes: 2 additions & 23 deletions extensions/agent-mesh/consensus-engine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ export type ConsensusBreakdown = {
// ============================================================================

const ARBITRATE_MARGIN = 0.15;
const CORTEX_PREFIX = "kimeru:consensus:";

// ============================================================================
// ConsensusEngine
Expand Down Expand Up @@ -112,8 +111,8 @@ export class ConsensusEngine {
},
};

// Persist result
await this.persistResult(result);
// Decision persistence handled by DecisionHistory (extensions/kaneru/decision-history.ts)
// to avoid double-storage with richer context (question, votes, venture/mission linking).

return result;
}
Expand Down Expand Up @@ -367,24 +366,4 @@ export class ConsensusEngine {
return fallback;
}

private async persistResult(result: ConsensusResult): Promise<void> {
if (!this.client) return;

try {
const subject = `${this.ns}:${CORTEX_PREFIX}${result.id}`;
await this.client.createTriple({
subject,
predicate: `${this.ns}:kimeru:result`,
object: JSON.stringify({
resolved: result.resolved,
strategy: result.strategy,
confidence: result.confidence,
totalConflicts: result.breakdown.totalConflicts,
resolvedCount: result.breakdown.resolvedCount,
}),
});
} catch {
// best-effort
}
}
}
2 changes: 1 addition & 1 deletion extensions/agent-mesh/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ describe("agent mesh plugin registration", () => {
const { default: plugin } = await import("./index.js");

expect(plugin.id).toBe("agent-mesh");
expect(plugin.name).toBe("Agent Mesh");
expect(plugin.name).toBe("Kaneru");
expect(plugin.kind).toBe("coordination");
expect(plugin.configSchema).toBeTruthy();
expect(typeof plugin.register).toBe("function");
Expand Down
Loading
Loading