Keen Code

Keen Code is an open-source, terminal-based AI coding agent built in Go by developer mochow13. It runs directly inside shell environments to assist software engineers with code editing, repository navigation, and agentic task execution. Operating via the command line, Keen Code parses local project contexts, executes developer prompts, and modifies source files. It leverages repository-level agent configurations, extensible skill modules, and interaction logging to track context and maintain structured workflows during coding sessions. Built natively in Go, Keen Code focuses on fast startup times and minimal runtime dependencies compared to heavier GUI or runtime-heavy coding assistants. It supports installation through both compiled native binaries and npm package managers, and includes a skill definitions system to extend the agent's capabilities. Keen Code is distributed as free, open-source software under the MIT license. Users provide their own LLM API keys or backend endpoints for model execution.

Tags: ai agent, cli, code assistant, coding agent, terminal

Visit Keen Code

Key features

  • Native Go Binary — Fast startup and low memory footprint with cross-platform native binaries packaged via GoReleaser. - Agent Skills Framework — Modular skill definitions housed in .agents/skills to extend agent capabilities for specialized tasks. - Dual Distribution — Installable as a standalone compiled binary or via an npm package wrapper for Node.js workflows. - Interaction History — Captures and maintains local context through structured interaction tracking in .ai-interactions. - CLI-Native Execution — Runs directly within the developer terminal without requiring a heavy IDE or GUI environment.

Use cases

Use Case: Terminal-Based Codebase Refactoring Developers can run Keen Code in their project root to inspect source files, generate refactored code, and apply changes directly from the command line without switching to a GUI.

Use Case: Custom Agent Workflows Engineers can define domain-specific automation routines within .agents/skills to teach Keen Code specialized release, testing, or linting procedures across their repository.

Use Case: Lightweight Shell-Based Development Developers working on remote servers, in SSH sessions, or inside minimal tmux environments can execute agentic coding tasks without needing VS Code or browser-based tools.

Who it is for

Keen Code is intended for terminal-focused software engineers and DevOps practitioners looking for an open-source, customizable CLI agent with low overhead. It is not designed for developers who prefer graphical user interfaces, inline IDE visual diffs, or out-of-the-box managed cloud platforms.

Install guide

Installation Install Keen Code via npm (standard distribution wrapper): bash npm install -g keen-code Or build directly from source using Go: bash git clone https://github.com/mochow13/keen-code.git cd keen-code go build -o keen ./cmd/keen

First Run Configure your environment with your model provider's API key: bash export OPENAI_API_KEY="your-api-key-here" # or set provider credentials specified in your repository configuration Verify the installation: bash keen --help

Example Session Navigate to your project directory and run a task prompt: bash keen "Analyze internal/server/router.go and add an HTTP health check endpoint"

Part of CLI Coding Agents

Categories: AI Coding Agents, Code Assistants, Developer Tools

Related CLI agents

  • Claude Code — Claude Code is an official terminal-based agentic coding tool developed by Anthropic. Executed via the `claude` CLI command, it provides…
  • ZAP — ZAP is an open-source, terminal-based AI coding agent implemented in Rust by the zap-coding-agent project. It provides an autonomous command-line…
  • Junie — Junie is an autonomous terminal-based AI coding agent developed by JetBrains. Built on top of the IntelliJ IDEA engine, it…
  • Kolega Code — Kolega Code (kolega-code) is an open-source Python-based terminal coding agent developed by the Kolega AI team. It is built to…
  • FetchCoder — FetchCoder is a terminal-based AI coding assistant developed under the Fetch.ai organization. Built specifically for command-line workflows, the tool provides…
  • Open Codex — Open Codex is an open-source, community-maintained fork of OpenAI's Codex CLI tooling, maintained by ymichael on GitHub. It provides a…
  • AI Tools
  • Categories
  • Industries
  • CLI Coding Agents
  • MCP Servers
  • MCP Categories