ljw1004/mini_agent
93 stars · Last commit 2025-09-04
A mini AI agent CLI, similar to Claude Code and Gemini CLI
README preview
# Mini-agent This is a minimal coding assistant with the same behavior as Claude Code. Minimal: just 280 loc for the agent, 400 loc for tools, 1200 lop for prompts. Intuitively it "runs an interactive coding agent": ``` $ python3 -m venv venv $ source venv/bin/activate $ pip install -r requirements.txt $ export GEMINI_API_KEY=redacted $ ./mini_agent.py --model gemini/gemini-2.5-pro [MODEL: gemini/gemini-2.5-pro + gemini/gemini-2.5-flash] [IMPLICIT --mcp builtin] [TRANSCRIPT: /Users/ljw1004/.claude/projects/default/2025-09-01.jsonl] > Please analyze the files in my current directory and tell me what they do. >> <system-reminder># CLAUDE.md (project instructions) ...</system-reminder>