Thread Agents — Run a Thread on Your Own Harness
Run a Caide thread on your installed Claude Code, Codex, OpenCode, Grok, or Antigravity harness — its tools and login, Caide's project prompt, preview, database and publishing tools.
Last updated 2026-12-04
Thread agents
A thread agent is a Caide thread that runs on an agent harness you already have installed: Claude Code, Codex, OpenCode, Grok, or Antigravity. The harness keeps its own tools, login, model list, compaction and permission prompts. Caide supplies the project, the app-building system prompt, its own tools over MCP, and the same thread list, approvals, diffs, checkpoints, previews and usage view as a native Caide turn.
Thread agents are not model providers. They never appear in the provider picker, their
models never enter Caide's model catalog, and auto routing never selects them. The seven
model providers are listed here.
Supported harnesses
| Harness | What Caide runs | Login | Model controls |
|---|---|---|---|
| Claude Code | The Claude Agent SDK + your CLI | Your official Claude Code | Reasoning ladder incl. Ultracode and Ultrathink, fast mode, thinking, context window |
| Codex | The Codex app-server | Your official ChatGPT/Codex | Each model's own reasoning efforts, with Codex's descriptions |
| OpenCode | Your installed OpenCode 2.x | Your OpenCode configuration | Every configured model, free models included, with the model's own variants |
| Grok | grok agent stdio (ACP) | grok login | Session config options the agent advertises |
| Antigravity | agy_acp_server (ACP) | Antigravity's own sign-in | Session config options the agent advertises |
OpenCode 1.x is refused with an upgrade sentence; Caide's OpenCode driver speaks the 2.x API. Claude Code, Codex and OpenCode use their official login/CLI sessions — Caide never asks for an Anthropic or OpenAI API key for a thread agent.
Starting a thread agent
- Open the model picker in the composer and choose the Agents group.
- Pick a harness and one of the models it reports.
- Send the first message.
A thread's target can change only before its first turn. After that, switching between a provider and an agent (or between two agents) asks you to start a new thread, because the native session belongs to that harness.
If a harness is missing or signed out, its row says so and names the command that fixes it. Settings → Agents can set a custom binary path and enable or disable a harness.
What the agent receives
The harness's own system prompt stays in place. Caide appends the same prompt pipeline its native turns use:
- the app-building identity and Caide's tone rules;
- the project's framework contract (React Native, Flutter, website, or blank) and the Build contract;
- project rules (
AGENTS.md/CAIDE.md), project instructions, project memory,AI_RULES.md, assigned skills and enabled skills; - the linked database's guidance, the workspace's git facts and the project file map;
- the active design pack last, as the visual authority.
The same block is re-sent as a project-context update when something changes mid-thread (a design pack applied, new memory, a database linked), so the agent never works from stale context.
Caide's tools over MCP
Each agent session gets a per-thread MCP endpoint with the Caide tools the harness does not already have. The agent can use the live preview and browser, design tokens and motion specs, references, project instructions, database tools (with Caide's SQL safety checks), publishing and integrations, the user's own MCP servers, sub-agents, web search, image generation, and chat/memory recall.
The endpoint starts with a small preview tool set plus caide_tool_search. When the agent
needs another Caide tool, it searches for it and the schema is revealed. Tool calls run under
the same consent rules as a native Caide turn.
Approvals and access modes
Harness approval requests become Caide approval cards. Accept once, always allow, and Decline map to the harness's own decisions. Build and Plan run the harness's native plan mode.
Every harness declares native enforcement: the harness decides what it can do, and a Caide approval card is a relayed request rather than a hard sandbox boundary. Caide's own MCP tools still enforce Caide's consent rules and destructive-SQL checks on the server.
Sessions, resume and usage
Caide keeps one persistent native session per thread. It releases idle sessions and resumes the stored native conversation after release or a server restart, so a follow-up turn continues the same Claude/Codex/OpenCode conversation instead of starting over.
Settings → Usage & limits → Agents shows each harness's plan windows where the harness reports them. Claude Code, Codex, Grok and Antigravity read their own accounts (Antigravity CLI 1.5.22+ or later), and OpenCode Go reports rolling, weekly and monthly usage when the machine has a Go key. A harness that cannot answer says so instead of drawing an empty bar.
Billing
Harness mode is free: you use your own installed CLI and your own account, and Caide does not meter or mark up those calls. Caide Agent remains the only paid surface (₦3,000 for 30 days after a 7-day / 500-credit trial). Using a thread agent never changes Caide Agent billing.
Start with the quickstart, then explore copy-on-write database branches and DeviceLab.