heikki-laitala

Ptrclaw — AI skill for Claude Code

AI community

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 .cpp file
  • 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