Achainsaw — AI skill for Claude Code
A compiler for the code AI agents write: a flat SSA language with JSON diagnostics, compiled in under a millisecond to sandboxed native code, as MCP tools.
How to install Achainsaw
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open javier-cabezas/achainsaw and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Achainsaw does
A compiler for the code AI agents write: a flat SSA language with JSON diagnostics, compiled in under a millisecond to sandboxed native code, as MCP tools. Its Llama 3.2 1B prefills 1.7-2.4x faster than llama.cpp.
Alternatives in AI
- AIHawk — Open-source AI browser agent: describe any task in plain language and it autonomously browses, clicks, types a 30.3k ★
- Repomix — 📦 Repomix is a powerful tool that packs your entire repository into a single, AI-friendly file 22.7k ★
- Llmwiki — Open Source Implementation of Karpathy's LLM Wiki 1.5k ★
README
achainsaw
[](https://github.com/javier-cabezas/achainsaw/actions/workflows/ci.yml) [](docs/mcp.md) [](docs/llama.md) [](LICENSE)
**A compiler for the code AI agents write.** Agents write AIR, a small, flat SSA language. achainsaw checks it, answers mistakes with JSON that names the fix, and compiles it in under a millisecond to native code for x86-64 and AArch64. Claude Code and other MCP clients get it as tools, and run the code in a sandbox.
$ achainsaw run examples/agent/sum_squares.air --func sum_squares --args 1000000
{
"backend": "cranelift",
"compile_time_us": 627,
"exec_time_us": 500,
"function": "sum_squares",
"parse_time_us": 61,
"result": 333332833333500000,
"status": "ok",
"threads": 16,
"total_time_ms": 1.273
}
- Made for models to write: one operation per line, no nesting, and
values that change around loops passed as block parameters. Errors are JSON with an
ERR_*code, the source span, and what it takes to fix them, such as the registers in scope. - Safe to run what a model wrote: through MCP, every load and store is checked against the sandbox's memory, runaway loops run out of fuel, and deep recursion hits a stack limit. Each is an error code, never a crash.
- Compiles in under a millisecond on Cranelift, the default backend. The optional LLVM backend takes a few milliseconds and uses the CPU's full vector width.
- Fast code: vectors that take the CPU's width (SSE to AVX-512, NEON,
SVE), int8 dot products (VNNI,
sdot), matrix engines (AMX, SME), andparloops on every core. A whole Llama 3.2 1B forward pass is one AIR file, which prefills 1.7–2
Related Skills
Full Stack Chat Application With Multi Platform Clients AI Agent Integration
A Claude Code-style AI agent harness in Python. Uses Ollama + native LLM tool-calling to read/write files and
AI Document Assistant
Secure, multi-tenant enterprise document intelligence & RAG platform: sandboxed ingestion, hybrid pgvector/Qdr
Oleafly
A powerful live collaborative LaTeX, Typst & Markdown editor with shared cursors, comments, cloud sync, and AI
Skill Compiler
Write Once, Run Anywhere for AI Agent Skills. Claude Code. Codex. OpenClaw. Gemini.
Kitbash
The package manager and compiler for AI agent skills — write once, run in Claude Code, Cursor, Codex, Copilot,
AI Native Founder Playbook Skill
Agent Skill for AI-native startup stage gates, MVP planning, PMF diagnostics, launch operations, and scale-sta
Related Agents
Python Worker
Worker for the Python components strategies/, mcp/, and trader/ (Python 3.14, uv). Owns the strategy SDK and s
Claude Code Leaks
Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you co
Contributing To Claude Code Agent System
Thank you for your interest in contributing to the Claude Code Agent System! 🎉 This project aims to make Reac