AI Coding Agent for Your Terminal
An agentic AI coding assistant that lives in your terminal. Built with Go for speed and portability.
CuRe Code is an AI coding agent that can read, write, and edit your code directly from the terminal. Unlike simple chat-based CLI tools, CuRe Code uses an agentic loop — it autonomously decides which tools to use, reads your files, makes changes, runs commands, and iterates until the task is complete.
| Feature | Description |
|---|---|
| Agentic Loop | AI autonomously reads, writes, edits files and runs commands |
| Agentic Memory V1 | Persistent symbol tracking, file tree awareness, and state sync |
| Autonomous Planning | Dynamic PLAN.md synchronization and task orchestration |
| Sub-agent Delegation | Spawn specialized sub-agents for research and research |
| Smart Context | Proactive file suggestions based on user query and history |
| Multi-Provider | Google Gemini, OpenAI, Claude, NVIDIA, Grok, DeepSeek, Ollama |
| Smart Navigation | Tag files directly in your prompt using @filename |
| Process Manager | Run and manage background tasks with /ps |
| Confirmation Flow | Dangerous operations require your approval (or use --yolo) |
| Single Binary | No Node.js, no Python — just one Go executable |
| Tool | Purpose |
|---|---|
read_file / read_many |
Read contents of one or multiple files |
write_file / edit_file |
Create new files or perform search-and-replace edits |
shell |
Execute any terminal command (with confirmation) |
grep_search |
Search for patterns across the entire project |
symbol_search |
Find functions, classes, and structs using regex |
project_summary |
Get a high-level overview of the codebase structure |
git_info |
Check current git status and branch information |
web_search / web_fetch |
Search the internet and fetch documentation/content |
todo |
Track and manage tasks within the agent session |
curl -fsSL https://raw.githubusercontent.com/broman0x/cure-code/main/install.sh | bashiex (irm https://raw.githubusercontent.com/broman0x/cure-code/main/install.ps1)curecode "explain this codebase"
curecode "add error handling to main.go"
curecode "write tests for the auth module"export GEMINI_API_KEY="your-key-from-aistudio.google.com"
curecodeexport OPENAI_API_KEY="your-key-from-platform.openai.com"
curecodeexport ANTHROPIC_API_KEY="your-key-from-console.anthropic.com"
curecodeexport NVIDIA_API_KEY="your-key-from-build.nvidia.com"
curecodeexport DEEPSEEK_API_KEY="your-key"
curecode# Install from https://ollama.com
ollama pull llama3
curecode| Command | Description |
|---|---|
/help |
Show available commands |
/model |
Switch AI provider/model |
/clear |
Clear screen |
/compact |
Clear conversation history |
/ps |
List or stop background processes |
/usage |
Show session token usage |
/save |
Save current session |
/resume |
Resume a saved session |
/version |
Show version |
/exit |
Exit CuRe Code |
CuRe Code uses a sophisticated agentic architecture to solve complex tasks:
User Prompt
↓
Proactive Context Suggestions (Intelligence Service)
↓
AI decides which tools to call
↓
┌──────────────────────────────────────┐
│ Agentic Orchestration Loop │
│ │
│ [Plan Mode] → Task Decomposition │
│ [Sub-agents] → Specialized Research│
│ [Memory] → Symbol & File Tracking │
│ │
│ read_file → understand │
│ edit_file → make changes │
│ shell → run tests │
│ grep_search → find patterns │
│ PLAN.md ← Auto-Sync │
│ │
└──────────────────────────────────────┘
↓
AI provides final response & saves session
The AI has full autonomy to chain multiple tool calls until the task is complete, with a safety limit of 25 turns per prompt.
cure-code/
├── main.go # Entry point
├── cmd/
│ ├── root.go # REPL, one-shot, slash commands
│ └── install_self.go # Self-installer
├── internal/
│ ├── agent/
│ │ ├── agent.go # Agentic loop (core)
│ │ ├── message.go # Message/ToolCall types
│ │ ├── process.go # Background process manager
│ │ ├── session.go # Session persistence
│ │ └── system_prompt.go # Dynamic prompt builder
│ ├── ai/
│ │ ├── fc_providers.go # Multi-provider implementation
│ │ └── streaming.go # Real-time token streaming
│ ├── config/
│ │ └── config.go # Configuration & API keys
│ ├── tools/
│ │ ├── registry.go # Tool interface & registry
│ │ ├── read_file.go # Read file contents
│ │ ├── write_file.go # Create/overwrite files
│ │ ├── edit_file.go # Search & replace edits
│ │ ├── shell.go # Execute shell commands
│ │ ├── list_dir.go # Browse directories
│ │ ├── grep.go # High-performance search
│ │ ├── web_search.go # Search the web
│ │ ├── project_summary.go # Codebase overview
│ │ └── symbol_search.go # Find symbols with regex
│ └── ui/
│ ├── banner.go # Startup visual
│ └── markdown.go # Terminal MD renderer
└── go.mod
# Requirements: Go 1.25+
git clone https://github.com/broman0x/cure-code.git
cd cure-code
go build -o curecode .
# Or cross-compile:
GOOS=linux GOARCH=amd64 go build -o curecode-linux .
GOOS=darwin GOARCH=arm64 go build -o curecode-mac .
GOOS=windows GOARCH=amd64 go build -o curecode.exe .| Platform | Config | Binary |
|---|---|---|
| Windows | %APPDATA%\curecode\config.json |
%LocalAppData%\curecode\curecode.exe |
| Linux/macOS | ~/.config/curecode/config.json |
~/.local/bin/curecode |
GNU GPLv3 — see LICENSE for details.