GitHub Repo: https://github.com/primaprashant/alduin
We start from a skeleton repo with a basic input loop and no LLM. Over seven phases, we add the Anthropic API, implement tools (read file, edit file, bash), and build the core agent loop.
Each phase has hints and a reference commit if you get stuck.
primaprashant•1h ago
Also, there have been plenty of "build a coding agent in 200 lines" posts on HN in the past year, and they're great for seeing the final picture. I created this simple structured exercise so we start from an empty loop and build each piece ourself, phase by phase. So instead of just reading the implementation, I hope more people try the implementation themselves.
These are the 7 phases of implementation:
Feedback and PRs welcome. Happy to answer any questions.