ruah

Introduction

The open-source toolchain for agentic AI — orchestrate agents, convert API specs, merge everything cleanly.

What is ruah?

ruah is an open-source toolchain that solves a specific problem: what happens when multiple AI agents edit the same codebase at the same time?

Without coordination, agents overwrite each other's work, create merge conflicts, and produce broken code. ruah prevents this by giving each agent its own isolated workspace (a git worktree), tracking which files each agent is allowed to touch, and merging their results back together in the right order.

It also converts API specifications (OpenAPI, Swagger, GraphQL, Postman, HAR) into tool definitions that agents can actually call — so your agents can interact with any API without manual wiring.

The ecosystem

Six standalone tools, one CLI, optional orchestrator. Each tool works in a repo where no other ruah package is installed.

PackageWhat it does
@ruah-dev/cliTop-level router — ruah <tool> …
@ruah-dev/guardCan I trust the agent not to do damage — in any harness, with proof?
@ruah-dev/verifyDid the agent actually finish?
@ruah-dev/optWhere did my tokens go?
@ruah-dev/watchCan I show someone what this session did?
@ruah-dev/evalSame task — which executor wins, and what did it cost?
@ruah-dev/convHow do I make this API agent-sized?
@ruah-dev/orchOptional multi-agent orchestration

You can use them independently or together. Install the CLI and it discovers whatever is installed (or siblings in this workspace).

Quick Start

# Install the CLI
pnpm add -g @ruah-dev/cli

# Initialize in any git repo
ruah init

# Create your first isolated task
ruah task create my-feature \
  --files "src/**" \
  --executor claude-code \
  --prompt "Implement the feature"

# Start it
ruah task start my-feature

How It Fits Together

ruah          ← top-level CLI
├── guard     ← policies for tool calls
├── verify    ← machine-runnable definition of done
├── opt       ← token / cost profiler
├── watch     ← static HTML replay
├── eval      ← same task, N executors
├── conv      ← spec → curated agent tools
└── orch      ← optional orchestration (tasks, workflows)

Requirements

  • Node.js 18.0.0 or higher
  • Git repository (for orchestration features)
  • Zero runtime dependencies — the orchestrator has none, the converter needs only yaml

Next Steps

On this page