o9nn/agi-os

C++

0

884 commits

updated Apr 3, 2026

See the code

README

Some folks were talking about how minimal they could make a functional coding agent.

I decided to play the game.

src/agent.ts was, roughly, what Claude Code could do.

Then I set it upon itself.

Over the course of 20 minutes, it golfed itself down to something pretty darn minimal.

jsrc/smallest-agent.js is currently 803 bytes.

smallest-agent.commented.js is a commented version of the code with easier to read variable names.

# terser -c -m --module smallest-agent.commented.js > src/smallest-agent.js is how we do the last bit of the transform

IT HAS UNRESTRICTED BASH ACCESS. IT CAN DO ANYTHING. IT MIGHT DECIDE TO ERASE ALL YOUR FILES AND INSTALL LINUX

Contributors

Copilot

289 commits

drzo

261 commits

danregima

102 commits

o9nn/agi-os

C++

0

884 commits

updated Apr 3, 2026

See the code

README

Some folks were talking about how minimal they could make a functional coding agent.

I decided to play the game.

src/agent.ts was, roughly, what Claude Code could do.

Then I set it upon itself.

Over the course of 20 minutes, it golfed itself down to something pretty darn minimal.

jsrc/smallest-agent.js is currently 803 bytes.

smallest-agent.commented.js is a commented version of the code with easier to read variable names.

# terser -c -m --module smallest-agent.commented.js > src/smallest-agent.js is how we do the last bit of the transform

IT HAS UNRESTRICTED BASH ACCESS. IT CAN DO ANYTHING. IT MIGHT DECIDE TO ERASE ALL YOUR FILES AND INSTALL LINUX

Contributors

Copilot

289 commits

drzo

261 commits

danregima

102 commits

Languages

C++

35.3%

C

19.9%

Scheme

12.3%

MeTTa

5.8%

Python

5.2%

HTML

4.5%

JavaScript

4.0%

TypeScript

1.7%

Cuda

1.6%

CSS

1.2%

Limbo

1.0%

Assembly

1.0%