Skip to main content
Glama

Agent Conductor

icohangar-ops/agent-conductor MCP server

MCP Registry npm PyPI Conformance

Cubiczan stack — プロフィール · CHP · 現在地: agent-conductor

AGENTS.md を入力に、統制されたエージェントチームを出力に。

Agent Conductor は、コーディングエージェントエコシステムが収束した2つの規約 — AGENTS.md オペレーティングマニュアルと SKILL.md スキル — を受動的なドキュメントから能動的なオーケストレーションレイヤーに変える MCP サーバーであり、コンセンサス強化された意思決定エンジンが高リスクな変更をゲートします。


問題

真面目なエージェントツールはすべて — Claude Code、Cursor、Copilot、Codex、Gemini CLI — リポジトリルートの AGENTS.md と SKILL.md ファイルのカタログを読み取ります。しかし、両方の規約は信頼任せの散文です:

  • 契約をコンパイルするものは何もありません。非交渉のルール、レイヤー境界、検証チェックリストは、エージェントが内部化するかどうかわからないマークダウンとして存在します。

  • 決定をゲートするものは何もありません。スコアリングモデルを書き換えようとしているエージェントは、変数をリネームするエージェントと同じ自信で進みます。

  • チェックリストが実行されたことを検証するものは何もありません。「引き渡し前に npm test を実行」は提案であり、ゲートではありません。

Conductor は、エージェントツールに変更を求めることなく、規約を実行可能にします。標準の MCP サーバーとして提供されるため、MCP を話すものはすべて、契約のコンパイル、スキル発見、意思決定ゲートを無料で利用できます。

Related MCP server: @event4u/agent-config

仕組み

MCP client (Claude Code / Cursor / Copilot / ...)
        │  stdio (JSON-RPC, MCP)
        ▼
┌────────────────────────────────────────────────┐
│ TypeScript front end (src/)                    │
│   contract/parser.ts   AGENTS.md → contract    │
│   skills/loader.ts     SKILL.md discovery      │
│   server.ts            7 MCP tools             │
└────────────────┬───────────────────────────────┘
                 │  newline-delimited JSON, child stdio
                 ▼
┌────────────────────────────────────────────────┐
│ Python decision engine (engine/)               │
│   bridge.py → PyPI consensus-hardening-protocol│
│   R0 gates · foundation attacks · lifecycle    │
└────────────────────────────────────────────────┘

3つの機能グループ:

  1. 契約 — AGENTS.md を構造化されたミッション、非交渉ルール、レイヤーの do/don't 境界、検証ゲート、スキル推奨、およびスコープ外リストにコンパイルします。

  2. スキル — プロジェクトおよび個人スコープ全体で SKILL.md スキルを段階的開示で発見します: メタデータは約100トークン、本文はオンデマンドでのみ読み込まれます。

  3. 意思決定 — Consensus Hardening Protocol を通じて作業をゲートします: 作業開始前の安価な R0 サニティゲート、および高リスクな変更がロックされる前の敵対的基盤攻撃パス。

クイックスタート

npx -y @cubiczan/agent-conductor
pip install consensus-hardening-protocol   # required for decision_* tools

npm: @cubiczan/agent-conductor · PyPI: consensus-hardening-protocol

要件: Node 23+ (TypeScript をネイティブに実行) および Python 3.10+ と公開された CHP パッケージがインストールされていること。

git clone https://github.com/icohangar-ops/agent-conductor.git
cd agent-conductor
npm install
pip install -r engine/requirements.txt
npm test            # TypeScript tests (parser, skills, live engine bridge)
npm run test:engine # Python bridge protocol tests
npm run build

Claude Code に登録:

claude mcp add agent-conductor -- node /path/to/agent-conductor/dist/index.js

または任意の MCP クライアントの JSON 設定で:

{
  "mcpServers": {
    "agent-conductor": {
      "command": "npx",
      "args": ["-y", "@cubiczan/agent-conductor"]
    }
  }
}

Python 3 が python3 以外の場所にある場合は、CONDUCTOR_PYTHON を設定してください。

次に、AGENTS.md がある任意のプロジェクトから:

"このプロジェクトのエージェント契約を読み込み、検証ゲートを一覧表示し、これから行う変更に対して decision_adversary パスを実行してください。"

ツールリファレンス

contract_load

AGENTS.md (または CLAUDE.md) を構造化された契約にコンパイルします。ファイルパスまたはプロジェクトディレクトリを受け入れます。デフォルトは現在の作業ディレクトリです。

// input
{ "path": "examples/pipeline-pulse" }

