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 hea
What is 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.
Overview of aft
What it is
AFT (Agentic Framework for Tools) is a Rust binary that acts as a sensorimotor cortex for coding agents. It sits between an agent's reasoning and the codebase, providing structured perception (sensory cortex) and precise action (motor cortex) with an autonomic layer (brainstem) for background tasks and recovery. It ships with thin adapters for OpenCode, Pi, and OMP (oh-my-pi), hoisting the host's built-in tool slots and adding an aft_ family of tools.
Key features
- Symbol-aware edits: edit functions by name, refactor across workspace, organize imports.
- Semantic search: hybrid semantic + lexical retrieval over an indexed codebase.
- Code health: one-call reports covering LSP errors, TODOs, metrics, dead code, unused exports, duplicates.
- Fast grep/glob: trigram-indexed regex search and file discovery with background persistence.
- Bash compression: unified shell execution with command rewriting and output compression.
- Background tasks: long-running work handled without agent attention.
- PTY sessions: terminal sessions for interactive processes.
Use cases
- Enhancing AI coding agents (OpenCode, Pi, OMP) with IDE-like code understanding and OS-level task management.
- Reducing token consumption by replacing whole-file reads with structured outlines and symbol-level operations.
- Improving edit accuracy through parsed, validated, and backed-up mutations.
- Managing long-running background tasks and compressed output without agent overhead.
Getting started
bash npx @cortexkit/aft@latest setup Auto-detects installed harnesses (OpenCode, Pi, OMP) and configures each one. On the next session start, the aft binary downloads if needed and all tools come online.
License and pricing
MIT open-source license.
Based on the project's public README and repository metadata.