by OpenSparX
Build AI agents that run 100% on-device. Sub-100ms latency on Qualcomm NPU. Zero cloud dependency.
# Add to your Claude Code skills
git clone https://github.com/OpenSparX/MasterAgentLast scanned: 8/14/2026
{
"issues": [
{
"file": "README.md",
"line": 212,
"type": "remote-install",
"message": "Install command (remote install script piped to a shell — review the source before running): \"curl -fsSL https://raw.githubusercontent.com/OpenSparX/MasterAgent/main/scripts/\"",
"severity": "low"
}
],
"status": "PASSED",
"scannedAt": "2026-08-14T05:37:53.321Z",
"npmAuditRan": true,
"pipAuditRan": true,
"promptInjectionRan": true
}MasterAgent is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by OpenSparX. Build AI agents that run 100% on-device. Sub-100ms latency on Qualcomm NPU. Zero cloud dependency. It has 374 GitHub stars.
Yes. MasterAgent passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.
Clone the repository with "git clone https://github.com/OpenSparX/MasterAgent" and add it to your Claude Code skills directory (see the Installation section above).
MasterAgent is primarily written in C++. It is open-source under OpenSparX on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh MasterAgent against similar tools.
No comments yet. Be the first to share your thoughts!
⚠️ Third-Party Software Notice
This skill is third-party open-source software developed and hosted independently on GitHub. SkillsLLM is an informational directory and does not control or maintain the underlying repository.
Any security checks, ratings, or warnings displayed by SkillsLLM are automated and limited in scope. They do not constitute a security certification or guarantee that the software is safe, error-free, or free from malicious code, vulnerabilities, compromised dependencies, or prompt-injection risks.
Review the source code, permissions, dependencies, and configuration before installing or running any third-party skill. Use is at your own risk. To the maximum extent permitted by applicable law, SkillsLLM is not liable for losses arising from third-party software.
The Linux kernel for AI agents. Build agents that run 100% on-device. No cloud. No latency. No data leaks.
构建 100% 端侧运行的 AI Agent。无云端依赖,无网络延迟,无数据泄露。
⚠️ Status: Alpha — Core kernel is functional. APIs are unstable. Contributions welcome.
git clone https://github.com/OpenSparX/MasterAgent.git && cd MasterAgent
cmake -B build -DCMAKE_BUILD_TYPE=Release && cmake --build build -j$(nproc)
Quick Start · Why OAK? · Docs · 中文文档
$ cmake -B build && cmake --build build -j$(nproc) && ctest --test-dir build
[100%] Built target bench_strategic
Test project /home/you/MasterAgent/build
Start 1: test_integration_speculation
1/5 Test #1: test_integration_speculation ..... Passed 0.8 sec
Start 2: test_orset
2/5 Test #2: test_orset ....................... Passed 0.4 sec
Start 3: test_merkle
3/5 Test #3: test_merkle ...................... Passed 0.4 sec
Start 4: test_embedding
4/5 Test #4: test_embedding ................... Passed 0.4 sec
Start 5: bench_strategic
5/5 Test #5: bench_strategic .................. Passed 2.9 sec
100% tests passed, 0 tests failed out of 5
The OSS build compiles and tests the strategic features: speculative execution, CRDT mesh sync, formal verification, and embedding search. The full CLI (with model inference) requires the kernel runtime — see Architecture.
No network round-trip. 80% of requests resolve via pattern matching in microseconds. The other 20% run local LLM inference.
Data never leaves the device. No telemetry. No cloud calls. Encrypted-at-rest storage with device-bound keys.
Develop on CPU anywhere. Deploy to Qualcomm NPU for 14× speedup at 3.5× less power. Same code, different backend.
| OAK | LangChain | AutoGPT | Apple Intelligence | |
|---|---|---|---|---|
| Runs 100% on-device | ✅ | ❌ | ❌ | ✅ |
| Open source | ✅ | ✅ | ✅ | ❌ |
| Crash recovery (WAL) | ✅ | ❌ | ❌ | ❌ |
| Formal verification | ✅ | ❌ | ❌ | ❌ |
| Multi-device mesh | ✅ | ❌ | ❌ | ❌ |
| Speculative execution | ✅ | ❌ | ❌ | ❌ |
| On-device learning | ✅ | ❌ | ❌ | ❌ |
| NPU acceleration | ✅ | ❌ | ❌ | ✅ |
| Latency (typical) | 87ms | 2-5s | 3-10s | ~200ms |
# Prerequisites: CMake 3.18+, C++17 compiler (GCC 9+, Clang 11+)
git clone https://github.com/OpenSparX/MasterAgent.git
cd MasterAgent
cmake -B build -DCMAKE_BUILD_TYPE=Release \
-DMASTER_AGENT_BUILD_CLI=ON \
-DMASTER_AGENT_BUILD_TESTS=ON
cmake --build build -j$(nproc)
# Run tests
ctest --test-dir build --output-on-failure
# The sparx CLI connects to any llama-server compatible endpoint.
# Start llama-server (install separately: https://github.com/ggml-org/llama.cpp)
llama-server -m your-model.gguf --port 8080
# Run the CLI
./build/cli/sparx run --endpoint 127.0.0.1:8080
# Deterministic skills respond without any model loaded
./build/cli/sparx demo automotive
💡 Most intent routing works without a model — only open-ended queries need LLM inference.
OAK uses an open-core model. This repository contains:
| Component | Status | LOC |
|---|---|---|
| Speculative Execution (LSTM + HNSW) | ✅ Full source | 2,565 |
| Formal Plan Verification (CDCL SAT) | ✅ Full source | 3,656 |
| Agent Mesh (mDNS + CRDT + Merkle) | ✅ Full source | 4,875 |
| On-Device Learning (DP-SGD) | ✅ Full source | 1,800+ |
| Constrained Decoding (GBNF) | ✅ Full source | 1,200+ |
| llama.cpp Model Runtime | ✅ Full source | 527 |
| Agent Scheduler | ✅ Full source | 600+ |
| Kernel Interfaces (headers) | ✅ Public API | — |
| Kernel Runtime (orchestrator, WAL, dispatch) | ❌ Proprietary | — |
The proprietary kernel runtime handles task orchestration, WAL recovery, and agent dispatch. The strategic feature modules (the algorithmic innovations) are fully open and independently testable.
We're working toward open-sourcing the kernel runtime. Track progress in #1.
┌─────────────────────────────────────────────────────────────────┐
│ User Input │
└──────────────────────────────┬──────────────────────────────────┘
▼
┌──────────────────────────────────────────────────────────────────┐
│ Preprocessing: UTF-8 normalize → parameter extract → memory │
└──────────────────────────────┬───────────────────────────────────┘
▼
┌─────────────────────┐
│ Route Decision │
│ (80% deterministic │
│ 20% inference) │
└────┬──────────┬─────┘
│ │
┌──────────▼──┐ ┌───▼────────────┐
│ Skill Engine │ │ LLM Inference │
│ (0.02ms) │ │ (87ms NPU / │
│ │ │ 1200ms CPU) │
└──────────┬───┘ └───┬────────────┘
│ │
▼ ▼
┌────────────────────────────────────┐
│ Task Orchestrator (DAG execution) │
│ + WAL Recovery + MCP Services │
└────────────────────────────────────┘
▼
┌────────────────────────────────────┐
│ Response (sub-100ms typical) │
└────────────────────────────────────┘
Design principles:
COMMITTED, FAILED, UNKNOWNOAK predicts what you'll ask next and pre-computes the answer during idle NPU time.
You: "navigate to office" ← observed
↓ predictor: P("play music") = 0.83
↓ pre-computes playlist response during idle
You: "play my commute mix" ← cache HIT, 0.11μs response
| Metric | Value |
|---|---|
| Prediction (top-3) | 0.27 μs |
| Cache hit (exact) | 0.11 μs |
| Embedding similarity | 8.79 μs |
| Cold-start threshold | 10 interactions |
Plans are verified for safety before execution using CTL* model checking:
$ sparx plan verify plans/payment-flow.yaml
Plan Verification Report
═══════════════════════════
✓ PASS auth-before-destructive (12μs)
✓ PASS no-resource-deadlock (8μs)
✓ PASS all-nodes-terminate (15μs)
✓ PASS data-flow-integrity (11μs)
✗ FAIL no-conflicting-destructive (23μs)
→ Node "charge" and "refund" conflict on resource "wallet"
✗ Plan should NOT be executed. Fix conflicts first.
Zero-config multi-device collaboration. Your phone, laptop, and car share agent memory and route work to the most capable device:
$ sparx mesh status
Mesh: oak-home (3 peers, healthy)
┌────────────────┬──────────┬───────┬────────┬─────────┐
│ Device │ NPU │ RAM │ Idle │ Score │
├────────────────┼──────────┼───────┼────────┼─────────┤
│ 🚗 Car (local) │ 45 TOPS │ 16GB │ yes │ 0.92 │
│ 📱 Phone │ 12 TOPS │ 8GB │ no │ 0.45 │
│ 💻 Laptop │ — │ 32GB │ yes │ 0.38 │
└────────────────┴──────────┴───────┴────────┴─────────┘
CRDT sync: 142 keys, last sync 2s ago
Merkle: roots match (no divergence)
_sparx-mesh._tcp.local.)Industry first. When an agent crashes mid-operation, the only honest answer is "I don't know if it succeeded."
┌──────────┐ ┌──────────┐ ┌──────────────┐
│ COMMITTED│ │ FAILED │ │ UNKNOWN │
│ (success)│ │ (error) │ │ (crashed │
│ │ │ │ │ mid-flight) │
└──────────┘ └──────────┘ └──────────────┘
│
▼