Skip to content
Projets

À propos

Multi-role AI orchestration runtime for Windows. Quality-gated pipeline (Brain → Miranda → Pappy → Benson) with MCP support, SQLite persistence, and a self-improving distillation loop. Coding you can trust.

IA et apprentissage automatique

Comment ces chiffres sont mesurés

Progression mesurée des étoiles

in 24h
0
in 7 days
0
in 15 days
+1
in 1 month
Historique en cours

Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.

README.md

Original

Orca — Multi-Role AI Agent Runtime

Orca is a TypeScript/Node.js monorepo for orchestrating multiple AI roles to solve coding tasks. A brain role decomposes the request, specialist roles execute it (coder, reviewer, debugger, etc.), and a QC layer validates the output before it reaches you.

Architecture

User
 └── Benson (intent parser + conversation)
       └── Orca Runtime (orchestration + repair loop)
             ├── Maestro (role router + subagent pool)
             │     ├── brain          → decomposes + routes
             │     ├── strong_model   → full implementation
             │     ├── cheap_model    → quick edits
             │     ├── reviewer       → critique + suggestions
             │     ├── narrator       → writing + docs
             │     ├── planner_deep   → structured planning
             │     ├── debugger       → root cause analysis
             │     ├── reader         → document ingestion
             │     └── vision         → image understanding
             ├── Pappy (QC — PASS/WARN/FAIL verdicts)
             └── Miranda (LLM compliance + repair loop)

Quick Start

Desktop App

cd apps/desktop
pnpm install
pnpm dev

Opens an Electron window. Go to Settings to configure LLM providers and map models to roles.

The desktop composer includes Cargo, a persistent context tray. Use /repo, /file, /task, /connect, /context, or /status, add line-oriented @repo, @file, @task, and @connector references, or use the + menu. Attached resources are stored as typed references; reads and writes still pass through Miranda. Settings can automatically resolve attached URLs and previous runs into compact Dewey summaries and can use the configured Narrator role to personalize privacy-safe progress updates.

CLI Runner

cd apps/runner
cp .env.example .env          # add your OPENROUTER_API_KEY
pnpm dev "Create a README for my project"

Or pipe a prompt:

echo "Refactor this function to use async/await" | pnpm dev

Configuration

API Keys

Copy apps/runner/.env.example to apps/runner/.env:

LLM_PROVIDER=openrouter        # or: ollama
OPENROUTER_API_KEY=sk-or-...
LLM_MODEL=openai/gpt-4o-mini   # default model for all roles
WORKSPACE_ROOT=/path/to/project

Role-to-model mappings live in orca-settings.json at the repo root. Edit this to assign different models to each role.

Ollama (local)

LLM_PROVIDER=ollama
OLLAMA_BASE_URL=http://localhost:11434
OLLAMA_MODEL=llama3.2

Workspace Structure

apps/
  runner/     CLI agent runner (stdin/stdout)
  desktop/    Electron desktop app

packages/
  orca-core       Runtime wiring, event bus, persistence (SQLite)
  maestro-core    Role routing, task classification, subagent pool
  benson-core     Intent parsing, conversation history
  pappy-core      QC verdicts (PASS/WARN/FAIL), repair task generation
  miranda-core    LLM pipeline (PLAN→ANSWER→CRITIQUE→REWRITE)
  workbench-core  Tool execution (ShellRunner, ToolRegistry)
  dewey-core      User context and pre-flight plan review

  ext-github      GitHub tools: list PRs, get PR diff, list issues
  ext-docs        Document tools: read .md/.txt/.html/.csv/.log
  ext-web         Web tools: fetch URL, DuckDuckGo search

Building

# Install all dependencies
pnpm install

# Build all packages
pnpm build

# Build and package desktop app (Windows .exe)
cd apps/desktop && pnpm dist

Tools Available to Agents

Core tools (always loaded):

Tool Description
read_file Read a file from the workspace
write_file Write or create a file
run_command Execute a shell command
list_directory List files in a directory
search_files Recursive file search (glob)

Extension tools (loaded in runner by default):

Tool Extension
github_list_prs ext-github
github_get_pr ext-github
github_list_issues ext-github
docs_read ext-docs
docs_list ext-docs
web_fetch ext-web
web_search ext-web

Writing a Custom Extension

// packages/ext-mycustom/src/index.ts
import type { OrcaExtension, ExtTool } from "@clawde/orca-core";

const myTool: ExtTool = {
  name: "my_tool",
  description: "Does something useful for the agent",
  schema: {
    type: "object",
    properties: {
      input: { type: "string", description: "The input value" },
    },
    required: ["input"],
  },
  async execute(args, ctx) {
    return { ok: true, output: `processed: ${args["input"]}` };
  },
};

export const myExtension: OrcaExtension = {
  id: "@clawde/ext-mycustom",
  name: "My Custom Extension",
  version: "0.1.0",
  tools: [myTool],
};

Then register it in apps/runner/src/index.ts:

import { myExtension } from "@clawde/ext-mycustom";
// ...
const extRegistry = await createExtensionRegistry([
  githubExtension, docsExtension, webExtension,
  myExtension,
]);

Training Data Export

Export run history for fine-tuning:

pnpm dev export-training-data \
  --verdict PASS \
  --output training_data.jsonl \
  --task-type strong_model \
  --limit 500

License

License: PolyForm Noncommercial 1.0.0

PolyForm Noncommercial 1.0.0 — free for noncommercial use. See LICENSE for details.

Explorer des projets similaires

Chargement…