Async-first AI-powered CLI coding assistant implementing the ReAct agent pattern
Project description
Capybara Vibe
Async-first AI-powered CLI coding assistant implementing the ReAct agent pattern.
Capybara Vibe is a powerful command-line interface designed to assist developers by leveraging Large Language Models (LLMs) to understand, plan, and execute coding tasks directly within your terminal. It supports interactive chat, one-off command execution, and session management, all built on a robust async architecture.
Features
- ReAct Agent Pattern: Implements sophisticated reasoning and acting loops to solve complex problems.
- Interactive Chat: Natural language conversation with context awareness.
- Multi-Mode Operation:
standard: Balanced autonomy and safety.safe: Restricted permissions, asking for confirmation before critical actions.plan: Focuses on planning without execution permissions.auto: High autonomy for trusted tasks.
- Session Management: Save, list, and resume conversation sessions.
- Model Flexibility: Easy switching between different LLM providers and models.
- Configuration UI: Built-in Web UI for easy configuration management.
- MCP Support: Model Context Protocol (MCP) enabled for enhanced context integration.
Installation
Ensure you have Python 3.10 or higher installed.
pip install capybara-vibe
Getting Started
1. Configuration
Before using Capybara, you need to initialize the configuration. You can do this via an interactive Web UI or through the CLI.
Web UI (Recommended):
capybara init
This will open a configuration page in your browser where you can set up your LLM providers (e.g., OpenAI, Anthropic) and other settings.
CLI Only:
capybara init --cli
2. Basic Usage
Interactive Chat: Start a new chat session to brainstorm or ask questions.
capybara chat
You can also start with an initial message:
capybara chat "Refactor the authentication middleware in src/"
Single Command Run: Execute a specific task and exit.
capybara run "Write a unit test for the user login function"
3. Usage Options
Select Model: Specify a model for a specific command:
capybara chat --model gpt-4-turbo
Set Default Model: View available models and set a global default:
capybara model
Or set it directly:
capybara model gpt-4-turbo
Modes: Run in different modes depending on your needs:
capybara chat --mode safe # Asks for permission before file edits
capybara chat --mode plan # Only generates plans, no file edits
4. Session Management
List Sessions: See your recent activity.
capybara sessions
Resume a Session: Pick up where you left off using the Session ID.
capybara resume <session_id>
Development
To contribute to Capybara Vibe Coding:
- Clone the repository.
- Install dependencies:
pip install -e ".[dev]"
- Run tests:
pytest
License
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file capybara_vibe-0.1.3.tar.gz.
File metadata
- Download URL: capybara_vibe-0.1.3.tar.gz
- Upload date:
- Size: 79.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f0180c3faebd9b76aa0d2083421769d0a7aa0c475ac06639cf3eabc5fb4076a7
|
|
| MD5 |
f0743951d91b28ef4b8458738cf49440
|
|
| BLAKE2b-256 |
977f3c570d434a36b804d6aa877d8a1ba204a71c0b4b08bd6f305b7e57ccdfa9
|
File details
Details for the file capybara_vibe-0.1.3-py3-none-any.whl.
File metadata
- Download URL: capybara_vibe-0.1.3-py3-none-any.whl
- Upload date:
- Size: 99.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5e5187eddf64518a523f2f3ed79cad2df9f19f80cf1e139444dea986bae02e86
|
|
| MD5 |
7171ca84f3bbd08bb272220c8c7dc1da
|
|
| BLAKE2b-256 |
ee72bd93edf5b8ca90237b7a7bffaee6c20081a74855b1b0b4cac5220c1dc8d8
|