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