Skip to main content

A command-line coding agent.

Project description

Heare Developer CLI

Heare Developer CLI is a powerful and interactive coding assistant that leverages Anthropic's Claude AI models to help developers with various tasks. It provides a sandbox environment where you can perform file operations, execute bash commands, and interact with an AI assistant for coding-related queries and tasks.

Key Features

  1. Advanced AI Models: Access to Claude 3 models (Opus, Sonnet, Sonnet-3.5, Haiku) for varied needs and performance levels
  2. Intelligent File Handling: Smart file mention system using @ syntax for referencing files
  3. Sandbox Environment: Configurable sandbox modes for controlled file operations
  4. Tool Integration: Built-in tools for file and system operations
  5. Command Auto-completion: Intelligent command and path completion
  6. Multi-line Input Support: Easy handling of multi-line code and text input
  7. Token Usage Tracking: Real-time monitoring of token usage and associated costs
  8. Rate Limiting Protection: Built-in rate limit handling with exponential backoff
  9. Permission Management: Granular control over file and system operations
  10. Rich Command History: Searchable command history with auto-suggestions

Installation

  1. Clone the repository:

    git clone https://github.com/clusterfudge/heare-developer.git
    cd heare-developer
    
  2. Install the required dependencies:

    pip install -r requirements.txt
    
  3. Set up your Anthropic API key:

    export ANTHROPIC_API_KEY=your_api_key_here
    

    Or create a .env file containing:

    ANTHROPIC_API_KEY=your_api_key_here
    

Usage

Basic usage:

python -m heare.developer.cli [sandbox_path]

Command Line Options

  • sandbox_path: Path to initialize the sandbox (default: current directory)
  • --model: Choose the Claude AI model (default: sonnet-3.5)
    • Available options: opus, sonnet, sonnet-3.5, haiku
  • --summary-cache: Specify path for summary cache (default: ~/.cache/heare.summary_cache)
  • --sandbox-mode: Set sandbox mode for file operations
    • Options: REMEMBER_PER_RESOURCE, FORGET_IMMEDIATELY, REMEMBER_FOREVER
  • --prompt: Provide initial prompt (prefix with @ to read from file)

Interactive Features

  1. File References: Use @ syntax to reference files in your messages:

    > Can you explain the code in @src/main.py?
    
  2. Multi-line Input:

    > {
    Here's my multi-line
    input that can include
    code or text
    }
    
  3. Command Auto-completion:

    • Press Tab to auto-complete commands and file paths
    • @ followed by partial path triggers file path completion
  4. Available Commands:

    • /quit or /exit: Exit the CLI
    • /restart: Clear chat history and start over
    • Various tool-specific commands (shown on startup)

Sandbox Modes

  • REMEMBER_PER_RESOURCE: Remember permissions per resource (default)
  • FORGET_IMMEDIATELY: Ask for permission each time
  • REMEMBER_FOREVER: Remember all permissions

Development

The project follows a modular architecture:

  • heare/developer/: Core CLI and developer tools
  • heare/pm/: Project management functionality (WIP)
  • tests/: Test suite

To contribute:

  1. Fork the repository
  2. Create a feature branch
  3. Add tests for new functionality
  4. Submit a pull request

License

[Insert your chosen license here]

Acknowledgements

This project uses:

  • Anthropic's Claude AI models
  • Rich for terminal UI
  • Prompt Toolkit for command line interface
  • Various other open source packages (see requirements.txt)

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

heare_developer-0.2.5.tar.gz (71.1 kB view details)

Uploaded Source

Built Distribution

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

heare_developer-0.2.5-py3-none-any.whl (33.2 kB view details)

Uploaded Python 3

File details

Details for the file heare_developer-0.2.5.tar.gz.

File metadata

  • Download URL: heare_developer-0.2.5.tar.gz
  • Upload date:
  • Size: 71.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for heare_developer-0.2.5.tar.gz
Algorithm Hash digest
SHA256 d0e2ccb22fec575b16905dd5bcb3746be12555581f57606808967fea7ee1829b
MD5 1aa0eae396a7f6ed67287eaa15aec580
BLAKE2b-256 7365db80b779205d04576034cc22650bfd5415a1d9bef1946722701bf2cc2f10

See more details on using hashes here.

Provenance

The following attestation bundles were made for heare_developer-0.2.5.tar.gz:

Publisher: publish-to-pypi.yml on clusterfudge/heare-developer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file heare_developer-0.2.5-py3-none-any.whl.

File metadata

File hashes

Hashes for heare_developer-0.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 aab4a6ed6aa5af7b415ac77e3a3f17b91a550953a8efc9c790da4f44463985a9
MD5 b80625cca079969f8d76a9544368ff00
BLAKE2b-256 ae4da2e1d54c7fb4b126b2574da2c3078657079d0d94cf0a26a27202eec1e7f1

See more details on using hashes here.

Provenance

The following attestation bundles were made for heare_developer-0.2.5-py3-none-any.whl:

Publisher: publish-to-pypi.yml on clusterfudge/heare-developer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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