Universal agent plugin for Cluxion preprocessing, honesty contracts, clarification, Rust work queue, and resource-aware harness handoff.
Project description
cluxion-Agentplugin-preprocessing
범용 에이전트 전처리 플러그인 — Hermes, Claude Code, Codex, Grok Build에서 동일 core로 동작합니다.
Repository: https://github.com/cluxion/cluxion-Agentplugin-preprocessing
한 줄 요약
작업 시작 전에 방향·정직함·큐를 정리합니다. 연결된 AI가 cluxion_plan 등 도구를 호출하고, JSON 계약(answer_policy, host_execution)에 따라 응답합니다. 플러그인은 추가 LLM 호출 없이 결정론적 plan만 반환합니다.
범용 에이전트 + Rust-First
| 계층 | 구현 |
|---|---|
Rust (cluxion-queue) |
SQLite 작업큐, atomic dispatch |
Python (cluxion_runtime, adapter) |
harness plan, 전처리, CLI |
| Agent adapter | adapters/ — Hermes plugin, Claude skill, Codex snippet |
내부 hot path는 Rust. Python은 등록·JSON bridge·fallback입니다.
이 플러그인의 역할
- 정직함: context 부족 시 모른다고 답하도록
answer_policy생성 - 명확화: 의도가 애매하면 큐 진입 전 질문 (
needs_clarification) - 작업큐: 긴 입력을 segment로 분할, checksum 보존
- 리소스 admission: RAM/CPU 압력에 따른 실행 허용 (결정론적)
모델·OAuth·provider는 host agent 소유. Cluxion은 plan·게이트·큐 메타데이터만 반환합니다.
연결된 AI가 하는 일
| 단계 | 동작 |
|---|---|
| 요청 수신 | cluxion_plan 또는 cluxion-runtime plan |
| 명확화 필요 | clarification.questions로 사용자에게 질문 |
| queued 모드 | cluxion_queue_next → 처리 → cluxion_queue_record → cluxion_queue_brief |
| 응답 | answer_policy.required_checks 준수 |
설계 요약
User prompt → cluxion_plan → [clarification?] → preprocessing mode
→ answer_policy + host_execution
→ (queued) queue_next/record/brief
설계 원칙
- 추가 AI preflight 없음 — 결정론적 plan
- 짧은 일반 질문은
simple_answerfast path - 불확실 시 fake success 금지 —
needs_clarification,unknown_after_check - opt-in — 사용자 동의 없이 권한 확대 없음
빠른 시작
pip install cluxion-agentplugin-preprocessing
cluxion-preprocess check
cluxion-preprocess enable # Hermes
cluxion-runtime plan --surface hermes --prompt "작업 설명"
도구 (cluxion toolset, 10 tools)
| Tool | 설명 |
|---|---|
cluxion_plan |
전처리·방향·큐·리소스 계획 |
cluxion_clarify |
명확화 질문 목록 |
cluxion_bootstrap |
로컬 runtime 의존성 설치/업그레이드 (예: vllm-mlx) |
cluxion_serve_local |
Cluxion-managed vLLM-MLX 로컬 endpoint 준비/시작 |
cluxion_hermes_config |
로컬 OpenAI-compatible endpoint용 Hermes provider config |
cluxion_queue_next / record / brief |
segment 큐 |
cluxion_context_compress |
context 사용률 초과 시 결정론적 압축 (pinned/recent 보존) |
cluxion_guard |
실시간 리소스 guard (status/start/stop/enforce/auto-enforce) |
Hermes에서는 on_session_start hook이 guard daemon을 자동 시작합니다. CLUXION_GUARD_AUTOSTART=0 또는 false로 끌 수 있고, post_tool_call hook은 기본 30초마다 report-only auto_enforce(dry_run=True)를 실행합니다. 실제 적용은 CLUXION_GUARD_AUTO_APPLY=1 또는 true일 때만 켜집니다.
문서
- Docs/README.md — 처음 읽는 분 + 목차
- Docs/architecture.md
- Docs/design.md
- Docs/installation.md
- Docs/tools.md
- Docs/agent-surfaces.md
- Docs/rust-architecture.md
License
Apache-2.0
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cluxion_agentplugin_preprocessing-0.3.1.tar.gz.
File metadata
- Download URL: cluxion_agentplugin_preprocessing-0.3.1.tar.gz
- Upload date:
- Size: 105.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d9af48e2949a31dd903a7403ba727555b3a61bc893011e7b09125aff31830d88
|
|
| MD5 |
89f1e466f073cda35ae3e42c2780e685
|
|
| BLAKE2b-256 |
32eb78ae3a67840ffee8946912f8fe5d1890e2801f2973f21126bf1d1ef70e81
|
Provenance
The following attestation bundles were made for cluxion_agentplugin_preprocessing-0.3.1.tar.gz:
Publisher:
publish.yml on cluxion/cluxion-Agentplugin-preprocessing
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cluxion_agentplugin_preprocessing-0.3.1.tar.gz -
Subject digest:
d9af48e2949a31dd903a7403ba727555b3a61bc893011e7b09125aff31830d88 - Sigstore transparency entry: 1806556044
- Sigstore integration time:
-
Permalink:
cluxion/cluxion-Agentplugin-preprocessing@31bbac17ccd04520b882e55bc65d27de8c74c6b0 -
Branch / Tag:
refs/tags/v0.3.1 - Owner: https://github.com/cluxion
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@31bbac17ccd04520b882e55bc65d27de8c74c6b0 -
Trigger Event:
release
-
Statement type:
File details
Details for the file cluxion_agentplugin_preprocessing-0.3.1-py3-none-any.whl.
File metadata
- Download URL: cluxion_agentplugin_preprocessing-0.3.1-py3-none-any.whl
- Upload date:
- Size: 89.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b61f5fb482246dd868340bce018d8c8b2544bcf5df3650a7a155a50aad27bc3c
|
|
| MD5 |
004c64ca2d686f5287ac145cb18f6a0f
|
|
| BLAKE2b-256 |
cbcfbf33efc2bc26cbecf83105104a87aa17e617527c5db465d9990617e62bf2
|
Provenance
The following attestation bundles were made for cluxion_agentplugin_preprocessing-0.3.1-py3-none-any.whl:
Publisher:
publish.yml on cluxion/cluxion-Agentplugin-preprocessing
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cluxion_agentplugin_preprocessing-0.3.1-py3-none-any.whl -
Subject digest:
b61f5fb482246dd868340bce018d8c8b2544bcf5df3650a7a155a50aad27bc3c - Sigstore transparency entry: 1806556266
- Sigstore integration time:
-
Permalink:
cluxion/cluxion-Agentplugin-preprocessing@31bbac17ccd04520b882e55bc65d27de8c74c6b0 -
Branch / Tag:
refs/tags/v0.3.1 - Owner: https://github.com/cluxion
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@31bbac17ccd04520b882e55bc65d27de8c74c6b0 -
Trigger Event:
release
-
Statement type:
File details
Details for the file cluxion_agentplugin_preprocessing-0.3.1-cp311-abi3-win_amd64.whl.
File metadata
- Download URL: cluxion_agentplugin_preprocessing-0.3.1-cp311-abi3-win_amd64.whl
- Upload date:
- Size: 1.3 MB
- Tags: CPython 3.11+, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e73d88670a38511029f0e09a57be23c055ae2ed74fc6965627d49a91ca3cc084
|
|
| MD5 |
f08f8e8cf63360bfe14748a79595b312
|
|
| BLAKE2b-256 |
e8f4b35e640682465269b0d3822be20f31575565fb90444b7b78378b1b7b6915
|
Provenance
The following attestation bundles were made for cluxion_agentplugin_preprocessing-0.3.1-cp311-abi3-win_amd64.whl:
Publisher:
publish.yml on cluxion/cluxion-Agentplugin-preprocessing
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cluxion_agentplugin_preprocessing-0.3.1-cp311-abi3-win_amd64.whl -
Subject digest:
e73d88670a38511029f0e09a57be23c055ae2ed74fc6965627d49a91ca3cc084 - Sigstore transparency entry: 1806556389
- Sigstore integration time:
-
Permalink:
cluxion/cluxion-Agentplugin-preprocessing@31bbac17ccd04520b882e55bc65d27de8c74c6b0 -
Branch / Tag:
refs/tags/v0.3.1 - Owner: https://github.com/cluxion
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@31bbac17ccd04520b882e55bc65d27de8c74c6b0 -
Trigger Event:
release
-
Statement type:
File details
Details for the file cluxion_agentplugin_preprocessing-0.3.1-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.
File metadata
- Download URL: cluxion_agentplugin_preprocessing-0.3.1-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
- Upload date:
- Size: 1.5 MB
- Tags: CPython 3.11+, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1643779e3aa27ef44bf72b04a439569c027a81d4ec482f43006c984cf87fe6ea
|
|
| MD5 |
726e895f52bfb0c2f946d921917882a1
|
|
| BLAKE2b-256 |
66158fcb897ffc128238de039051ef82dc8756a43e3ded6622d1556632ef7eef
|
Provenance
The following attestation bundles were made for cluxion_agentplugin_preprocessing-0.3.1-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl:
Publisher:
publish.yml on cluxion/cluxion-Agentplugin-preprocessing
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cluxion_agentplugin_preprocessing-0.3.1-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl -
Subject digest:
1643779e3aa27ef44bf72b04a439569c027a81d4ec482f43006c984cf87fe6ea - Sigstore transparency entry: 1806556112
- Sigstore integration time:
-
Permalink:
cluxion/cluxion-Agentplugin-preprocessing@31bbac17ccd04520b882e55bc65d27de8c74c6b0 -
Branch / Tag:
refs/tags/v0.3.1 - Owner: https://github.com/cluxion
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@31bbac17ccd04520b882e55bc65d27de8c74c6b0 -
Trigger Event:
release
-
Statement type:
File details
Details for the file cluxion_agentplugin_preprocessing-0.3.1-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl.
File metadata
- Download URL: cluxion_agentplugin_preprocessing-0.3.1-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
- Upload date:
- Size: 1.3 MB
- Tags: CPython 3.11+, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
920fd8a9f26fe26e750ff7ce91831778303e1837dac513c142699c5fcbccfbc9
|
|
| MD5 |
d61cbbe253cafe058fb692da96ceebbb
|
|
| BLAKE2b-256 |
8349f3c8d7f70a4a8b36410c75a8e1c213a295579f36358a2d0c5959eabc1271
|
Provenance
The following attestation bundles were made for cluxion_agentplugin_preprocessing-0.3.1-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl:
Publisher:
publish.yml on cluxion/cluxion-Agentplugin-preprocessing
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cluxion_agentplugin_preprocessing-0.3.1-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl -
Subject digest:
920fd8a9f26fe26e750ff7ce91831778303e1837dac513c142699c5fcbccfbc9 - Sigstore transparency entry: 1806556324
- Sigstore integration time:
-
Permalink:
cluxion/cluxion-Agentplugin-preprocessing@31bbac17ccd04520b882e55bc65d27de8c74c6b0 -
Branch / Tag:
refs/tags/v0.3.1 - Owner: https://github.com/cluxion
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@31bbac17ccd04520b882e55bc65d27de8c74c6b0 -
Trigger Event:
release
-
Statement type:
File details
Details for the file cluxion_agentplugin_preprocessing-0.3.1-cp311-abi3-macosx_10_12_universal2.macosx_10_12_x86_64.macosx_11_0_arm64.whl.
File metadata
- Download URL: cluxion_agentplugin_preprocessing-0.3.1-cp311-abi3-macosx_10_12_universal2.macosx_10_12_x86_64.macosx_11_0_arm64.whl
- Upload date:
- Size: 2.6 MB
- Tags: CPython 3.11+, macOS 10.12+ universal2 (ARM64, x86-64), macOS 10.12+ x86-64, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
78c0dee700c366cc75ef5b7d686638e401e8a2560aa06e83392716e104a23b44
|
|
| MD5 |
4a1107c343f8111fc87faee1760d6a19
|
|
| BLAKE2b-256 |
4ee9e88c83e167b235537067724c2437db0430bf141bd2146244a255092cc3f3
|
Provenance
The following attestation bundles were made for cluxion_agentplugin_preprocessing-0.3.1-cp311-abi3-macosx_10_12_universal2.macosx_10_12_x86_64.macosx_11_0_arm64.whl:
Publisher:
publish.yml on cluxion/cluxion-Agentplugin-preprocessing
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cluxion_agentplugin_preprocessing-0.3.1-cp311-abi3-macosx_10_12_universal2.macosx_10_12_x86_64.macosx_11_0_arm64.whl -
Subject digest:
78c0dee700c366cc75ef5b7d686638e401e8a2560aa06e83392716e104a23b44 - Sigstore transparency entry: 1806556181
- Sigstore integration time:
-
Permalink:
cluxion/cluxion-Agentplugin-preprocessing@31bbac17ccd04520b882e55bc65d27de8c74c6b0 -
Branch / Tag:
refs/tags/v0.3.1 - Owner: https://github.com/cluxion
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@31bbac17ccd04520b882e55bc65d27de8c74c6b0 -
Trigger Event:
release
-
Statement type: