cluxion-agentplugin-preprocessing 0.2.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- cluxion_agentplugin_preprocessing-0.2.0/.github/profile/README.md +67 -0
- cluxion_agentplugin_preprocessing-0.2.0/.gitignore +10 -0
- cluxion_agentplugin_preprocessing-0.2.0/LICENSE +197 -0
- cluxion_agentplugin_preprocessing-0.2.0/PKG-INFO +115 -0
- cluxion_agentplugin_preprocessing-0.2.0/README.md +86 -0
- cluxion_agentplugin_preprocessing-0.2.0/adapters/claude/.claude-plugin/plugin.json +8 -0
- cluxion_agentplugin_preprocessing-0.2.0/adapters/claude/skills/preprocess/SKILL.md +33 -0
- cluxion_agentplugin_preprocessing-0.2.0/adapters/codex/config-snippet.toml +5 -0
- cluxion_agentplugin_preprocessing-0.2.0/cluxion-Docs/README.md +22 -0
- cluxion_agentplugin_preprocessing-0.2.0/cluxion-Docs/architecture.md +36 -0
- cluxion_agentplugin_preprocessing-0.2.0/cluxion-Docs/harness-logic.md +51 -0
- cluxion_agentplugin_preprocessing-0.2.0/cluxion-Docs/honesty-preprocessing.md +40 -0
- cluxion_agentplugin_preprocessing-0.2.0/cluxion-Docs/install-and-operations.md +36 -0
- cluxion_agentplugin_preprocessing-0.2.0/cluxion-Docs/security.md +27 -0
- cluxion_agentplugin_preprocessing-0.2.0/docs/README.md +51 -0
- cluxion_agentplugin_preprocessing-0.2.0/pyproject.toml +93 -0
- cluxion_agentplugin_preprocessing-0.2.0/rust/cluxion_queue/Cargo.lock +352 -0
- cluxion_agentplugin_preprocessing-0.2.0/rust/cluxion_queue/Cargo.toml +16 -0
- cluxion_agentplugin_preprocessing-0.2.0/rust/cluxion_queue/src/dispatch.rs +225 -0
- cluxion_agentplugin_preprocessing-0.2.0/rust/cluxion_queue/src/main.rs +68 -0
- cluxion_agentplugin_preprocessing-0.2.0/rust/cluxion_queue/src/queue.rs +165 -0
- cluxion_agentplugin_preprocessing-0.2.0/rust/cluxion_queue/src/types.rs +57 -0
- cluxion_agentplugin_preprocessing-0.2.0/src/cluxion_agentplugin_preprocessing/__init__.py +7 -0
- cluxion_agentplugin_preprocessing-0.2.0/src/cluxion_agentplugin_preprocessing/cli.py +124 -0
- cluxion_agentplugin_preprocessing-0.2.0/src/cluxion_agentplugin_preprocessing/hermes_config.py +163 -0
- cluxion_agentplugin_preprocessing-0.2.0/src/cluxion_agentplugin_preprocessing/plugin.py +135 -0
- cluxion_agentplugin_preprocessing-0.2.0/src/cluxion_agentplugin_preprocessing/plugin.yaml +13 -0
- cluxion_agentplugin_preprocessing-0.2.0/src/cluxion_agentplugin_preprocessing/runner.py +241 -0
- cluxion_agentplugin_preprocessing-0.2.0/src/cluxion_agentplugin_preprocessing/schemas.py +148 -0
- cluxion_agentplugin_preprocessing-0.2.0/src/cluxion_runtime/__init__.py +16 -0
- cluxion_agentplugin_preprocessing-0.2.0/src/cluxion_runtime/__main__.py +5 -0
- cluxion_agentplugin_preprocessing-0.2.0/src/cluxion_runtime/adapters/__init__.py +25 -0
- cluxion_agentplugin_preprocessing-0.2.0/src/cluxion_runtime/adapters/contract.py +82 -0
- cluxion_agentplugin_preprocessing-0.2.0/src/cluxion_runtime/adapters/grok_build.py +35 -0
- cluxion_agentplugin_preprocessing-0.2.0/src/cluxion_runtime/adapters/hermes.py +161 -0
- cluxion_agentplugin_preprocessing-0.2.0/src/cluxion_runtime/adapters/spec.py +35 -0
- cluxion_agentplugin_preprocessing-0.2.0/src/cluxion_runtime/bootstrap.py +270 -0
- cluxion_agentplugin_preprocessing-0.2.0/src/cluxion_runtime/cli.py +282 -0
- cluxion_agentplugin_preprocessing-0.2.0/src/cluxion_runtime/core/__init__.py +36 -0
- cluxion_agentplugin_preprocessing-0.2.0/src/cluxion_runtime/core/clarification.py +192 -0
- cluxion_agentplugin_preprocessing-0.2.0/src/cluxion_runtime/core/dispatch_store.py +270 -0
- cluxion_agentplugin_preprocessing-0.2.0/src/cluxion_runtime/core/harness.py +320 -0
- cluxion_agentplugin_preprocessing-0.2.0/src/cluxion_runtime/core/intent.py +55 -0
- cluxion_agentplugin_preprocessing-0.2.0/src/cluxion_runtime/core/ledger.py +189 -0
- cluxion_agentplugin_preprocessing-0.2.0/src/cluxion_runtime/core/ledger_codec.py +38 -0
- cluxion_agentplugin_preprocessing-0.2.0/src/cluxion_runtime/core/plan_codec.py +121 -0
- cluxion_agentplugin_preprocessing-0.2.0/src/cluxion_runtime/core/preprocess.py +497 -0
- cluxion_agentplugin_preprocessing-0.2.0/src/cluxion_runtime/core/types.py +220 -0
- cluxion_agentplugin_preprocessing-0.2.0/src/cluxion_runtime/core/work_queue.py +73 -0
- cluxion_agentplugin_preprocessing-0.2.0/src/cluxion_runtime/models/__init__.py +15 -0
- cluxion_agentplugin_preprocessing-0.2.0/src/cluxion_runtime/models/supervisor.py +156 -0
- cluxion_agentplugin_preprocessing-0.2.0/src/cluxion_runtime/models/vllm_mlx.py +87 -0
- cluxion_agentplugin_preprocessing-0.2.0/src/cluxion_runtime/resources/__init__.py +7 -0
- cluxion_agentplugin_preprocessing-0.2.0/src/cluxion_runtime/resources/queue_bridge.py +128 -0
- cluxion_agentplugin_preprocessing-0.2.0/src/cluxion_runtime/resources/rust_bridge.py +82 -0
- cluxion_agentplugin_preprocessing-0.2.0/tests/runtime/test_clarification.py +30 -0
- cluxion_agentplugin_preprocessing-0.2.0/tests/runtime/test_cluxion_runtime_spine.py +319 -0
- cluxion_agentplugin_preprocessing-0.2.0/tests/runtime/test_runtime_adapter_cli.py +245 -0
- cluxion_agentplugin_preprocessing-0.2.0/tests/runtime/test_rust_queue.py +57 -0
- cluxion_agentplugin_preprocessing-0.2.0/tests/test_bootstrap.py +112 -0
- cluxion_agentplugin_preprocessing-0.2.0/tests/test_hermes_config.py +68 -0
- cluxion_agentplugin_preprocessing-0.2.0/tests/test_packaging_policy.py +16 -0
- cluxion_agentplugin_preprocessing-0.2.0/tests/test_plugin.py +78 -0
- cluxion_agentplugin_preprocessing-0.2.0/tests/test_runner.py +168 -0
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# hermes-cluxion
|
|
2
|
+
|
|
3
|
+
`hermes-cluxion` is a lightweight Cluxion harness plugin for Hermes Agent.
|
|
4
|
+
|
|
5
|
+
It keeps Hermes in control of OAuth, provider auth, active model selection, tools, permissions, and final AI completion calls. Cluxion adds deterministic work planning around Hermes: preprocessing, intent routing, honesty contracts, queued segment dispatch, resource admission, and optional local `vllm-mlx` endpoint setup.
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
python -m pip install "hermes-cluxion==0.1.9"
|
|
11
|
+
hermes-cluxion enable
|
|
12
|
+
hermes-cluxion check
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
Confirm the plugin is enabled:
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
hermes tools list
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Expected:
|
|
22
|
+
|
|
23
|
+
```text
|
|
24
|
+
Plugin toolsets (cli):
|
|
25
|
+
✓ enabled cluxion 🔌 Cluxion
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## Hermes Tools
|
|
29
|
+
|
|
30
|
+
- `cluxion_plan`
|
|
31
|
+
- `cluxion_bootstrap`
|
|
32
|
+
- `cluxion_serve_local`
|
|
33
|
+
- `cluxion_hermes_config`
|
|
34
|
+
- `cluxion_queue_next`
|
|
35
|
+
- `cluxion_queue_record`
|
|
36
|
+
- `cluxion_queue_brief`
|
|
37
|
+
|
|
38
|
+
## Execution Model
|
|
39
|
+
|
|
40
|
+
- Cloud AI calls stay inside Hermes.
|
|
41
|
+
- Local model calls also stay inside Hermes after switching to a custom local provider.
|
|
42
|
+
- Cluxion returns `host_execution`, `answer_policy`, queue metadata, and resource decisions.
|
|
43
|
+
- Short simple prompts do not pay queue or resource snapshot cost.
|
|
44
|
+
- Short verification prompts get required checks without heavy preprocessing.
|
|
45
|
+
- Long work uses durable queued segment dispatch and final briefing synthesis.
|
|
46
|
+
|
|
47
|
+
## Local MLX Flow
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
hermes-cluxion bootstrap --upgrade
|
|
51
|
+
hermes-cluxion hermes-config \
|
|
52
|
+
--model mlx-community/Qwen3.6-35B-A3B-OptiQ-4bit \
|
|
53
|
+
--port 23003 \
|
|
54
|
+
--context-length 131072
|
|
55
|
+
cluxion-runtime serve-local \
|
|
56
|
+
--model mlx-community/Qwen3.6-35B-A3B-OptiQ-4bit \
|
|
57
|
+
--port 23003 \
|
|
58
|
+
--upgrade-runtime
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
Then switch Hermes:
|
|
62
|
+
|
|
63
|
+
```text
|
|
64
|
+
/model custom:cluxion-local:mlx-community/Qwen3.6-35B-A3B-OptiQ-4bit
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
Full guide: [README](../../README.md)
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
https://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
patent license to make, have made, use, offer to sell, sell, import,
|
|
77
|
+
and otherwise transfer the Work, where such license applies only to
|
|
78
|
+
those patent claims licensable by such Contributor that are necessarily
|
|
79
|
+
infringed by their Contribution(s) alone or by combination of their
|
|
80
|
+
Contribution(s) with the Work to which such Contribution(s) was
|
|
81
|
+
submitted. If You institute patent litigation against any entity
|
|
82
|
+
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
|
83
|
+
the Work or a Contribution incorporated within the Work constitutes
|
|
84
|
+
direct or contributory patent infringement, then any patent licenses
|
|
85
|
+
granted to You under this License for that Work shall terminate as
|
|
86
|
+
of the date such litigation is filed.
|
|
87
|
+
|
|
88
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
89
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
90
|
+
modifications, and in Source or Object form, provided that You
|
|
91
|
+
meet the following conditions:
|
|
92
|
+
|
|
93
|
+
(a) You must give any other recipients of the Work or
|
|
94
|
+
Derivative Works a copy of this License; and
|
|
95
|
+
|
|
96
|
+
(b) You must cause any modified files to carry prominent notices
|
|
97
|
+
stating that You changed the files; and
|
|
98
|
+
|
|
99
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
100
|
+
that You distribute, all copyright, patent, trademark, and
|
|
101
|
+
attribution notices from the Source form of the Work,
|
|
102
|
+
excluding those notices that do not pertain to any part of
|
|
103
|
+
the Derivative Works; and
|
|
104
|
+
|
|
105
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
106
|
+
distribution, then any Derivative Works that You distribute must
|
|
107
|
+
include a readable copy of the attribution notices contained
|
|
108
|
+
within such NOTICE file, excluding those notices that do not
|
|
109
|
+
pertain to any part of the Derivative Works, in at least one
|
|
110
|
+
of the following places: within a NOTICE text file distributed
|
|
111
|
+
as part of the Derivative Works; within the Source form or
|
|
112
|
+
documentation, if provided along with the Derivative Works; or,
|
|
113
|
+
within a display generated by the Derivative Works, if and
|
|
114
|
+
wherever such third-party notices normally appear. The contents
|
|
115
|
+
of the NOTICE file are for informational purposes only and
|
|
116
|
+
do not modify the License. You may add Your own attribution
|
|
117
|
+
notices within Derivative Works that You distribute, alongside
|
|
118
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
119
|
+
that such additional attribution notices cannot be construed
|
|
120
|
+
as modifying the License.
|
|
121
|
+
|
|
122
|
+
You may add Your own copyright statement to Your modifications and
|
|
123
|
+
may provide additional or different license terms and conditions
|
|
124
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
125
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
126
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
127
|
+
the conditions stated in this License.
|
|
128
|
+
|
|
129
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
130
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
131
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
132
|
+
this License, without any additional terms or conditions.
|
|
133
|
+
|
|
134
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
135
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
136
|
+
except as required for reasonable and customary use in describing the
|
|
137
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
138
|
+
|
|
139
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
140
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
141
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
142
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
143
|
+
implied, including, without limitation, any warranties or conditions
|
|
144
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
145
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
146
|
+
appropriateness of using or redistributing the Work and assume any
|
|
147
|
+
risks associated with Your exercise of permissions under this License.
|
|
148
|
+
|
|
149
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
150
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
151
|
+
unless required by applicable law (such as deliberate and grossly
|
|
152
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
153
|
+
liable to You for damages, including any direct, indirect, special,
|
|
154
|
+
incidental, or consequential damages of any character arising as a
|
|
155
|
+
result of this License or out of the use or inability to use the
|
|
156
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
157
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
158
|
+
other commercial damages or losses), even if such Contributor
|
|
159
|
+
has been advised of the possibility of such damages.
|
|
160
|
+
|
|
161
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
162
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
163
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
164
|
+
or other liability obligations and/or rights consistent with this
|
|
165
|
+
License. However, in accepting such obligations, You may act only
|
|
166
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
167
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
168
|
+
defend, and hold each Contributor harmless for any liability
|
|
169
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
170
|
+
of your accepting any such warranty or additional liability.
|
|
171
|
+
|
|
172
|
+
END OF TERMS AND CONDITIONS
|
|
173
|
+
|
|
174
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
175
|
+
|
|
176
|
+
To apply the Apache License to your work, attach the following
|
|
177
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
178
|
+
replaced with your own identifying information. (Don't include
|
|
179
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
180
|
+
comment syntax for the file format. We also recommend that a
|
|
181
|
+
file or class name and description of purpose be included on the
|
|
182
|
+
same "printed page" as the copyright notice for easier
|
|
183
|
+
identification within third-party archives.
|
|
184
|
+
|
|
185
|
+
Copyright 2026 Cluxion
|
|
186
|
+
|
|
187
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
188
|
+
you may not use this file except in compliance with the License.
|
|
189
|
+
You may obtain a copy of the License at
|
|
190
|
+
|
|
191
|
+
https://www.apache.org/licenses/LICENSE-2.0
|
|
192
|
+
|
|
193
|
+
Unless required by applicable law or agreed to in writing, software
|
|
194
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
195
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
196
|
+
See the License for the specific language governing permissions and
|
|
197
|
+
limitations under the License.
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: cluxion-agentplugin-preprocessing
|
|
3
|
+
Version: 0.2.0
|
|
4
|
+
Summary: Universal agent plugin for Cluxion preprocessing, honesty contracts, clarification, Rust work queue, and resource-aware harness handoff.
|
|
5
|
+
Project-URL: Homepage, https://github.com/cluxion/cluxion-Agentplugin-preprocessing
|
|
6
|
+
Project-URL: Repository, https://github.com/cluxion/cluxion-Agentplugin-preprocessing
|
|
7
|
+
Project-URL: Issues, https://github.com/cluxion/cluxion-Agentplugin-preprocessing/issues
|
|
8
|
+
Author-email: cluxion <algocean1204@users.noreply.github.com>
|
|
9
|
+
License-Expression: Apache-2.0
|
|
10
|
+
License-File: LICENSE
|
|
11
|
+
Keywords: ai-agent,claude-code,cluxion,codex,hermes-agent,plugin,preprocessing
|
|
12
|
+
Classifier: Development Status :: 3 - Alpha
|
|
13
|
+
Classifier: Environment :: Plugins
|
|
14
|
+
Classifier: Intended Audience :: Developers
|
|
15
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
16
|
+
Classifier: Programming Language :: Python :: 3
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
19
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
20
|
+
Requires-Python: >=3.11
|
|
21
|
+
Requires-Dist: psutil>=5.9
|
|
22
|
+
Requires-Dist: pyyaml>=6.0
|
|
23
|
+
Provides-Extra: dev
|
|
24
|
+
Requires-Dist: build>=1.2; extra == 'dev'
|
|
25
|
+
Requires-Dist: pytest>=8.0; extra == 'dev'
|
|
26
|
+
Requires-Dist: ruff>=0.8; extra == 'dev'
|
|
27
|
+
Requires-Dist: twine>=6.0; extra == 'dev'
|
|
28
|
+
Description-Content-Type: text/markdown
|
|
29
|
+
|
|
30
|
+
# cluxion-Agentplugin-preprocessing
|
|
31
|
+
|
|
32
|
+
범용 에이전트 **전처리 플러그인** — **Hermes, Claude Code, Codex, Grok Build**에서 동일 core로 동작합니다.
|
|
33
|
+
|
|
34
|
+
**Repository:** https://github.com/cluxion/cluxion-Agentplugin-preprocessing
|
|
35
|
+
|
|
36
|
+
## 한 줄 요약
|
|
37
|
+
|
|
38
|
+
작업 시작 전에 **방향·정직함·큐**를 정리합니다. **연결된 AI**가 `cluxion_plan` 등 도구를 호출하고, JSON 계약(`answer_policy`, `host_execution`)에 따라 응답합니다. 플러그인은 추가 LLM 호출 없이 결정론적 plan만 반환합니다.
|
|
39
|
+
|
|
40
|
+
## 범용 에이전트 + Rust-First
|
|
41
|
+
|
|
42
|
+
| 계층 | 구현 |
|
|
43
|
+
|------|------|
|
|
44
|
+
| **Rust** (`cluxion-queue`) | SQLite 작업큐, atomic dispatch |
|
|
45
|
+
| **Python** (`cluxion_runtime`, adapter) | harness plan, 전처리, CLI |
|
|
46
|
+
| **Agent adapter** | `adapters/` — Hermes plugin, Claude skill, Codex snippet |
|
|
47
|
+
|
|
48
|
+
내부 hot path는 **Rust**. Python은 등록·JSON bridge·fallback입니다.
|
|
49
|
+
|
|
50
|
+
## 이 플러그인의 역할
|
|
51
|
+
|
|
52
|
+
- **정직함**: context 부족 시 모른다고 답하도록 `answer_policy` 생성
|
|
53
|
+
- **명확화**: 의도가 애매하면 큐 진입 전 질문 (`needs_clarification`)
|
|
54
|
+
- **작업큐**: 긴 입력을 segment로 분할, checksum 보존
|
|
55
|
+
- **리소스 admission**: RAM/CPU 압력에 따른 실행 허용 (결정론적)
|
|
56
|
+
|
|
57
|
+
**모델·OAuth·provider는 host agent 소유.** Cluxion은 plan·게이트·큐 메타데이터만 반환합니다.
|
|
58
|
+
|
|
59
|
+
## 연결된 AI가 하는 일
|
|
60
|
+
|
|
61
|
+
| 단계 | 동작 |
|
|
62
|
+
|------|------|
|
|
63
|
+
| 요청 수신 | `cluxion_plan` 또는 `cluxion-runtime plan` |
|
|
64
|
+
| 명확화 필요 | `clarification.questions`로 사용자에게 질문 |
|
|
65
|
+
| queued 모드 | `cluxion_queue_next` → 처리 → `cluxion_queue_record` → `cluxion_queue_brief` |
|
|
66
|
+
| 응답 | `answer_policy.required_checks` 준수 |
|
|
67
|
+
|
|
68
|
+
## 설계 요약
|
|
69
|
+
|
|
70
|
+
```
|
|
71
|
+
User prompt → cluxion_plan → [clarification?] → preprocessing mode
|
|
72
|
+
→ answer_policy + host_execution
|
|
73
|
+
→ (queued) queue_next/record/brief
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
**설계 원칙**
|
|
77
|
+
|
|
78
|
+
1. **추가 AI preflight 없음** — 결정론적 plan
|
|
79
|
+
2. 짧은 일반 질문은 `simple_answer` fast path
|
|
80
|
+
3. 불확실 시 fake success 금지 — `needs_clarification`, `unknown_after_check`
|
|
81
|
+
4. **opt-in** — 사용자 동의 없이 권한 확대 없음
|
|
82
|
+
|
|
83
|
+
## 빠른 시작
|
|
84
|
+
|
|
85
|
+
```bash
|
|
86
|
+
pip install cluxion-agentplugin-preprocessing
|
|
87
|
+
cluxion-preprocess check
|
|
88
|
+
cluxion-preprocess enable # Hermes
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
```bash
|
|
92
|
+
cluxion-runtime plan --surface hermes --prompt "작업 설명"
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
## 도구 (`cluxion` toolset)
|
|
96
|
+
|
|
97
|
+
| Tool | 설명 |
|
|
98
|
+
|------|------|
|
|
99
|
+
| `cluxion_plan` | 전처리·방향·큐·리소스 계획 |
|
|
100
|
+
| `cluxion_clarify` | 명확화 질문 목록 |
|
|
101
|
+
| `cluxion_queue_next` / `record` / `brief` | segment 큐 |
|
|
102
|
+
|
|
103
|
+
## 문서
|
|
104
|
+
|
|
105
|
+
- [Docs/README.md](Docs/README.md) — **처음 읽는 분** + 목차
|
|
106
|
+
- [Docs/architecture.md](Docs/architecture.md)
|
|
107
|
+
- [Docs/design.md](Docs/design.md)
|
|
108
|
+
- [Docs/installation.md](Docs/installation.md)
|
|
109
|
+
- [Docs/tools.md](Docs/tools.md)
|
|
110
|
+
- [Docs/agent-surfaces.md](Docs/agent-surfaces.md)
|
|
111
|
+
- [Docs/rust-architecture.md](Docs/rust-architecture.md)
|
|
112
|
+
|
|
113
|
+
## License
|
|
114
|
+
|
|
115
|
+
Apache-2.0
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
# cluxion-Agentplugin-preprocessing
|
|
2
|
+
|
|
3
|
+
범용 에이전트 **전처리 플러그인** — **Hermes, Claude Code, Codex, Grok Build**에서 동일 core로 동작합니다.
|
|
4
|
+
|
|
5
|
+
**Repository:** https://github.com/cluxion/cluxion-Agentplugin-preprocessing
|
|
6
|
+
|
|
7
|
+
## 한 줄 요약
|
|
8
|
+
|
|
9
|
+
작업 시작 전에 **방향·정직함·큐**를 정리합니다. **연결된 AI**가 `cluxion_plan` 등 도구를 호출하고, JSON 계약(`answer_policy`, `host_execution`)에 따라 응답합니다. 플러그인은 추가 LLM 호출 없이 결정론적 plan만 반환합니다.
|
|
10
|
+
|
|
11
|
+
## 범용 에이전트 + Rust-First
|
|
12
|
+
|
|
13
|
+
| 계층 | 구현 |
|
|
14
|
+
|------|------|
|
|
15
|
+
| **Rust** (`cluxion-queue`) | SQLite 작업큐, atomic dispatch |
|
|
16
|
+
| **Python** (`cluxion_runtime`, adapter) | harness plan, 전처리, CLI |
|
|
17
|
+
| **Agent adapter** | `adapters/` — Hermes plugin, Claude skill, Codex snippet |
|
|
18
|
+
|
|
19
|
+
내부 hot path는 **Rust**. Python은 등록·JSON bridge·fallback입니다.
|
|
20
|
+
|
|
21
|
+
## 이 플러그인의 역할
|
|
22
|
+
|
|
23
|
+
- **정직함**: context 부족 시 모른다고 답하도록 `answer_policy` 생성
|
|
24
|
+
- **명확화**: 의도가 애매하면 큐 진입 전 질문 (`needs_clarification`)
|
|
25
|
+
- **작업큐**: 긴 입력을 segment로 분할, checksum 보존
|
|
26
|
+
- **리소스 admission**: RAM/CPU 압력에 따른 실행 허용 (결정론적)
|
|
27
|
+
|
|
28
|
+
**모델·OAuth·provider는 host agent 소유.** Cluxion은 plan·게이트·큐 메타데이터만 반환합니다.
|
|
29
|
+
|
|
30
|
+
## 연결된 AI가 하는 일
|
|
31
|
+
|
|
32
|
+
| 단계 | 동작 |
|
|
33
|
+
|------|------|
|
|
34
|
+
| 요청 수신 | `cluxion_plan` 또는 `cluxion-runtime plan` |
|
|
35
|
+
| 명확화 필요 | `clarification.questions`로 사용자에게 질문 |
|
|
36
|
+
| queued 모드 | `cluxion_queue_next` → 처리 → `cluxion_queue_record` → `cluxion_queue_brief` |
|
|
37
|
+
| 응답 | `answer_policy.required_checks` 준수 |
|
|
38
|
+
|
|
39
|
+
## 설계 요약
|
|
40
|
+
|
|
41
|
+
```
|
|
42
|
+
User prompt → cluxion_plan → [clarification?] → preprocessing mode
|
|
43
|
+
→ answer_policy + host_execution
|
|
44
|
+
→ (queued) queue_next/record/brief
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
**설계 원칙**
|
|
48
|
+
|
|
49
|
+
1. **추가 AI preflight 없음** — 결정론적 plan
|
|
50
|
+
2. 짧은 일반 질문은 `simple_answer` fast path
|
|
51
|
+
3. 불확실 시 fake success 금지 — `needs_clarification`, `unknown_after_check`
|
|
52
|
+
4. **opt-in** — 사용자 동의 없이 권한 확대 없음
|
|
53
|
+
|
|
54
|
+
## 빠른 시작
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
pip install cluxion-agentplugin-preprocessing
|
|
58
|
+
cluxion-preprocess check
|
|
59
|
+
cluxion-preprocess enable # Hermes
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
cluxion-runtime plan --surface hermes --prompt "작업 설명"
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
## 도구 (`cluxion` toolset)
|
|
67
|
+
|
|
68
|
+
| Tool | 설명 |
|
|
69
|
+
|------|------|
|
|
70
|
+
| `cluxion_plan` | 전처리·방향·큐·리소스 계획 |
|
|
71
|
+
| `cluxion_clarify` | 명확화 질문 목록 |
|
|
72
|
+
| `cluxion_queue_next` / `record` / `brief` | segment 큐 |
|
|
73
|
+
|
|
74
|
+
## 문서
|
|
75
|
+
|
|
76
|
+
- [Docs/README.md](Docs/README.md) — **처음 읽는 분** + 목차
|
|
77
|
+
- [Docs/architecture.md](Docs/architecture.md)
|
|
78
|
+
- [Docs/design.md](Docs/design.md)
|
|
79
|
+
- [Docs/installation.md](Docs/installation.md)
|
|
80
|
+
- [Docs/tools.md](Docs/tools.md)
|
|
81
|
+
- [Docs/agent-surfaces.md](Docs/agent-surfaces.md)
|
|
82
|
+
- [Docs/rust-architecture.md](Docs/rust-architecture.md)
|
|
83
|
+
|
|
84
|
+
## License
|
|
85
|
+
|
|
86
|
+
Apache-2.0
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: cluxion-preprocess
|
|
3
|
+
description: Run Cluxion preprocessing before agent work. You (the connected AI) call cluxion tools/CLI. Use for task planning, long work queueing, or unclear user intent. Enforces honesty and clarification before queueing.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Cluxion Preprocessing — 연결된 AI 지시문
|
|
7
|
+
|
|
8
|
+
작업 전에 **당신(연결된 AI)** 이 plan·큐 도구를 호출합니다. 플러그인은 JSON 계약만 반환합니다.
|
|
9
|
+
|
|
10
|
+
## Plan 호출
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
cluxion-runtime plan --surface claude --json-stdin
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
stdin: `{"prompt": "<user request>", "cwd": "<workspace>"}`
|
|
17
|
+
|
|
18
|
+
Hermes에서는 `cluxion_plan` 도구를 동일 목적으로 사용합니다.
|
|
19
|
+
|
|
20
|
+
## 규칙
|
|
21
|
+
|
|
22
|
+
1. `clarification.required`이 true이면 사용자에게 질문하고 작업을 시작하지 말 것.
|
|
23
|
+
2. context가 부족하면 모른다고 말할 것 — 사실을 지어내지 말 것.
|
|
24
|
+
3. `queued` 모드: `cluxion_queue_next` → segment 처리 → `cluxion_queue_record` → `cluxion_queue_brief`.
|
|
25
|
+
4. 세션 맥락 보존이 필요하면 brief를 ForgetForge에 넘길 것: `forgetforge import-brief --source preprocessing --brief "<cluxion_queue_brief output>"` (또는 Hermes `forgetforge_import_brief`).
|
|
26
|
+
5. `answer_policy.required_checks`를 응답 전에 따를 것.
|
|
27
|
+
6. 플러그인이 대신 completion을 생성하지 않음 — **당신**이 계약에 맞게 응답할 것.
|
|
28
|
+
|
|
29
|
+
## 설치 확인
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
cluxion-preprocess check
|
|
33
|
+
```
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Legacy Docs (cluxion-Docs)
|
|
2
|
+
|
|
3
|
+
> **공개 문서 기준: [`../Docs/`](../Docs/)**
|
|
4
|
+
> 이 폴더는 이전 `hermes-cluxion` 패키징 시기의 **레거시 참고**입니다.
|
|
5
|
+
|
|
6
|
+
## 현재 방향 (요약)
|
|
7
|
+
|
|
8
|
+
- **연결된 AI**가 `cluxion_plan`·큐 도구를 호출하고 JSON 계약을 따릅니다.
|
|
9
|
+
- **모델·OAuth·provider**는 host agent가 소유합니다. 플러그인은 plan·게이트만 반환합니다.
|
|
10
|
+
- 플러그인 내부에서 **별도 LLM을 호출하지 않습니다.**
|
|
11
|
+
|
|
12
|
+
사용자·에이전트 연동 설명은 **`Docs/README.md`** 를 따르세요.
|
|
13
|
+
|
|
14
|
+
## 레거시 목차 (기술 참고)
|
|
15
|
+
|
|
16
|
+
| 문서 | 내용 |
|
|
17
|
+
|------|------|
|
|
18
|
+
| [architecture.md](./architecture.md) | 패키지 경계 (레거시 명칭 포함) |
|
|
19
|
+
| [harness-logic.md](./harness-logic.md) | intent·전처리·큐·resource |
|
|
20
|
+
| [honesty-preprocessing.md](./honesty-preprocessing.md) | answer_policy 계약 |
|
|
21
|
+
| [install-and-operations.md](./install-and-operations.md) | 설치 요약 → `Docs/installation.md` |
|
|
22
|
+
| [security.md](./security.md) | 공개 배포 보안 원칙 |
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# Architecture (legacy reference)
|
|
2
|
+
|
|
3
|
+
> 최신 문서: [`../Docs/architecture.md`](../Docs/architecture.md)
|
|
4
|
+
|
|
5
|
+
## 패키지 구성
|
|
6
|
+
|
|
7
|
+
| 패키지 | 역할 |
|
|
8
|
+
|--------|------|
|
|
9
|
+
| `cluxion_agentplugin_preprocessing` | Hermes plugin, CLI, tool schema |
|
|
10
|
+
| `cluxion_runtime` | `cluxion-runtime plan`, harness 엔진 |
|
|
11
|
+
| `rust/cluxion_queue` | SQLite 작업큐 + dispatch (선택) |
|
|
12
|
+
|
|
13
|
+
## Host vs Cluxion
|
|
14
|
+
|
|
15
|
+
**Host agent (연결된 AI)**
|
|
16
|
+
|
|
17
|
+
- OAuth, provider, **모델 선택**
|
|
18
|
+
- tool 권한, completion, 최종 응답
|
|
19
|
+
- queued segment 처리·synthesis
|
|
20
|
+
|
|
21
|
+
**Cluxion preprocessing**
|
|
22
|
+
|
|
23
|
+
- `WorkItem` 정규화, intent 분류
|
|
24
|
+
- `answer_policy` · `host_execution` 계약
|
|
25
|
+
- 명확화·segment 큐·resource admission
|
|
26
|
+
- **추가 LLM 호출 없음**
|
|
27
|
+
|
|
28
|
+
## 등록 도구 (Hermes `cluxion` toolset)
|
|
29
|
+
|
|
30
|
+
| Tool | 용도 |
|
|
31
|
+
|------|------|
|
|
32
|
+
| `cluxion_plan` | 전처리·방향·큐·리소스 plan |
|
|
33
|
+
| `cluxion_clarify` | 명확화 질문 |
|
|
34
|
+
| `cluxion_queue_next` / `record` / `brief` | segment 큐 |
|
|
35
|
+
|
|
36
|
+
모델·provider 변경은 host agent 책임입니다. 전처리 플러그인은 실행 **전** 계약만 제공합니다.
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# Harness Logic (legacy reference)
|
|
2
|
+
|
|
3
|
+
> 최신 문서: [`../Docs/design.md`](../Docs/design.md), [`../Docs/tools.md`](../Docs/tools.md)
|
|
4
|
+
|
|
5
|
+
## 1. Adapter Payload
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
cluxion-runtime plan --json-stdin --surface <surface>
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
필수: `prompt`
|
|
12
|
+
선택: `work_id`, `priority`, `cwd`, `metadata`, `expected_ram_mb`, `context_tokens`
|
|
13
|
+
|
|
14
|
+
## 2. Intent 분류
|
|
15
|
+
|
|
16
|
+
`classify_intent()` — **모델 호출 없음**, 결정론적.
|
|
17
|
+
|
|
18
|
+
- `category`, `operation`, `direction`, `confidence`, `signals`
|
|
19
|
+
- 방향은 host harness (`hermes_harness`, `claude_harness`, …) 또는 `host_managed`
|
|
20
|
+
|
|
21
|
+
## 3. 전처리 모드
|
|
22
|
+
|
|
23
|
+
| Mode | 용도 |
|
|
24
|
+
|------|------|
|
|
25
|
+
| `simple_answer` | 짧은 일반 질문 |
|
|
26
|
+
| `verification_answer` | 사실 확인 필요 짧은 질문 |
|
|
27
|
+
| `standard` | 코드·테스트·보안·문서 등 실질 작업 |
|
|
28
|
+
| `queued` | 긴 입력 segment 분할 |
|
|
29
|
+
| `needs_clarification` | 사용자 방향 확정 전 |
|
|
30
|
+
|
|
31
|
+
모든 모드에 `answer_policy` 포함.
|
|
32
|
+
|
|
33
|
+
## 4. 작업큐
|
|
34
|
+
|
|
35
|
+
`AgentWorkQueue` — priority + FIFO. Rust `cluxion-queue` 또는 Python fallback.
|
|
36
|
+
|
|
37
|
+
## 5. Host Execution
|
|
38
|
+
|
|
39
|
+
`host_execution` 계약을 **연결된 AI**가 읽고 실행:
|
|
40
|
+
|
|
41
|
+
- `current_turn_direct_answer`
|
|
42
|
+
- `current_turn_verify_then_answer`
|
|
43
|
+
- `single_host_task`
|
|
44
|
+
- `durable_segment_queue` + `cluxion_queue_*`
|
|
45
|
+
- `ask_user_before_queue`
|
|
46
|
+
|
|
47
|
+
## 6. Resource Admission
|
|
48
|
+
|
|
49
|
+
`collect_resource_snapshot()` + `capacity_decision()` — fail-closed RAM/CPU 게이트.
|
|
50
|
+
|
|
51
|
+
Queued segment content는 out-of-band store에 저장됩니다.
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# Honesty Preprocessing (legacy reference)
|
|
2
|
+
|
|
3
|
+
> 최신 문서: [`../Docs/design.md`](../Docs/design.md)
|
|
4
|
+
|
|
5
|
+
플러그인은 모델을 바꾸지 않습니다. **연결된 AI**가 따라야 하는 `answer_policy` 계약을 만듭니다.
|
|
6
|
+
|
|
7
|
+
## Goals
|
|
8
|
+
|
|
9
|
+
- 모르면 모른다고 말하게 함
|
|
10
|
+
- 확인하지 않은 실행·파일·환경 상태를 사실처럼 말하지 않게 함
|
|
11
|
+
- 확인한 사실 / 추론 / unknown 분리
|
|
12
|
+
- 짧은 질문에 heavy preprocessing 비용 최소화
|
|
13
|
+
|
|
14
|
+
## Modes
|
|
15
|
+
|
|
16
|
+
| Mode | 동작 |
|
|
17
|
+
|------|------|
|
|
18
|
+
| `simple_answer` | segment·resource snapshot 없음 |
|
|
19
|
+
| `verification_answer` | `verification_required` + `required_checks` |
|
|
20
|
+
| `standard` | segment·resource admission·evidence 기반 응답 |
|
|
21
|
+
| `queued` | checksum·순서 보존 합성 |
|
|
22
|
+
|
|
23
|
+
## Required Checks (대표)
|
|
24
|
+
|
|
25
|
+
- `verify_current_or_recent_fact`
|
|
26
|
+
- `cite_external_source_or_document`
|
|
27
|
+
- `inspect_runtime_state_before_claiming`
|
|
28
|
+
- `run_requested_check_or_state_not_run`
|
|
29
|
+
- `tie_claims_to_file_diff_or_command_output`
|
|
30
|
+
- `tie_security_claims_to_evidence`
|
|
31
|
+
- `preserve_segment_checksums_in_synthesis`
|
|
32
|
+
|
|
33
|
+
## Hard Boundaries
|
|
34
|
+
|
|
35
|
+
- 기억·추정만으로 현재 상태 단정 금지
|
|
36
|
+
- 실행하지 않은 테스트 통과 주장 금지
|
|
37
|
+
- 존재하지 않는 파일·URL·버전 날조 금지
|
|
38
|
+
- ambiguous prompt는 확정 표현 자제
|
|
39
|
+
|
|
40
|
+
검증·실행·응답은 **연결된 AI** 책임입니다.
|