1ay1/agentty

AI pair programming in your terminal — one static binary, sub-ms startup, any model

What it solves

agentty is a high-performance terminal-based coding agent designed to replace slower, runtime-dependent tools (like those built on Node.js or Python). It solves the problem of "context dumping," where agents send entire repositories to an LLM, by using a local retrieval system to send only the most relevant code slices, reducing context usage and costs.

How it works

Written in C++26 as a single static binary, agentty operates as a native application with millisecond startup times. It employs a sophisticated local RAG (Retrieval-Augmented Generation) engine that combines BM25 keyword search with dense embeddings and GraphRAG to fetch precise code and documentation. It supports a wide array of LLM providers (Claude, OpenAI, Groq, Ollama, etc.) and features a "Smart Mode" that uses an orchestrator-worker architecture to delegate tasks between flagship and cheaper models based on complexity.

Who it’s for

It is built for developers who want a fast, vendor-agnostic coding assistant that runs directly in the terminal, works offline (via local models), and maintains strict security through sandboxed shell execution.

Highlights

  • Native Performance: Single static binary with ~3ms cold start and zero runtime dependencies.
  • Advanced Local RAG: Hybrid retrieval (BM25 + embeddings), GraphRAG, and reranking to minimize context window bloat.
  • Model Agnostic: Supports multiple providers including Claude, OpenAI, DeepSeek, and local Ollama models with live switching.
  • Security First: Default sandboxing for shell/build commands and an air-gapped mode for secure remote execution via SSH.
  • Smart Mode: An orchestrator-worker system that scales effort and model cost based on the complexity of the task.
  • Zed Integration: Compatible with the Agent Client Protocol (ACP) for use inside the Zed editor.

Related

  • Project
  • Project
  • Project
  • Project
  • Project