Coding agent
The RBS platform includes a built-in AI coding agent — similar to Cursor or Claude Code, but deeply integrated with the build system. It understands your project structure, can build and test targets, modify code, and even spawn teams of specialized AI teammates for complex tasks. The coding agent runs on your branch server and is accessible from your code editor or the integrated terminal.Quick start
What makes it different
Build system aware
Natively understands your
BUILD.rbs files, targets, dependencies, and toolchains.Multi-agent teams
Spawn teams of specialized AI teammates (frontend, backend, tester, etc.) for large tasks.
Deep code tools
Read, write, search, and precisely edit files. Run terminal commands. Build and test targets.
Fully extensible
Define custom tools, prompts, teammate roles, and skills using the RBS DSL.
| RBS Agent | Cursor | Claude Code | Codex CLI | |
|---|---|---|---|---|
| Build integration | ✅ Native (9 tools) | ❌ | ❌ | ❌ |
| Multi-agent teams | ✅ | ❌ | ❌ | ❌ |
| DAG workflows | ✅ | ❌ | ❌ | ❌ |
| Custom tool SDK | ✅ RBS DSL | ❌ | ❌ | ❌ |
| Session persistence | ✅ | Partial | Partial | ❌ |
| Server + Web API | ✅ REST + WebSocket | ❌ | ❌ | ❌ |
| Multi-LLM providers | ✅ 4 providers | ✅ | ❌ (Claude only) | ❌ (OpenAI only) |
Features
Code understanding and editing
The agent can read, search, and precisely edit your source files:- Scan your project structure and understand the build graph.
- Read the relevant source files.
- Make targeted edits using precise string replacement (not full file rewrites).
- Run tests to verify the changes.
Build system integration
Unlike standalone coding assistants, the RBS agent has native build tools:- Build targets:
rbs_build— compile and package code. - Run tests:
rbs_test— execute test targets and report results. - Run applications:
rbs_run— start and interact with running targets. - Scan the project:
rbs_scan— discover all packages, targets, and dependencies. - Query the build graph:
rbs_query— analyze dependency relationships. - Manage processes:
rbs_start/rbs_stop— run servers in the background.
Interactive commands
| Command | Description |
|---|---|
/help, ? | Show help message. |
/clear, /c | Clear conversation history. |
/exit, /q | Exit the agent. |
/model | Show current model. |
/tools | List available tools. |
/status | Show session status. |
/session | Show current session ID. |
/history | List recent chat sessions. |
Extended thinking
For complex reasoning tasks, the agent supports extended thinking:Multi-agent teams
For large, multi-faceted tasks, the agent can spawn teams of specialized AI teammates that work in parallel.How teams work
- Has its own runtime with full access to all tools.
- Receives a role-specific system prompt.
- Communicates via a shared message bus.
- Reports progress and results back to the orchestrator.
Coordination models
- Hierarchical (default): You direct all teammates. Best for structured tasks.
- Collaborative: Teammates coordinate with each other. Best for exploratory tasks.
Built-in roles
| Role | Specialty |
|---|---|
frontend | React, TypeScript, CSS, UI/UX |
backend | APIs, databases, server logic |
architect | System design, patterns, scalability |
reviewer | Code quality, best practices, security |
tester | Testing strategies, coverage, QA |
devops | CI/CD, containers, infrastructure |
researcher | Investigation, analysis, documentation |
doc_writer | Technical writing, API docs, tutorials |
debugger | Bug investigation, root cause analysis |
refactorer | Code improvement, tech debt reduction |
DAG workflows
For multi-step tasks with dependencies, the agent can define and execute DAG workflows where each step is a subagent:Rules enforcement
The agent automatically loads project rules and coding standards from your repository:| Source | Priority | Description |
|---|---|---|
.agent-rules/ | Highest | Project-specific agent rules |
.cursorrules | High | Cursor IDE rules |
.cursor/rules/ | High | Cursor rules directory |
CLAUDE.md | Medium | Claude Code project file |
CONTRIBUTING.md | Low | Project conventions |
Example .agent-rules/coding-standards.md
Session persistence
All agent sessions are automatically saved on the branch server:Server API
The coding agent is accessible via REST and WebSocket APIs, enabling integration with any editor or tool:REST endpoints
| Endpoint | Method | Description |
|---|---|---|
/api/agent/sessions | POST | Create new agent session. |
/api/agent/sessions | GET | List all sessions. |
/api/agent/sessions/:id | GET | Get session details. |
/api/agent/sessions/:id/run | POST | Run agent with a prompt. |
/api/agent/tools | GET | List available tools. |
/api/agent/config | GET | Get agent configuration. |
/api/agent/history | GET | List saved chat sessions. |
/api/agent/history/:id/resume | POST | Resume a past session. |
WebSocket streaming
- Text deltas (agent’s response).
- Tool call events (what the agent is doing).
- Thinking events (extended reasoning).
- Team events (teammate progress).