CodeMaster
A six-stage coding agent for the terminal that spends as few tokens as it can get away with.
AI engineering
most coding agents lose on context, not on reasoning. they either read the whole repository and pay for it, or read too little and confidently patch the wrong file. CodeMaster is a terminal orchestrator built on the Claude Code CLI, and it exists to avoid both.
the pipeline is six stages with one job each: Planner, Searcher, Context Builder, Coder, Reviewer, Patcher. splitting them keeps every prompt short and every instruction file specific. one agent asked to plan and edit at the same time does neither carefully.
the Context Builder is where the saving actually happens. it walks the AST to pull the exact functions and classes in scope and uses grep for the file search, so the Coder gets a small, high-signal slice instead of a directory dump and still knows the shape of the codebase around it.
patches come back as unified diffs, parsed and applied in pure Python, with a confirmation step before anything is written to disk.
What I’d point at
the confirmation step. it's the least clever thing in here and the only reason I'll run it on a repo I care about.
