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
- Interactive AI Assistant: Engage with Claude AI models for coding assistance, explanations, and problem-solving.
- Sandbox Environment: Safely perform file operations and execute commands within a controlled environment.
- File Management: Read, write, and list files/directories within the sandbox.
- Bash Command Execution: Run bash commands with some restrictions for security.
- Permission Management: Control access to files and directories with granular permissions.
- Tool Integration: Use built-in tools for various tasks.
- Syntax Highlighting: Enjoy syntax highlighting for a better user experience.
- Chat History: Maintain and review chat history for context preservation.
- Token Usage Tracking: Monitor token usage and associated costs for each interaction.
- Multiple AI Models: Choose from different Claude AI models.
- Customizable Sandbox Mode: Set different sandbox modes for file operations.
Installation
-
Clone the repository:
git clone https://github.com/your-repo/heare-developer-cli.git cd heare-developer-cli
-
Install the required dependencies:
pip install -r requirements.txt
-
Set up your Anthropic API key:
- Create a
.env
file in the project root. - Add your Anthropic API key:
ANTHROPIC_API_KEY=your_api_key_here
- Create a
Usage
To start the Heare Developer CLI, run:
python -m heare.developer.cli [sandbox_path]
Optional arguments:
sandbox_path
: Specify the path to initialize the sandbox (default is the current directory).--model
: Choose the Claude AI model to use (default is 'sonnet-3.5'). Available options: opus, sonnet, sonnet-3.5, haiku.--summary-cache
: Specify the path for the summary cache (default is ~/.cache/heare.summary_cache).--sandbox-mode
: Set the sandbox mode for file operations. Choices are: REMEMBER_PER_RESOURCE, FORGET_IMMEDIATELY, REMEMBER_FOREVER.
Once the CLI is running, you can:
- Ask questions or request assistance from the AI.
- Use built-in tools for various operations (specific commands may vary, refer to the CLI output for available tools).
- Enter multi-line input by starting with '{' on a new line, entering your content, and ending with '}' on a new line.
Examples
-
Ask for coding help:
> Can you explain how to use list comprehensions in Python?
-
Use a built-in tool (example may vary based on available tools):
> !add myfile.py
-
Request file content:
> Can you show me the contents of myfile.py?
-
Execute a bash command (if available):
> !exec ls -l
-
Enter multi-line input:
> { Here's my multi-line input for the AI assistant to process. }
Contributing
Contributions to the Heare Developer CLI are welcome! Please follow these steps:
- Fork the repository
- Create a new branch for your feature
- Commit your changes
- Push to your fork
- Submit a pull request
License
[Insert your chosen license here]
Acknowledgements
- This project uses the Anthropic Claude AI models for natural language processing.
- Special thanks to all contributors and users of the Heare Developer CLI.
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
File details
Details for the file heare_developer-0.1.4.tar.gz
.
File metadata
- Download URL: heare_developer-0.1.4.tar.gz
- Upload date:
- Size: 26.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6af2104b09f617de188af37b3a4e0b3e69a5f8e7517aab5d43ebc37515ed51b3 |
|
MD5 | e0bae491dfcfda0944f3e21982c511c7 |
|
BLAKE2b-256 | 25977aa0bca71fb8c5ea63f5419a77eff37fe3376609a4004d20bedd7165ea1e |