Skip to main content

AgentBee: AI-Powered Code Assistant

AgentBee is an AI-powered code assistant designed to help you analyze, understand, and modify your code more efficiently. It leverages large language models (LLMs) to provide intelligent suggestions, automate code modifications, and streamline your development workflow.

Features

  • Code Accumulation: Gathers code from your project, either using git ls-files or a specified path, preparing it for analysis by the LLM.
  • AI Assistance: Provides a command-line interface to send code snippets and instructions to the LLM, receiving back suggested code changes.
  • Automated Code Modification: Applies suggested changes to your codebase automatically.
  • Test-Driven Workflow: Integrates with your existing test scripts to verify the correctness of changes.
  • Configuration: Easily configure API keys, base URLs, and models used by the LLM.
  • Logging: Keeps a detailed log of all interactions and changes made, enabling easy review and debugging.

Getting Started

1. Clone the Repository

git clone https://github.com/buildybee/agentbee.git
cd agentbee

2. Installation

It is highly recommended to use a virtual environment. Then, install the dependencies using pip:

python3 -m venv .venv
source .venv/bin/activate  # On Linux/macOS
# .venv\Scripts\activate  # On Windows
pip install -e .

3. Configuration

Before using AgentBee, you need to configure your API credentials. Run the following command and provide the requested information:

agentbee config-set

You'll be prompted to enter your LLM API key, base URL, and model name. AgentBee stores this configuration in ~/.agentbee/config.ini.

4. Usage

Accumulate Code

To accumulate code from your project, run:

agentbee accumulate

This will gather all files tracked by git (or a specified path via --path) and log them to .bee.log.

Assist with Code Modifications

To get assistance with a specific task, use the assist command:

agentbee assist "Refactor the user authentication module to use JWTs."

This will send your instructions and the accumulated code to the LLM, and save the changes to the .beecode.d directory.

Automated Workflow(WIP)

To run an automated workflow with a test script, use the auto command:

agentbee auto --test tests/integration_test.sh --max-iterations 3

This will run the specified test script, and if it fails, it will use the LLM to attempt to fix the code and re-run the test script, up to the specified number of iterations.

View Configuration

To view the current configuration, use the show command:

agentbee show

Options

  • --fresh: Start with a fresh log file, deleting the old one.
  • --no-scrub: Include comments in the accumulated code.
  • --path: Scan a specific relative path instead of using git ls-files.

Contributing

Contributions are welcome! Please feel free to submit pull requests or open issues to discuss potential improvements.

License

This project is licensed under the MIT License.

Release files for agentbee 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for agentbee 0.0.2
File Size Uploaded
agentbee-0.0.2.tar.gz 12.3 kB Details

Release files / agentbee-0.0.2.tar.gz

Download URL agentbee-0.0.2.tar.gz
Size 12.3 kB
Tags Source
SHA-256 checksum
How to use checksums
2d1d4328f9556686d2b19304ece4092249f3e126e82592b19b91162709e03307
BLAKE2b-256 checksum
How to use checksums
64be8c2417df006d7ccfb4c1185e2059ace3e239a87bab2c9744b2eb878c33a6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.3

Release history Release notifications | RSS feed

This release

0.0.2 This release

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page