micro agent
Basic Information
Micro Agent is a small, focused CLI AI agent that helps developers generate and fix code by writing a definitive test and iterating on code until the test passes. It is intended for use in a single-file, test-driven workflow rather than as an end-to-end developer agent. Users run the CLI against a target file and supply a test command; the agent uses large language models to produce code, run the supplied tests, observe failures, and produce new code until tests succeed or a run limit is reached. The project intentionally avoids risky operations such as installing modules or editing many files. It supports interactive mode, manual runs, and experimental visual matching where the agent compares rendered output to screenshots. The CLI is distributed as an npm package and requires Node.js v18 or later. Configuration is done via the micro-agent config command or environment variables and it supports multiple LLM providers rather than a single built-in model.