
Code Development Assistant
by Rick Blalock
🤖 Coding Agent
A powerful AI coding assistant built with Agentuity that provides autonomous coding help with real-time tool execution. Features a hybrid cloud-local architecture where the AI runs in the cloud but all tool execution happens securely on your local machine.
✨ Features
🔧 Core Capabilities
- File Operations: Read, write, list directories, create directories
- Code Execution: Safe execution of Python, JavaScript, and TypeScript via Riza.io
- Shell Commands: Git operations, npm/bun commands, build tools (safety-checked)
- Diff Visualization: Beautiful file comparisons with delta integration
- Work Context: Remember goals and progress across sessions
- Multi-Language Support: Python, JavaScript, TypeScript, Go codebases
🏗️ Hybrid Architecture
┌─────────────────┐ ┌─────────────────┐ ┌─────────────────┐
│ Cloud Agent │◄──►│ Local CLI │◄──►│ Local Tools │
│ (Claude LLM) │ │ (Tool Proxy) │ │ (File System) │
└─────────────────┘ └─────────────────┘ └─────────────────┘
Benefits:
- 🌐 AI in the cloud - Access to latest Claude models and Agentuity infrastructure
- 🔒 Tools run locally - Your files and commands never leave your machine
- 🚀 Works anywhere - Same experience locally and deployed to cloud
- 🔄 Real-time streaming - See AI thinking and tool execution live
🔄 Tool Execution Flow
Here's how the hybrid architecture enables secure tool execution:
Key Security Features:
- 🔒 No file access by cloud - Files never leave your machine
- 🛡️ Sandboxed execution - Code runs in isolated environments (Riza.io)
- ✅ Command whitelisting - Only safe shell commands allowed
Technical Components
- CLI Client (
cli.js
) - Handles user interaction and streams responses - Continuation Handler (
cli/continuation-handler.ts
) - Parses tool calls and manages execution flow - Tool Proxy (
cli/tool-proxy.ts
) - Executes tools safely in your local environment - Cloud Agent (
src/agents/CloudCoder/
) - Claude-powered AI running on Agentuity infrastructure - Tool Interface (
tools/interface.ts
) - Shared schemas for tool calls and results
🚀 Quick Start
1. Setup
2. Use the CLI
3. Example Session
🎨 CLI Features
🔧 Interactive Commands
/help
- Show available commands and examples/clear
- Clear screen and show header/session
- Start new conversation session/context
- Show current work context and goals/diff
- Show git diff with beautiful formatting/quit
- Exit gracefully
🎯 Smart Features
- Project Detection - Auto-detects git repos, package.json, pyproject.toml
- Session Persistence - Maintains conversation context across interactions
- Beautiful Output - Colored text, loading spinners, progress indicators
- Command History - Remembers your previous interactions
🛠️ Available Tools
The agent has access to these tools that run on your local machine:
| Tool | Description | Example Usage | |------|-------------|---------------| | read_file | Read and examine code files | "Show me the main.py file" | | write_file | Create or modify files | "Create a FastAPI server" | | list_directory | Explore project structure | "What files are in src/?" | | create_directory | Create new directories | "Organize code into modules" | | execute_code | Run code safely (Python/JS/TS) | "Test this function" | | run_command | Execute shell commands | "Run the tests", "git status" | | diff_files | Compare file versions | "Show changes in main.py" | | git_diff | Beautiful git diffs | "What changed since last commit?" | | set_work_context | Set current goals | "We're building user auth" | | get_work_context | Check current work | "What are we working on?" |
⚙️ Configuration
Environment Variables
Agent URLs (Auto-detected)
The CLI automatically detects your agent URLs using agentuity agent list --format json
. This means the system works out-of-the-box for any developer who clones the repo.
Local Development:
- Runs agent on
http://127.0.0.1:3500/agent_xxx
- All tools execute on your local machine
Cloud Deployment:
- Agent runs on
https://your-deployment.agentuity.cloud/agent_xxx
- Tools still execute locally via CLI
🔧 Development
Project Structure
CodingAgent/
├── src/agents/CloudCoder/ # Main agent (works local + cloud)
├── cli/ # CLI client and tool proxy
│ ├── continuation-handler.ts
│ ├── tool-proxy.ts
│ └── config-utils.ts
├── tools/ # Shared tool definitions
├── scripts/ # Utility scripts
├── cli.js # Main CLI entry point
└── agentuity.yaml # Agent configuration
Development Commands
Testing
🚦 Usage Examples
File Operations
Code Development
Git & Project Management
🔒 Security
- Sandboxed Code Execution: All code runs in Riza.io isolated environments
- Local Tool Execution: Files and commands never leave your machine
- Command Safety: Shell commands are whitelisted and checked
- No Hardcoded Secrets: All API keys via environment variables
- Session Isolation: Each conversation has its own secure context
🎯 CLI Modes
Local Mode (Default)
- Agent runs on
localhost:3500
- Great for development and testing
- No internet required (except for AI model calls)
Cloud Mode
- Agent runs on Agentuity cloud
- Perfect for team collaboration
- Same local tool execution
Auto Mode
- Automatically chooses best available mode
- Falls back gracefully if one mode unavailable
🚀 Distribution
This coding agent is designed to be easily shared and used by any developer:
- Clone & Go: Works immediately after
git clone
+bun install
- Dynamic Configuration: Auto-detects any developer's agent IDs
- Zero Config: No setup required for basic local usage
- Portable: Same experience on any machine
For Teams
- Deploy agent to Agentuity cloud
- Share cloud URL with team
- Everyone uses same
--cloud
mode - All tool execution remains local for each developer
🐛 Troubleshooting
Common Issues
"Failed to communicate with agent"
- Check if
bun run dev
is running for local mode - Verify
API_KEY
environment variable is set - Try
bun run test-config
to check configuration
"Code execution failed"
- Set
RIZA_API_KEY
environment variable - Check code syntax and language support
- Verify network access to Riza.io
"Command not allowed"
- Shell commands are safety-checked
- Use allowed commands: git, npm, bun, python, node, etc.
- Check command whitelist in tool configuration
Debug Commands
🤝 Contributing
- Fork & Clone: Standard GitHub workflow
- Local Development: Use
bun run dev
+bun run cli --local
- Add Tools: Extend
tools/interface.ts
for new capabilities - Test: Verify both local and cloud modes work
- Document: Update this README for new features
📚 Advanced Usage
Custom Agent URLs
Session Management
Integration Examples
Code Development Assistant
by Rick Blalock