Skip to main content

Portable multi-agent ultracode orchestration with a 3-agent adversarial debate that converges to unanimous consensus

Project description

========= Written in Korean first, then English ==========

======== 한국어 ========

cluxion-agentplugin-effort-ultracode

AI 에이전트(Hermes Agent, Claude Code, Codex)를 위한 합의 의사결정 플러그인입니다. 핵심 기능은 3개 에이전트의 적대적 토론입니다: 세 에이전트가 근거와 이유로 서로를 설득하고, 더 잘 논증된 주장은 이유와 함께 수용하며, 만장일치에 이르렀을 때에만 그 결정을 채택합니다. 합의에 이르지 못하면 반대 의견과 함께 정직하게 no_consensus를 반환합니다. 수렴 판정은 모델이 아니라 결정론적 코드가 통제합니다.

설치

pip install cluxion-agentplugin-effort-ultracode

Hermes Agent에서 사용

Hermes의 플러그인 설정에 추가한 뒤 Hermes를 재시작하세요.

plugins:
  enabled:
    - cluxion-agentplugin-effort-ultracode

Hermes를 통해 제공되는 로컬 모델(vLLM/MLX)에서도 동일하게 동작합니다.

Codex CLI에서 사용

로컬 checkout:

codex plugin marketplace add cluxion-local /path/to/cluxion-Agentplugin-Effort-Ultracode
codex plugin add cluxion-agentplugin-effort-ultracode@cluxion-local

Git URL:

codex plugin marketplace add cluxion https://github.com/cluxion/cluxion-Agentplugin-Effort-Ultracode
codex plugin add cluxion-agentplugin-effort-ultracode@cluxion

Codex는 루트 .codex-plugin/plugin.json, commands/, skills/를 읽습니다. [plugins.<name>] command 형태의 별도 config snippet은 사용하지 않습니다.

Claude Code에서 사용

같은 checkout을 Claude Code 플러그인으로 설치하면 루트 .claude-plugin/plugin.json, commands/, skills/가 사용됩니다. 명령과 스킬은 cluxion-ultracode CLI를 호출하고, host agent가 실행과 최종 응답을 소유합니다.

사용

Hermes에서는 cluxion_consensus 도구로 제공됩니다. CLI로 직접 실행할 수도 있습니다.

cluxion-ultracode consensus --question "이 제안을 채택할까?" --adapter hermes
cluxion-ultracode consensus --question "이 제안을 채택할까?" --adapter mock-unanimous
cluxion-ultracode consensus --question "이 제안을 채택할까?" --rounds 3 --agents 3 --agent-timeout 180 --debate-budget 600 --budget-tokens 120000 --models cheap,strong,cheap

--adapter hermes(기본값)는 플러그인과 동일한 hermes -z 경로를 사용합니다. --adapter mock-*는 실제 모델 호출 없이 결정론적 로컬 테스트용입니다.

최악 비용은 agents * (rounds + 1) 모델 호출과 tokens_spent입니다. 예를 들어 기본 3 agents, 3 rounds는 최대 12회 호출합니다. --agent-timeout은 단일 agent 호출 제한, --debate-budget은 전체 토론 시간 예산, --budget-tokens는 전체 토큰 ceiling입니다. Hermes usage가 있으면 실제 토큰을 쓰고, 없으면 chars/4 estimator로 estimated: true를 표시합니다. --models는 agent seat에 순환 배정됩니다.

만장일치면 결정과 근거를, 아니면 반대 의견을 포함한 no_consensus를 반환합니다. 예산 초과나 quorum 상실로 중단되면 status: "aborted", abort_reason, rounds_completed, partial transcript를 반환합니다.

점검

설치·Hermes 계약·LLM 백엔드 상태를 결정론적으로 자가 진단합니다. 같은 상태면 항상 같은 결과를 출력하고, 문제가 있으면 증상과 해결 단계를 그대로 알려줍니다.

cluxion-ultracode doctor          # 사람용 요약
cluxion-ultracode doctor --json   # 구조화 출력

Hermes 안에서는 ultracode_doctor 도구로도 노출됩니다.

슬래시 커맨드 (0.1.13)

Codex/Claude Code 플러그인 명령:

/cluxion-consensus 이 리팩터링 방향을 채택할까?
/ultracode-doctor

Hermes 플러그인 명령:

/cluxion-consensus 이 리팩터링 방향을 채택할까?
/ultracode-doctor

Hermes에서는 / 입력 시 🔌로 표시 · consensus는 도구 cluxion_consensus와 동일.

라이선스

Apache-2.0

============ English ==========

cluxion-agentplugin-effort-ultracode

A consensus decision plugin for AI agents (Hermes Agent, Claude Code, Codex). Its headline feature is a 3-agent adversarial debate: three agents argue from evidence and reasons, concede points that are better-argued (with a stated reason), and only a unanimous agreement becomes the decision. If they cannot agree, it returns an honest no_consensus with the dissent. Convergence is controlled by deterministic code, not by the model.

