Hacker News

Show HN: Ditto – the simplest self-building coding agent

Hacker News - Tue, 10/15/2024 - 6:38pm

I built a super simple coding agent, as a ~500 line python script, that includes a simple front-end interface. It's a single LLM loop with 5 tools.

When you load the app, it shows you a form where you describe the app you want, and it will show you progress as it builds your Python Flask app by writing folders and files into the static, templates, and routes folder.

It uses a task_completed tool to decide when it's done, which exits the loop. Just reload the Flask app (which rebuilds all the routes it created), and it will point you to your new app instead of the original input form (which it does by simply determining if index.html exists).

It's not as powerful as Replit Agent, but at ~500 lines of code, pretty fun to play with and easy to improve upon by simply updating the prompt or adding some tools.

Comments URL: https://news.ycombinator.com/item?id=41853861

Points: 1

# Comments: 0

Categories: Hacker News

Technical Debt Frfr

Hacker News - Tue, 10/15/2024 - 6:21pm
Categories: Hacker News

Rust Transmute Without Unsafe

Hacker News - Tue, 10/15/2024 - 6:21pm
Categories: Hacker News

Pages