AGENT 03 / 07
Coder
An autonomous systems developer. It navigates massive codebases using AST symbol maps, reproduces bugs in sandboxes, and writes verified code with atomic undo support.
coder · autonomous
01What it does
Precision code analysis & editing
AST symbol mapping
Extracts classes, structs, traits, and functions across hundreds of files in sub-50ms using Tree-sitter.
Isolated execution
Executes Python, Node.js, and shell commands inside restricted Docker sandboxes with CPU/memory limits.
File edit with undo
Performs precision code replacements with atomic rollback history and path conflict prevention.
Git version control
Inspects diffs, commits clean semantic patches, and stages pull requests subject to operator approval.
Syntax verification
Runs compiler checks (cargo check, tsc, pytest) before declaring tasks completed.
Protected surfaces
Prevents self-modification of system configuration, security rules, and database stores.
02How it works
From issue diagnosis to verified commit
Repo mapping
Constructs an AST symbol index of the repository to locate relevant functions and definitions.
Reproduce & diagnose
Runs tests in an isolated sandbox to reproduce the reported issue or verify existing behavior.
Edit & refactor
Applies targeted code edits with transactional backup tracking.
Verify & test
Executes test suites and linter passes to verify zero regressions.
Commit & stage PR
Stages git commits and submits pull request drafts for human review.
03Under the hood
The runtime underneath
| AST indexing | Tree-sitter native symbol extraction across 240+ files in 34ms |
| sandboxing | OS subprocess isolation with CPU quota and memory bounds |
| diff safety | Unified diff validation with rollback journals on disk |
| shell guard | Destructive command patterns (rm -rf, mkfs) blocked at executor |
04Tools