evoloop-cli 0.1.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 (104) hide show
  1. evoloop_cli-0.1.0/.gitignore +8 -0
  2. evoloop_cli-0.1.0/LICENSE +202 -0
  3. evoloop_cli-0.1.0/PKG-INFO +213 -0
  4. evoloop_cli-0.1.0/README.md +191 -0
  5. evoloop_cli-0.1.0/_bundled_skills/evoloop-constitution/SKILL.md +59 -0
  6. evoloop_cli-0.1.0/_bundled_skills/evoloop-constitution/references/writing-guide.md +89 -0
  7. evoloop_cli-0.1.0/_bundled_skills/evoloop-constitution/templates/config.yaml +52 -0
  8. evoloop_cli-0.1.0/_bundled_skills/evoloop-constitution/templates/constitution.md +39 -0
  9. evoloop_cli-0.1.0/_bundled_skills/evoloop-evaluate/SKILL.md +85 -0
  10. evoloop_cli-0.1.0/_bundled_skills/evoloop-evaluate/schemas/parsed_report.schema.json +170 -0
  11. evoloop_cli-0.1.0/_bundled_skills/evoloop-evaluate/scripts/parse_junit_report.py +311 -0
  12. evoloop_cli-0.1.0/_bundled_skills/evoloop-evaluate/scripts/parse_pytest_report.py +276 -0
  13. evoloop_cli-0.1.0/_bundled_skills/evoloop-evaluate/scripts/parse_report.py +101 -0
  14. evoloop_cli-0.1.0/_bundled_skills/evoloop-evaluate/scripts/update_eval_index.py +111 -0
  15. evoloop_cli-0.1.0/_bundled_skills/evoloop-evaluate/scripts/validate_parsed_report.py +178 -0
  16. evoloop_cli-0.1.0/_bundled_skills/evoloop-evaluate/templates/analysis.md +51 -0
  17. evoloop_cli-0.1.0/_bundled_skills/evoloop-evaluate/templates/progress.md +42 -0
  18. evoloop_cli-0.1.0/_bundled_skills/evoloop-evaluate/templates/tasks.md +34 -0
  19. evoloop_cli-0.1.0/_bundled_skills/evoloop-evolve/SKILL.md +76 -0
  20. evoloop_cli-0.1.0/_bundled_skills/evoloop-evolve/scripts/evolve_state.py +333 -0
  21. evoloop_cli-0.1.0/_bundled_skills/evoloop-implement/SKILL.md +57 -0
  22. evoloop_cli-0.1.0/_bundled_skills/evoloop-implement/scripts/check_scope.py +154 -0
  23. evoloop_cli-0.1.0/_bundled_skills/evoloop-implement/scripts/commit_section.py +78 -0
  24. evoloop_cli-0.1.0/_bundled_skills/evoloop-init/SKILL.md +95 -0
  25. evoloop_cli-0.1.0/_bundled_skills/evoloop-init/scripts/scaffold_evals.py +546 -0
  26. evoloop_cli-0.1.0/_bundled_skills/evoloop-init/templates/common/evals/datasets/domain_flows.yaml +33 -0
  27. evoloop_cli-0.1.0/_bundled_skills/evoloop-init/templates/common/evaluations/README.md +9 -0
  28. evoloop_cli-0.1.0/_bundled_skills/evoloop-init/templates/java/src/test/java/__PACKAGE_PATH__/evals/AgentAdapter.java +13 -0
  29. evoloop_cli-0.1.0/_bundled_skills/evoloop-init/templates/java/src/test/java/__PACKAGE_PATH__/evals/AgenticFlowEvalTest.java +71 -0
  30. evoloop_cli-0.1.0/_bundled_skills/evoloop-init/templates/java/src/test/java/__PACKAGE_PATH__/evals/DeterministicEvaluators.java +174 -0
  31. evoloop_cli-0.1.0/_bundled_skills/evoloop-init/templates/java/src/test/java/__PACKAGE_PATH__/evals/EvalFrameworkTest.java +45 -0
  32. evoloop_cli-0.1.0/_bundled_skills/evoloop-init/templates/java/src/test/java/__PACKAGE_PATH__/evals/FlowRunResult.java +25 -0
  33. evoloop_cli-0.1.0/_bundled_skills/evoloop-init/templates/python/evals/__init__.py +1 -0
  34. evoloop_cli-0.1.0/_bundled_skills/evoloop-init/templates/python/evals/adapter.py +63 -0
  35. evoloop_cli-0.1.0/_bundled_skills/evoloop-init/templates/python/evals/deepagents_adapter.py +223 -0
  36. evoloop_cli-0.1.0/_bundled_skills/evoloop-init/templates/python/evals/evaluators/__init__.py +1 -0
  37. evoloop_cli-0.1.0/_bundled_skills/evoloop-init/templates/python/evals/evaluators/deterministic.py +234 -0
  38. evoloop_cli-0.1.0/_bundled_skills/evoloop-init/templates/python/evals/evaluators/llm_judge.py +189 -0
  39. evoloop_cli-0.1.0/_bundled_skills/evoloop-init/templates/python/evals/fakes.py +26 -0
  40. evoloop_cli-0.1.0/_bundled_skills/evoloop-init/templates/python/evals/harness.py +100 -0
  41. evoloop_cli-0.1.0/_bundled_skills/evoloop-init/templates/python/tests/conftest.py +38 -0
  42. evoloop_cli-0.1.0/_bundled_skills/evoloop-init/templates/python/tests/test_agentic_flows.py +36 -0
  43. evoloop_cli-0.1.0/_bundled_skills/evoloop-init/templates/python/tests/test_eval_framework.py +175 -0
  44. evoloop_cli-0.1.0/_bundled_skills/evoloop-new/SKILL.md +125 -0
  45. evoloop_cli-0.1.0/_bundled_skills/evoloop-new/scripts/scaffold_agent.py +911 -0
  46. evoloop_cli-0.1.0/_bundled_skills/evoloop-new/templates/common/.evoloop/constitution.md +34 -0
  47. evoloop_cli-0.1.0/_bundled_skills/evoloop-new/templates/common/.gitignore +22 -0
  48. evoloop_cli-0.1.0/_bundled_skills/evoloop-new/templates/common/AGENTS.md +17 -0
  49. evoloop_cli-0.1.0/_bundled_skills/evoloop-new/templates/common/README.md +83 -0
  50. evoloop_cli-0.1.0/_bundled_skills/evoloop-new/templates/common/skills/__DOMAIN__/SKILL.md +21 -0
  51. evoloop_cli-0.1.0/_bundled_skills/evoloop-new/templates/java/eval_wiring/src/test/java/__PACKAGE_PATH__/evals/AgenticFlowEvalTest.java +113 -0
  52. evoloop_cli-0.1.0/_bundled_skills/evoloop-new/templates/java/eval_wiring/src/test/java/__PACKAGE_PATH__/evals/EvalFrameworkTest.java +85 -0
  53. evoloop_cli-0.1.0/_bundled_skills/evoloop-new/templates/java/eval_wiring/src/test/java/__PACKAGE_PATH__/evals/Fake__DOMAIN_PASCAL__Client.java +37 -0
  54. evoloop_cli-0.1.0/_bundled_skills/evoloop-new/templates/java/frameworks/custom/src/main/java/__PACKAGE_PATH__/Application.java +46 -0
  55. evoloop_cli-0.1.0/_bundled_skills/evoloop-new/templates/java/frameworks/custom/src/main/java/__PACKAGE_PATH__/OpenAiCompatibleRunner.java +433 -0
  56. evoloop_cli-0.1.0/_bundled_skills/evoloop-new/templates/java/frameworks/custom/src/main/java/__PACKAGE_PATH__/__DOMAIN_PASCAL__Agent.java +125 -0
  57. evoloop_cli-0.1.0/_bundled_skills/evoloop-new/templates/java/frameworks/langchain4j/src/main/java/__PACKAGE_PATH__/Application.java +46 -0
  58. evoloop_cli-0.1.0/_bundled_skills/evoloop-new/templates/java/frameworks/langchain4j/src/main/java/__PACKAGE_PATH__/__DOMAIN_PASCAL__Agent.java +163 -0
  59. evoloop_cli-0.1.0/_bundled_skills/evoloop-new/templates/java/frameworks/langchain4j/src/main/java/__PACKAGE_PATH__/__DOMAIN_PASCAL__Tools.java +18 -0
  60. evoloop_cli-0.1.0/_bundled_skills/evoloop-new/templates/java/frameworks/micronaut/src/main/java/__PACKAGE_PATH__/Application.java +15 -0
  61. evoloop_cli-0.1.0/_bundled_skills/evoloop-new/templates/java/frameworks/micronaut/src/main/java/__PACKAGE_PATH__/__DOMAIN_PASCAL__Agent.java +167 -0
  62. evoloop_cli-0.1.0/_bundled_skills/evoloop-new/templates/java/frameworks/micronaut/src/main/java/__PACKAGE_PATH__/__DOMAIN_PASCAL__Controller.java +41 -0
  63. evoloop_cli-0.1.0/_bundled_skills/evoloop-new/templates/java/frameworks/micronaut/src/main/java/__PACKAGE_PATH__/__DOMAIN_PASCAL__Factory.java +32 -0
  64. evoloop_cli-0.1.0/_bundled_skills/evoloop-new/templates/java/frameworks/micronaut/src/main/java/__PACKAGE_PATH__/__DOMAIN_PASCAL__Tools.java +20 -0
  65. evoloop_cli-0.1.0/_bundled_skills/evoloop-new/templates/java/frameworks/micronaut/src/main/resources/application.yml +17 -0
  66. evoloop_cli-0.1.0/_bundled_skills/evoloop-new/templates/java/frameworks/spring-ai/src/main/java/__PACKAGE_PATH__/Application.java +17 -0
  67. evoloop_cli-0.1.0/_bundled_skills/evoloop-new/templates/java/frameworks/spring-ai/src/main/java/__PACKAGE_PATH__/__DOMAIN_PASCAL__Agent.java +159 -0
  68. evoloop_cli-0.1.0/_bundled_skills/evoloop-new/templates/java/frameworks/spring-ai/src/main/java/__PACKAGE_PATH__/__DOMAIN_PASCAL__Config.java +32 -0
  69. evoloop_cli-0.1.0/_bundled_skills/evoloop-new/templates/java/frameworks/spring-ai/src/main/java/__PACKAGE_PATH__/__DOMAIN_PASCAL__Controller.java +40 -0
  70. evoloop_cli-0.1.0/_bundled_skills/evoloop-new/templates/java/frameworks/spring-ai/src/main/java/__PACKAGE_PATH__/__DOMAIN_PASCAL__Tools.java +25 -0
  71. evoloop_cli-0.1.0/_bundled_skills/evoloop-new/templates/java/frameworks/spring-ai/src/main/resources/application.yml +19 -0
  72. evoloop_cli-0.1.0/_bundled_skills/evoloop-new/templates/java/gradle/build_custom.gradle +33 -0
  73. evoloop_cli-0.1.0/_bundled_skills/evoloop-new/templates/java/gradle/build_langchain4j.gradle +40 -0
  74. evoloop_cli-0.1.0/_bundled_skills/evoloop-new/templates/java/gradle/build_micronaut.gradle +52 -0
  75. evoloop_cli-0.1.0/_bundled_skills/evoloop-new/templates/java/gradle/build_spring-ai.gradle +45 -0
  76. evoloop_cli-0.1.0/_bundled_skills/evoloop-new/templates/java/gradle/settings.gradle +1 -0
  77. evoloop_cli-0.1.0/_bundled_skills/evoloop-new/templates/java/maven/pom_custom.xml +57 -0
  78. evoloop_cli-0.1.0/_bundled_skills/evoloop-new/templates/java/maven/pom_langchain4j.xml +87 -0
  79. evoloop_cli-0.1.0/_bundled_skills/evoloop-new/templates/java/maven/pom_micronaut.xml +101 -0
  80. evoloop_cli-0.1.0/_bundled_skills/evoloop-new/templates/java/maven/pom_spring-ai.xml +61 -0
  81. evoloop_cli-0.1.0/_bundled_skills/evoloop-new/templates/java/src/main/java/__PACKAGE_PATH__/ConversationMemory.java +36 -0
  82. evoloop_cli-0.1.0/_bundled_skills/evoloop-new/templates/java/src/main/java/__PACKAGE_PATH__/Default__DOMAIN_PASCAL__Client.java +9 -0
  83. evoloop_cli-0.1.0/_bundled_skills/evoloop-new/templates/java/src/main/java/__PACKAGE_PATH__/DomainRecord.java +10 -0
  84. evoloop_cli-0.1.0/_bundled_skills/evoloop-new/templates/java/src/main/java/__PACKAGE_PATH__/TurnOutcome.java +15 -0
  85. evoloop_cli-0.1.0/_bundled_skills/evoloop-new/templates/java/src/main/java/__PACKAGE_PATH__/__DOMAIN_PASCAL__Client.java +8 -0
  86. evoloop_cli-0.1.0/_bundled_skills/evoloop-new/templates/python/eval_wiring/evals/fakes.py +22 -0
  87. evoloop_cli-0.1.0/_bundled_skills/evoloop-new/templates/python/eval_wiring/evals/harness_custom.py +186 -0
  88. evoloop_cli-0.1.0/_bundled_skills/evoloop-new/templates/python/eval_wiring/evals/harness_deepagents.py +100 -0
  89. evoloop_cli-0.1.0/_bundled_skills/evoloop-new/templates/python/eval_wiring/tests/test_eval_framework.py +196 -0
  90. evoloop_cli-0.1.0/_bundled_skills/evoloop-new/templates/python/pyproject.toml +18 -0
  91. evoloop_cli-0.1.0/_bundled_skills/evoloop-new/templates/python/src/__PACKAGE__/__init__.py +13 -0
  92. evoloop_cli-0.1.0/_bundled_skills/evoloop-new/templates/python/src/__PACKAGE__/__main__.py +6 -0
  93. evoloop_cli-0.1.0/_bundled_skills/evoloop-new/templates/python/src/__PACKAGE__/agent_custom.py +209 -0
  94. evoloop_cli-0.1.0/_bundled_skills/evoloop-new/templates/python/src/__PACKAGE__/agent_deepagents.py +61 -0
  95. evoloop_cli-0.1.0/_bundled_skills/evoloop-new/templates/python/src/__PACKAGE__/cli.py +71 -0
  96. evoloop_cli-0.1.0/_bundled_skills/evoloop-new/templates/python/src/__PACKAGE__/client.py +31 -0
  97. evoloop_cli-0.1.0/_bundled_skills/evoloop-scenarios/SKILL.md +49 -0
  98. evoloop_cli-0.1.0/_bundled_skills/evoloop-scenarios/scripts/validate_scenarios.py +261 -0
  99. evoloop_cli-0.1.0/_bundled_skills/evoloop-scenarios/templates/scenario_schema.md +49 -0
  100. evoloop_cli-0.1.0/evoloop_cli/__init__.py +3 -0
  101. evoloop_cli-0.1.0/evoloop_cli/__main__.py +10 -0
  102. evoloop_cli-0.1.0/evoloop_cli/cli.py +331 -0
  103. evoloop_cli-0.1.0/hatch_build.py +84 -0
  104. evoloop_cli-0.1.0/pyproject.toml +52 -0
