codersforge 0.0.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 (71) hide show
  1. codersforge-0.0.1/.gitignore +15 -0
  2. codersforge-0.0.1/CHANGELOG.md +104 -0
  3. codersforge-0.0.1/LICENSE +202 -0
  4. codersforge-0.0.1/NOTICE +7 -0
  5. codersforge-0.0.1/PKG-INFO +81 -0
  6. codersforge-0.0.1/README.md +44 -0
  7. codersforge-0.0.1/pyproject.toml +91 -0
  8. codersforge-0.0.1/src/codersforge/__init__.py +4 -0
  9. codersforge-0.0.1/src/codersforge/__main__.py +8 -0
  10. codersforge-0.0.1/src/codersforge/_core/CORE_VERSION +33 -0
  11. codersforge-0.0.1/src/codersforge/_core/__init__.py +8 -0
  12. codersforge-0.0.1/src/codersforge/_core/archive.py +319 -0
  13. codersforge-0.0.1/src/codersforge/_core/backup.py +417 -0
  14. codersforge-0.0.1/src/codersforge/_core/config.py +206 -0
  15. codersforge-0.0.1/src/codersforge/_core/domain.py +382 -0
  16. codersforge-0.0.1/src/codersforge/_core/errors.py +36 -0
  17. codersforge-0.0.1/src/codersforge/_core/events.py +381 -0
  18. codersforge-0.0.1/src/codersforge/_core/findings.py +265 -0
  19. codersforge-0.0.1/src/codersforge/_core/gates.py +395 -0
  20. codersforge-0.0.1/src/codersforge/_core/identity.py +259 -0
  21. codersforge-0.0.1/src/codersforge/_core/index.py +262 -0
  22. codersforge-0.0.1/src/codersforge/_core/items.py +513 -0
  23. codersforge-0.0.1/src/codersforge/_core/ledger.py +194 -0
  24. codersforge-0.0.1/src/codersforge/_core/lessons.py +142 -0
  25. codersforge-0.0.1/src/codersforge/_core/messages.py +293 -0
  26. codersforge-0.0.1/src/codersforge/_core/migrate.py +221 -0
  27. codersforge-0.0.1/src/codersforge/_core/output.py +41 -0
  28. codersforge-0.0.1/src/codersforge/_core/paths.py +62 -0
  29. codersforge-0.0.1/src/codersforge/_core/py.typed +0 -0
  30. codersforge-0.0.1/src/codersforge/_core/schema.py +113 -0
  31. codersforge-0.0.1/src/codersforge/_core/ulid.py +36 -0
  32. codersforge-0.0.1/src/codersforge/_core/upgrade.py +57 -0
  33. codersforge-0.0.1/src/codersforge/_core/versions.py +20 -0
  34. codersforge-0.0.1/src/codersforge/_core/views.py +67 -0
  35. codersforge-0.0.1/src/codersforge/_core/walls.py +231 -0
  36. codersforge-0.0.1/src/codersforge/_core/workflow.py +745 -0
  37. codersforge-0.0.1/src/codersforge/_docs.py +33 -0
  38. codersforge-0.0.1/src/codersforge/checks.py +94 -0
  39. codersforge-0.0.1/src/codersforge/cli.py +865 -0
  40. codersforge-0.0.1/src/codersforge/domain.py +270 -0
  41. codersforge-0.0.1/src/codersforge/py.typed +0 -0
  42. codersforge-0.0.1/src/codersforge/workflows.yaml +129 -0
  43. codersforge-0.0.1/tests/core/__init__.py +0 -0
  44. codersforge-0.0.1/tests/core/conftest.py +157 -0
  45. codersforge-0.0.1/tests/core/test_archive.py +269 -0
  46. codersforge-0.0.1/tests/core/test_backup.py +369 -0
  47. codersforge-0.0.1/tests/core/test_basics.py +117 -0
  48. codersforge-0.0.1/tests/core/test_config.py +199 -0
  49. codersforge-0.0.1/tests/core/test_events.py +312 -0
  50. codersforge-0.0.1/tests/core/test_findings.py +279 -0
  51. codersforge-0.0.1/tests/core/test_gates.py +339 -0
  52. codersforge-0.0.1/tests/core/test_identity.py +270 -0
  53. codersforge-0.0.1/tests/core/test_index.py +125 -0
  54. codersforge-0.0.1/tests/core/test_items.py +356 -0
  55. codersforge-0.0.1/tests/core/test_ledger.py +100 -0
  56. codersforge-0.0.1/tests/core/test_messages.py +238 -0
  57. codersforge-0.0.1/tests/core/test_migrate.py +292 -0
  58. codersforge-0.0.1/tests/core/test_walls.py +290 -0
  59. codersforge-0.0.1/tests/core/test_workflow.py +565 -0
  60. codersforge-0.0.1/tests/test_archive.py +144 -0
  61. codersforge-0.0.1/tests/test_backup.py +202 -0
  62. codersforge-0.0.1/tests/test_cli.py +545 -0
  63. codersforge-0.0.1/tests/test_domain.py +53 -0
  64. codersforge-0.0.1/tests/test_findings.py +151 -0
  65. codersforge-0.0.1/tests/test_gates.py +251 -0
  66. codersforge-0.0.1/tests/test_index.py +143 -0
  67. codersforge-0.0.1/tests/test_ledger.py +83 -0
  68. codersforge-0.0.1/tests/test_messages.py +116 -0
  69. codersforge-0.0.1/tests/test_migrate.py +122 -0
  70. codersforge-0.0.1/tests/test_walls.py +173 -0
  71. codersforge-0.0.1/tests/test_workflows.py +249 -0
