agentforge-framework 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.
Files changed (114) hide show
  1. agentforge_framework-0.2.0/LICENSE +202 -0
  2. agentforge_framework-0.2.0/PKG-INFO +321 -0
  3. agentforge_framework-0.2.0/README.md +303 -0
  4. agentforge_framework-0.2.0/pyproject.toml +74 -0
  5. agentforge_framework-0.2.0/setup.cfg +4 -0
  6. agentforge_framework-0.2.0/src/agentforge_framework/.claude-plugin/plugin.json +4 -0
  7. agentforge_framework-0.2.0/src/agentforge_framework/__init__.py +3 -0
  8. agentforge_framework-0.2.0/src/agentforge_framework/agents/__init__.py +92 -0
  9. agentforge_framework-0.2.0/src/agentforge_framework/agents/architect.py +146 -0
  10. agentforge_framework-0.2.0/src/agentforge_framework/agents/implementer.py +162 -0
  11. agentforge_framework-0.2.0/src/agentforge_framework/agents/orchestrator.py +588 -0
  12. agentforge_framework-0.2.0/src/agentforge_framework/agents/reviewer.py +335 -0
  13. agentforge_framework-0.2.0/src/agentforge_framework/agents/security.py +138 -0
  14. agentforge_framework-0.2.0/src/agentforge_framework/agents/tester.py +125 -0
  15. agentforge_framework-0.2.0/src/agentforge_framework/cli.py +461 -0
  16. agentforge_framework-0.2.0/src/agentforge_framework/context/__init__.py +1 -0
  17. agentforge_framework-0.2.0/src/agentforge_framework/context/extractors/__init__.py +76 -0
  18. agentforge_framework-0.2.0/src/agentforge_framework/context/extractors/base.py +47 -0
  19. agentforge_framework-0.2.0/src/agentforge_framework/context/extractors/python.py +65 -0
  20. agentforge_framework-0.2.0/src/agentforge_framework/context/extractors/sql.py +121 -0
  21. agentforge_framework-0.2.0/src/agentforge_framework/context/extractors/yaml.py +59 -0
  22. agentforge_framework-0.2.0/src/agentforge_framework/context/prompt.py +104 -0
  23. agentforge_framework-0.2.0/src/agentforge_framework/context/resolver.py +185 -0
  24. agentforge_framework-0.2.0/src/agentforge_framework/core/__init__.py +1 -0
  25. agentforge_framework-0.2.0/src/agentforge_framework/core/commands.py +170 -0
  26. agentforge_framework-0.2.0/src/agentforge_framework/core/config.py +90 -0
  27. agentforge_framework-0.2.0/src/agentforge_framework/core/contracts.py +875 -0
  28. agentforge_framework-0.2.0/src/agentforge_framework/core/gates.py +333 -0
  29. agentforge_framework-0.2.0/src/agentforge_framework/core/issues.py +697 -0
  30. agentforge_framework-0.2.0/src/agentforge_framework/core/plan_format.py +272 -0
  31. agentforge_framework-0.2.0/src/agentforge_framework/core/process.py +141 -0
  32. agentforge_framework-0.2.0/src/agentforge_framework/core/project.py +262 -0
  33. agentforge_framework-0.2.0/src/agentforge_framework/core/registry.py +455 -0
  34. agentforge_framework-0.2.0/src/agentforge_framework/core/repo.py +185 -0
  35. agentforge_framework-0.2.0/src/agentforge_framework/core/router.py +1 -0
  36. agentforge_framework-0.2.0/src/agentforge_framework/core/runtime.py +639 -0
  37. agentforge_framework-0.2.0/src/agentforge_framework/core/skills.py +255 -0
  38. agentforge_framework-0.2.0/src/agentforge_framework/core/workflow.py +215 -0
  39. agentforge_framework-0.2.0/src/agentforge_framework/plugins/__init__.py +35 -0
  40. agentforge_framework-0.2.0/src/agentforge_framework/plugins/databricks/__init__.py +86 -0
  41. agentforge_framework-0.2.0/src/agentforge_framework/plugins/pyspark/__init__.py +57 -0
  42. agentforge_framework-0.2.0/src/agentforge_framework/plugins/python/__init__.py +45 -0
  43. agentforge_framework-0.2.0/src/agentforge_framework/plugins/sql/__init__.py +377 -0
  44. agentforge_framework-0.2.0/src/agentforge_framework/providers/__init__.py +48 -0
  45. agentforge_framework-0.2.0/src/agentforge_framework/providers/base.py +248 -0
  46. agentforge_framework-0.2.0/src/agentforge_framework/providers/claude.py +159 -0
  47. agentforge_framework-0.2.0/src/agentforge_framework/providers/codex.py +139 -0
  48. agentforge_framework-0.2.0/src/agentforge_framework/skills/MANIFEST.yaml +157 -0
  49. agentforge_framework-0.2.0/src/agentforge_framework/skills/NOTICE +49 -0
  50. agentforge_framework-0.2.0/src/agentforge_framework/skills/domain-modeling/ADR-FORMAT.md +47 -0
  51. agentforge_framework-0.2.0/src/agentforge_framework/skills/domain-modeling/CONTEXT-FORMAT.md +60 -0
  52. agentforge_framework-0.2.0/src/agentforge_framework/skills/domain-modeling/SKILL.md +74 -0
  53. agentforge_framework-0.2.0/src/agentforge_framework/skills/domain-modeling/agents/openai.yaml +3 -0
  54. agentforge_framework-0.2.0/src/agentforge_framework/skills/grill-with-docs/SKILL.md +76 -0
  55. agentforge_framework-0.2.0/src/agentforge_framework/skills/grilling/SKILL.md +28 -0
  56. agentforge_framework-0.2.0/src/agentforge_framework/skills/grilling/agents/openai.yaml +3 -0
  57. agentforge_framework-0.2.0/src/agentforge_framework/skills/to-spec/SKILL.md +75 -0
  58. agentforge_framework-0.2.0/src/agentforge_framework/skills/to-spec/agents/openai.yaml +5 -0
  59. agentforge_framework-0.2.0/src/agentforge_framework/skills/to-tickets/SKILL.md +105 -0
  60. agentforge_framework-0.2.0/src/agentforge_framework/skills/to-tickets/agents/openai.yaml +5 -0
  61. agentforge_framework-0.2.0/src/agentforge_framework/skills/unslop/SKILL.md +131 -0
  62. agentforge_framework-0.2.0/src/agentforge_framework/skills/unslop/evals/fixtures/silhouette/human_reference.json +66 -0
  63. agentforge_framework-0.2.0/src/agentforge_framework/skills/unslop/scripts/_lang.py +106 -0
  64. agentforge_framework-0.2.0/src/agentforge_framework/skills/unslop/scripts/banned_phrase_scan.py +784 -0
  65. agentforge_framework-0.2.0/src/agentforge_framework/skills/unslop/scripts/calibrate_pairs.py +580 -0
  66. agentforge_framework-0.2.0/src/agentforge_framework/skills/unslop/scripts/calibrate_score.py +273 -0
  67. agentforge_framework-0.2.0/src/agentforge_framework/skills/unslop/scripts/check_packs.py +80 -0
  68. agentforge_framework-0.2.0/src/agentforge_framework/skills/unslop/scripts/check_suggestions.py +225 -0
  69. agentforge_framework-0.2.0/src/agentforge_framework/skills/unslop/scripts/contribute.py +373 -0
  70. agentforge_framework-0.2.0/src/agentforge_framework/skills/unslop/scripts/diff_check.py +139 -0
  71. agentforge_framework-0.2.0/src/agentforge_framework/skills/unslop/scripts/extract_constraints.py +201 -0
  72. agentforge_framework-0.2.0/src/agentforge_framework/skills/unslop/scripts/harvest_classify.py +223 -0
  73. agentforge_framework-0.2.0/src/agentforge_framework/skills/unslop/scripts/harvest_samples.py +534 -0
  74. agentforge_framework-0.2.0/src/agentforge_framework/skills/unslop/scripts/readability_metrics.py +295 -0
  75. agentforge_framework-0.2.0/src/agentforge_framework/skills/unslop/scripts/refresh_status.py +154 -0
  76. agentforge_framework-0.2.0/src/agentforge_framework/skills/unslop/scripts/silhouette_scan.py +390 -0
  77. agentforge_framework-0.2.0/src/agentforge_framework/skills/unslop/scripts/structure_scan.py +322 -0
  78. agentforge_framework-0.2.0/src/agentforge_framework/skills/unslop/scripts/suggest.py +211 -0
  79. agentforge_framework-0.2.0/src/agentforge_framework/skills/unslop/scripts/validate_preservation.py +409 -0
  80. agentforge_framework-0.2.0/src/agentforge_framework/skills/unslop/scripts/voice_card.py +496 -0
  81. agentforge_framework-0.2.0/src/agentforge_framework/skills/unslop/scripts/voice_profile.py +194 -0
  82. agentforge_framework-0.2.0/src/agentforge_framework/skills/unslop/scripts/voice_score.py +271 -0
  83. agentforge_framework-0.2.0/src/agentforge_framework/skills/unslop/scripts/wiki_sync.py +479 -0
  84. agentforge_framework-0.2.0/src/agentforge_framework/skills/write-plainly/SKILL.md +94 -0
  85. agentforge_framework-0.2.0/src/agentforge_framework/workflows/bugfix.yaml +8 -0
  86. agentforge_framework-0.2.0/src/agentforge_framework/workflows/feature.yaml +16 -0
  87. agentforge_framework-0.2.0/src/agentforge_framework/workflows/review.yaml +10 -0
  88. agentforge_framework-0.2.0/src/agentforge_framework.egg-info/PKG-INFO +321 -0
  89. agentforge_framework-0.2.0/src/agentforge_framework.egg-info/SOURCES.txt +112 -0
  90. agentforge_framework-0.2.0/src/agentforge_framework.egg-info/dependency_links.txt +1 -0
  91. agentforge_framework-0.2.0/src/agentforge_framework.egg-info/entry_points.txt +3 -0
  92. agentforge_framework-0.2.0/src/agentforge_framework.egg-info/requires.txt +5 -0
  93. agentforge_framework-0.2.0/src/agentforge_framework.egg-info/top_level.txt +1 -0
  94. agentforge_framework-0.2.0/tests/test_agents.py +386 -0
  95. agentforge_framework-0.2.0/tests/test_architect.py +111 -0
  96. agentforge_framework-0.2.0/tests/test_cli.py +480 -0
  97. agentforge_framework-0.2.0/tests/test_config.py +77 -0
  98. agentforge_framework-0.2.0/tests/test_context.py +412 -0
  99. agentforge_framework-0.2.0/tests/test_contracts.py +463 -0
  100. agentforge_framework-0.2.0/tests/test_docs.py +386 -0
  101. agentforge_framework-0.2.0/tests/test_execution_posture.py +218 -0
  102. agentforge_framework-0.2.0/tests/test_gates.py +359 -0
  103. agentforge_framework-0.2.0/tests/test_interview.py +268 -0
  104. agentforge_framework-0.2.0/tests/test_issues.py +747 -0
  105. agentforge_framework-0.2.0/tests/test_plan_format.py +218 -0
  106. agentforge_framework-0.2.0/tests/test_plugins.py +1299 -0
  107. agentforge_framework-0.2.0/tests/test_project.py +210 -0
  108. agentforge_framework-0.2.0/tests/test_providers.py +426 -0
  109. agentforge_framework-0.2.0/tests/test_reviewer.py +314 -0
  110. agentforge_framework-0.2.0/tests/test_runtime.py +2010 -0
  111. agentforge_framework-0.2.0/tests/test_security.py +119 -0
  112. agentforge_framework-0.2.0/tests/test_skills.py +193 -0
  113. agentforge_framework-0.2.0/tests/test_tester.py +66 -0
  114. agentforge_framework-0.2.0/tests/test_workflow.py +239 -0
