Skip to the content.

Home · What it can build · Writing requests · Architecture · Benchmarks · Fine-tuning · Results · GitHub

Architecture

flowchart LR
  U[Request<br/>distro + names + behaviour] --> A
  subgraph A[Agent: OpenCode or Claude Code]
    direction TB
    S[AGENTS.md + ros2-package skill]
  end
  A <-->|OpenAI / Anthropic API| V[vLLM<br/>Inkling 2 Mini or inkling-ros2]
  A -->|./tools/ros2ref| R[(Reference index<br/>6,190 docs, per distro)]
  A -->|./tools/ros2check| D[Docker ros:&lt;distro&gt;-ros-base<br/>rosdep, colcon build,<br/>start nodes, load launch files]
  A -->|./tools/ros2exec| D
  D --> W[(Workspace src/)]
  A --> W

Pieces

Piece Where What it does
Model server rag/ros2gen.sh server [ros2\|base] vLLM with the inkling reasoning and tool-call parsers, dspark speculative decoding, 64k context. Serves inkling-ros2 (fine-tuned) or thinkingmachines/Inkling-2-Mini (base).
Workspace kit agent/ros2-specialist/ template/ (ros2.json, opencode.json), AGENTS.md (workflow), skills/ros2-package/SKILL.md (layouts and common mistakes), toolchain/ros2tool.py (the three tools).
ros2ref toolchain/ros2tool.py ref BM25 search over the reference corpus, filtered to the workspace’s distro; show <id> prints a whole package, file or tutorial.
ros2check toolchain/ros2tool.py check In a long-lived container per workspace: rosdep install, colcon build, then for every package: must be visible to ROS (ros2 pkg prefix), every executable must run 6 s without crashing, every launch file must load. Writes .harness/verdict.json.
ros2exec toolchain/ros2tool.py exec Runs a command in that container with the workspace sourced (time-limited).
Isolation ros2tool.py One container and one ROS_DOMAIN_ID per workspace, so workspaces do not see each other’s nodes.
Launchers bin/ros2agent, bin/ros2claude Create workspaces; open OpenCode or Claude Code on the local server (Claude Code via vLLM’s Anthropic Messages API, no Anthropic account).
One-shot generator rag/ros2gen.py gen No agent: retrieve, generate a package in one reply, build, feed errors back up to 3 times.
Reference corpus dataset/build_dataset.py Packages, files and tutorials from ros2/examples, ros2/demos, ROS 2 docs, Nav2, MoveIt 2 and ros2_control, per distro.

Workflow the agent follows (AGENTS.md)

  1. Search the references with technical keywords; read the best one or two.
  2. Write the complete package under src/<package>/.
  3. ./tools/ros2check after every change.
  4. On failure: read the error, search for the failing API, fix, check again.
  5. Test behaviour with ./tools/ros2exec (echo topics, call services, set parameters) and compare with the request.
  6. Finish only on PASS and a matching behaviour test.

Why a build loop and not just a better model

On the same 10 tasks with the base model: one-shot 4 / 10, with retrieval 7 / 10, agent with retrieval and build checks 10 / 10 (7 / 10 under the stricter check). Most of the gain comes from letting the model look things up and test its own work. See results.md.