Ptrclaw — AI skill for Claude Code
A lightweight C++17 AI assistant runtime with pluggable providers, channels, and tools — built for fast startup, small binaries, and practical self-hosting.
How to install Ptrclaw
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open heikki-laitala/ptrclaw and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Ptrclaw does
A lightweight C++17 AI assistant runtime with pluggable providers, channels, and tools — built for fast startup, small binaries, and practical self-hosting.
Alternatives in AI
- Startup Canvas — Generate Startup Canvas combining Product Strategy and Business Model 7.8k ★
- Auto Re Agent — Open-source AI reverse-engineering agent using Ghidra and LLMs to reconstruct and validate C/C++ functions fro 1.4k ★
- Agentty — AI pair programming in your terminal — one static binary, sub-ms startup, any model 597 ★
README
PtrClaw
An AI assistant you can actually deploy anywhere. Single binary with dependencies statically linked in, no containers needed. Run it as a CLI tool, a Telegram bot, or embed it as a shared library in Flutter/mobile/desktop apps. WhatsApp is available as an opt-in build flag.
Built in C++17 because infrastructure should be small, fast, and boring to operate.
**~581 KB stripped static binary (macOS arm64). 5 LLM providers. 10 built-in tools. Telegram channel (+ WhatsApp opt-in). Persistent memory with knowledge graph and vector search. Compile-time feature flags to strip what you don't need.**
Why PtrClaw?
Most AI agent frameworks are Python packages with deep dependency trees, virtual environments, and careful version management just to get running. PtrClaw is a single binary that you `scp` to a server and run. It compiles in seconds, starts instantly, and uses minimal memory.
- Deploy anywhere — one binary with deps statically linked, runs on any Linux box or Mac. Embeddable SDK for Flutter/mobile/desktop apps
- Swap providers freely — Anthropic, OpenAI, OpenRouter, Ollama, or any OpenAI-compatible endpoint. Switch with a config change, no code modifications
- Real tool use — file I/O, shell execution (with stdin piping), cron scheduling, and a persistent knowledge graph memory system. Providers with native function calling use it directly; others fall back to XML-based parsing
- Extend without forking — providers, channels, tools, and memory backends self-register via a plugin system. Add a new one by implementing an interface and dropping in a
.cppfile - Build only what you need — 15 compile-time feature flags let you strip unused providers, channels, and tools for smaller binaries (down to ~514 KB)
Features
- LLM streaming — real-time token streaming with progressive message editing in channels
- Event-driven architecture — publish/subscribe event bus decouples agent, channels, and streaming
- **Interactive RE
Related Skills
Ethan Agent
A lightweight, high-performance personal AI agent. Fast async core, pluggable tools, and open integration with
Postline
Your AI coding agent, in your pocket — a lightweight, extensible mobile front-end for Claude Code / Codex. Dri
AgentOS
Turn your iPhone into an AI agent host. 165+ native tools, 30 agents, 10 channels, 5 AI providers. Pure Swift
CodeForge
CodeForge — a terminal AI coding assistant in Python (Claude Code-style). Pluggable ReAct agent loop, extensib
Ruby Nano Bots
Ruby Implementation of Nano Bots: small, AI-powered bots that can be easily shared as a single file, designed
Rustdsh
Fast Rust launcher for DeepSeek Harness, with clear Claude Code/Codex migration, model setup and lightweight l
Related Agents
Tool Stack Auditor
Audits the online tools and services the other personas actually use — marketing platforms, shops, print/JIT p
Continuum Tech Author
Specialist for Continuum technology bindings and vocabulary claims - how each Environment realizes the ADL (ru
Binary Triage
Fast initial assessment of unknown binaries using radare2 and shell tools. No heavy analysis — format ID, stri