# MicroCodex - Ultra-lightweight coding agent in C++

Original title: Show HN: MicroCodex Coding Agent – OpenAI/codex reimplemented in C++ \<1MB binary

> Hacker News story 49147842 · language: en · submitted 2026-08-02
> Web version: https://zeli.app/story/49147842
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 19 · by [paoloanzn](<https://news.ycombinator.com/user?id=paoloanzn>) · 💬 19
[original](<https://github.com/paoloanzn/microcodex>) · [HN discussion](<https://news.ycombinator.com/item?id=49147842>)

## Summary

MicroCodex is an ultra-lightweight coding agent that runs locally in your terminal. Written in C++23, it delivers a binary under 1MB, making it incredibly fast and resource-efficient. It offers one-shot prompts, an interactive terminal UI, local coding tools, durable conversations, and automatic context compaction. You can use it with your ChatGPT plan, and it supports Codex skills. Installation is a simple curl command on Mac or Linux. Experience a coding agent that's both powerful and minimal.

## Key quote

> MicroCodex is an ultra-lightweight coding agent that runs locally in your terminal, written in C++23, with a binary under 1MB.

## HN discussion (19 comments)

### [fractorial](<https://news.ycombinator.com/item?id=49148731>)

> I’m not quite sure why the harness itself needs to be small. Isn’t the system prompt and management of system prompt the bit you want lightweight?

### [orliesaurus](<https://news.ycombinator.com/item?id=49149419>)

> i love the idea, but you also need to maintain it long term: in today's world what is the best practice to do that... do you spin up an agent anytime codex-cli updates and mirror the updates in c++ and push a new release? or idk... set up an automated process that does this on a worker on CF in a sandbox when npm updates @openai/codex?

---

## Cite

- Page: https://zeli.app/story/49147842
- Date: 2026-08-02
- Source: github.com (https://github.com/paoloanzn/microcodex)
- Hacker News: https://news.ycombinator.com/item?id=49147842

## Other languages

- zh: https://zeli.app/zh/story/49147842 · markdown: https://zeli.app/zh/story/49147842.md
