Skip to main content

Aizen AI Agent — A professional-grade AI coding assistant for your terminal.

Project description

Aizen AI Agent 🚀

CI

Aizen is a powerful, asynchronous AI assistant that integrates seamlessly into your terminal workflow. It reads your code, edits files safely, runs commands, and provides real‑time, richly formatted assistance—all while keeping costs transparent and sessions persistent.

🌟 Key Benefits

  • Effortless Integration — Operates directly in your terminal, preserving shell state across commands.
  • Intelligent Editing — Perform precise, color‑coded file edits with edit_file.
  • Background Execution — Run long‑running tasks asynchronously and retrieve results later.
  • Cost‑Aware Usage — Real‑time cost estimation for all major LLMs.
  • Persistent Sessions — Save and restore conversations with checkpoints.
  • Rich Visual Feedback — Stream responses with live previews and animated thought indicators.
  • Semantic Codebase Search — Fast local RAG (Retrieval-Augmented Generation) using the /search command.
  • Extensible Architecture — Custom plugins and project‑specific rules tailor Aizen to your workflow.
  • Comprehensive Logging — Rotating logs with optional verbose output for debugging.

🚀 Core Features

Asynchronous Architecture

  • Fully asynchronous operations using asyncio and AsyncOpenAI for concurrent processing, parallel tool runs, and streaming.

Stateful Terminal Session

  • Environment variables and directory changes persist across interactions.

Rich Markdown Rendering

  • Full Markdown support with headers, code blocks, lists, and styling via Rich.

Surgical File Editing

  • Precise search‑and‑replace with color‑coded diff previews (edit_file).

Vision Support

  • Native image handling and encoding for Vision APIs (e.g., GPT‑4o, Claude 3.5 Sonnet).

Local Codebase RAG

  • Intelligent semantic search across your entire codebase using local embeddings and SQLite vector caching, accessible via the /search command and available to the agent.

Real‑Time Command Streaming

  • Background command execution with async streaming of stdout/stderr; use run_command --background.

🎛️ Workflow Tools

  • Background Tasks — Run non‑blocking commands; monitor with check_background_task; cancel with kill_background_task.
  • Session Persistence — Powered by SQLite (~/.aizen_sessions/aizen.db), auto‑migrating older JSON sessions.
  • Project‑Specific Rules — Auto‑load .aizen_rules or .cursorrules for repo‑specific behavior.
  • Smart Autocomplete — TAB‑completion with .gitignore awareness and directory traversal.

💰 Cost Tracking

  • Real‑time token counting for inputs and outputs.
  • Current cost estimate shown in the CLI status bar.
  • Supports Anthropic (Claude 3.5/3.7 Sonnet, Opus, Haiku), Google (Gemini 2.5 Pro/Flash), and OpenAI (GPT‑4o, o1, o3‑mini).

📌 Session Management & Search

  • /search [query] — Perform semantic search across your codebase.
  • /reindex [dir] — Manually trigger indexing for local semantic search.
  • /checkpoint [name] — Save conversation snapshots.
  • /restore [name] — Restore a previous checkpoint.

📁 Structured Logging

  • Logs stored at ~/.aizen_logs/aizen.log (rotated, 5 MB caps, 3 files).
  • Verbose flag mirrors output to console.

📦 Publishing & Development

  • Use publish.sh to build and publish to PyPI, NPM, and PyInstaller binaries.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aizen_ai_cli-2.5.0.tar.gz (81.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aizen_ai_cli-2.5.0-py3-none-any.whl (64.9 kB view details)

Uploaded Python 3

File details

Details for the file aizen_ai_cli-2.5.0.tar.gz.

File metadata

  • Download URL: aizen_ai_cli-2.5.0.tar.gz
  • Upload date:
  • Size: 81.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for aizen_ai_cli-2.5.0.tar.gz
Algorithm Hash digest
SHA256 bff2f6d3f94ec89ce96be18930fc02a9098fb28eab0c293099aa00f2f270a41b
MD5 a7b679b49ff6549e1c1c1a8612eda17a
BLAKE2b-256 22d993034fb422d0a2a784a1c255eda452859768a5beca617cee5513d99e12bc

See more details on using hashes here.

File details

Details for the file aizen_ai_cli-2.5.0-py3-none-any.whl.

File metadata

  • Download URL: aizen_ai_cli-2.5.0-py3-none-any.whl
  • Upload date:
  • Size: 64.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for aizen_ai_cli-2.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b222159f10d5bbd31ebb22647a7cfe919f6615de66135ba1934c54549542fe44
MD5 6a6cae0d8497528775bf9c2d271cdfb3
BLAKE2b-256 d679a991b617e75f34971617f1959d2010e2ab4a45094a5b8c7d522a07232968

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page