headless_core.
AI agents, behind one interface.
A core library for Node.js that lets applications work with local CLIs such as Codex, Claude Code, and Grok in a common way.
const result = await core.run({
agent: { provider: 'codex' },
prompt: 'Build something',
onProgress: onUpdate
});What problem does it solve?
When every tool differs in how it's invoked, what it returns, how it reports progress, and how it handles timeouts, apps that embed AI agents get complicated. I'm designing a thin common layer that absorbs those differences.
What I chose, and how I built it.
One shared entry point
Run different local agent CLIs through the same run() API.
Observe progress
Receive output while it's running via onProgress.
Control termination and failure
Supports AbortSignal, timeoutMs, and fallback hooks.
Normalize model settings
Translates differences in models and reasoning effort across providers.
The big picture.
For technical details, the README and source code in the public repository are the primary source.
Read the README and code on GitHub ↗Status and caveats.
headless_core is not a web API server; it's a library that launches local CLIs. See the README for each CLI's permissions, authentication, and security considerations.
Want to try it?
This page is an introduction. Installation steps, requirements, license, and the latest status are in the public repository.
Check out headless_core on GitHub ↗