
Company News
Socket Partners with Replit to Block Malicious Packages in AI-Powered Development
Replit is integrating Socket Firewall into its AI-powered development experience to help protect builders from malicious open source packages.
magneto-ai
Advanced tools
Repo-local AI reasoning framework and agent control plane for enterprise environments
Repo-local AI reasoning framework & agent control plane for enterprise environments.
All AI Engineering Tasks. Any Language or Stack. Enterprise Security and Guardrails.
One Magneto AI To Pull Them All.
Quick Start β’ Benchmarks β’ Architecture β’ Power Packs β’ Copilot β’ CLI Reference
Magneto AI is a multi-agent AI orchestration system that brings structured reasoning, security guardrails, and pluggable intelligence to your codebase β designed to work alongside every major AI coding assistant and agent gateway.
Magneto AI is not another AI wrapper. It is a reasoning engine, governance layer, and agent control plane that sits between your team and any AI coding assistant β enforcing security, planning tasks, and building deep project understanding before a single line is written or deleted.
magneto init, with a built-in specβcode drift reconcilersandbox-exec, Linux bwrap, Windows Sandbox, or WSL2 with strict / standard / dev / off profilesmemory.lock files signed with HMAC-SHA256 (machine-bound key); offline-only memory mutation; root/owner unlock policiesThink of it as the nervous system connecting your AI tools to your codebase β with the safety controls an enterprise demands.
Magneto AI acts as the skill and governance layer for the full ecosystem of AI coding assistants and agent gateways β so your rules, security checks, and task plans travel with you regardless of which tool you use:
| Assistant / Gateway | Integration |
|---|---|
| Claude Code | MCP tools via mcp.json, skill files injected into context |
| Codex / OpenAI | Direct API runner with structured JSON task execution |
| OpenCode | Prompt generation via magneto generate scoped to relevant files only |
| Cursor | Skill files + .cursor/rules/ auto-generated on magneto init |
| Gemini CLI | MCP-compatible tool layer (plan_task, security_check, etc.) |
| GitHub Copilot CLI | MCP server + .github/agents/ + copilot-instructions.md |
| VS Code Copilot Chat | .github/copilot-instructions.md + MCP config in .vscode/mcp.json |
| Aider | Skill injection via adapter system + AGENTS.md |
| OpenClaw | Native plugin on ClawHub β openclaw plugins install clawhub:openclaw-magneto |
| Factory Droid | Governance adapter via MCP tool hooks |
| Trae | Skill injection via adapter system + AGENTS.md |
| Hermes | Skill injection via adapter system |
| Kiro | Skill files in .kiro/skills/ + steering rules |
| Google Antigravity | MCP-compatible security_check and plan_task tools |
One magneto init. All assistants governed. See AI Assistant Setup Guide for per-tool walkthroughs.
Magneto AI's analyze command ingests your entire project and builds a knowledge graph with community detection, confidence-scored edges, and interactive visualization:
magneto analyze
Outputs:
.magneto/memory/
βββ graph.json queryable knowledge graph (nodes, edges, communities)
βββ graph.html interactive vis.js visualization β open in any browser
βββ graph-report.md god nodes, communities, edge distribution, suggested questions
βββ root-summary.md project overview + token savings
βββ file-index.md all files with signatures
βββ dependencies.md import/dependency map
βββ modules/*.md per-directory summaries
Query the graph from the terminal:
magneto query "auth flow" # BFS subgraph extraction
magneto query "security" --dfs --budget 500 # DFS with token budget
magneto path "evaluateSecurity" "initCommand" # shortest path between nodes
The result: every AI prompt is pre-scoped to only the files that matter β fewer tokens, faster responses, no hallucinated file paths.
For full multimodal support β PDFs, images, screenshots, video, audio, and 25-language tree-sitter AST β pair Magneto with Graphify:
pip install graphifyy
magneto analyze --deep # shells to graphify for multimodal extraction
When --deep is passed, Magneto invokes Graphify under the hood and imports its richer graph (Leiden clustering, Claude vision extraction, Whisper transcription) into .magneto/memory/. If Graphify isn't installed, Magneto falls back to its native code-only graph.
| Capability | magneto analyze | magneto analyze --deep |
|---|---|---|
| Code parsing | Regex (JS/TS, Java, Python, Go, + more) | tree-sitter AST (25 languages) |
| Knowledge graph | Louvain communities + god nodes | Leiden communities + hyperedges |
| Confidence scores | EXTRACTED / INFERRED | + AMBIGUOUS with confidence 0.0β1.0 |
| Interactive visualization | vis.js graph.html | vis.js graph.html (richer) |
| PDFs, images, video | β | Claude vision + Whisper transcription |
| Graph querying | magneto query / magneto path | Same + graphify query / graphify explain |
Magneto AI is not an AI model, a chat interface, or a replacement for your coding assistant. It is the layer of intelligence underneath β planning, securing, and contextualizing every task before your assistant runs it.
Magneto AI unifies task classification, multi-agent orchestration, security evaluation, and result merging into a single framework that any AI coding assistant can plug into.
Every task is automatically classified into one of 9 categories β architecture-review, bug-fix, feature-implementation, security-audit, performance-review, testing, requirements-analysis, code-review, or general β using keyword analysis against the task title, description, and tags. Based on the classification, Magneto AI assigns the right roles (orchestrator, backend, tester, requirements) and generates a structured execution plan before any AI agent runs.
Magneto AI creates dedicated sub-agents for each assigned role, each with its own model configuration (gpt-4o), tool access (plan_task, load_context, merge_results, security_check), and scoped file visibility. The orchestrator coordinates the agents; each agent works within its defined scope and constraints.
Every task is evaluated before execution. The security engine scans for:
.env, .pem, .key, .cert, secrets/, .ssh/, credentials/delete-database, drop-table, rm -rf, format, truncateThe engine returns a risk level (low / medium / high), whether human approval is required, a list of blocked actions detected, and a telepathy level (0β3) that controls how much autonomy the AI agents receive.
After agents complete their analysis, Magneto AI merges all findings and risks with content-based deduplication β identical findings keep the higher confidence score, identical risks keep the higher severity. The overall confidence is calculated using a weighted average that favors high-confidence agents. The final merged output includes an overallRisk assessment (low β critical).
Magneto AI scans your project to automatically detect which Power Packs to activate:
tsconfig.json or typescript in dependenciesnext in dependenciesopenai, @azure/openai, langchain, or @langchain/coreazure.yaml, bicep/, or infra/ directories.graphify-out/graph.jsonEach pack adds domain-specific rules and checks that are injected into agent prompts and execution plans.
Magneto AI exposes its core engine as 4 MCP tools via an HTTP server, allowing any MCP-compatible client (GitHub Copilot, VS Code, custom agents) to invoke Magneto AI directly:
plan_task β classify a task and generate an execution planload_context β build full project context with role assignments and file resolutionmerge_results β merge multiple agent output files with deduplicationsecurity_check β evaluate security constraints and get approval requirementsMagneto AI generates full GitHub Copilot integration out of the box:
magneto-orchestrator, magneto-backend, magneto-tester, magneto-requirements) in .github/agents/.github/copilot-instructions.md teaching Copilot how to use Magneto tools.vscode/mcp.json connecting VS Code to the local MCP serverSix built-in runners execute tasks through different AI backends:
OPENAI_API_KEY is setGEMINI_API_KEY or GOOGLE_AI_KEY is setOLLAMA_HOST or MAGNETO_USE_OLLAMA to activate. See docs/RUNNER-OLLAMA.md.Adapters import external tool data into Magneto's memory. The Graphify adapter reads .graphify-out/graph.json and maps dependency graph nodes/edges into Magneto's context, with configurable priority modes (internal-first or external-first).
Input validation on all task files. Protected path patterns block access to secrets and credentials. Blocked action detection prevents destructive operations. Execution modes (observe, assist, execute, restricted) enforce escalating levels of control. High-risk tasks automatically set telepathy to 0 and require human approval.
Magneto AI draws its conceptual architecture from electromagnetic forces:
| Ability | Magneto AI Capability |
|---|---|
| Magnetokinesis | Multi-agent orchestration β coordinate, delegate, merge |
| Force Field | Security guardrails β block unsafe actions, protect secrets |
| Electromagnetic Sight | Dependency & contradiction detection across the codebase |
| Telepathic Resistance | Reject bad instructions β hallucination filtering, constraint enforcement |
| Telepathic Amplification | Power boost when safe β higher autonomy for low-risk tasks |
| Sentinel Lock | Enterprise approval workflows β human-in-the-loop for critical operations |
# Install globally (recommended β use magneto without npx)
npm install -g magneto-ai
# Or use without installing via npx
npx magneto-ai@latest init
magneto init
With power packs:
magneto init --with typescript nextjs ai-platform --adapter graphify
magneto init --adapter openclaw # wire Magneto as OpenClaw governance layer
magneto doctor
# Tasks can be written as Markdown (.md), YAML (.yaml), or JSON (.json)
magneto plan examples/tasks/checkout-mismatch.md
magneto run examples/tasks/checkout-mismatch.md --runner openai --mode assist
magneto merge .magneto/cache --format markdown
Six real scenarios β pick the one that matches your stack.
You have a Next.js + TypeScript project. You need a new analytics dashboard. One command sets up Magneto, then it plans and executes with 4 parallel agents.
$ magneto init --with typescript nextjs
[magneto] Initializing Magneto AI...
[magneto] β Detected stack: TypeScript Β· Next.js 14 Β· React 18
[magneto] β Base scaffolding complete (.magneto/, .github/agents/, .vscode/mcp.json)
[magneto] β Power packs loaded (typescript, nextjs)
[magneto] β Magneto AI initialized successfully!
$ magneto plan tasks/add-dashboard.md
[magneto] Planning task: add-dashboard
[magneto] Classification: feature-implementation
[magneto] Security Risk: low β
[magneto] Agents: orchestrator, backend, frontend, tester
[magneto] Subtasks:
[magneto] 1. Design analytics API route β backend
[magneto] 2. Build dashboard components β frontend
[magneto] 3. Write integration tests β tester
[magneto] β Plan saved to .magneto/cache/plan-add-dashboard.json
$ magneto run tasks/add-dashboard.md --stream
[magneto] β‘ Executing with 4 agents in parallel...
[orchestrator] Decomposing into 3 subtasks...
[backend] Implementing API routes... ββββββββββ 80%
[frontend] Building dashboard components... ββββββββββ 60%
[tester] Generating test suite... ββββββββββ 100%
[backend] API routes complete β
[frontend] Dashboard components complete β
[magneto] β Task completed β 12 files, 847 lines, 31 tests generated
$ magneto merge .magneto/cache --format markdown
[magneto] β Merged 4 agent outputs β .magneto/reports/add-dashboard.md
[magneto] Findings: 3 Β· Risks: 0 Β· Confidence: 0.94
What Magneto caught that raw Copilot missed: missing 'use client' on a component using useState, a server/client boundary violation that would have caused a hydration error at runtime.
You're about to deploy a FastAPI service. Magneto scans for the 10 most common FastAPI security mistakes before a single line ships.
$ magneto init --with python fastapi
[magneto] β Detected stack: Python 3.12 Β· FastAPI 0.110 Β· Pydantic v2
[magneto] β Power packs loaded (python, fastapi)
$ magneto run tasks/pre-deploy-audit.md --mode observe
[magneto] β‘ Running security audit (observe mode β read-only)...
[magneto] Scanning 24 Python files...
[python-pack] py-hardcoded-secret FOUND src/config.py:14
β SECRET_KEY = "my-super-secret-key-12345"
[python-pack] py-shell-true FOUND src/utils/runner.py:38
β subprocess.run(cmd, shell=True) β command injection risk
[fastapi-pack] fastapi-cors-wildcard FOUND src/main.py:22
β allow_origins=["*"] + allow_credentials=True β blocked by browsers
[fastapi-pack] fastapi-debug-true FOUND src/main.py:7
β FastAPI(debug=True) β leaks tracebacks in production
[python-pack] py-requests-no-timeout FOUND src/integrations/stripe.py:51
β requests.post(url, json=payload) β hangs on unresponsive server
[magneto] β Audit complete β 5 issues across 4 files (3 error, 2 warning)
[magneto] β Report saved to .magneto/reports/pre-deploy-audit.md
$ magneto run tasks/pre-deploy-audit.md --mode assist
[magneto] Generating fixes for 5 issues...
[magneto] β Fix suggestions written to .magneto/reports/pre-deploy-fixes.md
Time to catch this without Magneto: 2β3 hours of manual code review, or one very bad production incident.
Your Spring Boot service is mysteriously slow and occasionally throws LazyInitializationException. Magneto finds the N+1 query, the missing transaction boundary, and the exposed actuator β all in seconds.
$ magneto init --with java spring-boot
[magneto] β Detected stack: Java 21 Β· Spring Boot 3.2 Β· PostgreSQL
[magneto] β Power packs loaded (java, spring-boot)
$ magneto run tasks/perf-audit.md --mode observe --stream
[magneto] β‘ Scanning 67 Java files...
[spring-pack] spring-open-in-view FOUND src/main/resources/application.yml:12
β spring.jpa.open-in-view=true β N+1 queries in every controller
[spring-pack] spring-transactional-priv FOUND src/service/OrderService.java:84
β @Transactional on private method β proxy bypass, no transaction applied
[spring-pack] spring-actuator-all-exposed FOUND src/main/resources/application-prod.yml:4
β management.endpoints.web.exposure.include=* β heapdump publicly accessible
[java-pack] java-catch-throwable FOUND src/service/PaymentService.java:127
β catch (Throwable t) β swallows OutOfMemoryError and InterruptedException
[java-pack] java-unsafe-deserialize FOUND src/legacy/MessageParser.java:33
β new ObjectInputStream(input) β RCE risk on untrusted data
[magneto] β Found 5 issues across 5 files (3 error, 2 warning)
[magneto] β‘ Orchestrating fixes with 3 agents...
[backend] Fixing application.yml + OrderService... ββββββββββ 100%
[tester] Updating integration tests... ββββββββββ 100%
[magneto] β 6 files changed β estimated 60β80% reduction in DB query count
You've written Terraform for a new microservice. Before terraform apply, Magneto scans every .tf file for the 16 AWS security checks β IAM, S3, SGs, encryption, hardcoded keys.
$ magneto init --with aws
[magneto] β Detected stack: Terraform 1.7 Β· AWS Provider 5.x
[magneto] β Power packs loaded (aws)
$ magneto run tasks/infra-pre-deploy.md --mode observe
[magneto] β‘ Scanning Terraform files (31 .tf files)...
[aws-pack] aws-iam-wildcard-action FOUND infra/iam.tf:18
β Action: "*", Resource: "*" β grants all AWS permissions
[aws-pack] aws-s3-public-acl FOUND infra/storage.tf:7
β acl = "public-read" β bucket contents publicly accessible
[aws-pack] aws-sg-ssh-open FOUND infra/networking.tf:44
β cidr_blocks = ["0.0.0.0/0"] on port 22 β SSH open to internet
[aws-pack] aws-rds-unencrypted FOUND infra/database.tf:29
β storage_encrypted = false β RDS data unencrypted at rest
[aws-pack] aws-hardcoded-access-key FOUND infra/providers.tf:11
β access_key = "AKIA..." β hardcoded AWS key (rotate immediately)
[aws-pack] aws-lambda-no-timeout FOUND infra/lambda.tf:8
β No timeout set β unbounded execution, cost risk
[magneto] β 6 CRITICAL/HIGH issues found β deploy blocked pending review
[magneto] β Report: .magneto/reports/infra-pre-deploy.md
Deploy blocked. The hardcoded AKIA key alone would have triggered a GitHub secret scanner alert and potentially an AWS account compromise within minutes of pushing.
You work in healthcare, finance, or a classified environment. Source code cannot leave your machine. Magneto with the Ollama runner gives you full AI-powered reasoning with zero data egress.
# One-time setup β pull a model locally
$ ollama pull qwen2.5-coder
$ ollama serve
# Tell Magneto to use Ollama
$ export OLLAMA_HOST=http://localhost:11434
$ export OLLAMA_MODEL=qwen2.5-coder
$ magneto run tasks/audit-auth-module.md --runner ollama --stream
[magneto] Runner: ollama (qwen2.5-coder @ localhost)
[magneto] Data egress: none β β all processing is local
[magneto] β‘ Pre-flight health check...
[magneto] β Ollama reachable Β· model qwen2.5-coder available
[magneto] Executing task via local model...
[ollama] Analyzing auth module (4 files, 612 lines)... ββββββββββββ 100%
[magneto] β Task complete
[magneto] Findings: 4 Β· Risks: 1 Β· Tokens: 2,847 Β· Egress: none
[magneto] metadata.dataEgress = "none" β audit-ready tag on every result
# Every result is tagged β verifiable in your audit log
$ cat .magneto/audit/approvals.json | jq '.[-1].metadata.dataEgress'
"none"
No API key. No cloud call. No data leaving your network. Same structured findings, same agent output format, runs on a $2,000 developer laptop.
Don't know which packs to install? Just run magneto detect. Magneto reads your project files and tells you exactly what's there β with confidence scores.
$ magneto detect
[magneto] Scanning project structure...
Stack detected:
β TypeScript confidence: 0.98 (tsconfig.json, 47 .ts files)
β Next.js confidence: 0.95 (next.config.js, app/ router)
β Python confidence: 0.81 (requirements.txt, 12 .py files)
β FastAPI confidence: 0.79 (fastapi in requirements.txt)
β AWS confidence: 0.92 (14 .tf files, aws provider)
Recommended packs:
β typescript [available] magneto init --with typescript
β nextjs [available] magneto init --with nextjs
β python [available] magneto init --with python
β fastapi [available] magneto init --with fastapi
β aws [available] magneto init --with aws
$ magneto init --auto-install
[magneto] Installing all 5 detected packs...
[magneto] β typescript Β· nextjs Β· python Β· fastapi Β· aws installed
[magneto] β Magneto AI ready β 67 checks active across your full stack
Same tasks. Measured token-by-token. Magneto AI uses 68% fewer tokens and delivers 3.5x faster.
| Task | Raw Windsurf/Copilot | With Magneto AI | Token Savings | Cost Savings | Speed |
|---|---|---|---|---|---|
| Bug fix (checkout price mismatch) | 44,470 tokens / $0.156 | 24,400 tokens / $0.079 | -45% | -49% | 3.8x faster |
| Feature (Next.js auth flow) | 82,200 tokens / $0.247 | 29,700 tokens / $0.088 | -64% | -64% | 4.8x faster |
| Security audit (Java endpoints) | 96,500 tokens / $0.300 | 33,000 tokens / $0.098 | -66% | -67% | 3.0x faster |
| Performance (bundle optimization) | 77,000 tokens / $0.220 | 20,500 tokens / $0.060 | -73% | -73% | 3.5x faster |
| Architecture (microservice review) | 119,000 tokens / $0.370 | 29,000 tokens / $0.087 | -76% | -76% | 5.3x faster |
Raw Windsurf/Copilot:
ββ Loads 15β40 files (shotgun) β bloated context
ββ 5β10 back-and-forth exchanges β wasted tokens on "show me more"
ββ Re-explains project every session β no memory
ββ 1 generic agent pass β misses cross-cutting issues
ββ Manual cross-referencing β slow and error-prone
Magneto AI:
ββ Loads 4β8 files (task-classified) β 50β70% fewer tokens
ββ 0 back-and-forth β all files pre-scoped
ββ Persistent .magneto/memory/ β no re-explaining
ββ 3β4 parallel role-focused agents β catches contradictions
ββ Automatic merge + deduplication β instant consolidated report
| Team Size | Annual AI Cost (Raw) | Annual AI Cost (Magneto AI) | Annual Savings |
|---|---|---|---|
| 1 developer | $1,322 | $429 | $893 |
| 10 developers | $13,216 | $4,289 | $8,927 |
| 50 developers | $66,080 | $21,447 | $44,633 |
Based on 15 AI tasks/developer/day at GPT-4o pricing. Excludes developer time savings.
| Team Size | Hours Saved/Year | Value (@ $75/hr) |
|---|---|---|
| 1 developer | 480 hours | $36,000/year |
| 10 developers | 4,800 hours | $360,000/year |
| 50 developers | 24,000 hours | $1,800,000/year |
π See full benchmark details with step-by-step token breakdowns β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β CLI (commander) β
β init β refresh β doctor β plan β run β merge β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Core Engine β
β context β security β merge β scaffold β packs β
ββββββββββββββββ¬βββββββββββββββ¬βββββββββββββββββββββββββ€
β Runners β MCP Server β Power Packs β
β βββββββββββ β βββββββββββββ ββββββββββββββββββββ β
β β OpenAI β β βplan_task ββ β TypeScript β β
β β Copilot β β βload_ctx ββ β Next.js β β
β β Local β β βmerge_res ββ β AI Platform β β
β β Cloud β β βsec_check ββ β Azure β β
β βββββββββββ β βββββββββββββ ββββββββββββββββββββ β
ββββββββββββββββ΄βββββββββββββββ΄βββββββββββββββββββββββββ€
β Adapter Layer β
β Graphify β (extensible) β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββ
The security engine evaluates every task before execution:
evaluateSecurity(task): {
securityRisk: "low" | "medium" | "high"
approvalRequired: boolean
telepathyLevel: 0 | 1 | 2 | 3
reasons: string[]
blockedActions: string[]
protectedPathsAccessed: string[]
}
| Mode | Description |
|---|---|
observe | Read-only analysis, no changes |
assist | Suggestions only, human applies changes |
execute | Automated execution with guardrails |
restricted | Locked down β requires explicit approval for everything |
.env, .pem, .key, secrets directoriesMagneto ships pluggable support for the three leading SDD frameworks. On magneto init you're prompted to choose; on existing repos the framework is auto-detected.
| Framework | Best for | Layout |
|---|---|---|
| OpenSpec (default) | Brownfield / existing code | openspec/{project.md, specs/, changes/<name>/{proposal,design,tasks}.md} β delta-based (ADDED/MODIFIED/REMOVED) |
| Spec Kit | Greenfield / new projects | .specify/constitution.md + specs/<slug>/{spec,plan,tasks}.md β branch-per-spec |
| BMAD-METHOD | Regulated / SOC2 audit | bmad-core/agents/*.md (AnalystβPMβArchitectβSMβDevβQA) + versioned PRDs |
magneto sdd init # interactive prompt
magneto sdd new add-dark-mode "Theme toggle" # scaffold a change
magneto sdd status # show active framework + changes
magneto sdd sync # reconcile spec β code drift (CI: exit 1 on drift)
Constitution-as-code. The default constitution template enforces a WHY β WHAT β HOW rule format that LLMs actually follow (single-line "don't do X" rules are routinely ignored β see EPAM Spec Kit case study).
Drift reconciler. Catches three drift kinds statically (no LLM call): spec-only (spec references missing files), code-undocumented (src/ subtrees with no spec coverage), mismatch (tasks marked done that reference missing files). Writes .magneto/sdd-drift.md.
References: OpenSpec Β· GitHub Spec Kit Β· BMAD-METHOD
Run Magneto, OpenClaw, and AI-generated code inside an OS-level sandbox. Magneto auto-detects the best runtime and falls back transparently.
| Profile | Filesystem | Network | Process | Use |
|---|---|---|---|---|
strict | Read-only project | Allowlist (LLM APIs only) | nobody, no shell | Audits |
standard | RW project, denied /etc /var /usr | Allowlist + npm/pypi/maven | magneto, no sudo | Default for execute |
dev | RW project | Open | magneto, no sudo | Local dev |
off | Host | Host | Host | Trusted CI only |
| Runtime | Platform | Mechanism |
|---|---|---|
docker / podman | All | Container with cap-drop, read-only mounts, network policy |
sandbox-exec | macOS | Native Apple sandbox with .sb profile + port-based net allowlist |
bwrap | Linux | bubblewrap user namespace + bind mounts |
windows-sandbox | Windows 10/11 Pro | .wsb XML config + WindowsSandbox.exe |
wsl | Windows | wsl.exe with DNS-leak hardening (--resolv-conf) |
magneto sandbox status # detected runtimes + profiles
magneto sandbox build # build the magneto-sandbox container
magneto sandbox run --profile strict -- magneto security audit
magneto sandbox shell --profile dev # interactive shell inside sandbox
magneto sandbox doctor # validate setup
.magneto/memory/ is the agent's persistent context. Tampering with it can poison every future agent run. Magneto locks it with cryptographic integrity:
magneto memory lock # SHA-256 each file, sign manifest with HMAC
magneto memory lock --require-root # only root may unlock
magneto memory verify # exit 1 on tamper
magneto memory unlock # owner unlocks; offline-only by default
magneto memory status
~/.magneto-key + hostname + uid β copying lock files between machines fails verification.assertMemoryWritable() blocks any memory mutation.unlock refuses to run when a network interface is up. Override with --allow-online (audited).git ignores the lock files via .gitignore.Magneto AI includes 24 power skills β graph-grounded, multi-LLM, governance-enforcing commands that agents can invoke via slash commands or CLI:
| Skill | CLI | Purpose |
|---|---|---|
/think | magneto think | Structured reasoning with chain-of-thought |
/plan | magneto plan | Strategic planning with dependencies |
/review | magneto review | Graph-aware code review with trace links |
/investigate | magneto investigate | Root-cause debugging with auto-freeze |
/ship | magneto ship | Release automation (sync, test, PR, trace) |
/retro | magneto retro | Sprint retrospective from audit log |
/audit | magneto audit | Read/verify tamper-evident audit log |
/learn | magneto learn | Memory management (patterns, bugs, decisions) |
/guard | magneto guard | Combined careful + freeze safety |
| Skill | CLI | Purpose |
|---|---|---|
/trace | magneto trace | Requirement-to-code coverage analysis |
/drift | magneto drift | Detect spec-to-code drift |
/qa | magneto qa | Browser-based QA testing (Playwright) |
| Skill | CLI | Purpose |
|---|---|---|
/codex review | magneto codex review | Multi-LLM review with convergence |
/codex challenge | magneto codex challenge | Adversarial code challenge |
/codex consult | magneto codex consult | Multi-model architectural consult |
/codex backends | magneto codex backends | Show configured LLM backends |
| Skill | CLI | Purpose |
|---|---|---|
/careful | magneto careful | Warn before destructive commands |
/freeze | magneto freeze | Lock edits to specific paths |
/unfreeze | magneto unfreeze | Release freeze lock |
| Skill | CLI | Purpose |
|---|---|---|
/plan-ceo-review | magneto plan-ceo-review | Business readiness gate |
/plan-design-review | magneto plan-design-review | Architecture readiness gate |
/plan-eng-review | magneto plan-eng-review | Engineering readiness gate |
| Skill | CLI | Purpose |
|---|---|---|
/autoplan | magneto autoplan | Auto-generate plan from task |
/benchmark | magneto benchmark | Run performance benchmarks |
/canary | magneto canary | Canary deployment management |
/land-and-deploy | magneto land-and-deploy | Land PR and deploy |
Example usage:
magneto review --base main --sprint s-20260517
magneto ship --draft --skip-tests
magneto retro --week --output retro.md
magneto audit --verify --tail 50
magneto guard src/payments src/auth
Power Packs add domain-specific intelligence to Magneto AI.
| Pack | Category | What It Does |
|---|---|---|
| TypeScript | Language | Import graph analysis, type safety checks, any detection |
| Python | Language | Type hints (PEP 484), security checks (eval/SQL injection/pickle), Django/FastAPI/Flask guidance |
| Next.js | Framework | Server/client boundaries, hydration safety, routing validation |
| Java | Language | Modern Java idioms (records/sealed/pattern matching/virtual threads), concurrency safety, security (RCE/SQLi/XXE) |
| FastAPI | Framework | Pydantic validation, async correctness, CORS/auth security, lifespan hygiene |
| Spring Boot | Framework | Spring Security review, JPA N+1 detection, transaction boundaries, actuator hardening |
| AI Platform | Project Type | Prompt injection detection, RAG pipeline validation, token limits |
| AWS | Cloud | IAM least-privilege, S3 public-exposure, SG wide-open ports, encryption at rest, Terraform/CDK practices |
| Azure | Cloud | Infrastructure reasoning, RBAC validation, networking checks |
# Include during init
magneto init --with typescript nextjs
# Packs are detected automatically on refresh
magneto refresh
Packs live in .magneto/power-packs/ and contain:
pack.json β rules, checks, and configurationrules.md β detailed reasoning guidelines for agentsAdapters integrate external tools into Magneto AI's memory system.
Imports dependency graph data from Graphify:
magneto init --adapter graphify
Reads from .graphify-out/graph.json and maps into Magneto AI memory.
Memory modes:
| Mode | Behavior |
|---|---|
internal-first | Magneto AI's own analysis takes priority; Graphify supplements |
external-first | Graphify data takes priority; Magneto AI enriches it |
Integrates Magneto AI as the governance and reasoning layer for OpenClaw agents. OpenClaw is a self-hosted AI agent gateway that routes messages from Telegram, Slack, WhatsApp, Discord, and more to AI agents.
magneto init --adapter openclaw
This installs a Magneto skill into your OpenClaw project that teaches agents to use Magneto for all software engineering tasks:
.openclaw/
skills/
magneto.SKILL.md β teaches OpenClaw agents when/how to use Magneto
magneto-adapter.json β adapter config (minimal JSON)
How it works:
User β Telegram/Slack/WhatsApp
β
OpenClaw Gateway
β
AI Agent (reads magneto.SKILL.md)
β
magneto analyze β understands the codebase
magneto plan task.md β structured plan + security check
magneto generate task.md β scoped implementation prompt
β
Governed, secure AI response back to user
After running magneto init --adapter openclaw, restart your OpenClaw gateway:
openclaw gateway restart
OpenClaw agents will now automatically use Magneto for task planning, security checks, and context loading on every engineering request.
Magneto provides a full CLI for managing adapters after initialization:
# List available and installed adapters
magneto adapter list
# Install an adapter
magneto adapter install claude
magneto adapter install manus --api-key=your_key_here
magneto adapter install antigravity
# Configure an adapter (especially for API-based ones)
magneto adapter config manus
magneto adapter config manus --set apiKey --value xxx
magneto adapter config manus --set sync.autoPushTasks --value true
# Validate all installed adapters
magneto adapter doctor
# Remove an adapter
magneto adapter remove claude --force
Install the Claude Code adapter to use /magneto commands directly in Claude Code:
magneto adapter install claude
This creates .claude/ with:
CLAUDE.md β Project instructionsskills/magneto/SKILL.md β /magneto slash commandInstall the Antigravity adapter for the Google Antigravity IDE:
magneto adapter install antigravity
This creates .agents/ with Magneto skill files for /magneto-* commands.
Install the Paperclip adapter to expose all 24 Magneto skills as Paperclip tools with full governance integration:
magneto init --adapter paperclip
This creates a Paperclip plugin in packages/paperclip-plugin/ that:
Paperclip CEO agent with Magneto governance:
plugins:
- name: '@magneto/paperclip-plugin'
config:
magnetoPath: 'magneto'
syncAudit: true
governance:
autoApproveLowRisk: true
requireApprovalForRisk: medium
agents:
- id: ceo-agent
name: "CEO Agent"
tools: [magneto.plan-ceo-review, magneto.guard, magneto.ship, magneto.audit]
permissions: [governance.read, governance.approve]
heartbeat:
on_issue_labeled:
# 1. Guard sensitive paths
- tool: magneto.guard
args: { paths: ['src/payments', 'src/auth'] }
# 2. CEO review gate (requires human approval)
- tool: magneto.plan-ceo-review
args: { sprint: '{{issue.sprintId}}', strict: true }
# 3. Ship with full audit trail (requires approval)
- tool: magneto.ship
args: { sprint: '{{issue.sprintId}}', base: main }
# 4. Verify audit chain
- tool: magneto.audit
args: { verify: true }
Risk levels:
magneto.audit, magneto.trace β Low risk, auto-approvedmagneto.review, magneto.retro β Medium risk, requires approvalmagneto.ship, magneto.guard β High/Critical risk, requires CEO/board approvalSee packages/paperclip-plugin/ for full plugin source and example company configuration.
Install the Manus adapter for API-based integration:
magneto adapter install manus
magneto adapter config manus # Set your API key
Magneto AI generates full Copilot integration:
.github/agents/).vscode/mcp.json)Exposes tools to Copilot:
plan_task β generate execution plansload_context β load project contextmerge_results β merge agent outputssecurity_check β validate security constraintsMagneto selects a runner automatically via detectAgentEnvironment() β priority order: Cascade/Windsurf β Copilot β Antigravity β Gemini β OpenAI β Ollama (fallback).
| Runner | How to activate | Data egress |
|---|---|---|
openai | Set OPENAI_API_KEY | OpenAI API |
copilot | Set MAGNETO_COPILOT_CLOUD_TOKEN | GitHub Copilot |
cascade | Auto-detected in Windsurf | Local process |
gemini | Set GEMINI_API_KEY | Google AI API |
ollama | Set OLLAMA_HOST or MAGNETO_USE_OLLAMA | None β fully local |
magneto run task.json --runner openai --mode assist
Requires OPENAI_API_KEY. Builds structured system prompt, parses JSON findings/risks, saves results to .magneto/cache/.
magneto run task.md --runner ollama
No API key. No data leaves your machine. Requires Ollama running locally. See docs/RUNNER-OLLAMA.md for setup, hardware guidance, and team self-hosting.
| Feature | Graphify | Magneto AI |
|---|---|---|
| Dependency graphs | β Core strength | β Via adapter or native |
| Multi-agent orchestration | β | β Core feature |
| Security guardrails | β | β Built-in engine |
| Copilot integration | β | β Native agents + MCP |
| OpenAI API runner | β | β Built-in |
| Power pack system | β | β Extensible |
| Task planning | β | β Plan β Execute β Merge |
| Enterprise approvals | β | β Sentinel Lock system |
Magneto AI doesn't replace Graphify β it can consume it. Use the Graphify adapter to import dependency data into Magneto AI's reasoning pipeline.
magneto-ai/
src/
cli.ts # CLI entry point
commands/ # CLI commands
init.ts # magneto init
refresh.ts # magneto refresh
doctor.ts # magneto doctor
plan.ts # magneto plan
run.ts # magneto run
merge.ts # magneto merge
core/ # Core engine
scaffold.ts # Project scaffolding
detect-packs.ts # Auto-detect power packs
context.ts # Task classification & context
merge-results.ts # Agent output merging
security-engine.ts # Security evaluation
power-pack-loader.ts # Power pack loading
adapter-loader.ts # Adapter loading
runners/ # Execution runners
types.ts # Runner interface
openai.ts # OpenAI API runner
copilot-local.ts # Copilot local agent runner
copilot-cloud.ts # Copilot cloud runner
mcp/ # MCP server
server.ts # HTTP MCP server
tools/ # MCP tool handlers
plan-task.ts
load-context.ts
merge-results.ts
security-check.ts
utils/ # Utilities
logger.ts
paths.ts
fs.ts
templates/ # Scaffolding templates
base/ # Base project templates
power-packs/ # Power pack templates
examples/
README.md # Examples overview + cost narrative
METRICS.md # Full token & cost benchmarks
tasks/ # Standalone example tasks
nextjs-frontend/ # Next.js dashboard example
tasks/ # Auth, bundle, architecture tasks
java-backend/ # Spring Boot API example
tasks/ # Payment, security, microservice tasks
package.json
tsconfig.json
README.md
LICENSE
| Command | Description |
|---|---|
magneto init | Initialize Magneto AI (auto-detects stack and prompts to install matching packs) |
magneto init --with <packs> | Initialize with specific power packs |
magneto init --adapter <name> | Initialize with an adapter |
magneto init --auto-install | CI mode: auto-install all detected packs without prompting |
magneto init --no-suggest | Skip auto-detection prompt |
magneto detect | Print detected stack (languages, frameworks, clouds) and recommend packs β read-only |
magneto detect --json | Detection output as JSON for tooling |
magneto refresh | Refresh configuration and detect packs |
magneto doctor | Validate setup and diagnose issues |
magneto plan <task> | Generate execution plan (.md, .yaml, or .json) |
magneto plan <task> --dry-run | Preview plan without saving |
magneto run <task> | Execute a task |
magneto run <task> --runner openai | Execute with specific runner |
magneto run <task> --runner ollama | Execute locally via Ollama (no API key, no data egress) |
magneto run <task> --mode observe | Execute in observe mode |
magneto run <task> --approve-each | Execute with step-by-step approval workflow |
magneto merge <outputDir> | Merge agent results |
magneto merge <outputDir> --format md | Merge as Markdown report |
magneto generate <task> | Generate scoped prompt for Windsurf/Copilot |
magneto generate <task> --role backend | Generate prompt for a specific agent role |
magneto generate <task> --output prompt.md | Save prompt to file |
magneto analyze | Analyze codebase and build structured memory |
magneto analyze --include src lib | Analyze specific directories only |
magneto analyze --depth 3 | Limit directory scan depth |
magneto skills list | List all registered skills |
magneto skills install <skill> | Install a skill to IDE |
magneto skills verify | Verify all skills have SKILL.md |
magneto review | Graph-aware code review |
magneto review --diff <file> | Review specific diff |
magneto investigate --error <msg> | Debug with auto-freeze |
magneto ship | Release automation |
magneto ship --draft | Create draft PR |
magneto retro --sprint <id> | Sprint retrospective |
magneto audit --verify | Verify audit hash chain |
magneto learn --save <text> | Save a learning |
magneto guard <paths...> | Activate safety guard |
magneto careful | Enable careful mode |
magneto freeze <paths...> | Freeze paths for editing |
magneto unfreeze | Unfreeze all paths |
magneto trace --coverage | Show trace coverage |
magneto drift --spec <file> | Detect spec drift |
magneto codex review | Cross-model code review |
magneto plan-ceo-review | CEO review gate |
snyk-agent-scan (ToxicSkills detection)Full detail: ROADMAP.md.
MIT β see LICENSE
Magneto AI is free and open source. If it saves you time, consider supporting continued development:
Your support helps fund:
Built with β‘ by the Magneto AI team.
FAQs
Repo-local AI reasoning framework and agent control plane for enterprise environments
The npm package magneto-ai receives a total of 216 weekly downloads. As such, magneto-ai popularity was classified as not popular.
We found that magneto-ai demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.Β It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Replit is integrating Socket Firewall into its AI-powered development experience to help protect builders from malicious open source packages.

Security News
npm confirmed a tooling bug incorrectly marked several one-character packages as security holders and said it was working on a rollback.

Research
/Security News
Newer packages in this compromise use native extensions and .pth loaders to execute JavaScript stealers in developer environments.