Shaf Lab

Coding agents

Terminal or IDE agents that read and edit a software repository, such as Claude Code or OpenCode.

A coding agent is a terminal or IDE assistant that can read and edit a software repository, run commands, and iterate on a task. Claude Code and OpenCode are examples of this shape: you give a goal, the agent inspects the tree, proposes patches, and uses tests or the type checker as feedback. It is a colleague with a keyboard, not just a chat box that pastes snippets.

These tools work best on a well-bounded job: fix this test, add this endpoint, explain this module and then change it. They struggle when the repo has no way to check the work, or when the task is a vague redesign. Give the agent a branch, a command to run, and a clear stop condition.

You still have to review the diff. Agents can write a lot of plausible code that misses an invariant you have in your head. Keep secrets out of the workspace you hand them, and prefer running untrusted steps in a sandbox when the agent is installing packages or executing generated scripts.

If a coding agent is saving you time, it is because the loop around it is tight. Invest in tests, types, and a repo a newcomer could navigate. The agent is that newcomer, every session.