// output (abridged — real output from the bundled example)
{
  "source": "examples/pipeline-pulse/AGENTS.md",
  "title": "AGENTS.md — Pipeline Pulse CRM",
  "mission": "Pipeline Pulse CRM is a lightweight, local-first pipeline review dashboard...",
  "rules": [
    "Deterministic logic — same inputs → same scores, labels, and summaries...",
    "Logic in crm.js — keep main.js thin (fetch, render, events).",
    "... (6 total)"
  ],
  "layers": [
    { "layer": "src/crm.js", "role": "Domain logic",
      "do": "Deterministic scoring, filtering, summaries", "dont": "DOM manipulation" }
  ],
  "gates": [
    { "name": "Code change checklist", "commands": ["npm test"], "notes": "" },
    { "name": "Before completion", "commands": [], "notes": "npm test — all green...\n..." }
  ],
  "skills": [
    { "task": "CRM scoring / forecast changes", "skill": "obra/test-driven-development",
      "url": "https://github.com/obra/superpowers/...", "why": "Tests-first changes to deterministic logic" }
  ],
  "outOfScope": ["External CRM integrations (Salesforce, HubSpot, etc.)", "..."],
  "sectionCount": 28
}

パーサーはロスレスです: 認識しないセクションはそのまま保持されるため、型にはまらない AGENTS.md の内容は何も失われません。

contract_verification

検証ゲートのみを返します — 作業が引き渡される前に合格しなければならない名前付きチェックリストとシェルコマンド。エージェントのワークフローと組み合わせてください: コマンドを実行し、成功を確認してから、完了を宣言します。

skills_list

プロジェクトルートから見える SKILL.md スキルを発見します。メタデータのみ。

// input
{ "projectRoot": "examples/pipeline-pulse" }

// output
{
  "skills": [
    {
      "name": "pipeline-scoring",
      "description": "Explain and modify scoreDealRisk weights in src/crm.js with matching test updates...",
      "version": "0.1.0",
      "scope": "project"
    }
  ]
}

検索順序 (スキル名ごとに最初に見つかったものが優先):

優先度

パス

スコープ

1

<project>/.conductor/skills/*/SKILL.md

プロジェクト

2

<project>/.claude/skills/*/SKILL.md

プロジェクト

3

<project>/.cursor/skills/*/SKILL.md

プロジェクト

4

~/.claude/skills/*/SKILL.md

個人

5