@@ -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 2026 Yash Mhatre
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,321 @@
1
+ Metadata-Version: 2.4
2
+ Name: agentforge-framework
3
+ Version: 0.2.0
4
+ Summary: A modular framework for coordinating specialized software agents.
5
+ Author: Yash Mhatre
6
+ License-Expression: Apache-2.0
7
+ Project-URL: Homepage, https://github.com/yashmhatre/AgentForge
8
+ Project-URL: Issues, https://github.com/yashmhatre/AgentForge/issues
9
+ Requires-Python: >=3.11
10
+ Description-Content-Type: text/markdown
11
+ License-File: LICENSE
12
+ License-File: src/agentforge_framework/skills/NOTICE
13
+ Requires-Dist: pyyaml>=6.0
14
+ Provides-Extra: dev
15
+ Requires-Dist: pytest>=8.0; extra == "dev"
16
+ Requires-Dist: ruff>=0.6; extra == "dev"
17
+ Dynamic: license-file
18
+
19
+ # AgentForge
20
+
21
+ AgentForge is a standalone Python framework for coordinating specialized software agents through reusable workflows.
22
+
23
+ A human states a Task. The Orchestrator files a GitHub issue carrying a frozen plan and the Roster of Roles that will execute it. `agentforge implement <n>` runs the Issue's Workflow and opens a draft pull request for a human to sign off. No workflow ever merges.
24
+
25
+ ![An Issue carries the frozen plan and the Roster. Each Agent reads that Issue and appends its result as the Run Log. The Workflow ends at a draft pull request that only a human can merge.](docs/assets/one-issue-number.svg)
26
+
27
+ ## Status
28
+
29
+ The Workflow runtime now runs multiple Roles in order. The default `feature`
30
+ Workflow invokes the Implementer, the Tester, Security, and then the Reviewer,
31
+ posting each Agent Result to the Issue before starting the next Step.
32
+
33
+ ```console
34
+ $ agentforge plan "add a retry to the loader"
35
+
36
+ The Orchestrator has questions before it writes anything down.
37
+ Answer them, or press Enter on an empty line to plan with what it has.
38
+
39
+ Which loader — the orders one, or the returns feed?
40
+ > orders
41
+
42
+ Retry on 5xx only, or timeouts too?
43
+ > both, cap it at three attempts
44
+
45
+ Filed issue #12: https://github.com/acme/pipelines/issues/12
46
+ Roster: implementer (standard)
47
+ Interview: 2 question(s) answered
48
+
49
+ Run it with: agentforge implement 12
50
+
51
+ $ agentforge implement 12 --allow-commands
52
+ [ok] implementer (standard) — Wrapped the fetch in a bounded retry.
53
+ [ok] tester (cheap) — pytest: 24 passed.
54
+ [ok] security (deep) — Audited the change; no findings.
55
+ [ok] reviewer (deep) — The change matches the plan. unslop: clean on attempt 2.
56
+
57
+ Draft pull request: https://github.com/acme/pipelines/pull/13
58
+ AgentForge stops at Sign-off. A human merges.
59
+ ```
60
+
61
+ The two commands can run on different machines. Nothing is shared between them but the issue number.
62
+
63
+ The interview happens while you are still at the keyboard, because ADR-0003
64
+ freezes the plan the moment it is filed. It is rounds of one-shot invocations
65
+ rather than a conversation — the Provider port has no session — and it ends as
66
+ soon as the Orchestrator has enough, or as soon as you press Enter on an empty
67
+ line. With nothing interactive attached, there is no interview at all: a
68
+ scheduled Run has nobody to ask, and blocking on an answer that will never
69
+ arrive is worse than planning from what was typed.
70
+
71
+ A term you settle in the interview is recorded in the project's own `CONTEXT.md`
72
+ so the same question is not asked next week. That leaves changes in your working
73
+ tree; `agentforge plan` says which files, and they are yours to review and
74
+ commit.
75
+
76
+ Opening that gate is also what makes a Run produce files nobody asked for:
77
+ running a suite writes `__pycache__`, and possibly coverage data and a cache
78
+ directory. AgentForge commits every change to a file git already tracks, and an
79
+ untracked file only when the frozen plan or an agent's own result named it.
80
+ Everything else stays in your working tree and is listed in the pull request
81
+ under *Left uncommitted*, so a repository with no `.gitignore` still gets a diff
82
+ that is only the work. AgentForge does not write a `.gitignore` for you. See
83
+ ADR-0015.
84
+
85
+ Without `--allow-commands`, the Implementer remains default-deny and the Tester
86
+ reports that it could not run the suite; it never substitutes reading tests and
87
+ claims completion. Security, the Reviewer, and the Architect need no such flag —
88
+ auditing, reviewing, and designing are reading. All six Roles `CONTEXT.md` names
89
+ now run. Plugins have landed, and with them the data-engineering ones: a
90
+ repository whose files import `pyspark` has its Roles told to write DataFrame
91
+ expressions rather than RDDs, and a Databricks workspace gets Unity Catalog
92
+ naming and the Delta MERGE idioms in the prompts that write code and the
93
+ workspace's own posture in the one that audits it. A repository that matches
94
+ neither hears neither. `agentforge init` is still to come. See
95
+ [`docs/PLAN.md`](docs/PLAN.md).
96
+
97
+ Before the first Role is invoked, AgentForge resolves a Context Pack from the
98
+ frozen plan — the files it names, the symbols and imports inside them, the
99
+ tables a query touches, the keys a config file sets — and hands the same pack to
100
+ every Role, so six Agents do not each rediscover one repository. The pack is a
101
+ head start rather than a boundary: a Role that needs a file it does not name
102
+ reads that file. Every Run Log entry then ends with what that Step consumed, in
103
+ whatever unit the Provider reports it — dollars from `claude`, tokens from
104
+ `codex`, and "not reported" where a CLI says nothing, because a blank reads as
105
+ free. The last comment carries the Run's total. To find out what the pack is
106
+ worth on your own repository, run the same issue again with
107
+ `--no-context-pack` and compare the two totals.
108
+
109
+ The Reviewer writes the prose a human reads at Sign-off, and that prose is
110
+ scanned by the vendored `unslop` scanners before it is posted. The first draft is
111
+ written with `write-plainly` in front of it — what the three scanners count,
112
+ stated for a draft rather than as findings on one — because a rewrite reaches a
113
+ phrase and one of the scanners reads the shape of the whole document. A finding
114
+ sends the Reviewer its own findings to rewrite against, twice at most, and the
115
+ skill is not delivered again there: a finding already names the phrase, the line,
116
+ and a replacement. The scan is a
117
+ Command and not a Gate: prose that still scans dirty on the third attempt is
118
+ posted anyway with the report attached, because holding a finished Run on a
119
+ cosmetic check trades a real cost for a stylistic one. The report reaches the
120
+ Run Log either way.
121
+
122
+ Before 1.0 the stable surface is the Issue body: what AgentForge writes into an
123
+ issue keeps parsing, so a Run filed by one version resumes under a later one.
124
+ Everything importable under `agentforge_framework.*` is private and changes
125
+ without notice. See
126
+ [ADR-0011](docs/adr/0011-the-issue-body-is-the-stable-surface.md).
127
+
128
+ ## Install
129
+
130
+ AgentForge publishes to no package index yet, so neither route below is
131
+ `pip install agentforge-framework`. Both put the same `agentforge` command on
132
+ your path.
133
+
134
+ The distribution is `agentforge-framework` and it imports as
135
+ `agentforge_framework`, because an older and larger project holds `agentforge`
136
+ on PyPI and imports under that name. Decorating both means the two can sit in
137
+ one environment without either shadowing the other.
138
+
139
+ Installing puts two commands on your path, `agentforge` and
140
+ `agentforge-framework`, and they are the same program. Use `agentforge`; the
141
+ whole of this README does. Reach for the long one only if you also have that
142
+ other project installed, because its 0.5.0 through 0.6.5 declare an `agentforge`
143
+ command too and whichever was installed last wins. See
144
+ [ADR-0013](docs/adr/0013-the-name-stays-the-import-path-moves.md).
145
+
146
+ **From a release wheel**, to run AgentForge against your own repositories.
147
+ Download the wheel attached to the
148
+ [latest release](https://github.com/yashmhatre/AgentForge/releases/latest) and
149
+ install the file you downloaded:
150
+
151
+ ```console
152
+ $ pip install agentforge_framework-0.2.0-py3-none-any.whl
153
+ $ agentforge --version
154
+ agentforge 0.2.0
155
+ ```
156
+
157
+ Publishing a release is a wizard rather than a checklist:
158
+ `bash scripts/publish-wizard.sh` registers the Trusted Publishers on TestPyPI
159
+ and PyPI, rehearses the whole upload path against TestPyPI, and stops before
160
+ the one irreversible step. Whoever cuts the next release runs it instead of
161
+ reading `release.yml`.
162
+
163
+ **From a clone**, to work on AgentForge itself. An editable install leaves the
164
+ command pointing at the checkout, so an edit takes effect without reinstalling,
165
+ and `[dev]` adds the pytest and ruff that CI runs:
166
+
167
+ ```console
168
+ $ git clone https://github.com/yashmhatre/AgentForge.git
169
+ $ cd AgentForge
170
+ $ pip install -e ".[dev]"
171
+ ```
172
+
173
+ What each release contains is in [CHANGELOG.md](CHANGELOG.md).
174
+
175
+ ## Requirements
176
+
177
+ - Python 3.11 or newer
178
+ - `git`, and a repository with a GitHub remote
179
+ - The [GitHub CLI](https://cli.github.com), authenticated
180
+ - A coding-agent CLI. `claude` ships supported; `codex` exists to keep the provider port honest.
181
+
182
+ AgentForge never touches a model API and handles no credentials of its own. Whatever your coding-agent CLI is already authenticated with is what a Run costs.
183
+
184
+ ## Commands
185
+
186
+ | Command | What it does |
187
+ | --- | --- |
188
+ | `agentforge plan "<task>"` | Runs the Orchestrator at the `deep` tier and files an issue carrying the plan and roster. |
189
+ | `agentforge implement <n>` | Reads Issue `<n>`, runs its Workflow on a branch, posts each Agent Result, and opens a draft PR. Add `--allow-commands` when the Workflow must execute a suite. |
190
+ | `agentforge run [<command> args]` | Runs a chore a Plugin contributes -- `agentforge run scaffold-dbt-model orders` writes the files and exits. With no command name it lists what this repository has. No issue, no Run, no model involved. |
191
+ | `agentforge unslop <file>` | Scans prose for machine-writing tells. Deterministic; no model involved. |
192
+
193
+ `agentforge run` writes into your working tree and commits nothing: review the
194
+ diff and commit it yourself. It never replaces a file that is already there,
195
+ and a Command that runs a process is bound by the same default-deny posture as
196
+ everything else (ADR-0007) -- typing the command is the grant. Which Commands
197
+ you have depends on which Plugins answer for the repository you are in, which
198
+ outside a Run is what its root markers say: a `dbt_project.yml` gets you dbt
199
+ chores. See [ADR-0019](docs/adr/0019-a-command-runs-outside-a-run-and-decides-nothing.md).
200
+
201
+ Both agent commands take `--provider` and `--tier`. A bare `--tier deep` moves every Role; `--tier implementer=deep` moves one.
202
+
203
+ Either flag beats the issue. Without one, the tier beside a Role in the Roster
204
+ table is the tier that Step runs at — the Orchestrator's judgement about how
205
+ hard this particular Task is, frozen with the rest of the plan, so a resumed Run
206
+ costs what the first invocation would have. A Role the Roster does not name runs
207
+ at its declared default. See ADR-0014.
208
+
209
+ ## Workflows
210
+
211
+ Three ship. The Orchestrator picks one while it plans and names it in the Issue
212
+ body, so a human reading the Issue knows which Roles are about to touch their
213
+ repository and in what order — the Roster table is that Workflow's Roles. A
214
+ project adds its own by dropping a definition beside them, and it becomes
215
+ selectable too.
216
+
217
+ | Workflow | Steps | For |
218
+ | --- | --- | --- |
219
+ | `feature` | implementer, tester, security, reviewer | The default: build something that was not there before. |
220
+ | `bugfix` | implementer, tester, reviewer | A fix, verified and reported on. A bug that touches auth is a Task for `feature`. |
221
+ | `review` | security, reviewer | A diff AgentForge did not write. Point it at a branch somebody else wrote. |
222
+
223
+ `review` is the only one with no Implementer. It ends at a draft pull request
224
+ like the others, because the branch already carries the commits it was pointed
225
+ at.
226
+
227
+ The Architect is in none of them. It runs `deep`, most Tasks do not need a
228
+ design pass, and one on every Run would be the most expensive default in the
229
+ project — so the Orchestrator selects it for design-heavy Tasks, and a project
230
+ that always wants one names it in a Workflow of its own. Its design reaches the
231
+ Run Log rather than the next Role's prompt, which is a limit of what a Context
232
+ Pack carries today.
233
+
234
+ A step may declare a Gate that must clear before the next one starts. None of
235
+ the shipped definitions do: a Gate suspends the Run until it clears, and a
236
+ default Workflow that stops to wait on somebody is a choice a project makes
237
+ rather than one it inherits.
238
+
239
+ ## Project configuration
240
+
241
+ `agentforge init` writes `.agentforge/config.yaml` for the repository you run
242
+ it in. It reports what it found -- the languages git knows about, the Plugins
243
+ your root markers answer for, the suite it detected and the evidence for it --
244
+ and writes the two things AgentForge reads. It refuses before creating anything
245
+ if the repository has no GitHub remote, because ADR-0002 makes that a
246
+ precondition for every Run. Re-running never clobbers a config you have edited:
247
+ it reports what differs and writes nothing, and `--force` replaces it.
248
+
249
+ The file is not a precondition. Without one, the documented Provider capability
250
+ defaults are Claude `native` and every other Provider `fragment`, and the
251
+ `tests` Gate runs `pytest`.
252
+
253
+ ```yaml
254
+ providers:
255
+ claude:
256
+ capability_tier: native
257
+ codex:
258
+ capability_tier: fragment
259
+
260
+ gates:
261
+ tests:
262
+ suite: pytest
263
+ ```
264
+
265
+ There is no `plugins:` key. Which Plugins answer for a repository is decided per
266
+ Run from the frozen plan's blast radius (ADR-0016), so a repository-level list
267
+ would be inert and misleading -- init prints what it detected instead. The file
268
+ holds what AgentForge reads and nothing else; see
269
+ [ADR-0020](docs/adr/0020-the-config-file-holds-only-what-is-read.md).
270
+
271
+ A Role declares the skills it needs. A native Provider receives them through its
272
+ CLI's skill mechanism; a fragment Provider receives the same `SKILL.md` text
273
+ appended to the prompt. Capability Tiers are configuration, never the result of
274
+ probing an installed CLI.
275
+
276
+ Most skills are vendored third party (see `skills/MANIFEST.yaml`). Two are
277
+ AgentForge's own. `grill-with-docs` is the interview and the writing-down as one
278
+ job, built out of `grilling` and `domain-modeling`: a native Provider is named
279
+ the composite and fans it out itself, and a fragment Provider gets the composite
280
+ and both parts inlined, because it has no mechanism to fan out with.
281
+ `write-plainly` composes nothing — it is derived from what the three `unslop`
282
+ scanners enforce, since upstream keeps its own writing doctrine in a
283
+ `references/` tree this bundle does not vendor.
284
+
285
+ A Workflow step declaring `gate: tests` runs `gates.tests.suite` and holds the
286
+ Run when it fails, posting the output to the Issue. The default is `pytest`. A
287
+ string is split the way a shell would split it; a list is taken as written,
288
+ which is how a path with a space in it gets named. The Gate runs the suite
289
+ itself rather than believing what the Tester said about it, and it needs no
290
+ `--allow-commands`: ADR-0007 governs what a Role may run, and this is the
291
+ project's own declared suite rather than a command a model chose.
292
+
293
+ A suite that ran and failed suspends the Run — the commit that fixes it clears
294
+ the Gate. A suite that could not be run at all halts the Run, because there is
295
+ nothing there for a later Run to clear.
296
+
297
+ `gate: security` needs no configuration. It reads the Security Agent's Findings
298
+ out of the Run Log: none of them clears it, and any of them suspends the Run and
299
+ marks the Security Step to run again, so the audit that resumes reads the fixed
300
+ code rather than the verdict about the old code.
301
+
302
+ ## Project layout
303
+
304
+ - `core/` — the contracts, the command runner, the GitHub boundary, the plan format, and the run loop.
305
+ - `agents/` — the Role definitions and their prompts.
306
+ - `providers/` — one adapter per coding-agent CLI.
307
+ - `workflows/` — the three shipped Workflow definitions.
308
+ - `context/` — the Context Pack resolver and its per-language Extractors.
309
+ - `plugins/` — one package per technology, contributing the conventions a repository is held to, the readers its files are read with, and the Gate kinds its Workflows can name; `core/registry.py` decides which are active for a Run.
310
+ - `skills/` — vendored third-party skills. Never edited in place; see `skills/MANIFEST.yaml`.
311
+
312
+ Read [`CONTEXT.md`](CONTEXT.md) before writing anything, and [`docs/adr/`](docs/adr/) for the decisions that constrain it.
313
+
314
+ ## Tests
315
+
316
+ ```console
317
+ $ pip install -e ".[dev]"
318
+ $ pytest
319
+ ```
320
+
321
+ The suite runs offline: no network, no GitHub account, and no coding-agent CLI installed. One fake command runner stands in for every external process.