A sophisticated Deno-based CLI tool that provides AI-powered file editing and bash command execution capabilities using Claude 3 API.
- Dual Mode Operation:
- Editor mode for AI-assisted text file manipulation
- Bash mode for intelligent command execution
- Hybrid mode for combined capabilities
- Enhanced Export System:
- Prompt ID-based export functionality
- Dedicated export paths
- Rich session data export
- Comprehensive session logging
- Improved User Management:
- Streamlined settings management
- Enhanced session handling
- Efficient tool configuration
- Memory Management
- Comprehensive Logging
- Text response content tracking
- Debug logging for history entries
- Token usage tracking
- Cost Calculation
- History Management with database integration
- Clipboard Management with cross-platform support
- Tool Configuration Management
- User Settings Management
- Jina API Integration for enhanced search capabilities
ComputerUseDemo.mp4
This is a trimmed demo, Watch full demo on Youtube
- Deno installed
- Anthropic API Key
- Clone the repository:
git clone <repository-url>
cd ComputerUseAgent
- Set up your environment:
# Set your Anthropic API key
export ANTHROPIC_API_KEY="your-api-key"
- Build the project:
deno task build
# Editor mode
deno run -A src/main.ts --mode=editor "your prompt"
# Bash mode
deno run -A src/main.ts --mode=bash "your command"
# Bash mode with mock execution
deno run -A src/main.ts --mode=bash --no-agi "your command"
# After building
./build/ComputerUseAgent --mode=editor "your prompt"
./build/ComputerUseAgent --mode=bash "your command"
./build/ComputerUseAgent --export "prompt-id" # Export session data
src/
: Source code directoryconfig/
: Configuration filesmodules/
: Core functionality modulesbash/
: Bash command executioneditor/
: Text editor operationsmemory/
: Memory management
types/
: TypeScript interfacesutils/
: Utility functions
Key configuration files:
src/config/constants.ts
: System-wide constants and API settingssrc/config/logging.ts
: Logging configurationsrc/config/tool_config.ts
: Tool configurationdeno.json
: Deno project configuration
- See CHANGELOG.md for detailed version history and latest changes
- Key configuration files:
src/config/constants.ts
: System-wide constants and API settingssrc/config/logging.ts
: Logging configurationsrc/config/tool_config.ts
: Tool configurationdeno.json
: Deno project configuration
# Run in development mode with file watching
deno task dev
# Build for local use
deno task buildLocal
Logs are stored in app.log
with both console and file output. The logging
system tracks:
- User inputs
- API usage
- Command execution
- Errors
- Token usage and costs
- Fork the repository
- Create your feature branch
- Commit your changes
- Push to the branch
- Create a new Pull Request
See LICENSE file.
You can download pre-built binaries for your platform from:
- Latest stable release: Releases page
- Nightly builds: Nightly Release
Binaries are automatically built for Windows, Linux, and macOS.