Overview
AI Coding Agent · Terminal CLI|v0.1.17

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.

>irm https://cube-agent.pages.dev/install.ps1 | iex
SHA-256 Verified Release·Windows x64·
Loading download count…
SCROLL TO EXPLORE THE HARNESS
SYSTEM HARNESS // VI RUNTIME PILLARS

Inside the Agent Harness

Six runtime subsystems behind the coding loop, workspace context, tools, memory, permissions, and background commands.

VI // RUNTIME SUBSYSTEMS
AUTONOMOUS AGENT HARNESS
I // AGENT LOOPReasoning & Tool Execution

The Coding Agent Loop

├── Read → Edit → Run → Inspect

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.

Streaming ResponsesFile ToolsShell CommandsTool Feedback
NEXT SUBSYSTEM
II // CONTEXTProject Rules & Conversation Budget

Context Management

├── Scoped AGENTS.md Rules & Context Compaction

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.

AGENTS.md DiscoveryScoped InstructionsSkill LoadingContext Compaction
NEXT SUBSYSTEM
III // TOOLS & EXECUTIONWorkspace IO & Host Commands

File & Command Tools

├── Targeted Edits, Patches & Process Control

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.

Text Edits & PatchesWorkspace BoundariesHost ShellCommand Timeouts
NEXT SUBSYSTEM
IV // STATE & MEMORYSQLite History & Durable Memory

Local State & Memory

├── Resume, Fork & Recall Across Sessions

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.

Local SQLiteResume & ForkDurable MemoryOptional Semantic Recall
NEXT SUBSYSTEM
V // PERMISSIONS & SAFETYWorkspace Trust & Tool Policies

Permissions & HITL

├── Allow, Ask or Deny Per Tool

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.

Workspace TrustDiff PreviewsTool ApprovalMCP Permissions
NEXT SUBSYSTEM
VI // BACKGROUND TASKSManaged Commands & Runtime Events

Background Processes

├── Run, Inspect & Stop Long-Running Commands

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.

Background CommandsConcurrency LimitsProcess Output/tasks Controls
TERMINAL SHOWCASEI // VI

├── 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
cube / gatewayRECORDING

Recorded terminal demo. Plays once in view; replay, seek, or open fullscreen.

CAPABILITIES // FULL RUNTIME MATRIX

Everything you need to ship

Multi-Gateway
Persistent-Memory
State
Context-Compression
Tool-Execution
Tool-Pruning
Permissions
Background-Tasks
Skills
SubAgents
MCP
AGENTS.md
SOUL.md
Diff-Preview
Theming

Try it in your terminal

Install Cube, open your project directory, and run cube. Choose a gateway and model to start.

>irm https://cube-agent.pages.dev/install.ps1 | iex
DOCUMENTATION & FAQ

Frequently Asked Questions

Installation, model gateways, local data, permissions, and updates.