Skip to content

Usage Guide ​

Practical patterns for getting the most out of ORC. Covers project setup, memory strategy, task workflows, and multi-agent orchestration.

First setup ​

bash
# Install and start
npm install -g orc-ai
orc daemon start

# Create your first project
orc project add my-app -d "Main application"
orc project use my-app

Once the daemon is running, connect your agent (see Connect your agents). Every MCP tool call and CLI command will auto-scope to the active project.

Memory best practices ​

A memory is a short project fact worth knowing next session. What you save determines how useful ORC is across sessions.

What to save ​

KindExample
Ports"API listens on 7700; e2e uses 7799"
Conventions"All API responses use camelCase keys"
Gotchas"The token refresh endpoint has a 2-second race window under load"
Decisions"Use PostgreSQL over SQLite for the main app - need concurrent writes"
Pointers"Release procedure: see the release skill"

Each memory has a lowercase-hyphenated name (unique per project), a description that says when it matters, content up to 800 characters by default, and an optional priority 0-100 (how important and broadly relevant it is). Procedures and long guidance belong in skills; keep at most a short memory pointing to the skill.

What not to store ​

  • Things already in the code (file paths, function signatures)
  • Things already in git (who changed what, when)
  • Temporary debugging notes
  • Anything that changes every session

Find and read ​

bash
# Search names and descriptions
orc mem list -q auth
orc mem show token-refresh-race

# Via MCP - agents list before creating to avoid duplicates
memory_list({ q: "auth", project: "my-app" })
memory_read({ name: "token-refresh-race", project: "my-app" })

The context MCP tool lists the top 30 memories by priority (name [pN] - description) at session start; agents read the relevant ones with memory_read. Every change is kept in memory_history and can be undone with memory_revert.

Task workflows ​

Simple tasks (no orchestration) ​

For tasks you track manually:

bash
orc task add "Fix login redirect bug" --priority high
orc task update <id> --status doing
# ... work on it ...
orc task update <id> --status done

Orchestrated tasks (agent loop) ​

For tasks the loop should pick up and assign to agents:

bash
# Set a skill to make the task agent-eligible
orc task add "Implement user auth" --skill orc-sdlc --priority high

# Or set a backend directly
orc task add "Review PR #42" --flow orc-review-only --skill orc-sdlc --backend claude

A task is picked up by the loop when any of these is true:

  • skill_name is set
  • agent_backend is set
  • Tagged with "agent"

Task decomposition ​

Use task_batch_create for multi-step work with dependencies:

task_batch_create({ tasks: [
  { ref: "design", title: "Design database schema", skill_name: "orc-sdlc" },
  { ref: "api", title: "Implement API endpoints", skill_name: "orc-sdlc", depends_on: ["design"] },
  { ref: "tests", title: "Write integration tests", skill_name: "orc-sdlc", depends_on: ["api"] }
]})

Tasks blocked by dependencies won't be picked up until their blockers are done. Each task's flow handles review. Use orc-review-only for reviewing an existing artifact.

Review flow ​

For a managed task, the worker reports its declared outcome and the flow routes review:

flow_report({ task: "...", outcome: "submitted", summary: "Implemented auth; acceptance checks passed." })

Use task_update status transitions only for the agreed manual lifecycle outside a flow.

You review via CLI, Telegram, or Slack:

bash
orc task approve <id>                            # approve
orc task reject <id> -m "Missing error handling" # request changes

On rejection, the task goes to changes_requested and the loop picks it up again - resuming the previous agent session if possible, or starting fresh with all comments as context.

Review round limits: Tasks have max_review_rounds (default 3). If an agent exceeds this, the task is auto-paused and you get a notification. This prevents infinite token burn on tasks the agent can't resolve.

Multi-agent patterns ​

Main + workers pattern ​

The most common setup: you (or a main agent) create tasks, the loop spawns workers.

  1. Human or main agent creates tasks with appropriate skills
  2. Task loop spawns worker agents per task
  3. Workers follow skills, post comments, submit for review
  4. Human approves or requests changes
  5. Loop handles the rest

Multi-backend routing ​

