Launching today

GhostCode
Open-source starter template for a terminal coding harness
5 followers
Open-source starter template for a terminal coding harness
5 followers
I built GhostCode because coding harnesses got smarter and I understood them less. Small open-source terminal harness you can read and fork ā not a Claude Code clone. Local-first, your API keys. Bun + AI SDK. PLAN + BUILD modes, custom TUI, prompts, tools, Ghost.md memory, JSONL sessions. Good for developers who want to own their harness, not rent one.




AgenticLens
GhostCode is an open-source starter template for a terminal coding harness ā not a Claude Code or OpenCode replacement.
I built it because I wanted to understand how coding agent harnesses actually work: streaming, tool calls, local execution, session persistence. The big tools got smarter; I understood them less. So I made something small enough to read in an afternoon and fork without drowning in code.
What you get:
⢠Local-first ā your API keys, your machine, no hosted account stack
⢠PLAN mode (read-only) + BUILD mode (edit files + shell)
⢠Bun + AI SDK ā swap Anthropic and OpenAI at runtime
⢠Customizable TUI, prompts, tools, and Ghost.md project memory
⢠Session persistence as JSONL under ~/.ghostcode/projects/
⢠MIT license ā fork it, rename it, ship your version
What's missing (on purpose): no MCP, no sub-agents yet. This is a learning template, not a feature parity play.
Good for developers who want to own their harness, not rent one.
Try it: npm install -g ghostcode-cli (needs Bun)
Quick start:
npm install -g ghostcode-cli
export ANTHROPIC_API_KEY=...
ghostcode
Build-your-own walkthrough