Agents Lookup

Use cases / Software development

Auto-fix lint and test failures after each agent edit

Configure the agent to run your linter and tests after every change and fix what it broke before handing the work back.

DifficultyBeginner
Setup timeUnder 1 hour
CategorySoftware development

The use case

Agents that edit code without running anything hand back work that does not compile. Aider can be set to run a lint command and a test command after each change; when they fail, it reads the output and tries to fix the problem before returning. The same habit works with other terminal agents through hooks or instructions. This keeps diffs closer to mergeable and saves the developer a round trip. The developer still reviews the final diff, watches for fixes that silence a linter rule or skip a test, and decides when to commit.

Example workflow

  1. Set lint and test commands in the agent config
  2. Ask the agent for a change
  3. Agent runs lint and tests and fixes failures
  4. Review the final diff and test output
  5. Commit when satisfied

Tools

Risks and guardrails

Sources

Written by Agents Lookup. Credits and official pages for the tools this use case names: