Tiny Agents
At their core, many AI agents are simple loops, language models calling tools to observe and act. Two areas where this already works, and will accelerate further as models improve, are coding agents that edit codebases, and computer-use agents that control software by clicking and typing like a human.
With the OpenAI Agents SDK, it turns out you can build minimal versions of both with surprisingly little code: around 200 lines for a coding agent, and 100 lines for a computer-use agent. The two examples are available in the lutzroeder/agents repository on GitHub.
Coding Agents
Coding agents use LLMs to modify code across multiple files by reading, editing, and running shell commands much like a developer would. This makes their behavior intuitive and easy to follow.
One example is the minimal coding agent in the repo, built to work with Claude 4, o3 or Gemini Pro 2.5 by prompting the model to loop through a plan-edit-review cycle. It uses simple tools for file access and a bash command tool for shell operations like running builds or tests.
Computer-Use Agents
Computer-use agents let LLMs control real software by simulating user actions on the screen. The model works at the same level as a human user would, viewing the screen and interacting through mouse and keyboard input.
A good starting point is the minimal computer-use agent in the repo, built to work with the OpenAI Computer-Using (CUA) model. It uses a tool to perform actions, like clicking or typing, to accomplish a goal. The same tool is used to take a screenshot on each turn. With just 100 lines of code, it's a lightweight and hands-on way to explore how a multimodal agent can observe and navigate.
Final Thoughts
These tiny agents aren’t just proofs of concept, they are hands-on playgrounds. With little code, you can follow each model step, tweak behaviors, and understand what’s happening under the hood.