cluxion-agentplugin-supercoder 0.1.0__tar.gz → 0.2.1__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.
Files changed (73) hide show
  1. cluxion_agentplugin_supercoder-0.2.1/.github/workflows/ci.yml +34 -0
  2. cluxion_agentplugin_supercoder-0.2.1/.github/workflows/publish.yml +109 -0
  3. {cluxion_agentplugin_supercoder-0.1.0 → cluxion_agentplugin_supercoder-0.2.1}/Docs/README.md +3 -3
  4. {cluxion_agentplugin_supercoder-0.1.0 → cluxion_agentplugin_supercoder-0.2.1}/Docs/agent-surfaces.md +1 -1
  5. {cluxion_agentplugin_supercoder-0.1.0 → cluxion_agentplugin_supercoder-0.2.1}/Docs/architecture.md +1 -1
  6. {cluxion_agentplugin_supercoder-0.1.0 → cluxion_agentplugin_supercoder-0.2.1}/Docs/capabilities.md +4 -2
  7. {cluxion_agentplugin_supercoder-0.1.0 → cluxion_agentplugin_supercoder-0.2.1}/Docs/design.md +11 -0
  8. {cluxion_agentplugin_supercoder-0.1.0 → cluxion_agentplugin_supercoder-0.2.1}/Docs/rust-architecture.md +1 -1
  9. cluxion_agentplugin_supercoder-0.2.1/Docs/tools.md +74 -0
  10. cluxion_agentplugin_supercoder-0.2.1/LICENSE +201 -0
  11. cluxion_agentplugin_supercoder-0.2.1/PKG-INFO +108 -0
  12. cluxion_agentplugin_supercoder-0.2.1/README.md +85 -0
  13. {cluxion_agentplugin_supercoder-0.1.0 → cluxion_agentplugin_supercoder-0.2.1}/pyproject.toml +3 -4
  14. cluxion_agentplugin_supercoder-0.2.1/rust/supercoder_index/Cargo.lock +576 -0
  15. cluxion_agentplugin_supercoder-0.2.1/rust/supercoder_index/Cargo.toml +33 -0
  16. cluxion_agentplugin_supercoder-0.2.1/rust/supercoder_index/pyproject.toml +15 -0
  17. cluxion_agentplugin_supercoder-0.2.1/rust/supercoder_index/src/lib.rs +193 -0
  18. cluxion_agentplugin_supercoder-0.2.1/rust/supercoder_index/src/main.rs +37 -0
  19. cluxion_agentplugin_supercoder-0.2.1/rust/supercoder_index/src/outline.rs +257 -0
  20. cluxion_agentplugin_supercoder-0.2.1/rust/supercoder_index/src/syntax.rs +207 -0
  21. cluxion_agentplugin_supercoder-0.2.1/scripts/repack_native_wheel.py +111 -0
  22. cluxion_agentplugin_supercoder-0.2.1/src/cluxion_agentplugin_supercoder/__init__.py +5 -0
  23. {cluxion_agentplugin_supercoder-0.1.0 → cluxion_agentplugin_supercoder-0.2.1}/src/cluxion_agentplugin_supercoder/cli.py +8 -3
  24. {cluxion_agentplugin_supercoder-0.1.0 → cluxion_agentplugin_supercoder-0.2.1}/src/cluxion_agentplugin_supercoder/core/cursor.py +9 -20
  25. {cluxion_agentplugin_supercoder-0.1.0 → cluxion_agentplugin_supercoder-0.2.1}/src/cluxion_agentplugin_supercoder/core/hash_patch.py +14 -4
  26. {cluxion_agentplugin_supercoder-0.1.0 → cluxion_agentplugin_supercoder-0.2.1}/src/cluxion_agentplugin_supercoder/core/line_budget.py +3 -3
  27. cluxion_agentplugin_supercoder-0.2.1/src/cluxion_agentplugin_supercoder/core/lint_gate.py +111 -0
  28. {cluxion_agentplugin_supercoder-0.1.0 → cluxion_agentplugin_supercoder-0.2.1}/src/cluxion_agentplugin_supercoder/core/queue.py +3 -3
  29. cluxion_agentplugin_supercoder-0.2.1/src/cluxion_agentplugin_supercoder/core/repo_map.py +220 -0
  30. cluxion_agentplugin_supercoder-0.2.1/src/cluxion_agentplugin_supercoder/core/retry_loop.py +104 -0
  31. {cluxion_agentplugin_supercoder-0.1.0 → cluxion_agentplugin_supercoder-0.2.1}/src/cluxion_agentplugin_supercoder/core/safety.py +6 -4
  32. cluxion_agentplugin_supercoder-0.2.1/src/cluxion_agentplugin_supercoder/core/syntax_gate.py +112 -0
  33. cluxion_agentplugin_supercoder-0.2.1/src/cluxion_agentplugin_supercoder/core/test_gate.py +207 -0
  34. {cluxion_agentplugin_supercoder-0.1.0 → cluxion_agentplugin_supercoder-0.2.1}/src/cluxion_agentplugin_supercoder/plugin.py +31 -3
  35. cluxion_agentplugin_supercoder-0.2.1/src/cluxion_agentplugin_supercoder/runner.py +193 -0
  36. cluxion_agentplugin_supercoder-0.2.1/src/cluxion_agentplugin_supercoder/rust_bridge.py +164 -0
  37. cluxion_agentplugin_supercoder-0.2.1/src/cluxion_agentplugin_supercoder/schemas.py +154 -0
  38. {cluxion_agentplugin_supercoder-0.1.0 → cluxion_agentplugin_supercoder-0.2.1}/tests/test_cursor.py +1 -1
  39. cluxion_agentplugin_supercoder-0.2.1/tests/test_hash_patch.py +82 -0
  40. cluxion_agentplugin_supercoder-0.2.1/tests/test_line_budget.py +34 -0
  41. cluxion_agentplugin_supercoder-0.2.1/tests/test_lint_gate.py +97 -0
  42. {cluxion_agentplugin_supercoder-0.1.0 → cluxion_agentplugin_supercoder-0.2.1}/tests/test_plugin.py +7 -2
  43. cluxion_agentplugin_supercoder-0.2.1/tests/test_queue.py +48 -0
  44. cluxion_agentplugin_supercoder-0.2.1/tests/test_repo_map.py +211 -0
  45. cluxion_agentplugin_supercoder-0.2.1/tests/test_retry_loop.py +98 -0
  46. cluxion_agentplugin_supercoder-0.2.1/tests/test_rust_bridge.py +93 -0
  47. cluxion_agentplugin_supercoder-0.2.1/tests/test_safety.py +52 -0
  48. cluxion_agentplugin_supercoder-0.2.1/tests/test_syntax_gate.py +150 -0
  49. cluxion_agentplugin_supercoder-0.2.1/tests/test_test_gate.py +145 -0
  50. cluxion_agentplugin_supercoder-0.2.1/uv.lock +724 -0
  51. cluxion_agentplugin_supercoder-0.1.0/Docs/tools.md +0 -54
  52. cluxion_agentplugin_supercoder-0.1.0/PKG-INFO +0 -100
  53. cluxion_agentplugin_supercoder-0.1.0/README.md +0 -81
  54. cluxion_agentplugin_supercoder-0.1.0/rust/supercoder_index/Cargo.lock +0 -235
  55. cluxion_agentplugin_supercoder-0.1.0/rust/supercoder_index/Cargo.toml +0 -14
  56. cluxion_agentplugin_supercoder-0.1.0/rust/supercoder_index/src/main.rs +0 -91
  57. cluxion_agentplugin_supercoder-0.1.0/src/cluxion_agentplugin_supercoder/__init__.py +0 -5
  58. cluxion_agentplugin_supercoder-0.1.0/src/cluxion_agentplugin_supercoder/core/test_gate.py +0 -71
  59. cluxion_agentplugin_supercoder-0.1.0/src/cluxion_agentplugin_supercoder/runner.py +0 -111
  60. cluxion_agentplugin_supercoder-0.1.0/src/cluxion_agentplugin_supercoder/rust_bridge.py +0 -45
  61. cluxion_agentplugin_supercoder-0.1.0/src/cluxion_agentplugin_supercoder/schemas.py +0 -78
  62. cluxion_agentplugin_supercoder-0.1.0/tests/test_hash_patch.py +0 -22
  63. cluxion_agentplugin_supercoder-0.1.0/tests/test_test_gate.py +0 -23
  64. cluxion_agentplugin_supercoder-0.1.0/uv.lock +0 -221
  65. {cluxion_agentplugin_supercoder-0.1.0 → cluxion_agentplugin_supercoder-0.2.1}/.gitignore +0 -0
  66. {cluxion_agentplugin_supercoder-0.1.0 → cluxion_agentplugin_supercoder-0.2.1}/ARCHITECTURE.md +0 -0
  67. {cluxion_agentplugin_supercoder-0.1.0 → cluxion_agentplugin_supercoder-0.2.1}/Docs/installation.md +0 -0
  68. {cluxion_agentplugin_supercoder-0.1.0 → cluxion_agentplugin_supercoder-0.2.1}/__init__.py +0 -0
  69. {cluxion_agentplugin_supercoder-0.1.0 → cluxion_agentplugin_supercoder-0.2.1}/adapters/claude/.claude-plugin/plugin.json +0 -0
  70. {cluxion_agentplugin_supercoder-0.1.0 → cluxion_agentplugin_supercoder-0.2.1}/adapters/claude/skills/supercoder/SKILL.md +0 -0
  71. {cluxion_agentplugin_supercoder-0.1.0 → cluxion_agentplugin_supercoder-0.2.1}/adapters/codex/config-snippet.toml +0 -0
  72. {cluxion_agentplugin_supercoder-0.1.0 → cluxion_agentplugin_supercoder-0.2.1}/adapters/hermes/README.md +0 -0
  73. {cluxion_agentplugin_supercoder-0.1.0 → cluxion_agentplugin_supercoder-0.2.1}/plugin.yaml +0 -0