~/.cursor/skills/*/SKILL.md

個人

skill_load

指定されたスキルの完全な SKILL.md 本文を読み込みます — 段階的開示のオンデマンド部分。タスクがスキルの説明に一致する場合にのみ呼び出してください。

decision_gate

Consensus Hardening Protocol の R0 ゲート: 最も安価で最も効果の高いチェックで、作業を行う前に実行します。

// input
{ "solvable": true, "scoped": false, "valid": true, "worth_it": true }

// output
{ "verdict": "HALT", "results": { "Solvable": "PASS", "Scoped": "FATAL", "Valid": "PASS", "Worth_it": "PASS" } }

FATAL の回答があれば停止します: スコープが定まっていない、理解されていない、または解決する価値がない問題にトークンを費やす前に、停止して再構成してください。

decision_adversary

高リスクな変更のための一回限りの敵対的パス: CHP は主張の基盤を攻撃し、0〜100 でスコアリングし、悪魔の代弁者の所見とセッションステータスを返します。

// input
{
  "claim": "Change scoreDealRisk stale-activity weight from 20 to 30",
  "context": "Tests updated; label distribution checked against fixture"
}

// output
{
  "status": "EXPLORING",          // or HALT / REFRAME_REQUIRED
  "foundation_score": 77,
  "findings": [
    "Treat every financial number as unverified until tied to source data.",
    "Require explicit flip criteria for any provisional recommendation."
  ],
  "verification_failures": ["PENDING third-party validation"],
  "report": "## TriangulationRunner Adversary Pass\n..."
}

ステータスは CHP の意思決定ライフサイクル (EXPLORING → PROVISIONAL_LOCK → LOCKED、HALT と REFRAME_REQUIRED の出口あり) に対応します: EXPLORING は主張が攻撃を生き延び、ロックに向けて作業を進められることを意味し、HALT/REFRAME_REQUIRED は基盤が失敗したことを意味します。

engine_status

Python エンジンのサブプロセスをヘルスチェックします。{ ok, engine: "chp", version } を返します。

パーサーが認識するもの

contract_load はスキーマベースではなく規約ベースです。実際に使われている AGENTS.md ファイルのパターンを抽出します。

契約フィールド

ソース規約

mission

最初の Mission / Purpose / Overview セクション

rules

Non-negotiables > Engineering rules > 一般的な rules の下のリスト項目 (優先順位付けされているため、一般的な "Product rules" セクションが明示的な非交渉事項を覆い隠すことはありません)

layers

アーキテクチャ風の見出しの下にある Layer 列を持つ最初のテーブル

gates

チェックリスト / 検証 / 完了前の見出しの下にあるシェルコードブロック + リスト項目

skills

Task / Skill / Why 列を持つテーブル; リンクはテキスト + URL に解決

outOfScope

スコープ外 / 非目標の見出しの下のリスト

sections

すべてをそのまま — ロスレスフォールバック

コードフェンス内の見出しは無視されます。テーブルはヘッダー内の強調を許容します。マークダウンリンクと強調は抽出テキストから削除されます。

スキルの作成

スキルは、YAML フロントマターを含む SKILL.md を含むディレクトリです:

---
name: pipeline-scoring
description: Explain and modify scoreDealRisk weights in src/crm.js with matching test updates. Use when changing deal risk scoring, risk labels, or forecast thresholds.
version: 0.1.0
tools: [Read, Edit, Bash]
---

# Pipeline Scoring

Step-by-step instructions the agent follows when the task matches...

品質基準 (awesome-agent-skills 標準から継承): マッチ可能なキーワードを含む三人称の説明、約100トークンのメタデータ、500行未満の本文、マシン固有の絶対パスなし、スキルが必要とするツールのみを宣言。

同梱の例 — examples/pipeline-pulse — は、完全な実世界の AGENTS.md とプロジェクトスコープのスキルであり、テストスイートがコンパイルするものです。

プロジェクト構造

.
├── AGENTS.md                  # This repo's own contract (compiles with itself)
├── ARCHITECTURE.md            # Design decisions and component detail
├── src/
│   ├── index.ts               # stdio entrypoint
│   ├── server.ts              # MCP server: 7 tools
│   ├── contract/              # AGENTS.md → AgentContract compiler
│   ├── skills/                # SKILL.md loader + registry
│   ├── engine/chpBridge.ts    # Python engine client
│   └── utils/logger.ts        # stderr-only logging (stdout is the transport)
├── engine/
│   ├── bridge.py              # JSON-over-stdio router → PyPI `chp`
│   ├── requirements.txt       # consensus-hardening-protocol pin
│   ├── NOTICE.md              # attribution for the published engine
│   └── test_bridge.py         # protocol tests
├── examples/pipeline-pulse/   # real AGENTS.md fixture + example skill
└── test/                      # node:test suites (run the .ts directly)

開発

pip install -r engine/requirements.txt
npm test            # TypeScript tests — includes a live engine round-trip
npm run test:engine # Python-side protocol tests
npx tsc --noEmit    # type check
npm run build       # emit dist/
npm run dev         # run the server from source (Node type stripping)

ハウスルール (完全なセットはこのリポジトリ自身の AGENTS.md にあります):

  1. stdout は神聖 — MCP トランスポートがそれを所有します。すべてのログはブリッジの両側で stderr に送られます。

  2. 新しい Node ランタイム依存関係ゼロ — @modelcontextprotocol/sdk と zod のみ。マークダウン/フロントマターは手書きのまま。CHP は PyPI 依存です。

  3. 消去可能な TypeScript のみ — ソースは Node の型ストリッピングで実行できる必要があります (enum なし、パラメータプロパティなし)。

  4. CHP は PyPI 経由 — consensus-hardening-protocol をインストールしてください。engine/ の下に再ベンダーしないでください。プロトコルの修正は上流に属します。

  5. Python 3.10+ — 公開パッケージに必要です。

ロードマップ

バージョン

テーマ

スコープ

v0.2

強制

contract_verification ゲートを実際のサブプロセスとして実行し、合格/不合格の証拠を返す — 「契約を読む」を「契約を強制する」に変える

v0.3

オーケストレーション

MCP 上で decision_lock + メッシュセッションツールを公開 (公開された CHP の上でのマルチエージェント審議)

v0.4

レジストリ

リモートカタログ (awesome-agent-skills 形式) から審査済みスキルをソースレビュープロンプト付きでインストール

由来

Conductor は、書き直すのではなく、実績のあるコンポーネントを意図的に再利用します:

コンポーネント

ソース

ライセンス

意思決定エンジン (PyPI)

consensus-hardening-protocol

MIT

MCP サーバー + レジストリ形状

onchainmind

MIT

スキル品質標準

VoltAgent/awesome-agent-skills

—

例のフィクスチャ

Pipeline Pulse CRM 運用マニュアル

fixture

2言語設計については、engine/NOTICE.md と ARCHITECTURE.md を参照してください。


Cubiczan stack

| ガバナンス | consensus-hardening-protocol · agent-conductor · compliance-as-code-agent · cleanmandate | | プラットフォーム | cubiczan-mcp-server · operational-intelligence · software-factory |

Conductor は AGENTS.md + SKILL.md を MCP ツールにコンパイルし、重要度の高い意思決定を CHP 経由でルーティングします — Metabocommand が金融承認に使用しているのと同じロックモデルです。

ライセンス

MIT — LICENSE を参照してください。ベンダリングされたコンポーネントは、元の MIT ライセンスを保持します。

Available Tools

7 tools
contract_loadA

Compile an AGENTS.md operating manual into a structured agent contract: mission, non-negotiable rules, layer responsibilities, verification gates, recommended skills, and out-of-scope list. Pass a file path or a project directory (defaults to the current working directory).

Inputs: path.

contract_verificationA

Return the verification gates from a project's agent contract — the named checklists and shell commands that must pass before work is handed off. Run these and confirm success before declaring any task complete.

Inputs: path.

decision_adversaryA

Run a one-shot Consensus Hardening Protocol adversarial pass against a claim or proposed change: CHP attacks its foundations, scores them 0-100, and returns findings plus a session status (EXPLORING / HALT / REFRAME_REQUIRED). Use before locking any high-stakes decision.

Inputs: claim (required), context, high_stakes.

decision_gateA

Run the Consensus Hardening Protocol R0 gate on a proposed decision: is it solvable, scoped, valid, and worth making at all? Any FATAL answer returns HALT — stop and reframe before doing the work.

Inputs: valid (required), scoped (required), solvable (required), worth_it (required).

engine_statusA

Health/readiness probe for the CHP decision engine (Python subprocess). By default returns a cheap readiness snapshot (running, last exit code, restart-backoff state) WITHOUT spawning Python. Pass probe=true to also issue a live ping that warms/spawns the subprocess.

Inputs: probe.

skill_loadA

Load the full SKILL.md body for a named skill — the on-demand half of progressive disclosure. Call only when the current task matches the skill's description.

Inputs: name (required), projectRoot.

skills_listA

Discover SKILL.md skills visible from a project root (project-scope .conductor/.claude/.cursor skill dirs, then personal ones). Returns metadata only (~100 tokens per skill); use skill_load for the full body.

Inputs: projectRoot.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.1/5.0

    Scored across 7 tools

    Disambiguation5/5

    Each tool targets a distinct responsibility: contract compilation, verification gate retrieval, skill discovery, skill body loading, decision gating, adversarial review, and engine health. Even the two decision tools are clearly separated by depth: one is a lightweight pre-check, the other is a full adversarial pass.

    Naming Consistency4/5

    The naming generally follows a resource_prefix_action pattern (contract_load, skills_list, decision_gate), but there are minor inconsistencies: contract_verification and engine_status are noun-phrase rather than verb-action, and skills_list/skill_load mix plural and singular forms. The pattern is still readable and predictable overall.

    Tool Count5/5

    Seven tools is well-scoped for the server's purpose: two for contracts, two for skills, two for decision support, and one operational health probe. Each tool fills a distinct slot with no obvious bloat or redundancy.

    Completeness4/5

    The core workflows are covered: contracts can be loaded and verified, skills can be discovered and loaded, and decisions can be gated and adversarial-tested. Minor gaps exist, such as the lack of a tool to explicitly execute verification gates or persist/review decision outcomes, but agents can work around these with shell commands and existing server behavior.

    Maintenance

    ActivityNo data
    ResponsivenessSyncing

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables offline AI agent automation with embedded local LLM (Qwen 2.5), sandboxed file operations through AgentFS, and dynamic skill loading. Exposes capabilities via MCP with tri-state safety guards for private, air-gapped environments without network connectivity or API costs.
      -
    • A
      license
      B
      quality
      A
      maintenance
      Universal AI Agent OS — governed skills, rules, and commands for AI coding assistants (Claude Code, Augment, Cursor, Copilot, Windsurf). Read-only MCP bridge serves prompts and resources from a release-pinned content bundle.
      29
      2,615 npm
      20
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Multi-server MCP aggregator with 266 skills, an orchestration runtime, fleet/claims coordination, and hook-driven session governance for autonomous Claude/Cursor/Gemini agent runs.
      4
      MIT