A compact coding agent written in pure C, syscall tools, memory, pi-style TUI
syscall-agent is a compact, pure C-based coding agent that interfaces with OpenRouter and uses OS-level system calls for local operations. It supports both command-line and an interactive, Pi-style text-based user interface with features like file editing, network lookups, and process management. The agent maintains persistent memory in Markdown format and includes safeguards like atomic file writes and optional execution sandboxing.
- ▪syscall-agent is written in pure C and compiles into a single binary for macOS, Linux, or Android via Termux.
- ▪It communicates with OpenRouter for AI-powered code assistance and supports tool-calling for file, network, process, and memory operations.
- ▪The agent features a TUI interface, persistent MEMORY.md with locking, and optional secure execution of local commands with resource limits.
- ▪Users must provide an OpenRouter API key and can extend functionality with local skill packs and environment variables.
- ▪It includes regression tests and supports Android integration through Termux:API for device-level features.
Opening excerpt (first ~120 words) tap to expand
syscall-agent syscall-agent is a compact coding agent written in pure C. It talks to OpenRouter, keeps durable memory in Markdown, and exposes local tools that lean on OS primitives such as fork, execvp, mmap, rename, kqueue, inotify, getaddrinfo, non-blocking sockets, and process-table syscalls. The goal is a small single-binary agent that can inspect code, edit files, perform network lookups, run bounded local commands, and stay usable from both plain CLI mode and a responsive Pi-style TUI. ImportantThis is a local coding agent with powerful filesystem and optional process execution tools. Run it in a repository or disposable workspace you trust. Highlights Pure C implementation with one generated binary. OpenRouter chat-completions backend.
…
Excerpt limited to ~120 words for fair-use compliance. The full article is at GitHub.