Agent AFK is a self-hosted agent runtime and orchestration harness developed by GRAIsol. Rather than acting as a wrapper around generic agent frameworks, it is built directly on Anthropic's raw Messages API and the OpenAI Codex SDK, providing a low-level runtime for long-running, autonomous development tasks. The system operates across three unified surfaces: an interactive terminal CLI, a headless background daemon, and a Telegram bot interface. All surfaces share a single session manager, SQLite-backed cross-session memory (via better-sqlite3), and a common configuration root. Developers orchestrate workflows using composable slash commands that manage tool dispatch, prompt caching, and sub-agent lifecycles. What distinguishes Agent AFK from lightweight CLI wrappers is its architectural emphasis on long-running resilience. It implements custom session lifecycles with an AbortGraph structure for transitive cancellation across sub-agent trees, per-symbol SDK audits in CI to prevent upstream drift, and an automated telemetry system that logs agent dispatches to JSONL to evaluate and qualify new skills. Agent AFK operates on a self-hosted, bring-your-own-key (BYOK) model using a git-based plugin architecture. It is distributed on a request-access basis for teams and consulting engagements.
Tags: agent harness, ai agent, cli, coding agent, developer tools
/mint command to execute an entire feature lifecycle from the terminal. The harness researches existing patterns in the codebase, designs the implementation, writes code, executes local tests, and verifies the final result without requiring step-by-step human intervention./diagnose. The orchestrator forks multiple parallel sub-agents to investigate competing failure hypotheses simultaneously, returning a single consolidated diagnosis and fix strategy.Agent AFK is built for senior engineers, technical leads, and consulting practitioners who require deterministic, long-running agent workflows with deep telemetry and multi-surface access. It is not intended for beginners looking for basic code autocomplete or simple stateless chat wrappers.
bash # Clone and install dependencies (Node 20+ required) git clone https://github.com/graisol/agent-afk.git cd agent-afk npm install npm run buildbash # Export API credentials export ANTHROPIC_API_KEY="your-anthropic-api-key" export OPENAI_API_KEY="your-openai-api-key" # optional export TELEGRAM_BOT_TOKEN="your-telegram-bot-token" # optional # Start the background daemon ./bin/afk daemon start/mint pipeline: bash # Trigger the spec -> research -> build -> verify loop ./bin/afk /mint "Add Redis-backed rate limiting middleware to the API with unit tests"Part of CLI Coding Agents
Categories: AI Coding Agents, Code Assistants, Developer Tools