Create a CLI coding agent from a Python LLM base
Claude Code turned Simon Willison’s Python LLM template into a working CLI coding agent from two prompts.
- What they did
- Simon Willison started a fresh repo from his Python library template and handed Claude Code for web two tasks. The first asked for a spec.md describing a Claude Code-style agent for the llm alpha; the second asked for an implementation plan using red/green TDD, sensible commits, docs, and manual testing with the OpenAI key available in the environment.
- How it went
- The agent reached an alpha release on PyPI, and Willison said it looked pretty good for a first try. It gained tools for reading and changing files plus running commands, and it also exposed a Python API he had not requested. In a GPT-5.5 demo, it built a clock display made from text characters.
- Tips
- The demo relied on --yolo, so approvals were skipped entirely. The README also mentions narrower allow-list options such as --allow pytest* if you want tighter control.
Try it yourself with Claude Code
Start from [Python LLM library or template] and build a CLI coding agent for [project name]. It should be able to inspect files, edit files, and execute shell commands in the current directory. First write a short spec, then implement it with small test-driven steps, clear commits, and a README. Before any step that would send data, overwrite work, delete files, or submit something externally, pause and ask me to approve it. When the build is done, run it on a simple demo task in [scratch directory] and print the transcript.
Fill in the [brackets]. Agents can make mistakes, so review anything before it is sent, paid or deleted.
Get 3 agent uses like this every morning
With the day's top AI news. Free, and one click to unsubscribe.
Related agent uses
Have coding agents test your onboarding flow
Run coding agents through your product’s onboarding and get a scorecard, fix list, and session traces.
Run coding agents in parallel with tmux and Markdown specs
Manuel Schipper uses separate tmux panes and numbered Markdown specs to keep several coding agents moving at once.
Let your agent patch its own repo
A developer reported that their custom agent made its first code edit in its own repository.
Use an agent to inspect and explain COBOL on z/OS
A desktop agent connected to a mainframe to read COBOL, submit jobs, and summarize failures from spool output.
Use parallel agents to build a database engine
They split a SQLite implementation across several coding agents working in separate branches, then merged the pieces after repeated test-and-fix loops.
Track agent memory in git for coding work
Store project context in git so a coding agent can reuse decisions and notes across sessions.