@@ -0,0 +1,34 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches: ["main"]
6
+ pull_request:
7
+
8
+ env:
9
+ FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true"
10
+
11
+ jobs:
12
+ test:
13
+ runs-on: ubuntu-latest
14
+ strategy:
15
+ fail-fast: false
16
+ matrix:
17
+ python-version: ["3.11", "3.12"]
18
+ steps:
19
+ - uses: actions/checkout@v6.0.3
20
+ - uses: astral-sh/setup-uv@v8.2.0
21
+ - name: Set up Python
22
+ run: uv python install ${{ matrix.python-version }}
23
+ - name: Install
24
+ run: uv sync --extra dev --python ${{ matrix.python-version }}
25
+ - name: Lint
26
+ run: uv run ruff check .
27
+ - name: Test
28
+ run: uv run pytest
29
+ - name: Cargo test
30
+ run: cargo test --manifest-path rust/supercoder_index/Cargo.toml
31
+ - name: Build
32
+ run: uv run python -m build
33
+ - name: Check package
34
+ run: uv run twine check dist/*
@@ -0,0 +1,109 @@
1
+ name: Publish
2
+
3
+ on:
4
+ release:
5
+ types: ["published"]
6
+
7
+ env:
8
+ FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true"
9
+
10
+ jobs:
11
+ checks:
12
+ runs-on: ubuntu-latest
13
+ steps:
14
+ - uses: actions/checkout@v6.0.3
15
+ - uses: astral-sh/setup-uv@v8.2.0
16
+ - name: Set up Python
17
+ run: uv python install 3.12
18
+ - name: Install
19
+ run: uv sync --extra dev --python 3.12
20
+ - name: Lint
21
+ run: uv run ruff check .
22
+ - name: Test
23
+ run: uv run pytest
24
+ - name: Cargo test
25
+ run: cargo test --manifest-path rust/supercoder_index/Cargo.toml
26
+
27
+ # sdist + pure py3-none-any wheel: the fallback pip selects on platforms
28
+ # without a matching native wheel.
29
+ build-pure:
30
+ needs: checks
31
+ runs-on: ubuntu-latest
32
+ steps:
33
+ - uses: actions/checkout@v6.0.3
34
+ - uses: astral-sh/setup-uv@v8.2.0
35
+ - name: Set up Python
36
+ run: uv python install 3.12
37
+ - name: Install build tooling
38
+ run: uv sync --extra dev --python 3.12
39
+ - name: Build sdist and pure wheel
40
+ run: uv run python -m build
41
+ - name: Check package
42
+ run: uv run twine check dist/*
43
+ - uses: actions/upload-artifact@v4
44
+ with:
45
+ name: dist-pure
46
+ path: dist/
47
+
48
+ # Platform wheels of the SAME project: the abi3 native module is merged
49
+ # into the pure wheel and the wheel is retagged. One PyPI project total.
50
+ build-native:
51
+ needs: build-pure
52
+ strategy:
53
+ fail-fast: false
54
+ matrix:
55
+ include:
56
+ - os: ubuntu-latest
57
+ target: x86_64
58
+ - os: ubuntu-latest
59
+ target: aarch64
60
+ - os: macos-14
61
+ target: universal2-apple-darwin
62
+ - os: windows-latest
63
+ target: x64
64
+ runs-on: ${{ matrix.os }}
65
+ steps:
66
+ - uses: actions/checkout@v6.0.3
67
+ - uses: PyO3/maturin-action@v1
68
+ with:
69
+ working-directory: rust/supercoder_index
70
+ target: ${{ matrix.target }}
71
+ args: --release --strip --out dist
72
+ manylinux: auto
73
+ - uses: actions/download-artifact@v4
74
+ with:
75
+ name: dist-pure
76
+ path: dist-pure/
77
+ - uses: astral-sh/setup-uv@v8.2.0
78
+ - name: Merge native module into project wheel
79
+ shell: bash
80
+ run: |
81
+ uv run --no-project --python 3.12 --with wheel \
82
+ python scripts/repack_native_wheel.py \
83
+ --pure-wheel dist-pure/*-py3-none-any.whl \
84
+ --native-wheel rust/supercoder_index/dist/*.whl \
85
+ --out dist-merged/
86
+ - uses: actions/upload-artifact@v4
87
+ with:
88
+ name: dist-merged-${{ matrix.os }}-${{ matrix.target }}
89
+ path: dist-merged/
90
+
91
+ publish:
92
+ name: Publish cluxion-agentplugin-supercoder
93
+ needs: [build-pure, build-native]
94
+ runs-on: ubuntu-latest
95
+ environment: pypi
96
+ permissions:
97
+ id-token: write
98
+ contents: read
99
+ steps:
100
+ - uses: actions/download-artifact@v4
101
+ with:
102
+ name: dist-pure
103
+ path: dist/
104
+ - uses: actions/download-artifact@v4
105
+ with:
106
+ pattern: dist-merged-*
107
+ merge-multiple: true
108
+ path: dist/
109
+ - uses: pypa/gh-action-pypi-publish@release/v1
@@ -15,9 +15,9 @@
15
15
 
16
16
  ### 연결된 AI 사용 흐름
17
17
 
18
- 1. 코딩 요청 → `supercoder_plan` (비코딩이면 `bypass`)
19
- 2. `supercoder_cursor_map` / `supercoder_read_window` — bounded context
20
- 3. `supercoder_patch` — expected hash 필수
18
+ 1. 코딩 요청 → `supercoder_plan` (비코딩이면 `bypass`; coding plan에 repo map 포함, `repo_map:false`로 opt-out)
19
+ 2. `supercoder_repo_map` / `supercoder_cursor_map` / `supercoder_read_window` — bounded context
20
+ 3. `supercoder_patch` — expected hash 필수; `supercoder_syntax_gate` / `supercoder_lint_gate`로 검증
21
21
  4. `supercoder_test_gate` — host terminal에서 테스트 실행
22
22
  5. `supercoder_brief` — evidence와 함께 완료 보고
23
23
 
@@ -9,7 +9,7 @@ Supercoder는 Hermes plugin + `supercoder` toolset으로 연결됩니다.
9
9
  hermes plugins enable cluxion-agentplugin-supercoder
10
10
  ```
11
11
 
12
- Tools: `supercoder_plan`, `supercoder_read_window`, `supercoder_patch`, `supercoder_cursor_map`, `supercoder_test_gate`, `supercoder_brief`
12
+ Tools (9): `supercoder_plan`, `supercoder_repo_map`, `supercoder_read_window`, `supercoder_patch`, `supercoder_cursor_map`, `supercoder_syntax_gate`, `supercoder_lint_gate`, `supercoder_test_gate`, `supercoder_brief`
13
13
 
14
14
  ## Claude / Codex / Grok
15
15
 
@@ -19,7 +19,7 @@ flowchart TD
19
19
  ```
20
20
  src/cluxion_agentplugin_supercoder/
21
21
  plugin.py, runner.py
22
- core/ — cursor, hash_patch, line_budget, safety, queue
22
+ core/ — cursor, hash_patch, repo_map, syntax_gate, lint_gate, line_budget, safety, queue
23
23
  rust_bridge.py
24
24
  rust/supercoder_index/
25
25
  ```
@@ -5,14 +5,16 @@ Supercoder가 **현재 제공하는** 기능입니다.
5
5
  ## Hermes 연동
6
6
 
7
7
  - Plugin entry + `supercoder` toolset
8
- - Tools: `supercoder_plan`, `supercoder_read_window`, `supercoder_patch`, `supercoder_cursor_map`, `supercoder_test_gate`, `supercoder_brief`
8
+ - Tools (9): `supercoder_plan`, `supercoder_repo_map`, `supercoder_read_window`, `supercoder_patch`, `supercoder_cursor_map`, `supercoder_syntax_gate`, `supercoder_lint_gate`, `supercoder_test_gate`, `supercoder_brief`
9
9
 
10
10
  ## Core (Python)
11
11
 
12
12
  - `hash_patch` — exact/fuzzy match, stale detection
13
13
  - `cursor` — read_window, cursor_map
14
+ - `repo_map` — budgeted files + top-level symbols (`files_omitted` honesty)
15
+ - `syntax_gate`, `lint_gate` — parse-check and advisory ruff
14
16
  - `line_budget`, `safety` gates
15
- - `TaskQueue` / `plan_coding_task` — WorkUnit 분해
17
+ - `TaskQueue` / `plan_coding_task` — WorkUnit 분해 (plan embeds 2000-char repo map by default)
16
18
 
17
19
  ## Rust sidecar
18
20
 
@@ -58,6 +58,17 @@ hash/fuzzy match 로직:
58
58
  - 테스트: `tests_run` 또는 `tests_not_run_reason`
59
59
  - 불확실: `unknown_after_check` 허용, fake certainty 금지
60
60
 
61
+ ## Repo map
62
+
63
+ `supercoder_repo_map`은 budgeted text map (files + top-level symbols with line numbers)을 반환합니다.
64
+ budget을 넘는 파일은 `files_omitted`에 집계됩니다. `supercoder_plan`은 coding plan에 기본 2000-char repo map을 embed하며 `repo_map:false`로 opt-out 가능합니다.
65
+
66
+ ## Syntax and lint gates
67
+
68
+ - `supercoder_syntax_gate` — tree-sitter parse-check (python/rust/js/ts/tsx/json; toml stdlib); unsupported languages fail-open
69
+ - `supercoder_lint_gate` — advisory ruff (suggest-only, never blocks)
70
+ - `supercoder_patch` — 기본 `syntax_gate=true` (parse 실패 시 revert), `lint_gate=true` (advisory findings)
71
+
61
72
  ## Lazy activation
62
73
 
63
74
  `is_coding_task()`가 false이면 `supercoder_plan`은 `mode=bypass`.
@@ -28,7 +28,7 @@ export CLUXION_SUPERCODER_INDEX_BIN=/path/to/supercoder-index
28
28
 
29
29
  ## Python 역할
30
30
 
31
- - `hash_patch`, `cursor`, `line_budget`, `safety` — 에이전트 tool handler
31
+ - `hash_patch`, `cursor`, `repo_map`, `syntax_gate`, `lint_gate`, `line_budget`, `safety` — 에이전트 tool handler
32
32
  - `TaskQueue` / WorkUnit 분해
33
33
  - Hermes `register()` — `supercoder` toolset 등록
34
34
  - 연결된 AI가 skill·도구 지시에 따라 `supercoder_*` 호출
@@ -0,0 +1,74 @@
1
+ # Tools
2
+
3
+ 연결된 AI가 호출하는 `supercoder` toolset입니다.
4
+
5
+ ## `supercoder_plan`
6
+
7
+ 코딩 task를 WorkUnit 큐로 분해합니다. Coding plan에는 compact repo map (files + top-level symbols)이 포함됩니다.
8
+
9
+ - 비코딩 prompt → `{ "mode": "bypass" }`
10
+ - 코딩 prompt → `map` → `edit` → `verify` → `brief`
11
+
12
+ 입력: `prompt`, `task_id`, `cwd`, `repo_map` (기본 `true`), `repo_map_budget_chars` (기본 2000)
13
+
14
+ ## `supercoder_repo_map`
15
+
16
+ budgeted repo map: line count가 있는 파일 목록 + top-level symbols (class/function/method/rust item/ts interface)와 line number.
17
+ task 시작 시 orientation용. budget 초과 파일은 `files_omitted`에 집계 (silent drop 없음).
18
+
19
+ 입력: `cwd`, `max_files` (기본 128), `max_symbols_per_file` (기본 24), `budget_chars` (기본 8000)
20
+
21
+ ## `supercoder_read_window`
22
+
23
+ bounded file read.
24
+
25
+ 입력: `path`, `start_line`, `max_lines` (기본 120), `cwd`
26
+ 출력: `content`, `content_hash`, `file_hash`
27
+
28
+ ## `supercoder_patch`
29
+
30
+ hash 검증 patch. `expected_file_hash` 없으면 stale로 거부.
31
+ 기본 `syntax_gate=true`: parse 실패 시 patch 자동 revert. `lint_gate=true`: 성공 후 advisory ruff findings 첨부 (never blocks).
32
+
33
+ ## `supercoder_syntax_gate`
34
+
35
+ 파일 또는 snippet parse-check (tree-sitter: python/rust/js/ts/tsx/json; stdlib: toml). 미지원 언어는 fail-open.
36
+
37
+ 입력: `path`, `content`, `language`, `cwd`
38
+
39
+ ## `supercoder_lint_gate`
40
+
41
+ advisory ruff lint for one file (suggest-only; 프로젝트 ruff config 존중).
42
+
43
+ 입력: `path`, `cwd`
44
+
45
+ ## `supercoder_cursor_map`
46
+
47
+ repo 내 소스 파일 index (확장자·깊이 제한).
48
+
49
+ ## `supercoder_test_gate`
50
+
51
+ 변경 파일 기반으로 테스트 명령을 **제안**합니다.
52
+
53
+ - Python: `src/pkg/store.py` → matching test file anywhere in repo (`src/`, flat, tests-beside-code)
54
+ - `.rs`/`.go`/`.js`/`.ts`: cargo/go/npm runner when project marker exists
55
+ - `command`로 명시 override 가능
56
+ - **연결된 AI**가 host terminal에서 실행하고, stdout/stderr를 `supercoder_brief.tests_run`에 기록
57
+
58
+ ## `supercoder_brief`
59
+
60
+ `files_changed`, `tests_run`, `verification_status`, `remaining_risks` 요약.
61
+
62
+ ## WorkUnit 필드
63
+
64
+ ```text
65
+ id, goal, priority
66
+ allowed_paths, line_budget
67
+ dependencies, expected_evidence
68
+ status: pending | running | complete | failed | blocked
69
+ ```
70
+
71
+ ## Queue (내부)
72
+
73
+ `TaskQueue.next_unit()` / `record()` — `supercoder_plan` 흐름에서 사용.
74
+ 연결된 AI는 WorkUnit 순서에 맞게 위 도구를 호출합니다.
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://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
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -0,0 +1,108 @@
1
+ Metadata-Version: 2.4
2
+ Name: cluxion-agentplugin-supercoder
3
+ Version: 0.2.1
4
+ Summary: Universal agent coding harness plugin: cursor logic, safe patch, line budget, Rust index, test gates.
5
+ Project-URL: Homepage, https://github.com/cluxion/cluxion-Agentplugin-supercoder
6
+ Project-URL: Repository, https://github.com/cluxion/cluxion-Agentplugin-supercoder
7
+ Project-URL: Issues, https://github.com/cluxion/cluxion-Agentplugin-supercoder/issues
8
+ Author-email: cluxion <algocean1204@users.noreply.github.com>
9
+ License-Expression: Apache-2.0
10
+ License-File: LICENSE
11
+ Keywords: claude-code,cluxion,codex,coding,hermes-agent,plugin
12
+ Requires-Python: >=3.11
13
+ Requires-Dist: psutil>=5.9
14
+ Requires-Dist: pyyaml>=6.0
15
+ Requires-Dist: ruff>=0.8
16
+ Provides-Extra: dev
17
+ Requires-Dist: build>=1.2; extra == 'dev'
18
+ Requires-Dist: pytest>=8.0; extra == 'dev'
19
+ Requires-Dist: ruff>=0.8; extra == 'dev'
20
+ Requires-Dist: twine>=6.0; extra == 'dev'
21
+ Requires-Dist: wheel>=0.45; extra == 'dev'
22
+ Description-Content-Type: text/markdown
23
+
24
+ ========= Written in Korean first, then English ==========
25
+
26
+ ======== 한국어 ========
27
+
28
+ # cluxion-agentplugin-supercoder
29
+
30
+ AI 에이전트(Hermes Agent, Claude Code, Codex)를 위한 코딩 플러그인입니다. 모델이 — 작은 로컬
31
+ 모델이라도 — 코드를 안전하고 정확하게 편집하도록 돕습니다. 모든 패치는 편집 대상 파일과 대조해
32
+ 검증되고, 깨진 구문은 피드백과 함께 자동으로 되돌려지며, 에이전트는 시작 전에 레포의 간결한 지도를
33
+ 받습니다.
34
+
35
+ ## 설치
36
+
37
+ ```bash
38
+ pip install cluxion-agentplugin-supercoder
39
+ ```
40
+
41
+ ### Hermes Agent에서 사용
42
+
43
+ `~/.hermes/config.yaml` 에 추가한 뒤 Hermes를 재시작하세요.
44
+
45
+ ```yaml
46
+ plugins:
47
+ enabled:
48
+ - cluxion-agentplugin-supercoder
49
+ ```
50
+
51
+ Hermes를 통해 제공되는 로컬 모델(vLLM/MLX)에서도 동일하게 동작합니다.
52
+
53
+ ## 기능
54
+
55
+ 코딩 중에 에이전트가 `supercoder_*` 도구 세트를 자동으로 사용합니다.
56
+
57
+ - **안전한 편집** — 패치를 파일 내용과 대조해 검증하므로, 모델이 잘못된 위치나 오래된 버전을 편집할
58
+ 수 없습니다.
59
+ - **구문 / 린트 / 테스트 게이트** — 깨진 편집은 자동으로 되돌려지고 무엇이 잘못됐는지 모델에 알려주므로,
60
+ 깨진 코드를 남기지 않고 다시 시도합니다.
61
+ - **레포 지도(repo map)** — 코딩 계획에 파일과 최상위 함수·클래스의 예산 내 개요가 함께 제공되어,
62
+ 모델이 경로를 추측하지 않습니다.
63
+
64
+ ## 라이선스
65
+
66
+ Apache-2.0
67
+
68
+ ============ English ==========
69
+
70
+ # cluxion-agentplugin-supercoder
71
+
72
+ A coding plugin for AI agents (Hermes Agent, Claude Code, Codex). It helps the model — even
73
+ a smaller local one — edit code safely and accurately: every patch is checked against the
74
+ file it's editing, broken syntax is auto-reverted with feedback, and the agent gets a compact
75
+ map of your repo before it starts.
76
+
77
+ ## Install
78
+
79
+ ```bash
80
+ pip install cluxion-agentplugin-supercoder
81
+ ```
82
+
83
+ ### Use with Hermes Agent
84
+
85
+ Add it to `~/.hermes/config.yaml`, then restart Hermes:
86
+
87
+ ```yaml
88
+ plugins:
89
+ enabled:
90
+ - cluxion-agentplugin-supercoder
91
+ ```
92
+
93
+ It works the same with local models (vLLM/MLX) served through Hermes.
94
+
95
+ ## What you get
96
+
97
+ While coding, your agent uses a `supercoder_*` toolset automatically:
98
+
99
+ - **Safe edits** — patches are verified against the file's content, so the model can't edit
100
+ the wrong place or a stale version.
101
+ - **Syntax / lint / test gates** — a broken edit is automatically reverted and the model is
102
+ told what went wrong, so it retries instead of leaving broken code behind.
103
+ - **Repo map** — coding plans come with a budgeted overview of your files and their top-level
104
+ functions and classes, so the model stops guessing paths.
105
+
106
+ ## License
107
+
108
+ Apache-2.0