Skip to content

yujqiao/100cc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

100cc

Roll your own coding agent with 100 lines

The idea is simple. Write the bare minimal harness by hand and then ask it to write itself.

blog post about this

Setup

bun install

Create a .env with:

OPENAI_API_KEY=...        # required
OPENAI_MODEL=...          # required
OPENAI_BASE_URL=...       # optional, defaults to OpenAI's official endpoint

Run

It starts with the bare minimal. Only non-interactive mode(-p) is implemented

bun start -- -p "review this project and add 3 jokes to README.md"

Ask it to write itself

bun start -- -c -p "implement interactive mode for this project"  # -c to continue from the last session

Get some eyecandy

bun start -- -c -p "make this project look nicer"

Going Further

Ask your 100cc to implement TODO.md

Have fun and share with your friends!


This repo tries to keep the signal to noise ratio high and adhere to showing less output

About

Roll your own claude code with 100 lines

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors