Skip to main content

Universal agent plugin for Cluxion preprocessing, honesty contracts, clarification, Rust work queue, and resource-aware harness handoff.

Project description

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

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

cluxion-agentplugin-preprocessing

AI 코딩 에이전트(Hermes Agent, Claude Code, Codex)를 위한 전처리 플러그인입니다. 작업이 시작되기 전에 정리를 해 줍니다: 에이전트가 모르는 것은 모른다고 인정하게 하고, 애매한 요청은 행동하기 전에 사용자에게 명확히 묻게 하며, 긴 작업을 안정적으로 큐에 넣고, 폭주하는 프로세스가 기기를 다운시키지 못하게 막고, 대화가 너무 길어지면 자동으로 압축합니다.

설치

pip install cluxion-agentplugin-preprocessing

# 선택: 사용자 본인의 로그인된 Chrome으로 웹 검색
pip install 'cluxion-agentplugin-preprocessing[browser]'
playwright install chromium

Hermes Agent에서 사용

cluxion-preprocess enable     # ~/.hermes/config.yaml 에 플러그인을 추가합니다
# 그 다음 Hermes 재시작

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

기능

활성화하면 에이전트가 아래 도구들을 얻고, 자동으로 호출합니다.

  • 정직함과 명확화 — 에이전트가 추측하기 전에 먼저 묻고, 근거를 댈 수 없는 답을 지어내지 않습니다.
  • 작업 큐 — 긴 작업을 하나의 프롬프트에 넘치게 담는 대신 추적 가능한 세그먼트로 분할합니다.
  • 자원 가드 — 폭주 프로세스가 RAM을 모두 잡아먹지 못하게 막는 가벼운 감시기. Hermes 세션마다 자동으로 시작됩니다.
  • 컨텍스트 압축 — 대화가 모델 컨텍스트의 약 70%를 넘으면, 의도와 최근 대화를 보존하며 압축합니다.
  • 내 Chrome으로 웹 검색 — 본인의 로그인된 브라우저 세션으로 Google / Naver / Perplexity / 사내 페이지를 검색합니다(위의 [browser] extra 필요).

점검

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

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

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

Hermes 슬래시 커맨드 (0.3.23+)

/ 입력 시 🔌로 자동완성됩니다.

슬래시 용도
/loopauto <prompt> 명시적 plan + 자동 큐 드레인
/cluxion-doctor doctor (CLI cluxion-preprocess doctor와 동일)
/loopauto 4000줄 요구사항을 순서대로 구현하고 각 항목 증거를 남겨줘
/cluxion-doctor

/loopAuto prompt prefix는 prefix를 제거하고 loop_auto=true를 설정합니다. 자동 드레인은 host_execution.queue_required=true일 때만 실행되며, 짧은 fast-path prompt는 queue를 강제하지 않습니다.

문제 해결

증상 해결
무엇이든 이상함 먼저 cluxion-preprocess doctor 실행 — 원인과 해결 단계를 그대로 출력
playwright_not_installed pip install 'cluxion-agentplugin-preprocessing[browser]' && playwright install chromium
Hermes에 도구가 안 보임 cluxion-preprocess enable 실행 후 Hermes 재시작

라이선스

Apache-2.0

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

cluxion-agentplugin-preprocessing

A preprocessing plugin for AI coding agents (Hermes Agent, Claude Code, Codex). It tidies things up before work starts: it makes the agent admit when it doesn't know, asks you to clarify vague requests before acting, queues long tasks reliably, keeps runaway processes from taking down your machine, and auto-compresses the conversation when it grows too long.

Install

pip install cluxion-agentplugin-preprocessing

# optional: web search through your own logged-in Chrome
pip install 'cluxion-agentplugin-preprocessing[browser]'
playwright install chromium

Use with Hermes Agent

cluxion-preprocess enable     # adds the plugin to ~/.hermes/config.yaml
# then restart Hermes

The tools also work with local models (vLLM/MLX) served through Hermes.

What you get

Once enabled, your agent gains these tools and calls them automatically:

  • Honesty & clarification — the agent asks before guessing and won't fake an answer it can't back up.
  • Work queue — long tasks are split into tracked segments instead of overflowing a single prompt.
  • Resource guard — a lightweight watcher that stops runaway processes from eating all your RAM. It starts automatically with each Hermes session.
  • Context compression — shrinks the conversation once it passes ~70% of the model's window, keeping your intent and recent turns.
  • Web search via your Chrome — searches Google / Naver / Perplexity / internal pages through your own logged-in browser session (needs the [browser] extra above).

Diagnostics

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

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

Also exposed inside Hermes as the cluxion_doctor tool.

Hermes slash commands (0.3.23+)

Type / to see plugin commands with a 🔌 badge.

Slash Purpose
/loopauto <prompt> Explicit plan + autonomous queue drain
/cluxion-doctor Run doctor (same as cluxion-preprocess doctor)
/loopauto implement every REQ line and record evidence
/cluxion-doctor

The /loopAuto prompt prefix is stripped and sets loop_auto=true. Autonomous drain runs only when host_execution.queue_required=true; short fast-path prompts are not forced into the queue.

Troubleshooting

Problem Fix
Anything looks off run cluxion-preprocess doctor first — it prints the cause and the exact fix steps
playwright_not_installed pip install 'cluxion-agentplugin-preprocessing[browser]' && playwright install chromium
Tools don't appear in Hermes run cluxion-preprocess enable, then restart Hermes

License

Apache-2.0

Native backend (optional, faster)

The Rust backend is not built automatically. After install, run once:

uv pip install ./rust/cluxion_queue --python .venv/bin/python

Without it the plugin falls back to a slower pure-Python path (doctor reports native_module_importable).

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

cluxion_agentplugin_preprocessing-0.3.33.tar.gz (173.0 kB view details)

Uploaded Source

Built Distributions

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

cluxion_agentplugin_preprocessing-0.3.33-cp311-abi3-win_amd64.whl (1.3 MB view details)

Uploaded CPython 3.11+Windows x86-64

cluxion_agentplugin_preprocessing-0.3.33-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.11+manylinux: glibc 2.17+ x86-64

cluxion_agentplugin_preprocessing-0.3.33-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl (1.4 MB view details)

Uploaded CPython 3.11+manylinux: glibc 2.17+ ARM64

cluxion_agentplugin_preprocessing-0.3.33-cp311-abi3-macosx_10_12_universal2.macosx_10_12_x86_64.macosx_11_0_arm64.whl (2.6 MB view details)

Uploaded CPython 3.11+macOS 10.12+ universal2 (ARM64, x86-64)macOS 10.12+ x86-64macOS 11.0+ ARM64

File details

Details for the file cluxion_agentplugin_preprocessing-0.3.33.tar.gz.

File metadata

File hashes

Hashes for cluxion_agentplugin_preprocessing-0.3.33.tar.gz
Algorithm Hash digest
SHA256 b6dd0c4adcd427c80cd1f08a033d0797df4a6b32d6bf276a8d87968f1e716555
MD5 181496c708f931c4f9c1cbc8c345a685
BLAKE2b-256 b3b94288e44db1859fb0069c37042800f6e1ef7d0eff508ade23f7eb6a6740f5

See more details on using hashes here.

Provenance

The following attestation bundles were made for cluxion_agentplugin_preprocessing-0.3.33.tar.gz:

Publisher: publish.yml on cluxion/cluxion-Agentplugin-preprocessing

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_preprocessing-0.3.33-py3-none-any.whl.

File metadata

File hashes

Hashes for cluxion_agentplugin_preprocessing-0.3.33-py3-none-any.whl
Algorithm Hash digest
SHA256 611bc599237a5e09f3a1d9823264d53def1d925c805a70be0b0483ef144b98ec
MD5 9b203e70acb7e841779d21b3d74d91a0
BLAKE2b-256 34c41b677963f6165e0b2ba6f90aab2d199c72f503bbc54b88cdfd52312af2a1

See more details on using hashes here.

Provenance

The following attestation bundles were made for cluxion_agentplugin_preprocessing-0.3.33-py3-none-any.whl:

Publisher: publish.yml on cluxion/cluxion-Agentplugin-preprocessing

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_preprocessing-0.3.33-cp311-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for cluxion_agentplugin_preprocessing-0.3.33-cp311-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 3e99834777424622b87766c5b7e83cda2f44fb76be4e21f084d5f7b003e62048
MD5 3995e58ff4fa29fe971dc4813c76a171
BLAKE2b-256 3a8246315c0488538a9a5a0a052dcfa47faff6f8c661ef39f47f315863264441

See more details on using hashes here.

Provenance

The following attestation bundles were made for cluxion_agentplugin_preprocessing-0.3.33-cp311-abi3-win_amd64.whl:

Publisher: publish.yml on cluxion/cluxion-Agentplugin-preprocessing

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_preprocessing-0.3.33-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for cluxion_agentplugin_preprocessing-0.3.33-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 4e630e817879211a7bb3db7f5683921a16df52b366fc192b12a7c58d7c2aa4fc
MD5 770bf190fa3434d84f572d9a767c4b9c
BLAKE2b-256 b9df79d3190ce799c967eb4877c46b95216a2962f81bb96c14927166f3b123d1

See more details on using hashes here.

Provenance

The following attestation bundles were made for cluxion_agentplugin_preprocessing-0.3.33-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl:

Publisher: publish.yml on cluxion/cluxion-Agentplugin-preprocessing

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_preprocessing-0.3.33-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl.

File metadata

File hashes

Hashes for cluxion_agentplugin_preprocessing-0.3.33-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 c80d1a957da13c1c6aee5132abb73258af6674e5dae67585e49eb2e5dbfae6a9
MD5 9f3a1adf3e844dc4c54d4a62efadc6a0
BLAKE2b-256 5caf03f6086dfd602099177f18f7b26fa9cbbaffc76ed91588ee806a58f3f46e

See more details on using hashes here.

Provenance

The following attestation bundles were made for cluxion_agentplugin_preprocessing-0.3.33-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl:

Publisher: publish.yml on cluxion/cluxion-Agentplugin-preprocessing

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_preprocessing-0.3.33-cp311-abi3-macosx_10_12_universal2.macosx_10_12_x86_64.macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for cluxion_agentplugin_preprocessing-0.3.33-cp311-abi3-macosx_10_12_universal2.macosx_10_12_x86_64.macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 526bb08d65df86cdc4f21343a2bfe591cafa9958814c8420e51df87e1a589571
MD5 3d1b7ea51ff9d7316e2c1898651b0f7b
BLAKE2b-256 4e4eee95c2553207e091ef79f5198f197adb7748eadce5a2c63257b397714ac6

See more details on using hashes here.

Provenance

The following attestation bundles were made for cluxion_agentplugin_preprocessing-0.3.33-cp311-abi3-macosx_10_12_universal2.macosx_10_12_x86_64.macosx_11_0_arm64.whl:

Publisher: publish.yml on cluxion/cluxion-Agentplugin-preprocessing

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