@@ -0,0 +1,8 @@
1
+ dist/
2
+ build/
3
+ *.egg-info/
4
+ _bundled_skills/
5
+ __pycache__/
6
+ *.py[cod]
7
+ .pytest_cache/
8
+ .venv/
@@ -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,213 @@
1
+ Metadata-Version: 2.5
2
+ Name: evoloop-cli
3
+ Version: 0.1.0
4
+ Summary: Minimalistic CLI to install and update Evoloop skills in .agents/skills.
5
+ Project-URL: Homepage, https://github.com/NachoBrito/evoloop
6
+ Project-URL: Repository, https://github.com/NachoBrito/evoloop
7
+ Project-URL: Issues, https://github.com/NachoBrito/evoloop/issues
8
+ Author: Nacho Brito
9
+ License-Expression: Apache-2.0
10
+ Keywords: ai-agents,cli,evaluation,evoloop,skills
11
+ Classifier: Development Status :: 3 - Alpha
12
+ Classifier: Environment :: Console
13
+ Classifier: Intended Audience :: Developers
14
+ Classifier: Programming Language :: Python :: 3
15
+ Classifier: Programming Language :: Python :: 3.11
16
+ Classifier: Programming Language :: Python :: 3.12
17
+ Classifier: Programming Language :: Python :: 3.13
18
+ Classifier: Topic :: Software Development :: Quality Assurance
19
+ Classifier: Topic :: Software Development :: Testing
20
+ Requires-Python: >=3.11
21
+ Description-Content-Type: text/markdown
22
+
23
+ # Evoloop Command-Line Interface (`evoloop-cli`)
24
+
25
+ `evoloop-cli` is a minimalistic Python Command-Line Interface (CLI) that bootstraps Evoloop in any project.
26
+ It has zero third-party runtime dependencies and runs on Python 3.11 or newer.
27
+
28
+ When you run `evoloop init`, the tool does two things:
29
+
30
+ 1. Creates `.agents/skills` if the directory does not exist.
31
+ 2. Copies or updates every Evoloop skill in `.agents/skills`.
32
+
33
+ The tool leaves non-Evoloop skills in `.agents/skills` intact.
34
+
35
+ ---
36
+
37
+ ## Prerequisites
38
+
39
+ Verify that you have these tools before you install `evoloop-cli`:
40
+
41
+ - **Python 3.11 or newer** (`python3 --version`).
42
+ - **[uv](https://docs.astral.sh/uv/)** (`uv --version`) for global tool installation or one-off execution. You can also use `pipx` or `pip`.
43
+
44
+ ---
45
+
46
+ ## Install `evoloop-cli`
47
+
48
+ ### Option 1: Install from GitHub with `uv` (Recommended)
49
+
50
+ Install the `evoloop` command globally from a GitHub release tag.
51
+ Replace `v0.1.0` with the target release tag:
52
+
53
+ ```bash
54
+ uv tool install evoloop-cli --from "git+https://github.com/NachoBrito/evoloop.git@v0.1.0#subdirectory=cli"
55
+ ```
56
+
57
+ To track the `main` branch instead of a release tag, omit `@v0.1.0`:
58
+
59
+ ```bash
60
+ uv tool install evoloop-cli --from "git+https://github.com/NachoBrito/evoloop.git#subdirectory=cli"
61
+ ```
62
+
63
+ Upgrade an installed tool to the latest version:
64
+
65
+ ```bash
66
+ uv tool upgrade evoloop-cli
67
+ ```
68
+
69
+ ### Option 2: Run Without Installation (`uvx`)
70
+
71
+ Run `evoloop` one time without a global install:
72
+
73
+ ```bash
74
+ uvx --from "git+https://github.com/NachoBrito/evoloop.git#subdirectory=cli" evoloop init
75
+ ```
76
+
77
+ ### Option 3: Install from PyPI (After Publishing)
78
+
79
+ After you publish `evoloop-cli` to the Python Package Index (PyPI), users install it with one command:
80
+
81
+ ```bash
82
+ uv tool install evoloop-cli
83
+ ```
84
+
85
+ Users can also install it with `pipx` or `pip`:
86
+
87
+ ```bash
88
+ pipx install evoloop-cli
89
+ # Or inside a virtual environment:
90
+ pip install evoloop-cli
91
+ ```
92
+
93
+ ### Option 4: Install from a Local Clone
94
+
95
+ Install the CLI globally from a local clone of the `evoloop` repository:
96
+
97
+ ```bash
98
+ uv tool install ./cli
99
+ ```
100
+
101
+ For local development with live edits to `cli/` and `.agents/skills/`, use an editable install:
102
+
103
+ ```bash
104
+ uv tool install --editable ./cli
105
+ ```
106
+
107
+ Or run the script directly without installation:
108
+
109
+ ```bash
110
+ python3 cli/evoloop_cli/cli.py init /path/to/your-project
111
+ ```
112
+
113
+ ---
114
+
115
+ ## Verify Installation
116
+
117
+ Run `evoloop version` to confirm that the CLI is on your `PATH`:
118
+
119
+ ```bash
120
+ evoloop version
121
+ ```
122
+
123
+ List the bundled Evoloop skills:
124
+
125
+ ```bash
126
+ evoloop list
127
+ ```
128
+
129
+ ---
130
+
131
+ ## Usage
132
+
133
+ ### Bootstrap a Project
134
+
135
+ Install or update every Evoloop skill in the current directory:
136
+
137
+ ```bash
138
+ evoloop init
139
+ ```
140
+
141
+ You can also pass `--here` or a target directory path.
142
+ If the target directory does not exist, the tool creates it:
143
+
144
+ ```bash
145
+ evoloop init --here
146
+ evoloop init my-new-agent
147
+ ```
148
+
149
+ ### Update Skills
150
+
151
+ Update an existing repository after you upgrade `evoloop-cli`:
152
+
153
+ ```bash
154
+ evoloop update
155
+ ```
156
+
157
+ `evoloop update` is an alias of `evoloop init`.
158
+ The tool installs missing skills, updates changed skills, and skips up-to-date skills.
159
+
160
+ ### Preview Changes
161
+
162
+ Use `--dry-run` to inspect planned changes without file modifications:
163
+
164
+ ```bash
165
+ evoloop init --dry-run
166
+ ```
167
+
168
+ ### Install to a Custom Skills Directory
169
+
170
+ Use `--skills-dir` to install into a custom or global skills directory:
171
+
172
+ ```bash
173
+ evoloop init --skills-dir ~/.agents/skills
174
+ ```
175
+
176
+ ### Command Reference
177
+
178
+ | Command | Purpose |
179
+ | :--- | :--- |
180
+ | `evoloop init [target]` | Creates `.agents/skills` if needed and installs or updates every Evoloop skill. |
181
+ | `evoloop update [target]` | Updates every Evoloop skill in `.agents/skills`. |
182
+ | `evoloop list` | Lists every bundled Evoloop skill. |
183
+ | `evoloop version` | Prints the installed `evoloop-cli` version. |
184
+
185
+ | Option (`init` and `update`) | Purpose |
186
+ | :--- | :--- |
187
+ | `--here` | Targets the current working directory. |
188
+ | `--skills-dir PATH` | Overrides the destination directory (default: `.agents/skills`). |
189
+ | `--source PATH` | Reads skills from a custom local directory instead of the bundled skills. |
190
+ | `--dry-run` | Prints planned actions without writing files. |
191
+
192
+ ---
193
+
194
+ ## Build Distributions Locally
195
+
196
+ Build source distribution (`.tar.gz`) and wheel (`.whl`) archives inside `cli/dist/`:
197
+
198
+ ```bash
199
+ uv build cli/
200
+ ```
201
+
202
+ The custom Hatchling build hook in [`hatch_build.py`](./hatch_build.py) packages `../.agents/skills/` into both archives.
203
+ This approach keeps `.agents/skills/` as the single source of truth with zero duplicated skill files in Git.
204
+
205
+ ---
206
+
207
+ ## Run CLI Tests
208
+
209
+ Run the unit tests for `evoloop-cli`:
210
+
211
+ ```bash
212
+ uv run --with pytest --with hatchling pytest cli/tests/test_cli.py
213
+ ```
@@ -0,0 +1,191 @@
1
+ # Evoloop Command-Line Interface (`evoloop-cli`)
2
+
3
+ `evoloop-cli` is a minimalistic Python Command-Line Interface (CLI) that bootstraps Evoloop in any project.
4
+ It has zero third-party runtime dependencies and runs on Python 3.11 or newer.
5
+
6
+ When you run `evoloop init`, the tool does two things:
7
+
8
+ 1. Creates `.agents/skills` if the directory does not exist.
9
+ 2. Copies or updates every Evoloop skill in `.agents/skills`.
10
+
11
+ The tool leaves non-Evoloop skills in `.agents/skills` intact.
12
+
13
+ ---
14
+
15
+ ## Prerequisites
16
+
17
+ Verify that you have these tools before you install `evoloop-cli`:
18
+
19
+ - **Python 3.11 or newer** (`python3 --version`).
20
+ - **[uv](https://docs.astral.sh/uv/)** (`uv --version`) for global tool installation or one-off execution. You can also use `pipx` or `pip`.
21
+
22
+ ---
23
+
24
+ ## Install `evoloop-cli`
25
+
26
+ ### Option 1: Install from GitHub with `uv` (Recommended)
27
+
28
+ Install the `evoloop` command globally from a GitHub release tag.
29
+ Replace `v0.1.0` with the target release tag:
30
+
31
+ ```bash
32
+ uv tool install evoloop-cli --from "git+https://github.com/NachoBrito/evoloop.git@v0.1.0#subdirectory=cli"
33
+ ```
34
+
35
+ To track the `main` branch instead of a release tag, omit `@v0.1.0`:
36
+
37
+ ```bash
38
+ uv tool install evoloop-cli --from "git+https://github.com/NachoBrito/evoloop.git#subdirectory=cli"
39
+ ```
40
+
41
+ Upgrade an installed tool to the latest version:
42
+
43
+ ```bash
44
+ uv tool upgrade evoloop-cli
45
+ ```
46
+
47
+ ### Option 2: Run Without Installation (`uvx`)
48
+
49
+ Run `evoloop` one time without a global install:
50
+
51
+ ```bash
52
+ uvx --from "git+https://github.com/NachoBrito/evoloop.git#subdirectory=cli" evoloop init
53
+ ```
54
+
55
+ ### Option 3: Install from PyPI (After Publishing)
56
+
57
+ After you publish `evoloop-cli` to the Python Package Index (PyPI), users install it with one command:
58
+
59
+ ```bash
60
+ uv tool install evoloop-cli
61
+ ```
62
+
63
+ Users can also install it with `pipx` or `pip`:
64
+
65
+ ```bash
66
+ pipx install evoloop-cli
67
+ # Or inside a virtual environment:
68
+ pip install evoloop-cli
69
+ ```
70
+
71
+ ### Option 4: Install from a Local Clone
72
+
73
+ Install the CLI globally from a local clone of the `evoloop` repository:
74
+
75
+ ```bash
76
+ uv tool install ./cli
77
+ ```
78
+
79
+ For local development with live edits to `cli/` and `.agents/skills/`, use an editable install:
80
+
81
+ ```bash
82
+ uv tool install --editable ./cli
83
+ ```
84
+
85
+ Or run the script directly without installation:
86
+
87
+ ```bash
88
+ python3 cli/evoloop_cli/cli.py init /path/to/your-project
89
+ ```
90
+
91
+ ---
92
+
93
+ ## Verify Installation
94
+
95
+ Run `evoloop version` to confirm that the CLI is on your `PATH`:
96
+
97
+ ```bash
98
+ evoloop version
99
+ ```
100
+
101
+ List the bundled Evoloop skills:
102
+
103
+ ```bash
104
+ evoloop list
105
+ ```
106
+
107
+ ---
108
+
109
+ ## Usage
110
+
111
+ ### Bootstrap a Project
112
+
113
+ Install or update every Evoloop skill in the current directory:
114
+
115
+ ```bash
116
+ evoloop init
117
+ ```
118
+
119
+ You can also pass `--here` or a target directory path.
120
+ If the target directory does not exist, the tool creates it:
121
+
122
+ ```bash
123
+ evoloop init --here
124
+ evoloop init my-new-agent
125
+ ```
126
+
127
+ ### Update Skills
128
+
129
+ Update an existing repository after you upgrade `evoloop-cli`:
130
+
131
+ ```bash
132
+ evoloop update
133
+ ```
134
+
135
+ `evoloop update` is an alias of `evoloop init`.
136
+ The tool installs missing skills, updates changed skills, and skips up-to-date skills.
137
+
138
+ ### Preview Changes
139
+
140
+ Use `--dry-run` to inspect planned changes without file modifications:
141
+
142
+ ```bash
143
+ evoloop init --dry-run
144
+ ```
145
+
146
+ ### Install to a Custom Skills Directory
147
+
148
+ Use `--skills-dir` to install into a custom or global skills directory:
149
+
150
+ ```bash
151
+ evoloop init --skills-dir ~/.agents/skills
152
+ ```
153
+
154
+ ### Command Reference
155
+
156
+ | Command | Purpose |
157
+ | :--- | :--- |
158
+ | `evoloop init [target]` | Creates `.agents/skills` if needed and installs or updates every Evoloop skill. |
159
+ | `evoloop update [target]` | Updates every Evoloop skill in `.agents/skills`. |
160
+ | `evoloop list` | Lists every bundled Evoloop skill. |
161
+ | `evoloop version` | Prints the installed `evoloop-cli` version. |
162
+
163
+ | Option (`init` and `update`) | Purpose |
164
+ | :--- | :--- |
165
+ | `--here` | Targets the current working directory. |
166
+ | `--skills-dir PATH` | Overrides the destination directory (default: `.agents/skills`). |
167
+ | `--source PATH` | Reads skills from a custom local directory instead of the bundled skills. |
168
+ | `--dry-run` | Prints planned actions without writing files. |
169
+
170
+ ---
171
+
172
+ ## Build Distributions Locally
173
+
174
+ Build source distribution (`.tar.gz`) and wheel (`.whl`) archives inside `cli/dist/`:
175
+
176
+ ```bash
177
+ uv build cli/
178
+ ```
179
+
180
+ The custom Hatchling build hook in [`hatch_build.py`](./hatch_build.py) packages `../.agents/skills/` into both archives.
181
+ This approach keeps `.agents/skills/` as the single source of truth with zero duplicated skill files in Git.
182
+
183
+ ---
184
+
185
+ ## Run CLI Tests
186
+
187
+ Run the unit tests for `evoloop-cli`:
188
+
189
+ ```bash
190
+ uv run --with pytest --with hatchling pytest cli/tests/test_cli.py
191
+ ```
@@ -0,0 +1,59 @@
1
+ ---
2
+ name: evoloop-constitution
3
+ description: Establish project-wide agent invariants, prompt hygiene budgets, protected evaluation paths, and self-evolving approval boundaries in `.evoloop/constitution.md` and `.evoloop/config.yaml`. Use before initializing or running evaluation-driven agent optimization loops.
4
+ ---
5
+
6
+ # Evoloop Constitution
7
+
8
+ Establish or refine the binding governance rules for an agentic project across its entire lifecycle. This skill creates and maintains two durable, versioned artifacts:
9
+
10
+ - `.evoloop/constitution.md` — human- and agent-readable **Domain Invariants**, **Prompt & Memory Hygiene Rules**, and **Evaluation Integrity Rules**.
11
+ - `.evoloop/config.yaml` — machine-readable paths, test commands, prompt budgets, protected/evaluator path classifications, and circuit-breaker / approval settings consumed by all `evoloop-*` scripts.
12
+
13
+ > **Role in Every Journey:**
14
+ > - **Brownfield (existing repo):** Run `evoloop-constitution` **first**, before `evoloop-init`, to capture existing production invariants and exact repository paths.
15
+ > - **Greenfield (new repo):** `evoloop-new` seeds `.evoloop/constitution.md` and `.evoloop/config.yaml` automatically; run `evoloop-constitution` right after scaffolding (before expanding scenarios) to replace generic defaults with domain-specific invariants.
16
+ > - **Ongoing evolution:** Re-run `evoloop-constitution` whenever tools, policies, or edge cases change so prompts, scenarios, and evaluators evolve from a single source of truth.
17
+
18
+ ## Why Constitution Quality Matters Downstream
19
+
20
+ Every downstream skill reads `.evoloop/constitution.md` and `.evoloop/config.yaml` first. Concrete, falsifiable invariants directly elevate generated artifact quality:
21
+ - **`evoloop-scenarios`:** Translates each invariant into objective `grounded_any_of` tokens, anti-hallucination `forbidden_substrings`, `turn_assertions`, and deterministic `rubric_criteria` instead of brittle synonym lists.
22
+ - **`evoloop-evaluate`:** Grounds 4-bucket root-cause triage (`analysis.md`) in explicit invariants and requires every item in `tasks.md` to cite which invariant it upholds and confirm it violates none.
23
+ - **`evoloop-implement`:** Keeps `SYSTEM_PROMPT`, `AGENTS.md`, and `SKILL.md` concise via `budgets.max_system_prompt_words` and *refactor-over-append* discipline, while `check_scope.py` and `commit_section.py` enforce protected/evaluator path guards and `Eval:` git trailers.
24
+ - **`evoloop-evolve`:** Enforces `.evolve-lock` human-approval pauses and circuit breakers so unattended loops optimize genuine agent quality rather than weakening tests (*reward hacking*).
25
+
26
+ ## Writing Style Requirement
27
+
28
+ Before writing or editing any human-targeted document or code comment, read [`references/writing-guide.md`](./references/writing-guide.md). Apply its Simplified Technical English rules (active voice, simple tenses, imperative instructions, ≤ 20-word procedural and ≤ 25-word descriptive sentences, ≤ 3-word noun clusters, no Latin abbreviations, no slashes for `and`/`or`, no semicolons joining clauses, no parenthetical side thoughts, and properly placed `CAUTION` notices) to:
29
+ - `.evoloop/constitution.md`
30
+ - Comments in `.evoloop/config.yaml`
31
+ - Any other generated or edited project documentation and code comments
32
+
33
+ ## Workflow
34
+
35
+ ### Step 1: Inspect the Target Project
36
+ Read existing project documentation and code to avoid asking redundant questions:
37
+ - `AGENTS.md`, `README.md`, `pyproject.toml`, `skills/**/SKILL.md`
38
+ - Existing agent entry point(s) (e.g., `src/**/agent*.py`) and tool definitions
39
+ - Existing `evals/`, `tests/`, or `evaluations/` directories (if any)
40
+
41
+ ### Step 2: Gather Missing Governance Decisions
42
+ If any of the following cannot be inferred from the repo, ask the user concisely:
43
+ 1. **Domain Invariants:** What must the agent *always* or *never* do? (e.g., never hallucinate tool outputs, never manually convert units, always ask for clarification on vague inputs, strict scope boundaries).
44
+ 2. **Eager vs. Progressive Context:** Which invariants must stay in `system_prompt` (high-attention eager context) vs. `AGENTS.md` / `SKILL.md`?
45
+ 3. **Prompt Budget:** Target word ceiling for `system_prompt` (default: `120` words) to prevent `NEVER`-clause bloat.
46
+ 4. **Approval Boundary in Evolve Mode:** Default is pausing for human approval on **both** `Scenario Fixes` (`evals/datasets/**`) and `Evaluator/Judge` changes (`evals/evaluators/**`). Confirm whether to keep this default.
47
+ 5. **Judge Model:** Recommend configuring a separate, stronger `EVAL_JUDGE_MODEL` (via env var) when using a small local model for the agent under test.
48
+
49
+ ### Step 3: Write `.evoloop/constitution.md` and `.evoloop/config.yaml`
50
+ Use the templates in `templates/constitution.md` and `templates/config.yaml` as the structural baseline:
51
+ - Replace all `<placeholder>` tokens with concrete project values.
52
+ - Write **falsifiable, deterministic invariants** — avoid vague platitudes (*"be helpful"*) or ambiguous *"either X or Y"* branches; specify exact tool, refusal, or clarification behaviors so downstream scenario generation and triage stay sharp.
53
+ - Ensure every path in `.evoloop/config.yaml` (`dataset`, `system_prompt_file`, `mutable_paths`, `protected_paths`, `evaluator_paths`) matches the repository layout.
54
+ - Preserve the **Non-Negotiable Evaluation Integrity Rules** (immutable scenarios during evolve mode, no reward hacking, mandatory offline unit-test gate, refactor-over-append prompt discipline).
55
+
56
+ ### Step 4: Verify
57
+ - Confirm `.evoloop/constitution.md` has no unresolved placeholders, follows `references/writing-guide.md`, and every invariant is concrete and testable.
58
+ - Confirm `.evoloop/config.yaml` parses cleanly as valid YAML and its comments follow `references/writing-guide.md`.
59
+ - Summarize the key invariants, budgets, and protected paths for the user, and point to the appropriate next step (`evoloop-init` for brownfield repos without an eval harness, or `evoloop-scenarios` when the harness is already initialized).