gakonst/nanocodex
Building blocks for frontier OpenAI agents in Rust. Nanocodex empowers you with Codex-level performance anywhere.
What it solves
Nanocodex is a headless SDK designed to simplify the creation of AI coding agents. It removes the need for developers to manually manage the complex "loop" required for coding agents, such as maintaining session history, handling tool results, managing prompt ordering, and cleaning up orphaned subprocesses or shell sessions when a task is cancelled.
How it works
It provides a library-first approach where the agent's lifecycle is owned by the SDK. It supports multiple languages (Rust, JavaScript, Python) and integrates with OpenAI and Claude. The system uses a "Hand"—a persistent computer interface—to allow the agent to interact with the local machine across different terminals or projects. It handles the orchestration of typed events, tool execution, and session retention without requiring the developer to rebuild the state machine for steering or compaction.
Who it’s for
Software developers building AI-powered coding tools, IDE extensions, or desktop applications that require a managed, professional-grade coding agent stack with native OS integration.
Highlights
- Multi-language Support: Native bindings for Rust, JavaScript, and Python.
- Managed Lifecycle: Handles session retention, typed history, and automatic cleanup of subprocesses.
- Cross-Platform "Hand": Persistent computer control across macOS, Linux, and Windows.
- Provider Flexibility: Supports both OpenAI and Claude (including managed subscriptions).
- Headless Design: Decouples the agent logic from the UI, allowing developers to use their own renderers (TUI, React, etc.).
Related
- Project
- Project
- Project
- Project
- Project