Route different types of work to different agents:

bash
# Complex implementation → Claude Code
orc task add "Refactor auth module" --skill orc-sdlc --backend claude

# Quick code review → Codex via ACPX
orc task add "Review utils.ts changes" --flow orc-review-only --skill orc-sdlc --backend codex

# Remote specialized agent → A2A (requires a2a_url on the task or session)
orc task add "Run security scan" --backend a2a

For A2A backends, the remote agent URL is set via the a2a_url field on the task or session. The task loop sends JSON-RPC messages to that endpoint following the Google A2A protocol.

Set agent_loop.default_backend in config for the fallback. Any unknown backend name routes through ACPX with the name as --agent flag - so --backend gemini runs acpx --agent gemini.

Per-project concurrency ​

Limit how many agents run simultaneously per project:

bash
orc project update my-app --max-workers 2

This prevents one project from starving others when the global max_workers is higher.

Session continuity ​

ORC captures session state so agents survive context compaction:

  1. During work - hooks automatically record file edits, task updates, git operations, and decisions as session events
  2. Before compaction - session_snapshot builds a priority-tiered 2KB summary (P1: files/tasks, P2: decisions/git, P3: intent)
  3. After compaction - session_restore injects the snapshot back so the agent resumes with full context

For Claude Code and Codex, this is automatic via hooks. For Cursor and other agents, call session_event and session_snapshot manually.

What agents should record ​

Event typeWhenExample
fileAfter writing/editing a file{ path: "src/auth.ts" }
taskAfter creating or updating a task{ id: "...", status: "doing" }
decisionAfter making an architectural choice{ content: "Using JWT over sessions" }
ruleAfter establishing a convention{ content: "All errors return { error, code }" }
gitAfter commit, push, branch{ action: "commit", ref: "abc123" }
errorAfter a tool error or failed command{ tool: "Bash", error: "..." }

Jobs ​

Scheduled agent work ​

Combine jobs with the task loop for fully automated workflows:

bash
# Nightly: create a task for the agent to run tests and report
orc job add nightly-tests \
  --command "orc task add 'Run test suite and report failures' --skill orc-sdlc --priority high" \
  --trigger cron --cron "0 22 * * *"

# Weekly: generate a project status report
orc job add weekly-report \
  --command "orc task add 'Generate weekly status report' --skill orc-platform" \
  --trigger cron --cron "0 9 * * 1"

File-watch triggers ​

React to code changes:

bash
orc job add lint-on-save --command "bun run lint" --trigger watch --watch "./src"

Channel tips ​

Connections, recipients and inbound rules live in Settings → Connections → Channels; see Notifications → Inbound rules.

Review loop from your phone ​

The most productive async review loop:

  1. Agents work and submit for review.
  2. You get a Telegram or Slack notification with a task summary and Approve/Deny buttons, or reply /attention REQUEST_ID VERSION approve (or deny).
  3. Loop continues without you touching a terminal.

Switching agent, model or project mid-conversation ​

In a routed conversation, /agent [name|default] switches which agent answers and /model [id|default] switches its model; /project [name|default] switches which project it runs in. Each choice persists with that session.

Send a note to another live session without leaving the chat:

/send
/send <session id> Check the failing build

ORC delivers the note at that session's next safe point and confirms the queue position. Use the session viewer's Messages section to review, reorder or cancel queued notes.

Configuration tips ​

Minimal config ​

json
{
  "activeProject": "my-app"
}

Full production config ​

json
{
  "activeProject": "my-app",
  "agent_loop": {
    "enabled": true,
    "poll_interval_minutes": 5,
    "max_workers": 2,
    "default_backend": "claude",
    "session_idle_timeout_minutes": 20,
    "worker_auto_approve": true
  }
}

Channel connections are not part of this file; configure them in Settings → Connections → Channels.

Config resolution ​

  1. ~/.orc/config.json - user global
  2. ./.orc/config.json - project-local (overrides global)
  3. Environment variables (override both)

Project-local config is useful for setting ORC_PROJECT per-repo so agents auto-scope without you running orc project use.

Released under the MIT License.