8gent Code.
01

8gent
Code.

Open source autonomous coding agent. Free and local-first. Slip into the loop. The room hums while it codes.

$ npm install -g @8gi-foundation/8gent-code
$ 8gent
Installation
npm install and start coding
Documentation
Architecture, guides, API reference
Source Code
Apache 2.0 licensed, contributions welcome

What Eight does

Eight is a terminal-based coding agent with persistent memory, parallel worktree execution, a policy engine for safe operations, self-evolution via session reflection, self-healing with atomic checkpoints, AST-level code navigation, browser automation, and multi-agent orchestration.

An adaptive router across 13 providers means Eight works with whatever you have - local models, free cloud tiers, or paid APIs. No single vendor lock-in. The failover chain keeps you running even when providers go down. Built on Bun with an Ink v6 TUI (React for the terminal).

The system prompt improves itself through an autoresearch loop inspired by Karpathy: run benchmarks, analyze failures, derive mutations, re-test. The model router learns which model performs best on which domain and routes accordingly. Eight gets better every session.

Documentation

Getting Started
Installation / Quick Start / Configuration
Architecture
Overview / Model Router / Autoresearch / Kernel
Guides
TUI / Personalization / OpenRouter / MCP
Reference
CLI / Slash Commands / Tools / Hooks