Engine overview

First distinguish Agents from engines: an Agent is a responsibility role, while an engine is the tool that actually executes tasks. This page lists the currently supported scope, how to install each engine, and how Agents connect to engines.

1. The two layers

Layer What it is Examples Where to configure
Business Agent A responsibility role in the pipeline; determines "what to do" VOD, Issue, Coding, QA, SRE Scene node
Chat Agent A conversational assistant that does not enter the five-stage pipeline Console chat / IM Chat configuration
Execution engine The CLI that actually runs tasks; determines "who executes" opencode, hermes, codearts, codex, atomcode, AI Shell, dsh Worker / Agent Runtime

By default, an Agent is not bound to a specific engine. Any registered engine can execute an Agent. To limit the engine, configure it on the scene node or in engine role tags.

2. Supported Agents

Agent Responsibility Position in the chain Available engines
VOD Analyzes the requirement type and routes it downstream Pipeline entry Any registered engine
Issue Refines the Spec and splits tasks After VOD Any registered engine
Coding Implements code according to the Spec, builds, and submits a PR After Issue Any registered engine
QA Reviews the PR and provides review feedback After Coding Any registered engine
SRE Deploys, operates cloud resources, and troubleshoots Late in the pipeline Any registered engine; AI Shell is often used for deployment
Chat Agent Conversational assistant Independent of the five stages Separate Chat execution

"Any engine" is the platform rule. opencode, hermes, and others are common pairings, not hard-coded mappings. To limit an engine, use the scene node's engine_runtime_ids or engine role tags.

3. Supported execution engines

Engine Installation / source Minimum verification Common use Details
opencode npm install -g opencode-ai opencode --version, then run a real conversation Daily tasks such as Coding and Issue Runtime and Worker
hermes Follow the official Hermes Agent installation hermes --version, then run a real conversation Scenarios that require ACP, such as VOD and SRE Runtime and Worker
codearts pip install codearts-cli codearts --version, then run a real conversation Teams already using CodeArts Error codes
codex npm install -g @openai/codex codex --version, then run a real conversation Code-related tasks Runtime and Worker
atomcode npm install -g @atomgit.com/atomcode atomcode -p "Reply OK" --ephemeral --no-tools Code-related tasks and AtomGit environments AtomCode details
AI Shell Registered automatically by the AI DevSpace environment Runtime → Engines shows online, with a heartbeat within 15 seconds Cloud execution and DevBridge deployment Installation and startup
dsh Install the dsh CLI; install the plugin with dsh plugin --profile <profile> add @grape-dev/grape-dsh dsh plugin --profile list includes the plugin, then run a host conversation Connect pipelines and local Workers in dsh dsh plugin

A successful --version only confirms that the binary starts; it does not prove that the model path works. Each engine must complete at least one real conversation before integration is complete.

Boundaries

  • AI Shell cannot be installed locally: it is the built-in engine of the AI DevSpace cloud development environment and can only be registered with a DevSpace.
  • dsh has two layers: the dsh CLI is an engine, while @grape-dev/grape-dsh is a plugin. Installing only the plugin without an available engine still does not allow the pipeline to execute.
  • Engines with an invalid descriptor are not registered: the engine list API also returns invalid (canonical + reason), which explains why an engine is missing from the list (missing capability declaration, incompatible version, and so on).
  • Models are configured on the engine side: Grape does not manage model quotas or keys. Configure the model on the engine and complete a conversation before connecting it to a Worker.

4. AtomCode details

What it is

AtomCode is a Rust-based Agent CLI distributed through npm. It is not a model and not the Grape server. In Grape it is an execution engine, and AtomCode manages its own models and authentication.

Grape dispatches a task
  → AtomCode starts on the Worker
    → Calls the locally configured model
      → Executes code and tools
        → Writes the result back to the task logs

Suitable for: teams that already use AtomCode, want the engine to manage models itself, or want a Rust CLI as the executor.

Not suitable for: teams that do not want to install a CLI on the Worker, or want Grape to manage model keys.

Installation

Choose the installation location based on the deployment topology:

Deployment topology Install location
Local direct connection The machine that runs the Grape service
Remote Worker The corresponding Worker machine

Install with the same system user that runs the Worker:

node -v
npm -v
npm install -g @atomgit.com/atomcode
atomcode --version
which atomcode

--version only proves that the binary starts; it does not prove that the model is available.

