Skip to main content

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:

  1. Clone the repository.
  2. Install dependencies:
    pip install -e ".[dev]"
    
  3. Run tests:
    pytest
    

License

MIT

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

capybara_vibe-0.1.2.tar.gz (73.7 kB view details)

Uploaded Source

Built Distribution

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

capybara_vibe-0.1.2-py3-none-any.whl (93.3 kB view details)

Uploaded Python 3

File details

Details for the file capybara_vibe-0.1.2.tar.gz.

File metadata

  • Download URL: capybara_vibe-0.1.2.tar.gz
  • Upload date:
  • Size: 73.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for capybara_vibe-0.1.2.tar.gz
Algorithm Hash digest
SHA256 e4f025ac7d6e9566e4fec4167280e7ed2e4f34d3b60fbd28f2a92f30605f82ce
MD5 7e691dba50671e914606ce360229a6bc
BLAKE2b-256 d8057ab2ccf983dabe7579d5913e8d823f7714260c59714d019b98e44a268499

See more details on using hashes here.

File details

Details for the file capybara_vibe-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: capybara_vibe-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 93.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for capybara_vibe-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6df8a96cdbec2248c9a74ff55fdac7b95cd29cc4eb7bc9ddcba31f10ea4cec9a
MD5 c4e266b07049057b85d31a96021b7c9b
BLAKE2b-256 faa941cd979cebc5fed118ce9001d2e13864d130bb9be36aa6f6a598302edd29

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