Skip to main content

Local and cloud execution engines

Status: Ready

Article ID: 009

Truth label: Current

Audience: New builder

Reader outcome: Match an execution engine to privacy, capability, quality, and cost needs.

Related articles: 003, 024, 044

Target week: 04

Last verified: 2026-09-13

Technical reviewer: Codex source audit

Editorial reviewer: Codex editorial audit

Two provider choices exist​

AGENTASIAN makes separate choices for Brain chat and Forge execution. Selecting an Ollama chat model does not force a task to use local execution. Selecting a Codex worker does not change the embedding model used by Brain.

Keep these questions separate:

  1. Which provider should answer or retrieve in Brain?
  2. Which coding-agent engine should edit and verify the repository?

Current worker engines​

EngineExecution pathGood fitCurrent note
Claude CodeAuthenticated claude CLIPrimary cloud coding work and session resumeReports normalized provider cost; effort low to max
Codexcodex execCloud coding work through the Codex CLIResumes a recorded thread with codex exec resume; effort minimal to xhigh
Codex OSSCodex CLI against OllamaPrivate, bulk, or air-gapped work on owned inferenceOnly gpt-oss model names are forwarded; no resume, no effort control
Antigravityagy CLIEnvironments with that CLI installedResumes by conversation id and streams agent and tool progress; reports token usage, never dollars; effort low to high
agentic or legacyBuilt-in compatibility loopExisting workflows that depend on itNot the primary execution path

A worker advertises only the engines it discovers, with the version each CLI reports at registration. Central routes a task to a worker that reports the requested engine and required capabilities. Agent turns are unlimited on every engine; timeouts, context budgets, cancellation, and verification retries are the ceilings that remain.

Local does not automatically mean better​

Local execution can keep prompts on owned hardware and remove per-call cloud fees. It also places model hosting, updates, context limits, throughput, and quality on the operator.

Use local execution when privacy, offline operation, or high-volume economics matter more than top model performance. Use a cloud engine when the task needs the strongest available coding behavior and the repository is approved for that provider.

Permission is separate from provider​

Every task requests safe, write, or yolo. The adapter translates that intent into engine-specific flags. The worker also applies its configured maximum permission, so Central cannot grant more authority than the machine operator allowed.

Provider choice does not change the warning: safe mode is a CLI permission setting, not an operating-system sandbox.

Model and usage reporting​

Adapters normalize what their CLI reports. Some provide cost, turn, duration, or model-token details. Others provide only a subset. Cortex omits unsupported metrics rather than presenting an unmeasured zero as fact.

Do not compare engines by one cost field alone. Include retries, verification failures, operator time, privacy constraints, and the cost of correcting a weak result.

A practical selection rule​

  • Start with the engine already proven on the target worker.
  • Use a trusted test task before adding a new engine to unattended work.
  • Pin cross-platform work to the worker that owns the matching project path.
  • Require an explicit verification command for delivery work.
  • Review token, duration, cost, and outcome across several comparable runs.

Current limits​

Engine availability depends on the CLIs, credentials, adapters, and models installed on each worker. Reported cost and usage fields also differ by adapter. A local engine can improve data control, but it does not guarantee quality, speed, or isolation. Safe permission remains a CLI control rather than an operating-system sandbox.

Next lesson​

Continue with Trusted LAN deployment.

Derivative map​

  • Weekly package: WEEK-04
  • Long video: VIDEO-W04-LONG
  • Shorts: SHORT-W04-PROBLEM, SHORT-W04-MECHANISM, SHORT-W04-WARNING
  • Email: EMAIL-W04
  • LinkedIn: LI-W04-A, LI-W04-B
  • X: X-W04-A, X-W04-B
  • Visual: VISUAL-W04

Review record​

  • Technical claims checked against the current canonical sources.
  • Truth label and nearby limitations reviewed.
  • Examples checked for secrets, client material, and private paths.
  • Editorial structure, internal links, and repository voice reviewed.

Review completed: 2026-08-27

Re-audited against the running product: 2026-09-13