An agent harness that makes LLM agentic.
Read and edit code, run commands with approval, and keep context across sessions. Choose OAuth, 15 API key providers, or local models.
Inside the Agent Harness
Six runtime subsystems behind the coding loop, workspace context, tools, memory, permissions, and background commands.
The Coding Agent Loop
Work through coding tasks in your terminal. Cube reads files, edits text or applies patches, runs commands, and feeds tool results back to the model. Responses and tool activity stream into the conversation.
Context Management
Load workspace and global AGENTS.md instructions, discover scoped rules as files are explored, and enable project or global skills. Context budgeting prunes older tool output and compacts conversation history while keeping tool exchanges together.
File & Command Tools
Read and list files, make targeted text edits, or apply patches. File paths and command working directories stay within the workspace by default. Commands run on your host with configurable timeouts; tool permissions control approval.
Local State & Memory
Keep conversation history and memory on your machine. Resume or fork threads, and recall durable notes about preferences and project decisions. Optional semantic recall adds embedding-based search over historical messages.
Permissions & HITL
Trust a workspace before starting. File writes, edits, patches, and shell commands ask for approval by default. Review file changes and use /permissions to configure tool policies, including connected MCP tools.
Background Processes
Run builds, tests, and other long-running commands in the background. Cube tracks process output and completion, limits concurrency, and reports status to the conversation. Use /tasks to inspect or stop managed processes.
├── Choose your account, API provider, or local model.
Multi-Gateway Model Matrix
Choose OAuth for Anthropic, OpenAI, xAI, or Google, API keys from 15 supported providers, or a local Ollama/LM Studio server. Switch gateways and models from the terminal.
- OAuth sign-in for four providers
- 15 API key providers, including OpenRouter
- Local inference via Ollama / LM Studio
├── Repository guidelines right where you code.
Workspace Skill & Rule Discovery
Cube loads workspace and global AGENTS.md instructions, then discovers scoped rules as tools explore files. Project and global SKILL.md files add reusable guidance to the agent.
- Scoped AGENTS.md discovery inside the workspace
- Enable or disable project and global skills with /skills
- Refresh project instructions with /reload
├── Configure which tools need your approval.
Human-in-the-Loop Safeguards
File edits, writes, patches, and shell commands require approval by default. Review pending file changes in the terminal and configure workspace boundaries and tool policies with /permissions.
- Approval for host shell commands by default
- Diff previews for pending file changes
- Allow, ask, or deny policies for file and MCP tools
├── Pause to ask. Select answers directly in your shell.
Interactive Terminal Q&A
The agent can ask for clarification through the ask_user tool. Choose a suggested answer or enter your own response in the terminal, then continue the task with that context.
- Arrow-key option selection directly inside the terminal
- Suggested choices and free-text answers
- Continue the conversation after answering
├── Bring external tools into your coding workflow.
Model Context Protocol Foundation
Configure MCP servers in mcp.json and manage their connections, tools, and supported authentication flows with /mcp. Connected tools join the agent's toolset and follow your permission policies.
- Local stdio and remote HTTP server connections
- Inspect server status and available tools with /mcp
- MCP OAuth support and per-tool permissions
├── Delegate focused tasks to subagents.
Parallel Subagent Delegation
Break a larger coding task into focused assignments for subagents. Delegate independent exploration and implementation work, then bring their findings back into the main conversation.
- Focused assignments for each subagent
- Parallel work on independent subtasks
- Findings returned to the main conversation
Recorded terminal demo. Plays once in view; replay, seek, or open fullscreen.
Everything you need to ship
Try it in your terminal
Install Cube, open your project directory, and run cube. Choose a gateway and model to start.
Frequently Asked Questions
Installation, model gateways, local data, permissions, and updates.
