cortexkit/aft
Give your agent a proper IDE and OS. The sensorimotor cortex for coding agents (OpenCode + Pi), part of CortexKit: symbol-aware edits, semantic search, code health, fast grep/glob, bash compression, background tasks, PTY.
What it solves
Coding agents often struggle with large codebases because they rely on reading entire files, which wastes tokens and leads to errors when code structure changes. AFT acts as a specialized "sensorimotor cortex" for these agents, providing them with a structured, IDE-like understanding of the codebase and a robust operating system layer for reliable execution.
How it works
AFT is a Rust-based binary that sits between an agent and your files. It uses tree-sitter parsing to help the agent "see" code structure (symbols, call graphs, and semantic meaning) rather than just raw text. For actions, it provides symbol-aware editing, refactoring, and file management that validates changes before they hit the disk. It also includes a "brainstem" layer that manages background tasks, interactive terminal sessions, and output compression to keep the agent's environment stable and efficient.
Who it’s for
Developers using coding agents like OpenCode, Pi, or OMP who want to improve agent performance, reduce token consumption, and increase the reliability of automated code edits.
Highlights
- Structured Perception: Enables agents to zoom into specific functions, follow call graphs, and perform semantic searches instead of reading whole files.
- Precise Actions: Supports symbol-based editing, multi-file transactions, and language-aware import organization.
- Background OS: Manages long-running bash tasks, PTY sessions, and output compression to keep the agent's environment running smoothly.
- Safety First: Includes an automatic undo stack and per-file backups to ensure codebases remain recoverable.
- Broad Language Support: Works with over 30 languages, including TypeScript, Python, Rust, Go, and C++.
Related
- Project
- Project
- Dispatch
- Project
- Project