kaji 0.13.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.
- kaji-0.13.0/LICENSE +202 -0
- kaji-0.13.0/PKG-INFO +403 -0
- kaji-0.13.0/README.md +378 -0
- kaji-0.13.0/kaji.egg-info/PKG-INFO +403 -0
- kaji-0.13.0/kaji.egg-info/SOURCES.txt +130 -0
- kaji-0.13.0/kaji.egg-info/dependency_links.txt +1 -0
- kaji-0.13.0/kaji.egg-info/entry_points.txt +2 -0
- kaji-0.13.0/kaji.egg-info/requires.txt +2 -0
- kaji-0.13.0/kaji.egg-info/top_level.txt +1 -0
- kaji-0.13.0/kaji_harness/__init__.py +1 -0
- kaji-0.13.0/kaji_harness/adapters.py +232 -0
- kaji-0.13.0/kaji_harness/artifacts.py +60 -0
- kaji-0.13.0/kaji_harness/assets/interactive-terminal/wrapper.sh +90 -0
- kaji-0.13.0/kaji_harness/cli.py +378 -0
- kaji-0.13.0/kaji_harness/cli_main.py +2050 -0
- kaji-0.13.0/kaji_harness/config.py +452 -0
- kaji-0.13.0/kaji_harness/console_log.py +58 -0
- kaji-0.13.0/kaji_harness/errors.py +184 -0
- kaji-0.13.0/kaji_harness/interactive_terminal.py +767 -0
- kaji-0.13.0/kaji_harness/local_init.py +279 -0
- kaji-0.13.0/kaji_harness/logger.py +142 -0
- kaji-0.13.0/kaji_harness/models.py +112 -0
- kaji-0.13.0/kaji_harness/prompt.py +118 -0
- kaji-0.13.0/kaji_harness/providers/__init__.py +323 -0
- kaji-0.13.0/kaji_harness/providers/_mappings.py +42 -0
- kaji-0.13.0/kaji_harness/providers/_worktree.py +96 -0
- kaji-0.13.0/kaji_harness/providers/base.py +101 -0
- kaji-0.13.0/kaji_harness/providers/context.py +113 -0
- kaji-0.13.0/kaji_harness/providers/github.py +377 -0
- kaji-0.13.0/kaji_harness/providers/local.py +914 -0
- kaji-0.13.0/kaji_harness/providers/markers.py +57 -0
- kaji-0.13.0/kaji_harness/providers/models.py +131 -0
- kaji-0.13.0/kaji_harness/result.py +90 -0
- kaji-0.13.0/kaji_harness/runner.py +947 -0
- kaji-0.13.0/kaji_harness/script_exec.py +280 -0
- kaji-0.13.0/kaji_harness/scripts/__init__.py +1 -0
- kaji-0.13.0/kaji_harness/scripts/codex_review_poll.py +374 -0
- kaji-0.13.0/kaji_harness/scripts/review_poll_entry.py +229 -0
- kaji-0.13.0/kaji_harness/skill.py +130 -0
- kaji-0.13.0/kaji_harness/state.py +201 -0
- kaji-0.13.0/kaji_harness/sync.py +470 -0
- kaji-0.13.0/kaji_harness/verdict.py +674 -0
- kaji-0.13.0/kaji_harness/workflow.py +568 -0
- kaji-0.13.0/kaji_harness/worktree_discovery.py +116 -0
- kaji-0.13.0/pyproject.toml +84 -0
- kaji-0.13.0/setup.cfg +4 -0
- kaji-0.13.0/tests/test_adapters.py +620 -0
- kaji-0.13.0/tests/test_artifacts_dir.py +276 -0
- kaji-0.13.0/tests/test_check_doc_links.py +827 -0
- kaji-0.13.0/tests/test_cli_args.py +272 -0
- kaji-0.13.0/tests/test_cli_main.py +2069 -0
- kaji-0.13.0/tests/test_cli_streaming_integration.py +892 -0
- kaji-0.13.0/tests/test_cli_timestamp.py +403 -0
- kaji-0.13.0/tests/test_cli_validate.py +576 -0
- kaji-0.13.0/tests/test_cli_version.py +76 -0
- kaji-0.13.0/tests/test_codex_review_poll.py +586 -0
- kaji-0.13.0/tests/test_codex_robustness.py +500 -0
- kaji-0.13.0/tests/test_config.py +1398 -0
- kaji-0.13.0/tests/test_config_validation.py +105 -0
- kaji-0.13.0/tests/test_console_log.py +178 -0
- kaji-0.13.0/tests/test_cycle_limit.py +112 -0
- kaji-0.13.0/tests/test_default_branch.py +238 -0
- kaji-0.13.0/tests/test_dev_workflow.py +83 -0
- kaji-0.13.0/tests/test_dispatcher.py +1015 -0
- kaji-0.13.0/tests/test_e2e_cli.py +117 -0
- kaji-0.13.0/tests/test_exec_script_subprocess_large.py +132 -0
- kaji-0.13.0/tests/test_exec_step_dispatch.py +334 -0
- kaji-0.13.0/tests/test_exec_step_e2e_large_local.py +148 -0
- kaji-0.13.0/tests/test_exec_step_parser.py +186 -0
- kaji-0.13.0/tests/test_git_remote_propagation.py +439 -0
- kaji-0.13.0/tests/test_interactive_terminal.py +1429 -0
- kaji-0.13.0/tests/test_issue_context_cli.py +306 -0
- kaji-0.13.0/tests/test_issue_prepend_note_cli.py +294 -0
- kaji-0.13.0/tests/test_labels_yml.py +53 -0
- kaji-0.13.0/tests/test_legacy_forge_cache_detection.py +305 -0
- kaji-0.13.0/tests/test_local_cli_large_local.py +267 -0
- kaji-0.13.0/tests/test_local_init.py +268 -0
- kaji-0.13.0/tests/test_local_issue_commit_flag.py +259 -0
- kaji-0.13.0/tests/test_local_provider_main_worktree.py +285 -0
- kaji-0.13.0/tests/test_logging_integration.py +99 -0
- kaji-0.13.0/tests/test_migrate_comment_filenames.py +499 -0
- kaji-0.13.0/tests/test_pr_bare_provider.py +159 -0
- kaji-0.13.0/tests/test_preflight.py +604 -0
- kaji-0.13.0/tests/test_prompt_builder.py +618 -0
- kaji-0.13.0/tests/test_provider_guard_large_local.py +196 -0
- kaji-0.13.0/tests/test_provider_overlay_divergence.py +449 -0
- kaji-0.13.0/tests/test_provider_type.py +144 -0
- kaji-0.13.0/tests/test_providers_context.py +113 -0
- kaji-0.13.0/tests/test_providers_github.py +241 -0
- kaji-0.13.0/tests/test_providers_local.py +496 -0
- kaji-0.13.0/tests/test_providers_normalize_id.py +118 -0
- kaji-0.13.0/tests/test_resolve_main_worktree.py +146 -0
- kaji-0.13.0/tests/test_result.py +156 -0
- kaji-0.13.0/tests/test_review_poll_entry.py +331 -0
- kaji-0.13.0/tests/test_run_execution_overrides.py +113 -0
- kaji-0.13.0/tests/test_run_logger.py +270 -0
- kaji-0.13.0/tests/test_runner.py +296 -0
- kaji-0.13.0/tests/test_runner_before.py +518 -0
- kaji-0.13.0/tests/test_runner_exec_script_dispatch.py +263 -0
- kaji-0.13.0/tests/test_runner_interactive_dispatch.py +174 -0
- kaji-0.13.0/tests/test_runner_pr_context.py +314 -0
- kaji-0.13.0/tests/test_runner_worktree_persistence.py +368 -0
- kaji-0.13.0/tests/test_script_exec.py +342 -0
- kaji-0.13.0/tests/test_session_state.py +324 -0
- kaji-0.13.0/tests/test_skill_harness_adaptation.py +266 -0
- kaji-0.13.0/tests/test_skill_metadata.py +82 -0
- kaji-0.13.0/tests/test_skill_migration.py +167 -0
- kaji-0.13.0/tests/test_skill_placeholders.py +99 -0
- kaji-0.13.0/tests/test_skill_provider_guard.py +78 -0
- kaji-0.13.0/tests/test_skill_remote_placeholder.py +71 -0
- kaji-0.13.0/tests/test_skill_validation.py +381 -0
- kaji-0.13.0/tests/test_start_logic.py +183 -0
- kaji-0.13.0/tests/test_state_persistence.py +295 -0
- kaji-0.13.0/tests/test_state_worktree_capture.py +56 -0
- kaji-0.13.0/tests/test_sync_from_github.py +482 -0
- kaji-0.13.0/tests/test_timeout_config.py +957 -0
- kaji-0.13.0/tests/test_verdict_artifact.py +339 -0
- kaji-0.13.0/tests/test_verdict_artifact_e2e_large_local.py +177 -0
- kaji-0.13.0/tests/test_verdict_artifact_runner.py +759 -0
- kaji-0.13.0/tests/test_verdict_e2e.py +451 -0
- kaji-0.13.0/tests/test_verdict_integration.py +598 -0
- kaji-0.13.0/tests/test_verdict_marker.py +82 -0
- kaji-0.13.0/tests/test_verdict_parser.py +1236 -0
- kaji-0.13.0/tests/test_workdir_config.py +715 -0
- kaji-0.13.0/tests/test_workflow_agent_optional.py +82 -0
- kaji-0.13.0/tests/test_workflow_execution.py +531 -0
- kaji-0.13.0/tests/test_workflow_parser.py +998 -0
- kaji-0.13.0/tests/test_workflow_provider_match.py +122 -0
- kaji-0.13.0/tests/test_workflow_requires_provider.py +91 -0
- kaji-0.13.0/tests/test_workflow_validator.py +452 -0
- kaji-0.13.0/tests/test_worktree_discovery.py +132 -0
- kaji-0.13.0/tests/test_worktree_prefix.py +273 -0
kaji-0.13.0/LICENSE
ADDED
|
@@ -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.
|
kaji-0.13.0/PKG-INFO
ADDED
|
@@ -0,0 +1,403 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: kaji
|
|
3
|
+
Version: 0.13.0
|
|
4
|
+
Summary: AI-driven software development workflow orchestrator
|
|
5
|
+
Author: apokamo
|
|
6
|
+
Maintainer: apokamo
|
|
7
|
+
License-Expression: Apache-2.0
|
|
8
|
+
Project-URL: Homepage, https://github.com/apokamo/kaji
|
|
9
|
+
Project-URL: Repository, https://github.com/apokamo/kaji
|
|
10
|
+
Project-URL: Issues, https://github.com/apokamo/kaji/issues
|
|
11
|
+
Project-URL: Changelog, https://github.com/apokamo/kaji/blob/main/CHANGELOG.md
|
|
12
|
+
Keywords: ai,agent,workflow,orchestrator,claude,codex,gemini
|
|
13
|
+
Classifier: Development Status :: 4 - Beta
|
|
14
|
+
Classifier: Intended Audience :: Developers
|
|
15
|
+
Classifier: Programming Language :: Python :: 3
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
19
|
+
Requires-Python: >=3.11
|
|
20
|
+
Description-Content-Type: text/markdown
|
|
21
|
+
License-File: LICENSE
|
|
22
|
+
Requires-Dist: pyyaml>=6.0
|
|
23
|
+
Requires-Dist: jq>=1.6
|
|
24
|
+
Dynamic: license-file
|
|
25
|
+
|
|
26
|
+
# kaji
|
|
27
|
+
|
|
28
|
+
Language: English | [Japanese](README.ja.md)
|
|
29
|
+
|
|
30
|
+
[](https://github.com/apokamo/kaji/releases)
|
|
31
|
+
[](pyproject.toml)
|
|
32
|
+
[](LICENSE)
|
|
33
|
+
|
|
34
|
+
https://github.com/user-attachments/assets/b1e3fb2e-6b92-4798-8f4c-0227b0727ce1
|
|
35
|
+
|
|
36
|
+
<p align="center">
|
|
37
|
+
<a href="docs/assets/demo.mp4">Watch the terminal demo (MP4)</a>
|
|
38
|
+
</p>
|
|
39
|
+
|
|
40
|
+
Closed-loop agentic development for Claude Code, Codex, and Gemini CLI.
|
|
41
|
+
|
|
42
|
+
kaji turns an issue into a resumable design -> implement -> review -> fix
|
|
43
|
+
-> verify -> PR loop, with human-in-the-loop gates and artifact-backed
|
|
44
|
+
verdicts. It is built for developers who want AI agents to do real work without
|
|
45
|
+
turning the development process into a black box.
|
|
46
|
+
|
|
47
|
+
> `kaji` means "rudder" in Japanese: the human keeps direction, agents do the
|
|
48
|
+
> rowing.
|
|
49
|
+
|
|
50
|
+
## Why kaji
|
|
51
|
+
|
|
52
|
+
AI coding agents are powerful, but one-shot prompting is hard to govern. The
|
|
53
|
+
missing layer is often the workflow around the agent: when to design, when to
|
|
54
|
+
review, when to fix, when to stop, and when a human should decide.
|
|
55
|
+
|
|
56
|
+
kaji provides that layer.
|
|
57
|
+
|
|
58
|
+
- Define the development process as workflow YAML.
|
|
59
|
+
- Route each step to Claude Code, Codex, or Gemini CLI.
|
|
60
|
+
- Use bounded review/fix/verify loops instead of endless chat.
|
|
61
|
+
- Capture decisions as structured verdict artifacts.
|
|
62
|
+
- Resume from a specific step when work is interrupted.
|
|
63
|
+
- Keep human approval at the points that matter.
|
|
64
|
+
|
|
65
|
+
Beyond vibe coding: kaji gives AI-assisted development a loop, a log, and a
|
|
66
|
+
quality gate.
|
|
67
|
+
|
|
68
|
+
## How it works
|
|
69
|
+
|
|
70
|
+
```mermaid
|
|
71
|
+
flowchart TB
|
|
72
|
+
Issue["Issue"] --> Ready{"Ready gate"}
|
|
73
|
+
Ready -- "PASS" --> Start["Issue start"]
|
|
74
|
+
Ready -- "RETRY" --> FixReady["Fix ready"]
|
|
75
|
+
FixReady --> Ready
|
|
76
|
+
|
|
77
|
+
Start --> Design["Design"]
|
|
78
|
+
Design --> DesignReview{"Design review"}
|
|
79
|
+
DesignReview -- "PASS" --> Implement["Implement"]
|
|
80
|
+
DesignReview -- "RETRY" --> FixDesign["Fix design"]
|
|
81
|
+
FixDesign --> VerifyDesign["Verify design"]
|
|
82
|
+
VerifyDesign -- "PASS" --> Implement
|
|
83
|
+
VerifyDesign -- "RETRY" --> FixDesign
|
|
84
|
+
|
|
85
|
+
Implement -- "PASS" --> CodeReview{"Code review"}
|
|
86
|
+
Implement -- "RETRY" --> Implement
|
|
87
|
+
Implement -- "BACK" --> Design
|
|
88
|
+
CodeReview -- "PASS" --> FinalCheck["Final check"]
|
|
89
|
+
CodeReview -- "RETRY" --> FixCode["Fix code"]
|
|
90
|
+
CodeReview -- "BACK" --> Design
|
|
91
|
+
CodeReview -- "BACK_IMPLEMENT" --> Implement
|
|
92
|
+
FixCode --> VerifyCode["Verify code"]
|
|
93
|
+
VerifyCode -- "PASS" --> FinalCheck
|
|
94
|
+
VerifyCode -- "RETRY" --> FixCode
|
|
95
|
+
|
|
96
|
+
FinalCheck -- "PASS" --> PR["Pull request"]
|
|
97
|
+
FinalCheck -- "RETRY" --> FinalCheck
|
|
98
|
+
FinalCheck -- "BACK_DESIGN" --> Design
|
|
99
|
+
FinalCheck -- "BACK_IMPLEMENT" --> Implement
|
|
100
|
+
|
|
101
|
+
PR -- "PASS" --> ReviewPoll{"PR review poll"}
|
|
102
|
+
PR -- "RETRY" --> PR
|
|
103
|
+
ReviewPoll -- "PASS" --> Close["Issue close"]
|
|
104
|
+
ReviewPoll -- "RETRY" --> PRFix["PR fix"]
|
|
105
|
+
ReviewPoll -- "BACK_FALLBACK" --> Review["Fallback review"]
|
|
106
|
+
PRFix --> PRVerify["PR verify"]
|
|
107
|
+
PRVerify -- "PASS" --> Close
|
|
108
|
+
PRVerify -- "RETRY" --> PRFix
|
|
109
|
+
Review -- "PASS" --> Close
|
|
110
|
+
Review -- "RETRY" --> PRFix
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
Every agent step returns a verdict:
|
|
114
|
+
|
|
115
|
+
| Verdict | Meaning |
|
|
116
|
+
|---------|---------|
|
|
117
|
+
| `PASS` | Continue to the next step. |
|
|
118
|
+
| `RETRY` | Fix the current problem and verify again. |
|
|
119
|
+
| `BACK` | Return to an earlier phase, such as design or implementation. |
|
|
120
|
+
| `ABORT` | Stop the workflow with an explicit reason. |
|
|
121
|
+
|
|
122
|
+
The harness reads structured outputs such as `verdict.yaml`, records attempt
|
|
123
|
+
artifacts, and advances the workflow deterministically from each verdict.
|
|
124
|
+
|
|
125
|
+
## Core features
|
|
126
|
+
|
|
127
|
+
- **Multi-agent workflow orchestration**: run Claude Code, Codex, and Gemini CLI
|
|
128
|
+
from one workflow definition.
|
|
129
|
+
- **Closed review loops**: model review feedback as explicit
|
|
130
|
+
review -> fix -> verify cycles.
|
|
131
|
+
- **Interactive tmux runner**: run normal CLI agents in tmux panes while kaji
|
|
132
|
+
watches for artifact-backed verdicts.
|
|
133
|
+
- **Headless runner**: keep existing non-interactive automation paths for CI-like
|
|
134
|
+
execution.
|
|
135
|
+
- **Deterministic exec steps**: run subprocess steps directly when no LLM is
|
|
136
|
+
needed.
|
|
137
|
+
- **Artifact-primary verdicts**: prefer `verdict.yaml`, then fall back to issue
|
|
138
|
+
comments or stdout parsing.
|
|
139
|
+
- **Issue and PR lifecycle**: coordinate GitHub issue, branch, PR, review, and
|
|
140
|
+
close workflows.
|
|
141
|
+
- **TDD and docs-as-code**: keep implementation, review, tests, and docs in the
|
|
142
|
+
same process.
|
|
143
|
+
|
|
144
|
+
## Extensibility
|
|
145
|
+
|
|
146
|
+
kaji currently focuses on Claude Code, Codex, and Gemini CLI. The runner and
|
|
147
|
+
workflow model are designed to support additional coding-agent CLIs when there
|
|
148
|
+
is real demand.
|
|
149
|
+
|
|
150
|
+
Have another coding agent you want to plug into the loop? Open an issue and
|
|
151
|
+
tell us what workflow you want to run.
|
|
152
|
+
|
|
153
|
+
## Quick start
|
|
154
|
+
|
|
155
|
+
### Prerequisites
|
|
156
|
+
|
|
157
|
+
- Python 3.11 or newer
|
|
158
|
+
- `uv`
|
|
159
|
+
- Claude Code, Codex, or Gemini CLI installed for the agents you want to run
|
|
160
|
+
- `gh` authenticated if you use GitHub-backed issue and PR operations
|
|
161
|
+
- `tmux` 3.1 or newer if you use the interactive terminal runner
|
|
162
|
+
- A target repository with kaji skills under `.claude/skills/`
|
|
163
|
+
|
|
164
|
+
### Install kaji
|
|
165
|
+
|
|
166
|
+
Install from PyPI:
|
|
167
|
+
|
|
168
|
+
```bash
|
|
169
|
+
uv tool install kaji
|
|
170
|
+
kaji --help
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
For unreleased development builds, install from Git:
|
|
174
|
+
|
|
175
|
+
```bash
|
|
176
|
+
uv tool install git+https://github.com/apokamo/kaji.git
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
### Configure your repository
|
|
180
|
+
|
|
181
|
+
In the repository where you want to run kaji, add `.kaji/config.toml`.
|
|
182
|
+
The default workflow below, `.kaji/wf/dev.yaml`, is GitHub-backed because it
|
|
183
|
+
opens PRs, polls review state, and closes issues.
|
|
184
|
+
|
|
185
|
+
```toml
|
|
186
|
+
[paths]
|
|
187
|
+
artifacts_dir = ".kaji-artifacts"
|
|
188
|
+
skill_dir = ".claude/skills"
|
|
189
|
+
worktree_prefix = "kaji"
|
|
190
|
+
|
|
191
|
+
[execution]
|
|
192
|
+
default_timeout = 1800
|
|
193
|
+
agent_runner = "headless"
|
|
194
|
+
interactive_terminal_close_on_verdict = true
|
|
195
|
+
|
|
196
|
+
[provider]
|
|
197
|
+
type = "github"
|
|
198
|
+
|
|
199
|
+
[provider.github]
|
|
200
|
+
repo = "<owner>/<name>"
|
|
201
|
+
default_branch = "main"
|
|
202
|
+
git_remote = "origin"
|
|
203
|
+
```
|
|
204
|
+
|
|
205
|
+
For the full `.kaji/config.toml` reference, including overlays and all
|
|
206
|
+
available keys, see
|
|
207
|
+
[Configuration Reference](docs/reference/configuration.md).
|
|
208
|
+
|
|
209
|
+
For local issue storage without GitHub, use a local provider config and create a
|
|
210
|
+
gitignored machine overlay:
|
|
211
|
+
|
|
212
|
+
```toml
|
|
213
|
+
[provider]
|
|
214
|
+
type = "local"
|
|
215
|
+
```
|
|
216
|
+
|
|
217
|
+
```bash
|
|
218
|
+
kaji local init
|
|
219
|
+
```
|
|
220
|
+
|
|
221
|
+
`kaji local init` creates `.kaji/config.local.toml` for the current machine; it
|
|
222
|
+
does not replace the tracked base config. Local mode uses local-specific
|
|
223
|
+
workflows such as `.kaji/wf/dev-local.yaml`. See
|
|
224
|
+
[Local Mode CLI Guide](docs/cli-guides/local-mode.md)
|
|
225
|
+
([Japanese](docs/cli-guides/local-mode.ja.md)) for the local provider setup.
|
|
226
|
+
|
|
227
|
+
Skills live under `.claude/skills/`. Other agent-specific skill directories can
|
|
228
|
+
point to the same canonical skill files with symlinks.
|
|
229
|
+
|
|
230
|
+
### Run a workflow
|
|
231
|
+
|
|
232
|
+
Workflow files are run from `.kaji/wf/` in each repository. This repository
|
|
233
|
+
ships `.kaji/wf/dev.yaml`, `.kaji/wf/dev-thorough.yaml`, and `.kaji/wf/docs.yaml`
|
|
234
|
+
as the current GitHub-backed workflow set. To start a new Python project with
|
|
235
|
+
these workflows preconfigured, create it from the
|
|
236
|
+
[kaji-starter-python](https://github.com/apokamo/kaji-starter-python) template
|
|
237
|
+
repository and follow the
|
|
238
|
+
[Python Starter Guide](docs/guides/python-starter.md).
|
|
239
|
+
|
|
240
|
+
The `dev.yaml` example assumes that a GitHub issue already exists, required
|
|
241
|
+
skills are available, selected agent CLIs are installed, and `/issue-create` has
|
|
242
|
+
already been completed. The workflow runs `issue-start` itself.
|
|
243
|
+
|
|
244
|
+
Run a workflow:
|
|
245
|
+
|
|
246
|
+
```bash
|
|
247
|
+
kaji run .kaji/wf/dev.yaml <issue-id>
|
|
248
|
+
```
|
|
249
|
+
|
|
250
|
+
Resume from a specific step:
|
|
251
|
+
|
|
252
|
+
```bash
|
|
253
|
+
kaji run .kaji/wf/dev.yaml <issue-id> --from fix-code
|
|
254
|
+
```
|
|
255
|
+
|
|
256
|
+
Run only one step:
|
|
257
|
+
|
|
258
|
+
```bash
|
|
259
|
+
kaji run .kaji/wf/dev.yaml <issue-id> --step review-code
|
|
260
|
+
```
|
|
261
|
+
|
|
262
|
+
### Develop kaji itself
|
|
263
|
+
|
|
264
|
+
Use this path only when you want to work on kaji, not just run it in another
|
|
265
|
+
repository:
|
|
266
|
+
|
|
267
|
+
```bash
|
|
268
|
+
git clone https://github.com/apokamo/kaji.git
|
|
269
|
+
cd kaji
|
|
270
|
+
uv sync
|
|
271
|
+
source .venv/bin/activate
|
|
272
|
+
kaji --help
|
|
273
|
+
```
|
|
274
|
+
|
|
275
|
+
## tmux interactive terminal runner
|
|
276
|
+
|
|
277
|
+
Use this when you want kaji to launch normal Claude Code or Codex CLI sessions
|
|
278
|
+
inside tmux panes instead of using the headless runner.
|
|
279
|
+
|
|
280
|
+
```toml
|
|
281
|
+
[execution]
|
|
282
|
+
default_timeout = 2400
|
|
283
|
+
agent_runner = "interactive_terminal"
|
|
284
|
+
interactive_terminal_close_on_verdict = true
|
|
285
|
+
```
|
|
286
|
+
|
|
287
|
+
Then run from inside a tmux session:
|
|
288
|
+
|
|
289
|
+
```bash
|
|
290
|
+
tmux new-session
|
|
291
|
+
kaji run .kaji/wf/dev.yaml <issue-id> --agent-runner interactive-terminal
|
|
292
|
+
```
|
|
293
|
+
|
|
294
|
+
The runner opens managed panes, records terminal transcripts, waits for
|
|
295
|
+
`verdict.yaml`, and advances the workflow. This is useful for live observation,
|
|
296
|
+
subscription CLI usage, and debugging agent behavior.
|
|
297
|
+
|
|
298
|
+
Read more:
|
|
299
|
+
[Interactive Terminal Runner](docs/cli-guides/interactive-terminal-runner.md)
|
|
300
|
+
([Japanese](docs/cli-guides/interactive-terminal-runner.ja.md))
|
|
301
|
+
|
|
302
|
+
## Workflow example
|
|
303
|
+
|
|
304
|
+
```yaml
|
|
305
|
+
name: minimal-code-review
|
|
306
|
+
description: "Bounded implement -> review -> fix -> verify loop"
|
|
307
|
+
execution_policy: auto
|
|
308
|
+
|
|
309
|
+
cycles:
|
|
310
|
+
code-review:
|
|
311
|
+
entry: review-code
|
|
312
|
+
loop: [fix-code, verify-code]
|
|
313
|
+
max_iterations: 3
|
|
314
|
+
on_exhaust: ABORT
|
|
315
|
+
|
|
316
|
+
steps:
|
|
317
|
+
- id: implement
|
|
318
|
+
skill: issue-implement
|
|
319
|
+
agent: claude
|
|
320
|
+
on:
|
|
321
|
+
PASS: review-code
|
|
322
|
+
ABORT: end
|
|
323
|
+
|
|
324
|
+
- id: review-code
|
|
325
|
+
skill: issue-review-code
|
|
326
|
+
agent: codex
|
|
327
|
+
on:
|
|
328
|
+
PASS: end
|
|
329
|
+
RETRY: fix-code
|
|
330
|
+
BACK_IMPLEMENT: implement
|
|
331
|
+
ABORT: end
|
|
332
|
+
|
|
333
|
+
- id: fix-code
|
|
334
|
+
skill: issue-fix-code
|
|
335
|
+
agent: claude
|
|
336
|
+
on:
|
|
337
|
+
PASS: verify-code
|
|
338
|
+
ABORT: end
|
|
339
|
+
|
|
340
|
+
- id: verify-code
|
|
341
|
+
skill: issue-verify-code
|
|
342
|
+
agent: codex
|
|
343
|
+
resume: review-code
|
|
344
|
+
on:
|
|
345
|
+
PASS: end
|
|
346
|
+
RETRY: fix-code
|
|
347
|
+
ABORT: end
|
|
348
|
+
```
|
|
349
|
+
|
|
350
|
+
The review loop is bounded by `cycles.code-review.max_iterations`. The skill
|
|
351
|
+
names above match kaji's standard skill set; your repository must provide those
|
|
352
|
+
skill files. `model` and `effort` are optional in the YAML schema and omitted in
|
|
353
|
+
this compact example; production workflows often pin them.
|
|
354
|
+
|
|
355
|
+
`resume` tells kaji to continue from a previous session for the same agent when
|
|
356
|
+
the runner supports it.
|
|
357
|
+
|
|
358
|
+
## Documentation
|
|
359
|
+
|
|
360
|
+
| Topic | Link |
|
|
361
|
+
|-------|------|
|
|
362
|
+
| Architecture | [docs/ARCHITECTURE.md](docs/ARCHITECTURE.md) |
|
|
363
|
+
| Workflow overview | [docs/dev/workflow_overview.md](docs/dev/workflow_overview.md) |
|
|
364
|
+
| Workflow authoring | [docs/dev/workflow-authoring.md](docs/dev/workflow-authoring.md) |
|
|
365
|
+
| Skill authoring | [docs/dev/skill-authoring.md](docs/dev/skill-authoring.md) |
|
|
366
|
+
| Interactive terminal runner | [docs/cli-guides/interactive-terminal-runner.md](docs/cli-guides/interactive-terminal-runner.md) ([Japanese](docs/cli-guides/interactive-terminal-runner.ja.md)) |
|
|
367
|
+
| AI-driven development strategy | [docs/concepts/ai-driven-strategy.md](docs/concepts/ai-driven-strategy.md) ([Japanese](docs/concepts/ai-driven-strategy.ja.md)) |
|
|
368
|
+
| CLI guides | [docs/cli-guides/](docs/cli-guides/) |
|
|
369
|
+
|
|
370
|
+
## AI-readable docs
|
|
371
|
+
|
|
372
|
+
For AI assistants and crawlers, [llms.txt](llms.txt) provides a compact index of
|
|
373
|
+
the most important docs, commands, and workflow concepts.
|
|
374
|
+
|
|
375
|
+
## Project status
|
|
376
|
+
|
|
377
|
+
Current release: v0.12.0. kaji is under active development, and the supported
|
|
378
|
+
user-facing entry point is the `kaji` CLI.
|
|
379
|
+
|
|
380
|
+
The `legacy/` directory contains historical code and is not part of the current
|
|
381
|
+
supported runtime.
|
|
382
|
+
|
|
383
|
+
## Development
|
|
384
|
+
|
|
385
|
+
```bash
|
|
386
|
+
source .venv/bin/activate
|
|
387
|
+
make check
|
|
388
|
+
```
|
|
389
|
+
|
|
390
|
+
Individual targets:
|
|
391
|
+
|
|
392
|
+
```bash
|
|
393
|
+
make lint
|
|
394
|
+
make format
|
|
395
|
+
make typecheck
|
|
396
|
+
make test
|
|
397
|
+
make verify-docs
|
|
398
|
+
make verify-packaging
|
|
399
|
+
```
|
|
400
|
+
|
|
401
|
+
## License
|
|
402
|
+
|
|
403
|
+
Apache-2.0
|