Install

pip install cluxion-agentplugin-effort-ultracode

Use with Hermes Agent

Add it to the Hermes plugin configuration, then restart Hermes:

plugins:
  enabled:
    - cluxion-agentplugin-effort-ultracode

It works the same with local models (vLLM/MLX) served through Hermes.

Use with Codex CLI

Local checkout:

codex plugin marketplace add cluxion-local /path/to/cluxion-Agentplugin-Effort-Ultracode
codex plugin add cluxion-agentplugin-effort-ultracode@cluxion-local

Git URL:

codex plugin marketplace add cluxion https://github.com/cluxion/cluxion-Agentplugin-Effort-Ultracode
codex plugin add cluxion-agentplugin-effort-ultracode@cluxion

Codex reads the root .codex-plugin/plugin.json, commands/, and skills/. Do not use a [plugins.<name>] command config snippet; Codex plugins are marketplace plugins.

Use with Claude Code

Install the same checkout as a Claude Code plugin. Claude Code reads the root .claude-plugin/plugin.json, commands/, and skills/. The commands and skill call the cluxion-ultracode CLI; the host agent owns execution and final answers.

Use

In Hermes it is available as the cluxion_consensus tool. You can also run it from the CLI:

cluxion-ultracode consensus --question "Should we adopt the proposal?" --adapter hermes
cluxion-ultracode consensus --question "Should we adopt the proposal?" --adapter mock-unanimous
cluxion-ultracode consensus --question "Should we adopt the proposal?" --rounds 3 --agents 3 --agent-timeout 180 --debate-budget 600 --budget-tokens 120000 --models cheap,strong,cheap

--adapter hermes (default) uses the same hermes -z path as the plugin. --adapter mock-* runs deterministic local tests without live model calls.

Worst-case cost is agents * (rounds + 1) model calls plus tokens_spent. For example, the default 3 agents and 3 rounds costs at most 12 calls. --agent-timeout caps one agent call; --debate-budget caps the whole debate time, and --budget-tokens caps total tokens. Token usage is real when Hermes reports it, otherwise chars/4 with estimated: true. --models cycles models across agent seats.

On unanimity it returns the decision and rationale; otherwise a no_consensus with the dissent. If budget or quorum aborts the run, it returns status: "aborted", abort_reason, rounds_completed, and the partial transcript.

Diagnostics

A deterministic self-check of install, the Hermes contract, and the LLM backend. The same state always prints the same result, and on any problem it shows the symptom and the exact fix steps.

cluxion-ultracode doctor          # human summary
cluxion-ultracode doctor --json   # structured output

Also exposed inside Hermes as the ultracode_doctor tool.

Slash commands (0.1.13)

Codex/Claude Code plugin commands:

/cluxion-consensus Should we adopt this refactor direction?
/ultracode-doctor

Hermes plugin commands:

/cluxion-consensus Should we adopt this refactor direction?
/ultracode-doctor

In Hermes, shows in / autocomplete with 🔌 · consensus matches tool cluxion_consensus.

License

Apache-2.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file cluxion_agentplugin_effort_ultracode-0.1.13.tar.gz.

File metadata

File hashes

Hashes for cluxion_agentplugin_effort_ultracode-0.1.13.tar.gz
Algorithm Hash digest
SHA256 92b91ea504947a1d9ef347d3fb3b72a6417cea0a9fe80cbd34ef0f3e727664c3
MD5 b15f27e53ef48fde82961f8c79fdf083
BLAKE2b-256 850cf9b61c59d7e348304bed163b5daea5c1c72725df18d6edb758923eee23a8

See more details on using hashes here.

Provenance

The following attestation bundles were made for cluxion_agentplugin_effort_ultracode-0.1.13.tar.gz:

Publisher: publish.yml on cluxion/cluxion-Agentplugin-Effort-Ultracode

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cluxion_agentplugin_effort_ultracode-0.1.13-py3-none-any.whl.

File metadata

File hashes

Hashes for cluxion_agentplugin_effort_ultracode-0.1.13-py3-none-any.whl
Algorithm Hash digest
SHA256 f4939e2b2448ba1db828efdb8c25a7027b989b67ed2316ac8508abb9f79bc84c
MD5 bebcedb8a8f032710905710c4882f23c
BLAKE2b-256 36d07f6699a6d0c1fca323ae51343c0b373bccea03e127ea576f4938cff1e92f

See more details on using hashes here.

Provenance

The following attestation bundles were made for cluxion_agentplugin_effort_ultracode-0.1.13-py3-none-any.whl:

Publisher: publish.yml on cluxion/cluxion-Agentplugin-Effort-Ultracode

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page