kabilankb/ros2-inkling
About
Local coding agent that writes, builds and tests ROS 2 packages and nodes (Humble, Jazzy, Kilted, Lyrical) on Inkling 2 Mini with vLLM
Developer ToolsWhat you can do
- Four distros: Humble, Jazzy, Kilted and Lyrical, each with its own references and build image.
- Grounded: searches 6,190 official packages, files and tutorials (ros2 examples and demos, ROS 2 docs, Nav2, MoveIt 2, ros2_control) instead of relying on memory.
- Self-checking: ros2check builds with colcon, requires every package to be visible to ROS, starts every node and loads every launch file; the agent then tests behaviour before it finishes.
- Your choice of agent: OpenCode (ros2agent) or Claude Code (ros2claude), both on the local model. No cloud account needed.
Measured star growth
- in 24h
- 0
- in 7 days
- Collecting history
- in 15 days
- Collecting history
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
Originalros2-inkling
A local coding agent that writes, builds and tests ROS 2 packages and nodes.
You describe a package; the agent looks up official examples for your ROS 2 distro, writes the package, builds it in that distro's Docker image, starts every node and launch file, tests the behaviour and fixes it until it works. Everything runs on your own GPU with Inkling 2 Mini on vLLM.
$ ros2agent new battery jazzy
$ ros2agent battery "ROS 2 Jazzy, C++ package battery_monitor: subscribe to sensor_msgs/msg/BatteryState on
/battery, publish std_msgs/msg/Bool on /battery_low (true below 20%) at 1 Hz. Prove it works."
... (illustrative output)
PASS (ROS 2 jazzy): 1 package(s) built and started
battery_monitor monitor: running
Demo (42 s): OpenCode on the local fine-tuned Inkling 2 Mini writing a battery_monitor package. Click to watch on the project page.
Highlights
- Four distros: Humble, Jazzy, Kilted and Lyrical, each with its own references and build image.
- Grounded: searches 6,190 official packages, files and tutorials (ros2 examples and demos, ROS 2 docs, Nav2, MoveIt 2, ros2_control) instead of relying on memory.
- Self-checking:
ros2checkbuilds with colcon, requires every package to be visible to ROS, starts every node and loads every launch file; the agent then tests behaviour before it finishes. - Your choice of agent: OpenCode (
ros2agent) or Claude Code (ros2claude), both on the local model. No cloud account needed. - Fine-tuning included: LoRA training (1-2 GPUs or a rented Brev instance), adapter merge, Hugging Face upload.
- Measured: a 20-task benchmark with hidden behaviour checks, validated against reference solutions.
Results
20 tasks with hidden behaviour checks (eval/bench2), OpenCode agent, one run per task:
| Model | Builds | Starts | Behaves correctly | Speed (1 request) |
|---|---|---|---|---|
| Inkling 2 Mini (base) | 19 / 20 | 19 / 20 | 18 / 20 | 47 tok/s |
| Inkling 2 Mini + ROS 2 LoRA | 19 / 20 | 19 / 20 | 15 / 20 | 55 tok/s |
Fine-tuned model with the updated agent instructions, and Claude Code as the agent: in progress. Full tables, failure analysis and the earlier benchmarks: docs/results.md.
Hardware
Dell Pro Max with GB10. Image: Dell Technologies.
Everything in this repository was developed and measured on a Dell Pro Max with GB10, a desktop built on the NVIDIA GB10 Grace Blackwell superchip (the NVIDIA DGX Spark platform). The model server, the agent, the Docker build containers and the benchmarks all run on this one machine.
| Measured on this machine | |
|---|---|
| GPU | NVIDIA GB10 (Blackwell), NVFP4 and MXFP8 support |
| Memory | 128 GB unified CPU/GPU memory (121 GiB usable) |
| CPU architecture | Arm64 (aarch64) |
| Storage | 4 TB NVMe (3.6 TiB) |
| OS | Ubuntu 24.04, Docker with the NVIDIA container runtime |
| Inkling 2 Mini on vLLM | about 20 GB of weights; 47 tok/s (base) and 55 tok/s (fine-tuned) for one request, 108-130 tok/s for four |
| LoRA training (bf16, 53 GB) | fits in memory; about 70-125 training tokens/s (the full run used 2x RTX PRO 6000 on Brev instead) |
Running the model server and a 53 GB training job at the same time exhausted memory and restarted the machine once: run one heavy GPU job at a time.
Quick start
Requirements: an NVIDIA GPU machine with Docker and the NVIDIA container runtime (tested on a Dell Pro Max with GB10; Inkling 2 Mini needs about 20 GB, 32 GB or more recommended), Python 3.10+, git, and OpenCode and/or Claude Code.
git clone https://github.com/kabilankb/ros2-inkling && cd ros2-inkling
make data # clone the sources (~5.5 GB), build the reference index
make install # or: make install HOST=user@gpu-host
# on the GPU machine
hf download thinkingmachines/Inkling-2-Mini --local-dir ~/inkling-ft/model
for d in humble jazzy kilted lyrical; do docker pull ros:$d-ros-base; done
~/ros2_rag/ros2gen.sh server base
Usage
ros2agent new my_robot jazzy # workspace in ~/ros2_agent_ws/my_robot
ros2agent my_robot # chat with the OpenCode agent
ros2claude my_robot # or Claude Code on the same local model
ros2agent my_robot "<request>" # one request, non-interactive
cd ~/ros2_agent_ws/my_robot
./tools/ros2check # build, start nodes, load launch files
./tools/ros2exec --timeout 60 "ros2 run <pkg> <exe>"
./tools/ros2exec "ros2 topic echo --once /chatter"
How to write requests that work: docs/prompting.md.
Repository layout
agent/ros2-specialist/ workspace kit: AGENTS.md, skill, tools (ros2ref, ros2check, ros2exec), ros2agent, ros2claude
rag/ model-server control (ros2gen.sh) and the one-shot generate-build-fix tool (ros2gen.py)
dataset/ builds the reference index and the training sets from official sources
training/ LoRA training, Brev orchestration, adapter merge
eval/ benchmarks: agent_bench, bench2 (behaviour), facts quiz, held-out loss, speed
scripts/ fetch_sources, build_data, install, lint
docs/ architecture, prompting, benchmarks, fine-tuning, results
Documentation
| Page | Contents |
|---|---|
| What it can build | proven, likely and out-of-scope ROS 2 work, and mistakes to review |
| Architecture | components, the agent's workflow, isolation |
| Prompting | request template, examples, what each part buys |
| Benchmarks | how the benchmarks work and how the grader is validated |
| Fine-tuning | training settings, Brev run, merging and serving |
| Results | every measured number, task by task |
Contributing
See CONTRIBUTING.md. Requests the agent gets wrong are especially useful: open a "Package the agent gets wrong" issue.
License
Code: Apache License 2.0. The reference index and training data are generated from ros2/examples, ros2/demos, ros2_documentation, Nav2, MoveIt 2 and ros2_control, which are under Apache 2.0, BSD, LGPL (Nav2) and CC-BY 4.0 (documentation); generated files keep those terms. Inkling 2 Mini is Apache 2.0.
Explore related projects
Loading…