An interactive terminal finding atomcode does not mean that the Worker/systemd PATH can find it. If it is not found, add the npm global directory to the service environment and restart the Worker.

Configure the model and authentication

Configure the model, provider, and authentication according to the official AtomCode instructions. Grape does not read or manage these credentials.

After configuration, verify with a minimal conversation:

atomcode -p "Reply OK" --ephemeral --no-tools
Parameter Effect
-p One-shot prompt
--ephemeral Do not write to the session
--no-tools Do not execute tools

A normal text response means the model path works. If it fails, fix the AtomCode configuration first; do not continue binding it to scenes.

Connect to a Worker and scene

  1. Confirm that the Worker is running.
  2. Restart the Worker or create a new Worker so that it discovers the new engine.
  3. In Agent Runtime → Engines, confirm that atomcode is online.
  4. Select the engine on the project scene node, save, and Apply.

The SRE node must be bound to a specific engine and cannot use broadcast. Other unbound nodes use broadcast and may be claimed by any online engine.

Run the first task

  1. Create a low-risk Issue or trigger a task manually.
  2. Open the node logs and confirm that AtomCode is called.
  3. Check the response text, tool events, task status, and usage.
  4. Confirm that logs and artifacts are produced after the task completes.

Execution mode and sessions

When Grape calls AtomCode, it uses a temporary prompt file:

atomcode --prompt-file <temporary-file> --output-format jsonl --dangerously-skip-permissions
  • --output-format jsonl and --dangerously-skip-permissions are passed only when supported by the capability probe from atomcode --help.
  • The prompt is passed through a temporary file, which is cleaned up after the task and does not appear in command-line argument logs.
  • The Skill directory is ~/.atomcode/skills; when ATOMCODE_HOME is set, it is $ATOMCODE_HOME/skills.
  • When a session_id is available, save it and continue with --resume <id> later. Do not use --continue instead.

AtomCode common issues

Symptom Cause Action
atomcode: command not found Not installed, installed under another user, or PATH is incorrect Install as the same user that runs the Worker; update PATH; restart the Worker
--version works but tasks fail Model or authentication is not configured correctly Run the minimal conversation command and fix the AtomCode configuration
AtomCode is missing from the engine list The Worker has not discovered it, or the installation user differs Restart the Worker and confirm that the same system user is used
A node stays queued The engine is offline, or the node is not bound to a specific engine Check Agent Runtime and the scene binding
A task hangs Model rate limiting, blocked tools, or a network problem Check node logs and health checks; terminate the task if necessary

5. How Agents connect to engines

Integration steps

  1. Install the engine on the Worker machine and confirm that the user running the service can execute it:

bash which opencode # Or which codearts

  1. Generate a Worker credential in Agent Runtime → Add device, then run the integration command on the target machine.
  2. On the Devices tab, confirm that the Worker is online, and wait for the engine to be discovered and appear on the Engines tab.
  3. Select a node in Project scenes and configure:
    - Agent type (VOD / Issue / Coding / QA / SRE)
    - Skill
    - Allowed engines
  4. Apply the scene, create a task, and confirm that the target engine claims it and writes logs back.

Configuration locations

Configuration Location Effect
Agent type Scene node Determines which type of Agent handles the node
Skill Scene node Determines which instructions and tools the Agent uses
Allowed engines Scene node / engine role tags Limits which engines can claim the node
Fixed engine Scene node engine_runtime_ids Only engines in the list may claim the task; when empty, default scheduling applies
Strict mode strict_scene_engines in configs/engine-selection.json Fails immediately when no candidate engine exists and does not fall back to the global pool

Roles are not mapped by engine type by default. To require "Coding uses only opencode" or "SRE uses only a specific Worker", you must configure it explicitly; otherwise a task may land on any matching online engine.

6. Choosing by scenario

Scenario Recommendation
Running the pipeline for the first time opencode; simple to install and commonly used for code tasks
The team already uses CodeArts codearts; consistent with the existing toolchain
Need ACP / VOD / SRE capabilities hermes; install and configure the model according to the official instructions
Use OpenAI Codex codex; note that prompts are passed through stdin and session continuation is not yet supported
Use an AtomGit environment atomcode; verify the model path first, then test multi-turn continuation
Cloud deployment with no local engine AI DevSpace + AI Shell; usage subject to quota
Connect the pipeline inside dsh dsh CLI + @grape-dev/grape-dsh plugin; both must be available

Agent overview | Runtime and Worker | Scenes and engine configuration | Installation and startup | Installation and startup