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
- Advanced AI Models: Access to Claude 3 models (Opus, Sonnet, Sonnet-3.5, Haiku) for varied needs and performance levels
- Intelligent File Handling: Smart file mention system using @ syntax for referencing files
- Sandbox Environment: Configurable sandbox modes for controlled file operations
- Tool Integration: Built-in tools for file and system operations
- Command Auto-completion: Intelligent command and path completion
- Multi-line Input Support: Easy handling of multi-line code and text input
- Token Usage Tracking: Real-time monitoring of token usage and associated costs
- Rate Limiting Protection: Built-in rate limit handling with exponential backoff
- Permission Management: Granular control over file and system operations
- Rich Command History: Searchable command history with auto-suggestions
Installation
-
Clone the repository:
git clone https://github.com/clusterfudge/heare-developer.git cd heare-developer -
Install the required dependencies:
pip install -r requirements.txt -
Set up your Anthropic API key:
export ANTHROPIC_API_KEY=your_api_key_hereOr create a
.envfile 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
-
File References: Use @ syntax to reference files in your messages:
> Can you explain the code in @src/main.py? -
Multi-line Input:
> { Here's my multi-line input that can include code or text } -
Command Auto-completion:
- Press Tab to auto-complete commands and file paths
- @ followed by partial path triggers file path completion
-
Available Commands:
/quitor/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 timeREMEMBER_FOREVER: Remember all permissions
Development
The project follows a modular architecture:
heare/developer/: Core CLI and developer toolsheare/pm/: Project management functionality (WIP)tests/: Test suite
To contribute:
- Fork the repository
- Create a feature branch
- Add tests for new functionality
- 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
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 heare_developer-0.3.4.tar.gz.
File metadata
- Download URL: heare_developer-0.3.4.tar.gz
- Upload date:
- Size: 100.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
584cecea19117e8058d308734be2b124e75674a02a0843a6af31f02dea58e545
|
|
| MD5 |
477a19bd321243371370f81e2f726135
|
|
| BLAKE2b-256 |
aa5a514365b7060d11fd27a334a20b4b2ace9bbc37e62a2e85169fc2b84c74ec
|
Provenance
The following attestation bundles were made for heare_developer-0.3.4.tar.gz:
Publisher:
publish-to-pypi.yml on clusterfudge/heare-developer
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
heare_developer-0.3.4.tar.gz -
Subject digest:
584cecea19117e8058d308734be2b124e75674a02a0843a6af31f02dea58e545 - Sigstore transparency entry: 174903992
- Sigstore integration time:
-
Permalink:
clusterfudge/heare-developer@ebbcd79646e7f3ea31989a9d82ae4480c7ba8490 -
Branch / Tag:
refs/tags/v0.3.4 - Owner: https://github.com/clusterfudge
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@ebbcd79646e7f3ea31989a9d82ae4480c7ba8490 -
Trigger Event:
push
-
Statement type:
File details
Details for the file heare_developer-0.3.4-py3-none-any.whl.
File metadata
- Download URL: heare_developer-0.3.4-py3-none-any.whl
- Upload date:
- Size: 36.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3ac261759a4f0459c75513aa5322524d9518dd26700037d6bd3359a9632e61de
|
|
| MD5 |
19540f546a48bbc7a18a24abe1e7fd47
|
|
| BLAKE2b-256 |
11ac0e56085790fa9ef25930e8ce0e41738a2e1fad470fb246e8b1a455dddc0e
|
Provenance
The following attestation bundles were made for heare_developer-0.3.4-py3-none-any.whl:
Publisher:
publish-to-pypi.yml on clusterfudge/heare-developer
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
heare_developer-0.3.4-py3-none-any.whl -
Subject digest:
3ac261759a4f0459c75513aa5322524d9518dd26700037d6bd3359a9632e61de - Sigstore transparency entry: 174903995
- Sigstore integration time:
-
Permalink:
clusterfudge/heare-developer@ebbcd79646e7f3ea31989a9d82ae4480c7ba8490 -
Branch / Tag:
refs/tags/v0.3.4 - Owner: https://github.com/clusterfudge
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@ebbcd79646e7f3ea31989a9d82ae4480c7ba8490 -
Trigger Event:
push
-
Statement type: