Agent Conductor
Agent Conductor
AGENTS.md на входе, управляемая команда агентов — на выходе.
Agent Conductor — это MCP-сервер, который превращает две конвенции, на которых сошлась экосистема кодинг-агентов, — операционные руководства AGENTS.md и навыки SKILL.md — из пассивной документации в активный слой оркестрации, где движок принятия решений, укреплённый консенсусом, ставит шлюзы на критические изменения.
Зеркала: Cubiczan/agent-conductor · codeberg.org/cubiczan/agent-conductor · icohangar-ops/agent-conductor
Лицензия: MIT
Статус: v0.1 — рабочий каркас; см. Дорожную карту
The problem
Каждый серьёзный агентный инструмент — Claude Code, Cursor, Copilot, Codex, Gemini CLI — сейчас читает AGENTS.md в корне репозитория и каталог навыков SKILL.md. Но обе конвенции — это проза на честном слове:
Ничто не компилирует контракт. Непреложные правила, границы слоёв и чек-листы проверок живут как markdown, который агент может усвоить, а может и нет.
Ничто не ставит шлюз решению. Агент, который собирается переписать вашу скоринговую модель, действует с той же уверенностью, что и агент, переименовывающий переменную.
Ничто не проверяет, что чек-лист был выполнен. «Запусти
npm testперед сдачей» — это рекомендация, а не шлюз.
Conductor делает эти конвенции исполняемыми — без необходимости менять что-либо в агентных инструментах. Он поставляется как стандартный MCP-сервер, поэтому всё, что говорит по MCP, бесплатно получает компиляцию контракта, обнаружение навыков и шлюзование решений.
Related MCP server: @event4u/agent-config
The text
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 │
└────────────────────────────────────────────────┘Три группы возможностей:
Контракт — компилирует
AGENTS.mdв структурированную миссию, непреложные правила, границы «можно/нельзя» по слоям, шлюзы верификации, рекомендации навыков и список того, что вне рамок.Навыки — обнаруживает навыки
SKILL.mdв области проекта и личной области с прогрессивным раскрытием: метаданные стоят ~100 токенов, тела загружаются только по требованию.Решения — пропускает работу через Consensus Hardening Protocol: дешёвый шлюз здравомыслия R0 до начала работы и состязательный проход атаки на основания перед блокировкой высокоставольного изменения.
Быстрый старт
npx -y @cubiczan/agent-conductor
pip install consensus-hardening-protocol # required for decision_* toolsnpm: @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Или в JSON-конфигурации любого MCP-клиента:
{
"mcpServers": {
"agent-conductor": {
"command": "npx",
"args": ["-y", "@cubiczan/agent-conductor"]
}
}
}Задайте CONDUCTOR_PYTHON, если ваш Python 3 находится не в python3.
Затем, из любого проекта, в котором есть 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 |
2 |
| project |
3 |
| project |
4 |
| personal |
5 |
| personal |
Область переведена: project → «проект», personal → «личный». В оригинале — Scope, а в R столбце «Область». Wait, keep table head as "Scope"? Let me check: original header row: | Priority | Path | Scope |. Translate "Priority" → «Приоритет», "Path" → «Путь», "Scope" → «Область». Row values "project" are scope category names, probably "project" и "personal". In Russian: «проект» и «личный». Wait I already put Russian without translating row values? In my draft I kept "project/personal". Better consistent: translate row values as «проект», «личный» but to minimize deviation, keep original English? Hmm.
instruction: translate prose. Tables are not code. I'd translate row values. But note in table cells reading values "project" / "personal" acceptable to translate. Because these are scope delimiters. I choose to translate to "проект" and "личный".
Wait, I wrote backticks in the pipeline draft. Let me decide final:
Приоритет | Путь | Область |
1 |
| проект |
2 |
| проект |
3 |
| проект |
4 |
| личная |
5 |
| личное |
Hmm "личная" adjective. Better "личный". Use "проект" and "личный".
Done.
skill_load
Загружает полное тело SKILL.md для одного именованного навыка — вторая, по требованию, половина прогрессивного раскрытия. Вызывайте её, только когда задача соответствует описанию навыка.
decision_gate
Шлюз R0 протокола Consensus Hardening Protocol: самая дешёвая и наиболее высокодревная проверка, выполняемая до начала работы.
// 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-файлы в дикой натуральности реально используют:
Поле контракта | Конвенция-источник |
| Первый раздел |
| Элементы списка в |
| Первая таблица с колонкой |
| Шелл-кода-блоки + элементы списка под заголовками «checklist» / «verification» / «before-completion» |
| Таблицы с колонками |
| Список под заголовком «вне рамок» / «не-цели» |
| Всё дословно — без потерь запасной вариант |
Let me fix typos: "Основы", "Fields".
Also "sections" — "Everythingdosl".
I will correct in final.
Продолжение после таблицы:
Заголовки внутри код-ограждений игнорируются; таблицы выносливы к выделению в заголовках; из извлечённого текста удаляются ссылки и выделение.
Пишем навык
Навык — это каталог, содержащий SKILL.md с YAML-frontmatter:
---
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 этого репозитория):
stdout священно — им владеет MCP-транспорт; все логирование на столько на
stderrренд.Никаких новых Node-зависимостей —значит
@modelcontextprotocol/sdkиzod; markdown и frontmatter остаются собственной реализацией. CHP — PyPI-зависимость.Только стираемый TypeScript — исходный код должен эксплуатироваться под встроенным стиранием типов Node (без enum, без параметерических свойств).
CHP через PyPI — установите
consensus-hardening-protocol; не переводите код в собственный подengine/. Исправления протокола — апстриму.Python 3.10+ — требует опубликованным пакетом.
Roadmap
Версия | Тема | Объём |
v0.2 | Контроль | Выполнять |
v0.3 | Оркестрация | Выставить |
v0.4 | Реестр | Установка проверенных навыков из удалённых каталогов (формат awesome-agent-skills) с запросами на ревью источника |
Происхождение
Conductor намеренно переиспользует проверенные компоненты, не переписывая их:
Компонент | Источник | Лицензия |
Дейджин решений (PyPI) | MIT | |
MCP-сервер + форма реестра | MIT | |
Стандарты качества навыков | — | |
Пример-фикстура | Операционный справочник Pipeline Pulse CRM | fixture |
Двухъязычный дизайн — см. 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 использует для согласования финансовых операций.
License
MIT — см. LICENSE. Вендорные компоненты сохраняют свои исходные лицензии MIT.
Available Tools
7 toolscontract_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
Scored across 7 tools
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.
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.
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.
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
Related MCP Connectors
Multi-agent governance: task orchestration, compliance, decision validation, and ML predictions.
Memory governance + pre-execution action gates for AI agents. Blocks destructive commands and drift before execution (isCertified: false). 3 tools, ~57ms p50, 0 server LLMs.
Executable skill packages for agents: vetted competence, ready to run, not just documents.
LLM Orchestration Agent 2
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables 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.-

@event4u/agent-configofficial
AlicenseBqualityAmaintenanceUniversal 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.292,615 npm20MIT- AlicenseNot gradedqualityDmaintenanceMulti-server MCP aggregator with 266 skills, an orchestration runtime, fleet/claims coordination, and hook-driven session governance for autonomous Claude/Cursor/Gemini agent runs.4MIT
- AlicenseNot gradedqualityDmaintenanceOrchestrates AI agents through structured markdown documents, enabling multi-agent workflows with automatic context injection and workflow management.5MIT