@@ -0,0 +1,15 @@
1
+ # Codersforge state is private and never committed
2
+ .codersforge/
3
+
4
+ .index.sqlite
5
+ __pycache__/
6
+ .venv/
7
+ .DS_Store
8
+ node_modules/
9
+ dist/
10
+ build/
11
+ *.egg-info/
12
+ .coverage
13
+ .mypy_cache/
14
+ .ruff_cache/
15
+ .pytest_cache/
@@ -0,0 +1,104 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project are documented here. The format follows
4
+ [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and versions follow
5
+ [Semantic Versioning](https://semver.org/).
6
+
7
+ ## [Unreleased]
8
+
9
+ ## [0.0.1] - 2026-12-01
10
+
11
+ First release: the core state layer (EPIC-0001). Every v1 command in CONTRACT
12
+ §10.2 is implemented. The agents, packs and TUI come in later releases.
13
+
14
+ ### Added
15
+
16
+ - The `codersforge` command line, exit codes and the `--json` error envelope
17
+ (CONTRACT §10.3).
18
+ - `codersforge init [--project NAME]`: creates `.codersforge/` (mode 0700) with
19
+ a default `config.yaml` and an empty event log, and adds it to `.gitignore`
20
+ (FEAT-0013 — Config).
21
+ - Strict `config.yaml` validation: an unknown or misspelled key is an error
22
+ that names the key path (FEAT-0013 — Config).
23
+ - Append-only event log with locking, fsync, envelope validation and a SHA-256
24
+ hash chain; `codersforge verify` reports the first broken line
25
+ (FEAT-0002 — Event store).
26
+ - Pinned role identity (FEAT-0003 — Role identity): commands that write events
27
+ refuse without `CODERSFORGE_ROLE` (exit 2, `missing_identity`) or with a name
28
+ that is not a role (`unknown_role`); events always carry the pinned role as
29
+ `actor`.
30
+ - `codersforge hook identity`, the PreToolUse hook that pins a role from Claude
31
+ Code's `agent_type`, runs plain `codersforge` calls under that role, and denies
32
+ attempts to set the role.
33
+ - `codersforge new`, `codersforge rename` and `codersforge assign`
34
+ (FEAT-0004 — Items and IDs): IDs are allocated per prefix under the write lock
35
+ and never reused; each item gets a primary file with validated front-matter;
36
+ output names items as `ID — title — path`.
37
+ - `codersforge move` (FEAT-0005 — State machines): workflows for all seven item
38
+ types are defined in `src/codersforge/workflows.yaml` and enforced; refusals
39
+ name their reason (`transition_not_allowed`, `gate_not_ruled`,
40
+ `condition_unmet`, `condition_unavailable`, `use_command`); `PARKED` and
41
+ `ABANDONED` with a note.
42
+ - `config.yaml` `workflows`: a project can add requirements to a transition or
43
+ insert a state into one, never loosen a workflow.
44
+ - CONTRACT §6 diagrams and tables are generated from `workflows.yaml`
45
+ (`python scripts/gen_docs.py`); a test fails if they drift.
46
+ - `codersforge gate open`, `codersforge gate rule` and `codersforge gate list`
47
+ (FEAT-0006 — Gates): only the operator rules; a gate is ruled once; desk-only
48
+ gates refuse remote channels; the desk-only baseline (CHARTER, WORKFLOW,
49
+ MCP, PACK, and every gate on a security finding) can be extended in
50
+ `config.yaml` but not reduced; project gates (`CHARTER:1`) carry no item;
51
+ each gate kind declares its own rulings.
52
+ - Security findings follow NIST SP 800-39 risk responses: `RESPONSE` (accept,
53
+ avoid, mitigate, share, transfer), `RESIDUAL` before closing a fix, and
54
+ `NOT_A_RISK` for false positives, duplicates and findings that do not apply.
55
+ Findings are never parked or abandoned.
56
+ - `codersforge finding add`, `codersforge finding resolve`, `codersforge lesson add`
57
+ and `codersforge show` (FEAT-0007 — Findings and lessons): finding IDs are
58
+ `<ITEM-ID>:F<n>`; only the Verifier, the Security Auditor and the operator raise
59
+ findings; the raising role or the operator resolves them; only the operator
60
+ accepts one, and Security Auditor findings are never accepted.
61
+ - `codersforge msg send` and `codersforge msg state` (FEAT-0008 — Messages): only
62
+ the orchestrator relays; the allowed-pairs matrix is enforced, and a denied
63
+ pair is recorded as blocked (`pair_denied`) before it is refused; nobody can
64
+ message the Security Auditor or the operator; `config.yaml` can remove pairs
65
+ but never add them.
66
+ - Walls (FEAT-0009): the Verifier cannot read the Developer's notes while an
67
+ item is in VERIFY; only the Security Auditor writes security findings; no
68
+ role reads the raw event log or writes it, `config.yaml`, `.claude/`,
69
+ `.mcp.json` or `~/.claude/`. Every refusal is a `wall_violation` event.
70
+ `codersforge hook lane-guard` applies the walls to Claude Code file tools.
71
+ - `codersforge list` and `codersforge reindex` (FEAT-0010 — Index and queries):
72
+ `.index.sqlite` is rebuilt whenever the log has changed, and `list --json`
73
+ always equals a replay of the log; `reindex` repairs front-matter from the
74
+ log and recreates missing item files.
75
+ - Fixed: the `state` wall protected `events.lock` instead of the real lock file
76
+ `.lock`; it now covers `.lock` and `.index.sqlite` too.
77
+ - `codersforge ledger [--check]` (FEAT-0011 — Ledger): `LEDGER.md` and
78
+ `lessons/LESSONS.md` are generated from the log, byte for byte the same for
79
+ the same log; `--check` exits 2 when either is stale or hand-edited. Roles
80
+ cannot edit either file.
81
+ - `codersforge archive <ID>` (FEAT-0012 — Archive): rolls a `DONE`,
82
+ `ABANDONED` or closed `SEC` item into `archive/<ID>.md` with its history,
83
+ gates, findings, lessons and files, records the rollup's SHA-256, and removes
84
+ the folder. Archived items are frozen, `reindex` reports a missing or altered
85
+ rollup (exit 5) instead of rewriting it, and the ledger counts archived items.
86
+ - `codersforge migrate [--check]` (FEAT-0014 — Migrations): older events,
87
+ item front-matter and `config.yaml` are upgraded as they are read and
88
+ rewritten once by `migrate`, operator only, after copying the originals into
89
+ `migrations/<UTC time>/`. The log keeps its event IDs and timestamps, gets a
90
+ fresh hash chain, and ends with a `migrated` event naming the backup and the
91
+ old log's last hash. Nothing needs migrating yet; `--check` exits 2 when
92
+ something does.
93
+ - Private state (FEAT-0015): `codersforge init` makes `.codersforge/` a git
94
+ repository of its own. `codersforge backup` streams it through age into an
95
+ encrypted archive outside the project (no unencrypted copy on disk), and
96
+ `codersforge restore` verifies every file and the hash chain before moving it
97
+ into place, never over an existing `.codersforge/`. Both are operator-only.
98
+ `config.yaml` gains `backup.recipients` and `backup.dir`. Roles cannot read
99
+ or write `.codersforge/.git/`.
100
+ - Shared core vendored at `src/codersforge/_core/`, with a `CORE_VERSION`
101
+ manifest and a test that fails if the vendored files are edited in place.
102
+ - CI on Linux and macOS for Python 3.11 to 3.15 (lint, types, tests, Bandit,
103
+ pip-audit, gitleaks), and a release workflow using PyPI trusted publishing
104
+ with build provenance attestations.
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
@@ -0,0 +1,7 @@
1
+ Codersforge
2
+ Copyright 2026 Jacob Stauffer
3
+
4
+ This product includes software developed by Jacob Stauffer
5
+ (https://github.com/jknyght9/codersforge).
6
+ Redistributions and derivative works must retain this NOTICE file, as required by
7
+ section 4(d) of the Apache License, Version 2.0.
@@ -0,0 +1,81 @@
1
+ Metadata-Version: 2.5
2
+ Name: codersforge
3
+ Version: 0.0.1
4
+ Summary: A gated, multi-agent product team for Claude Code
5
+ Project-URL: Repository, https://github.com/jknyght9/codersforge
6
+ Project-URL: Issues, https://github.com/jknyght9/codersforge/issues
7
+ Project-URL: Changelog, https://github.com/jknyght9/codersforge/blob/main/CHANGELOG.md
8
+ Author: Jacob Stauffer
9
+ License-Expression: Apache-2.0
10
+ License-File: LICENSE
11
+ License-File: NOTICE
12
+ Keywords: agents,claude-code,plugin,software-development
13
+ Classifier: Development Status :: 2 - Pre-Alpha
14
+ Classifier: Environment :: Console
15
+ Classifier: Intended Audience :: Developers
16
+ Classifier: Operating System :: MacOS
17
+ Classifier: Operating System :: POSIX :: Linux
18
+ Classifier: Programming Language :: Python :: 3
19
+ Classifier: Programming Language :: Python :: 3.11
20
+ Classifier: Programming Language :: Python :: 3.12
21
+ Classifier: Programming Language :: Python :: 3.13
22
+ Classifier: Programming Language :: Python :: 3.14
23
+ Classifier: Programming Language :: Python :: 3.15
24
+ Classifier: Topic :: Software Development
25
+ Classifier: Typing :: Typed
26
+ Requires-Python: >=3.11
27
+ Requires-Dist: pyyaml>=6.0
28
+ Provides-Extra: dev
29
+ Requires-Dist: bandit>=1.7; extra == 'dev'
30
+ Requires-Dist: mypy>=1.11; extra == 'dev'
31
+ Requires-Dist: pip-audit>=2.7; extra == 'dev'
32
+ Requires-Dist: pytest-cov>=5; extra == 'dev'
33
+ Requires-Dist: pytest>=8; extra == 'dev'
34
+ Requires-Dist: ruff>=0.6; extra == 'dev'
35
+ Requires-Dist: types-pyyaml; extra == 'dev'
36
+ Description-Content-Type: text/markdown
37
+
38
+ # codersforge
39
+
40
+ A Claude Code plugin that runs a gated, multi-agent product team — Product
41
+ Analyst, Architect, Test Engineer, Developer, Verifier, Data Analyst, Tech
42
+ Writer, Presenter and Security Auditor — plus a TUI that shows the work and the agents live.
43
+
44
+ Status: pre-alpha. This release is the core state layer: the `codersforge`
45
+ command line that the agents and hooks use to record work. The agents, packs
46
+ and TUI come in later releases.
47
+
48
+ ```bash
49
+ pipx install codersforge
50
+ codersforge init # creates the private .codersforge/ folder
51
+ export CODERSFORGE_ROLE=operator # you; agents get their role from hooks
52
+ codersforge new feature "Sign-in form"
53
+ codersforge list
54
+ codersforge verify # checks the event log's hash chain
55
+ ```
56
+
57
+ Everything lives in `.codersforge/`, which is never committed to your
58
+ repository:
59
+
60
+ - an append-only, hash-chained event log of every change, decision and message;
61
+ - items (epics, features, bugs, chores, refactors, spikes, security findings),
62
+ each moving through a workflow whose transitions can require a gate;
63
+ - gates you rule on, findings, lessons, and messages between roles;
64
+ - walls that limit what each role may read and write, enforced by a Claude Code hook;
65
+ - a generated `LEDGER.md`, archives of closed items, schema migrations, and
66
+ age-encrypted backups with verified restores.
67
+
68
+ Security findings follow NIST SP 800-39 risk responses: they are never parked or
69
+ abandoned, and every gate on them is decided at your desk.
70
+
71
+ - [Design](https://github.com/jknyght9/codersforge/blob/main/docs/DESIGN.md)
72
+ - [Public contract](https://github.com/jknyght9/codersforge/blob/main/docs/CONTRACT.md)
73
+ - [EPIC-0001 — Core state](https://github.com/jknyght9/codersforge/blob/main/docs/specs/EPIC-0001-core-state.md)
74
+ - [Changelog](https://github.com/jknyght9/codersforge/blob/main/CHANGELOG.md)
75
+ - [Contributing](https://github.com/jknyght9/codersforge/blob/main/CONTRIBUTING.md) ·
76
+ [Security](https://github.com/jknyght9/codersforge/blob/main/SECURITY.md) ·
77
+ [Code of Conduct](https://github.com/jknyght9/codersforge/blob/main/CODE_OF_CONDUCT.md)
78
+
79
+ Licensed under the Apache License, Version 2.0. See
80
+ [LICENSE](https://github.com/jknyght9/codersforge/blob/main/LICENSE) and
81
+ [NOTICE](https://github.com/jknyght9/codersforge/blob/main/NOTICE).
@@ -0,0 +1,44 @@
1
+ # codersforge
2
+
3
+ A Claude Code plugin that runs a gated, multi-agent product team — Product
4
+ Analyst, Architect, Test Engineer, Developer, Verifier, Data Analyst, Tech
5
+ Writer, Presenter and Security Auditor — plus a TUI that shows the work and the agents live.
6
+
7
+ Status: pre-alpha. This release is the core state layer: the `codersforge`
8
+ command line that the agents and hooks use to record work. The agents, packs
9
+ and TUI come in later releases.
10
+
11
+ ```bash
12
+ pipx install codersforge
13
+ codersforge init # creates the private .codersforge/ folder
14
+ export CODERSFORGE_ROLE=operator # you; agents get their role from hooks
15
+ codersforge new feature "Sign-in form"
16
+ codersforge list
17
+ codersforge verify # checks the event log's hash chain
18
+ ```
19
+
20
+ Everything lives in `.codersforge/`, which is never committed to your
21
+ repository:
22
+
23
+ - an append-only, hash-chained event log of every change, decision and message;
24
+ - items (epics, features, bugs, chores, refactors, spikes, security findings),
25
+ each moving through a workflow whose transitions can require a gate;
26
+ - gates you rule on, findings, lessons, and messages between roles;
27
+ - walls that limit what each role may read and write, enforced by a Claude Code hook;
28
+ - a generated `LEDGER.md`, archives of closed items, schema migrations, and
29
+ age-encrypted backups with verified restores.
30
+
31
+ Security findings follow NIST SP 800-39 risk responses: they are never parked or
32
+ abandoned, and every gate on them is decided at your desk.
33
+
34
+ - [Design](https://github.com/jknyght9/codersforge/blob/main/docs/DESIGN.md)
35
+ - [Public contract](https://github.com/jknyght9/codersforge/blob/main/docs/CONTRACT.md)
36
+ - [EPIC-0001 — Core state](https://github.com/jknyght9/codersforge/blob/main/docs/specs/EPIC-0001-core-state.md)
37
+ - [Changelog](https://github.com/jknyght9/codersforge/blob/main/CHANGELOG.md)
38
+ - [Contributing](https://github.com/jknyght9/codersforge/blob/main/CONTRIBUTING.md) ·
39
+ [Security](https://github.com/jknyght9/codersforge/blob/main/SECURITY.md) ·
40
+ [Code of Conduct](https://github.com/jknyght9/codersforge/blob/main/CODE_OF_CONDUCT.md)
41
+
42
+ Licensed under the Apache License, Version 2.0. See
43
+ [LICENSE](https://github.com/jknyght9/codersforge/blob/main/LICENSE) and
44
+ [NOTICE](https://github.com/jknyght9/codersforge/blob/main/NOTICE).
@@ -0,0 +1,91 @@
1
+ [build-system]
2
+ requires = ["hatchling>=1.27"]
3
+ build-backend = "hatchling.build"
4
+
5
+ [project]
6
+ name = "codersforge"
7
+ dynamic = ["version"]
8
+ description = "A gated, multi-agent product team for Claude Code"
9
+ readme = "README.md"
10
+ license = "Apache-2.0"
11
+ license-files = ["LICENSE", "NOTICE"]
12
+ requires-python = ">=3.11"
13
+ authors = [{ name = "Jacob Stauffer" }]
14
+ keywords = ["claude-code", "agents", "plugin", "software-development"]
15
+ classifiers = [
16
+ "Development Status :: 2 - Pre-Alpha",
17
+ "Environment :: Console",
18
+ "Intended Audience :: Developers",
19
+ "Operating System :: MacOS",
20
+ "Operating System :: POSIX :: Linux",
21
+ "Programming Language :: Python :: 3",
22
+ "Programming Language :: Python :: 3.11",
23
+ "Programming Language :: Python :: 3.12",
24
+ "Programming Language :: Python :: 3.13",
25
+ "Programming Language :: Python :: 3.14",
26
+ "Programming Language :: Python :: 3.15",
27
+ "Topic :: Software Development",
28
+ "Typing :: Typed",
29
+ ]
30
+ dependencies = ["pyyaml>=6.0"]
31
+
32
+ [project.optional-dependencies]
33
+ dev = [
34
+ "pytest>=8",
35
+ "pytest-cov>=5",
36
+ "ruff>=0.6",
37
+ "mypy>=1.11",
38
+ "pip-audit>=2.7",
39
+ "bandit>=1.7",
40
+ "types-PyYAML",
41
+ ]
42
+
43
+ [project.scripts]
44
+ codersforge = "codersforge.cli:main"
45
+
46
+ [project.urls]
47
+ Repository = "https://github.com/jknyght9/codersforge"
48
+ Issues = "https://github.com/jknyght9/codersforge/issues"
49
+ Changelog = "https://github.com/jknyght9/codersforge/blob/main/CHANGELOG.md"
50
+
51
+ [tool.hatch.version]
52
+ path = "src/codersforge/__init__.py"
53
+
54
+ [tool.hatch.build.targets.wheel]
55
+ packages = ["src/codersforge"]
56
+
57
+ [tool.hatch.build.targets.sdist]
58
+ include = ["src", "tests", "README.md", "CHANGELOG.md", "LICENSE", "NOTICE"]
59
+ artifacts = ["src/codersforge/_core/CORE_VERSION"]
60
+
61
+ [tool.ruff]
62
+ line-length = 100
63
+ target-version = "py311"
64
+ src = ["src", "tests"]
65
+ # The vendored core is linted and formatted in pluginforge; here it is generated
66
+ # output (scripts/vendor.py) and a test checks it against CORE_VERSION.
67
+ extend-exclude = ["src/codersforge/_core", "tests/core"]
68
+
69
+ [tool.ruff.lint]
70
+ select = ["E", "F", "W", "I", "B", "UP", "S", "SIM", "RUF", "N", "PL"]
71
+ ignore = ["PLR2004", "PLR0911", "PLR0912"]
72
+
73
+ [tool.ruff.lint.per-file-ignores]
74
+ "tests/**" = ["S101", "S603", "S607", "PLR0913", "PLR0917"]
75
+
76
+ [tool.mypy]
77
+ strict = true
78
+ files = ["src", "tests"]
79
+ python_version = "3.11"
80
+
81
+ [tool.pytest.ini_options]
82
+ testpaths = ["tests"]
83
+ addopts = "--cov=codersforge --cov-branch --cov-report=term-missing --cov-fail-under=90"
84
+
85
+ [tool.coverage.run]
86
+ source = ["codersforge"]
87
+ branch = true
88
+ omit = ["*/codersforge/__main__.py"] # exercised through a subprocess in tests
89
+
90
+ [tool.bandit]
91
+ exclude_dirs = ["tests"]
@@ -0,0 +1,4 @@
1
+ # SPDX-License-Identifier: Apache-2.0
2
+ """Codersforge: a gated, multi-agent product team for Claude Code."""
3
+
4
+ __version__ = "0.0.1"
@@ -0,0 +1,8 @@
1
+ # SPDX-License-Identifier: Apache-2.0
2
+ """Allow ``python -m codersforge``."""
3
+
4
+ import sys
5
+
6
+ from codersforge.cli import main
7
+
8
+ sys.exit(main())
@@ -0,0 +1,33 @@
1
+ {
2
+ "core": "pluginforge",
3
+ "version": "0.14.0",
4
+ "source_commit": "bce8b649c8b0b3edbbb461d31710ccc993ed419e",
5
+ "files": {
6
+ "__init__.py": "42f3b1db4261e0f86c10e3732f03c3e517ebf1a939c17b8af047a424a890e3d6",
7
+ "archive.py": "3855889a0a362694f5a7b311e49b6378eee244d37dbf485523dfb9ef817c1b09",
8
+ "backup.py": "75b1a5e9c13516fe7f2c244271785eb4d27582d5f317439ef4294ade1fcbe4f0",
9
+ "config.py": "e433d11c3fc42e5751030ef87cbd729b5369b547b02d5dba7e1c8fbccec38d6b",
10
+ "domain.py": "0f2b8d115533f66c62537152a6b4a52498dd5b19180a1e16c1d968a6d3263a7d",
11
+ "errors.py": "756ef768fbbbc160915e7cb56989d78016c240d0d495e6c29ec62126a85b1b6e",
12
+ "events.py": "689b1956c49282a8ad5e24e57eb39e8f335a5c8da211a24b6f769ce036a9b51d",
13
+ "findings.py": "2abf2030ae34c0e0b7813a693f88ab75002623d3586b2642692edbd15e91dccc",
14
+ "gates.py": "dd26b2f2a453d0f3809407012fcfa435c9cace289b23fd2be545408f8fce17a1",
15
+ "identity.py": "cf638dfd5414323fd91fd6257378f0ddc4616a01e1bb5e9a464b9106a00b7085",
16
+ "index.py": "3addedcd376e25af5f2baad916535df17318dfd9e2f9d6cd33411680b96005f2",
17
+ "items.py": "5007134ca8c54c24733037c19b5c476537496aaeaff3085bb14b0644f44707b7",
18
+ "ledger.py": "d14e8e9ff38bcd00ce2a352dca492a9911e03d2ed30f634e44e4a91e8b1a6bca",
19
+ "lessons.py": "40507b6800465df1e305ce24c334fa4669e190e85369b2d7e954a2993f5f80d2",
20
+ "messages.py": "c79fbcfa7d0233d26cf7a49a12a3ec4e39cc4cbb47bab13371c080fe71fac511",
21
+ "migrate.py": "38412c5ff67e5cb083afae110d9b1ee079308762f6d4d422f34eff546e492fe2",
22
+ "output.py": "59322b0ba6ac6a0033b3b3b4bce76b070e4cdbe2a72e38408e3bf0be864482d9",
23
+ "paths.py": "6be3d38850ca159483ad46fc6859a64070a8e2d0bfadac11c34a86193847d6dc",
24
+ "py.typed": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
25
+ "schema.py": "39edbd153f2657c5a19f707e8dc99c8e13e9cb1acfe154d4cc0b99eac747393e",
26
+ "ulid.py": "451f84887657e805697ff3c8c8046fdfa7dcf5367f600468f7109c1ce1dfa8f6",
27
+ "upgrade.py": "fdfb4a111872b755ef9d4f3eae68c6a164296e806408f1d2183c3b3d1262360c",
28
+ "versions.py": "9e81b83fb0b9e54fceba461769f396f626b6bfb869ba3b18207a0c29f16ffafc",
29
+ "views.py": "76c6c564b2db66efc760239bf4b8180619d203b94ee9d306e4a5b3f47ec41928",
30
+ "walls.py": "efd23dece5d7faf7a10dbb1ec0fb15ab14e47202de3a7a1175fc0960b7879cfa",
31
+ "workflow.py": "c4747bfdf2c36bc1796acbc0678f278ee1db6c6db3132131e00448febf3a76a8"
32
+ }
33
+ }
@@ -0,0 +1,8 @@
1
+ # SPDX-License-Identifier: Apache-2.0
2
+ """Pluginforge: the shared core of the -forge Claude Code plugins.
3
+
4
+ This package is vendored into each domain plugin as ``<package>._core``.
5
+ It uses relative imports only, so the copy works unchanged.
6
+ """
7
+
8
+ __version__ = "0.14.0"