CLAII is an open-source terminal-based AI coding assistant developed by agencyswarm. Built in Python, it serves as a lightweight CLI agent designed to help developers inspect local codebases, manage tasks, and run modular functions directly from the shell. The tool runs as a CLI package via a standard terminal entrypoint. During daily development, users interact with the agent from their current working directory, passing instructions and querying code. CLAII manages multi-turn conversation states through a dedicated memory module, providing model compatibility for providers such as Google Gemini by normalizing message roles to adhere to provider SDK requirements. CLAII differentiates itself through built-in persistent local memory (.claii_memory.json), system prompt heuristics tuned for workspace path handling, and support for explicit @kb syntax to mention and inject knowledge base files directly into the prompt context. The project is available as an open-source repository on GitHub. It represents an early-stage, modular agent implementation configured via pyproject.toml and standard Python environment settings.
Tags: ai agent, cli, coding agent, developer tools, terminal
.claii_memory.json. - Gemini Role Normalization — Includes dedicated memory formatting to normalize chat roles for compatibility with Google Gemini SDK specifications. - Knowledge Base Mentions (@kb) — Allows developers to explicitly include project documentation and context files into queries using @kb tags. - Workspace Path Heuristics — System prompt rules designed to reliably navigate and handle relative file paths within the active directory. - Modular Function Calling — Structured package layout separating CLI logic, configuration, and executable agent functions.@kb When modifying code that adheres to strict external documentation or specifications, developers can reference relevant design documents directly in prompts using the @kb syntax.CLAII is suited for Python developers and researchers looking for a lightweight, hackable terminal agent with local memory persistence and Gemini support. It is not intended for teams needing turnkey enterprise governance, IDE extensions, or complex multi-agent orchestration out of the box.
pip: bash git clone https://github.com/agencyswarm/CLAII.git cd CLAII pip install -e .config.py: bash export GEMINI_API_KEY="your-gemini-api-key" python main.pybash python main.py "Inspect calculator/ and write unit tests based on specifications in @kb README.md"Part of CLI Coding Agents
Categories: AI Coding Agents, Code Assistants, Developer Tools