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.
  • One-Shot & Scripting — Use the -p flag for fast CLI pipelines or install shell hooks with --install-shell.
  • Intelligent Context — Auto-detects project languages, frameworks, and Git state on startup.
  • Persistent Memory — AI that learns your preferences across sessions using local SQLite memory.
  • Git & PR Workflow — Built-in commands to branch, stash, amend, and create PRs with AI.
  • Cost Guardrails — Real‑time cost tracking, cross-session analytics (/stats), and strict budget caps (--budget).
  • Rich Visual Feedback — Stream responses with live previews, with graceful Ctrl+C cancellation.
  • Semantic Codebase Search — Fast local RAG (Retrieval-Augmented Generation) using the /search command.
  • Extensible Architecture — Custom plugins, MCP integration, and project‑specific rules tailor Aizen to your workflow.

🚀 Core Features

Asynchronous Architecture

  • Fully asynchronous operations using asyncio and AsyncOpenAI for concurrent processing, parallel tool runs, and streaming. Native retry logic ensures resilience against API blips.

One-Shot & Shell Integration

  • Run aizen -p "fix this" for a single non-interactive response, or pipe input via cat log.txt | aizen -p "summarize". Run aizen --install-shell to get the handy ai command wrapper.

Smart Auto-Context & Memory

  • Aizen automatically parses package.json, pyproject.toml, etc. to understand your stack.
  • Uses ~/.aizen_memory.db to remember architectural decisions and user preferences autonomously using the remember_fact tool.

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).

🎛️ Workflow Commands

  • /auto <task> — Enter autonomous agentic mode for a complex task.
  • /commit — Auto-generate and commit changes.
  • /pr [title] — Create a GitHub PR with an AI-generated description.
  • /branch, /stash, /amend, /log — Full AI-assisted git workflow.
  • /remember <fact> — Store a fact in persistent memory.
  • /memory — View all stored memories.
  • /forget <id> — Remove a specific memory.

💰 Cost Tracking & Analytics

  • Real-time Pricing: Pulls live pricing from OpenRouter cache.
  • Budgeting: Enforce session limits with --budget 0.50 or /budget.
  • Analytics: Cross-session usage tracked in SQLite. Run /stats for a beautiful summary and sparkline chart.
  • Multi-Model Routing: Override the global model inline by typing @claude-3.5-sonnet <prompt>. Supports Anthropic, Google, OpenAI, DeepSeek, and Meta models.

📌 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.
  • /export — Export conversation to Markdown.

📁 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.6.0.tar.gz (95.3 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.6.0-py3-none-any.whl (80.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: aizen_ai_cli-2.6.0.tar.gz
  • Upload date:
  • Size: 95.3 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.6.0.tar.gz
Algorithm Hash digest
SHA256 95cdda7aee78247b3ce2688fb4cc0a3d824dd42bbf0e87b76a1e10520933fce5
MD5 e2be72dbcb1ea91e5edd78e6d9091f7b
BLAKE2b-256 4eeab68a3742457f16dfa9bd0b0793c19569ada30847986d9d9b682afc4cd40f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: aizen_ai_cli-2.6.0-py3-none-any.whl
  • Upload date:
  • Size: 80.2 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.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e8e838b7ba1b9724fa2ff89e9eddc5cb569bc8f71175b8e106ea171ea457ef3e
MD5 d5cda7a5a1d67fa5cab480c117c0c186
BLAKE2b-256 6c6df539101bec6342c13034bf9dc8cb42735bf9cd44466a6f59c5c3e1b2c5e1

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