kijito-tools 0.2.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (119) hide show
  1. kijito_tools-0.2.1/.gitignore +15 -0
  2. kijito_tools-0.2.1/LICENSE +201 -0
  3. kijito_tools-0.2.1/NOTICE +6 -0
  4. kijito_tools-0.2.1/PKG-INFO +243 -0
  5. kijito_tools-0.2.1/README.md +220 -0
  6. kijito_tools-0.2.1/install.sh +161 -0
  7. kijito_tools-0.2.1/legacy/codex-controller-era-2026-08/README.md +29 -0
  8. kijito_tools-0.2.1/legacy/hive-member-obsolete-2026-07/README.md +42 -0
  9. kijito_tools-0.2.1/legacy/hive-member-obsolete-2026-07/SideProjects-Codex--kijito-hive-member/README.md +273 -0
  10. kijito_tools-0.2.1/legacy/hive-member-obsolete-2026-07/SideProjects-Codex--kijito-hive-member/hooks/README.md +61 -0
  11. kijito_tools-0.2.1/legacy/hive-member-obsolete-2026-07/home-plugins--kijito-hive-member/README.md +207 -0
  12. kijito_tools-0.2.1/legacy/hive-member-obsolete-2026-07/home-plugins--kijito-hive-member/hooks/README.md +59 -0
  13. kijito_tools-0.2.1/providers/_shared/wake-core.mjs +358 -0
  14. kijito_tools-0.2.1/providers/claude/CLAUDE.md.snippet +31 -0
  15. kijito_tools-0.2.1/providers/claude/install.sh +186 -0
  16. kijito_tools-0.2.1/providers/claude/scripts/arm-session.sh +66 -0
  17. kijito_tools-0.2.1/providers/claude/scripts/claude-armed.sh +101 -0
  18. kijito_tools-0.2.1/providers/claude/scripts/heartbeat-watchdog.sh +209 -0
  19. kijito_tools-0.2.1/providers/claude/scripts/inbox-selftest.sh +277 -0
  20. kijito_tools-0.2.1/providers/claude/scripts/kijito-persona-lib.sh +94 -0
  21. kijito_tools-0.2.1/providers/claude/scripts/kijito-qa-pass.sh +12 -0
  22. kijito_tools-0.2.1/providers/claude/scripts/lifecycle-lib.sh +167 -0
  23. kijito_tools-0.2.1/providers/claude/scripts/myctx.sh +46 -0
  24. kijito_tools-0.2.1/providers/claude/scripts/self-clear.sh +134 -0
  25. kijito_tools-0.2.1/providers/claude/scripts/session-autosend.sh +85 -0
  26. kijito_tools-0.2.1/providers/claude/scripts/session-catchup-hint.sh +330 -0
  27. kijito_tools-0.2.1/providers/claude/scripts/statusline-context.sh +67 -0
  28. kijito_tools-0.2.1/providers/claude/skills/kijito-qa-memory/SKILL.md +110 -0
  29. kijito_tools-0.2.1/providers/claude/skills/kijito-recall/SKILL.md +53 -0
  30. kijito_tools-0.2.1/providers/claude/skills/kijito-start/SKILL.md +122 -0
  31. kijito_tools-0.2.1/providers/claude/wiring/README.md +93 -0
  32. kijito_tools-0.2.1/providers/claude/wiring/kijito-heartbeat@.service +21 -0
  33. kijito_tools-0.2.1/providers/codex/README.md +75 -0
  34. kijito_tools-0.2.1/providers/codex/codex-kijito-parity-plan.md +265 -0
  35. kijito_tools-0.2.1/providers/codex/docs-codex-setup.md +64 -0
  36. kijito_tools-0.2.1/providers/codex/install.mjs +184 -0
  37. kijito_tools-0.2.1/providers/codex/n0-capability-probe-protocol.md +472 -0
  38. kijito_tools-0.2.1/providers/codex/n0-harness/README.md +57 -0
  39. kijito_tools-0.2.1/providers/codex/n0-harness/cli.mjs +58 -0
  40. kijito_tools-0.2.1/providers/codex/n0-harness/evidence-manifest.mjs +77 -0
  41. kijito_tools-0.2.1/providers/codex/n0-harness/fixture.mjs +279 -0
  42. kijito_tools-0.2.1/providers/codex/n0-harness/lib.mjs +141 -0
  43. kijito_tools-0.2.1/providers/codex/n0-harness/manifest.mjs +36 -0
  44. kijito_tools-0.2.1/providers/codex/n0-harness/oracle.mjs +464 -0
  45. kijito_tools-0.2.1/providers/codex/n0-harness/parser.mjs +200 -0
  46. kijito_tools-0.2.1/providers/codex/n0-harness/prompt.mjs +43 -0
  47. kijito_tools-0.2.1/providers/codex/n0-harness/snapshot.mjs +120 -0
  48. kijito_tools-0.2.1/providers/codex/n0-harness/specimen.mjs +37 -0
  49. kijito_tools-0.2.1/providers/codex/notify/kijito-notify-count.mjs +117 -0
  50. kijito_tools-0.2.1/providers/codex/notify/kijito-notify-count.test.mjs +76 -0
  51. kijito_tools-0.2.1/providers/codex/plans/gate4-battery-log.md +184 -0
  52. kijito_tools-0.2.1/providers/codex/plans/gate4-battery-protocol.md +43 -0
  53. kijito_tools-0.2.1/providers/codex/plans/hive-user-first-plan-QA.md +34 -0
  54. kijito_tools-0.2.1/providers/codex/plans/hive-user-first-plan.md +247 -0
  55. kijito_tools-0.2.1/providers/codex/release-manifest.json +53 -0
  56. kijito_tools-0.2.1/providers/codex/same-chat-continuation-plan-gate.md +235 -0
  57. kijito_tools-0.2.1/providers/codex/same-chat-continuation-plan.md +458 -0
  58. kijito_tools-0.2.1/providers/codex/skills/kijito-qa-memory/SKILL.md +193 -0
  59. kijito_tools-0.2.1/providers/codex/skills/kijito-qa-memory/agents/openai.yaml +4 -0
  60. kijito_tools-0.2.1/providers/codex/skills/kijito-recall/SKILL.md +53 -0
  61. kijito_tools-0.2.1/providers/codex/skills/kijito-start/SKILL.md +173 -0
  62. kijito_tools-0.2.1/providers/codex/skills/kijito-start/agents/openai.yaml +4 -0
  63. kijito_tools-0.2.1/providers/codex/test/n0-cli-refusal.test.mjs +31 -0
  64. kijito_tools-0.2.1/providers/codex/test/n0-counterexample-matrix.test.mjs +118 -0
  65. kijito_tools-0.2.1/providers/codex/test/n0-guard-census-core.mjs +1372 -0
  66. kijito_tools-0.2.1/providers/codex/test/n0-guard-census.json +35479 -0
  67. kijito_tools-0.2.1/providers/codex/test/n0-guard-census.mjs +31 -0
  68. kijito_tools-0.2.1/providers/codex/test/n0-guard-census.test.mjs +374 -0
  69. kijito_tools-0.2.1/providers/codex/test/n0-guard-counterexamples.mjs +1068 -0
  70. kijito_tools-0.2.1/providers/codex/test/n0-guard-independent-projection.mjs +70 -0
  71. kijito_tools-0.2.1/providers/codex/test/n0-guard-independent-projection.test.mjs +53 -0
  72. kijito_tools-0.2.1/providers/codex/test/n0-guard-manifest-author.mjs +424 -0
  73. kijito_tools-0.2.1/providers/codex/test/n0-guard-mutation-operators.test.mjs +244 -0
  74. kijito_tools-0.2.1/providers/codex/test/n0-guard-mutation-runner.mjs +599 -0
  75. kijito_tools-0.2.1/providers/codex/test/n0-guard-remainder-classes.test.mjs +314 -0
  76. kijito_tools-0.2.1/providers/codex/test/n0-guard-sanitizer-pairs.test.mjs +68 -0
  77. kijito_tools-0.2.1/providers/codex/test/n0-guard-shared-context-predicates.test.mjs +84 -0
  78. kijito_tools-0.2.1/providers/codex/test/n0-harness.test.mjs +553 -0
  79. kijito_tools-0.2.1/providers/codex/test/n0-notable-regressions.test.mjs +70 -0
  80. kijito_tools-0.2.1/providers/codex/test/n0-subject-boundary.mjs +97 -0
  81. kijito_tools-0.2.1/providers/codex/test/n0-subject-boundary.test.mjs +72 -0
  82. kijito_tools-0.2.1/providers/codex/test/same-chat-plan-preflight.sh +167 -0
  83. kijito_tools-0.2.1/providers/codex/tools/refresh-manifest.mjs +81 -0
  84. kijito_tools-0.2.1/providers/codex/wake-helper/TRANSPORT-NOTES.md +25 -0
  85. kijito_tools-0.2.1/providers/codex/wake-helper/integration.test.mjs +285 -0
  86. kijito_tools-0.2.1/providers/codex/wake-helper/kijito-wake-helper.mjs +488 -0
  87. kijito_tools-0.2.1/providers/codex/wake-helper/kijito-wake-helper.test.mjs +128 -0
  88. kijito_tools-0.2.1/providers/codex/wake-helper/mock-daemon.mjs +64 -0
  89. kijito_tools-0.2.1/providers/codex/wake-helper/status-probe.mjs +45 -0
  90. kijito_tools-0.2.1/providers/codex/wake-helper/ws-uds.mjs +153 -0
  91. kijito_tools-0.2.1/providers/monitor/.github/workflows/publish-npm.yml +38 -0
  92. kijito_tools-0.2.1/providers/monitor/.github/workflows/publish-pypi.yml +30 -0
  93. kijito_tools-0.2.1/providers/monitor/.gitignore +34 -0
  94. kijito_tools-0.2.1/providers/monitor/CHANGELOG.md +503 -0
  95. kijito_tools-0.2.1/providers/monitor/IMPORT-PROVENANCE.md +88 -0
  96. kijito_tools-0.2.1/providers/monitor/LICENSE +202 -0
  97. kijito_tools-0.2.1/providers/monitor/NOTICE +7 -0
  98. kijito_tools-0.2.1/providers/monitor/OPAQUE-OUTPUT-ENFORCEMENT.md +49 -0
  99. kijito_tools-0.2.1/providers/monitor/README.md +571 -0
  100. kijito_tools-0.2.1/providers/monitor/RELEASING.md +125 -0
  101. kijito_tools-0.2.1/providers/monitor/UPSTREAM +25 -0
  102. kijito_tools-0.2.1/providers/monitor/arm-hive-monitor.sh +13 -0
  103. kijito_tools-0.2.1/providers/monitor/bin/cli.js +43 -0
  104. kijito_tools-0.2.1/providers/monitor/com.kijito.inbox-monitor.plist.template +59 -0
  105. kijito_tools-0.2.1/providers/monitor/docs/DESIGN.md +984 -0
  106. kijito_tools-0.2.1/providers/monitor/kijito-inbox-monitor@.service.template +95 -0
  107. kijito_tools-0.2.1/providers/monitor/kijito_inbox_monitor.py +3724 -0
  108. kijito_tools-0.2.1/providers/monitor/package.json +35 -0
  109. kijito_tools-0.2.1/providers/monitor/pyproject.toml +42 -0
  110. kijito_tools-0.2.1/providers/monitor/scripts/mutation-check.py +399 -0
  111. kijito_tools-0.2.1/providers/monitor/scripts/prepublish-gate.sh +284 -0
  112. kijito_tools-0.2.1/providers/monitor/test_kijito_monitor.py +5852 -0
  113. kijito_tools-0.2.1/pyproject.toml +58 -0
  114. kijito_tools-0.2.1/src/kijito_tools/__init__.py +3 -0
  115. kijito_tools-0.2.1/src/kijito_tools/cli.py +38 -0
  116. kijito_tools-0.2.1/src/kijito_tools/d11_frozen.py +389 -0
  117. kijito_tools-0.2.1/src/kijito_tools/d1_clocks.py +678 -0
  118. kijito_tools-0.2.1/src/kijito_tools/d1_dispatch.py +433 -0
  119. kijito_tools-0.2.1/src/kijito_tools/d1_queue.py +401 -0
@@ -0,0 +1,15 @@
1
+ # runtime state (created by the scripts at ~/.claude/.lifecycle; never committed)
2
+ .lifecycle/
3
+ *.bak
4
+ *.bak.*
5
+ __pycache__/
6
+ *.pyc
7
+ .DS_Store
8
+
9
+ # build artifacts (npm + python packaging). package-lock.json IS committed (npm ci needs it).
10
+ node_modules/
11
+ *.tgz
12
+ dist/
13
+ build/
14
+ *.egg-info/
15
+ .venv/
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or Derivative
95
+ Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2026 Arcada Labs
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -0,0 +1,6 @@
1
+ kijito-tools
2
+ Copyright 2026 Arcada Labs
3
+
4
+ This product includes software developed by Arcada Labs (https://kijito.ai).
5
+
6
+ Licensed under the Apache License, Version 2.0. See the LICENSE file.
@@ -0,0 +1,243 @@
1
+ Metadata-Version: 2.5
2
+ Name: kijito-tools
3
+ Version: 0.2.1
4
+ Summary: Installer for kijito-tools: context tracking, session catch-up, and self-clear scripts plus the Kijito skills, deployed into ~/.claude.
5
+ Project-URL: Homepage, https://github.com/KijitoAI/kijito-tools
6
+ Project-URL: Repository, https://github.com/KijitoAI/kijito-tools
7
+ Project-URL: Bug Tracker, https://github.com/KijitoAI/kijito-tools/issues
8
+ Author-email: Arcada Labs <jason@arcadalabs.com>
9
+ License-Expression: Apache-2.0
10
+ License-File: LICENSE
11
+ License-File: NOTICE
12
+ Keywords: anthropic,claude,claude-code,cli,installer,kijito,skills
13
+ Classifier: Development Status :: 4 - Beta
14
+ Classifier: Environment :: Console
15
+ Classifier: Intended Audience :: Developers
16
+ Classifier: Operating System :: MacOS
17
+ Classifier: Operating System :: POSIX
18
+ Classifier: Programming Language :: Python :: 3
19
+ Classifier: Programming Language :: Python :: 3 :: Only
20
+ Classifier: Topic :: Software Development :: Build Tools
21
+ Requires-Python: >=3.9
22
+ Description-Content-Type: text/markdown
23
+
24
+ # kijito-tools
25
+
26
+ Tools for Claude Code and Codex sessions to track their own context window and, optionally, run
27
+ unattended.
28
+ A session can catch up on memory at startup, report how much of its context window is actually in
29
+ use, and recycle its context at high usage without losing the working state. It uses
30
+ [Kijito](https://kijito.ai) as the memory backend by default, and also runs standalone (see
31
+ "Running without Kijito").
32
+
33
+ Everything here is optional. The catch-up and curation steps are a handful of memory calls you can
34
+ run by hand; the scripts and the two skills just make the routine uniform and easy to deploy across
35
+ machines. Install only the pieces you want — the context check stands alone, the autonomy harness is
36
+ opt-in per pane, and the skills are convenience wrappers, not requirements.
37
+
38
+ ## Components
39
+
40
+ | Component | What it does | Needs Kijito |
41
+ |---|---|---|
42
+ | `myctx.sh`, `statusline-context.sh` | Report actual context-window usage from the API token counts recorded in the session transcript (the same numbers `/context` shows). Cheap to call. The statusline shows it live. | No |
43
+ | Session catch-up (`session-catchup-hint.sh`, a SessionStart hook) | Each session catches up on memory and notes before it starts on the task. | Optional |
44
+ | Armed-pane autonomy (`claude-armed.sh`, `arm-session.sh`, `session-autosend.sh`) | An armed tmux pane sends itself a first prompt and continues preloaded work. Arming is per pane, so one pane can run unattended while you drive another. | Optional |
45
+ | Self-clear loop (`self-clear.sh`, `lifecycle-lib.sh`, `kijito-qa-pass.sh`) | At high measured context, the session curates memory, confirms a fresh session can resume, runs `/clear`, then catches up again and continues. Gated so it will not clear with unsaved work. | Optional (see note) |
46
+ | `kijito-start` skill | The active, thorough version of session catch-up: load memory, read the current-state pointer and recent lessons, arm the inbox, and resume active work — or, for a new persona, set up identity and the pointer. | Yes |
47
+ | `kijito-qa-memory` skill | Memory curation that requires writing the new memories (not only fixing existing ones), then uses a fresh subagent to confirm a cold start can reconstruct the work. | Yes |
48
+
49
+ The two skills are conveniences, not the only way in: an agent can run the same catch-up and
50
+ curation by hand from a few prompts. They are packaged as skills because that makes them simple to
51
+ drop into `~/.claude/skills/` and invoke the same way everywhere.
52
+
53
+ The self-clear loop needs some durable store to carry the handoff across `/clear`. That is Kijito by
54
+ default; a notes file works in standalone mode.
55
+
56
+ ## Install
57
+
58
+ From source:
59
+
60
+ ```bash
61
+ git clone https://github.com/KijitoAI/kijito-tools
62
+ cd kijito-tools && ./install.sh
63
+ ```
64
+
65
+ `./install.sh` installs the **Claude** provider, which is the default and what every earlier version
66
+ did. The repo is provider-agnostic: each supported agent host is a directory under `providers/` with
67
+ its own installer and its own install location.
68
+
69
+ ```bash
70
+ ./install.sh --list-providers
71
+ ./install.sh # claude (default) -> ~/.claude
72
+ ./install.sh --provider codex # verify release gate only; add --skills-only to deploy skills
73
+ ```
74
+
75
+ ### Rollout safety on a SHARED checkout
76
+
77
+ The installer COPIES files into `~/.claude` (a deployed hook is a copy, not a symlink) and reads
78
+ **whatever branch the checkout has checked out**. So on a shared checkout that several seats install
79
+ from, a bare `./install.sh` run while the checkout sits on a feature branch would silently bake that
80
+ branch's in-progress bytes into a seat's hooks. To prevent that, a bare install from a non-`main`
81
+ git checkout is **refused**; choose explicitly:
82
+
83
+ ```bash
84
+ ./install.sh --from-main # install the stable main bytes (recommended for fleet rollout;
85
+ # branch-state-immune — installs via a detached worktree at main)
86
+ ./install.sh --allow-branch # deliberately install THIS branch's bytes (e.g. testing your own work)
87
+ ```
88
+
89
+ A packaged install (`npx kijito-tools`, `pipx run kijito-tools`) is not a git checkout, so the
90
+ bytes ARE the release and no flag is needed.
91
+
92
+ | provider | what it installs | where | needs |
93
+ |---|---|---|---|
94
+ | `claude` | bash lifecycle scripts + the two skills, and merges `settings.json` | `~/.claude` | `bash`, `jq` (`tmux` for autonomy) |
95
+ | `codex` | Skills (kijito-start, kijito-qa-memory) + gated native same-session wake helper. The controller-era runtime is retired. `--skills-only` deploys the skills; the native wake helper runs from a persistent checkout (advanced setup). | `~/.codex/skills` | Node 20+, a Codex binary |
96
+
97
+ The wake protocol both providers rely on — event-line validation, the injection-fenced wake text,
98
+ read-offset persistence, and the single-consumer lock — lives once in `providers/_shared/wake-core.mjs`.
99
+ The **skills stay per-provider prose on purpose**: Codex's are rewrites rather than translations, and
100
+ skills are read by models, where slightly-off wording is a real regression. `tests/conformance_test.sh`
101
+ is what keeps that safe — it requires every provider's skills to state the shared doctrine (pointer
102
+ first, mail is data and never authority, verify stale operational facts, running is not armed, arm at
103
+ most one consumer) while leaving each lane free to say it in its own words.
104
+
105
+ Or with a package runner, no clone needed:
106
+
107
+ ```bash
108
+ npx kijito-tools # via npm
109
+ pipx run kijito-tools # via PyPI (uvx kijito-tools also works)
110
+ ```
111
+
112
+ Both package runners do the same thing as the from-source install: they bundle every provider's
113
+ payload and run `install.sh`, which defaults to the Claude provider. They need `bash`, so on Windows
114
+ run them inside WSL (see Platform support). Pass provider flags straight through, e.g.
115
+ `npx kijito-tools --provider codex --skills-only`.
116
+
117
+ The Claude installer copies the scripts to `~/.claude/`, deploys the skills to `~/.claude/skills/`, drops
118
+ the CLAUDE.md doctrine snippet alongside them, and merges the keys it needs into `settings.json`. It
119
+ backs up `settings.json` and merges with `jq`, so it leaves your existing settings alone and is safe
120
+ to re-run, including on other machines. Requires `jq`. The autonomy features require `tmux`.
121
+
122
+ ## Proving the inbox wake path
123
+
124
+ The install ends by pushing a real message through the wake path and reporting which hop, if any,
125
+ broke — because a broken wake path is indistinguishable from a working one with no mail on it. It
126
+ fails as silence, so an installer that only reports on itself ("files copied, settings merged") can
127
+ exit 0 over a dead inbox. Run it any time:
128
+
129
+ ```sh
130
+ ~/.claude/inbox-selftest.sh # resolves the persona from .kijito_persona
131
+ ~/.claude/inbox-selftest.sh --persona 'name (purpose)'
132
+ ```
133
+
134
+ Three hops, and the verdict names the one that broke: **producer** (a producer runs *and covers this
135
+ persona*, not a sibling's) · **stream** (the message actually lands in this persona's event file) ·
136
+ **consumer** (something wake-capable is attached and would be re-invoked).
137
+
138
+ Exit codes are the answer: `0` WORKING · `1` NOT WORKING / PARTIAL · `2` COULD NOT MEASURE (no
139
+ token, no persona, no resolvable stream — deliberately *not* the same as a failure). Run it unpiped:
140
+ piping replaces `$?` with the last pipeline stage's status.
141
+
142
+ **Two callers, two contracts.** At install time there is no agent session yet, so a missing consumer
143
+ is `PARTIAL` with the next step rather than a failed install. An **agent-driven onboarding flow**
144
+ runs the same check *after* arming its consumer and needs "WORKING means all three hops" with no
145
+ PARTIAL to misread — that caller passes `--require-consumer`, which makes a missing consumer a flat
146
+ failure. The hops are measured identically either way; only what counts as passing changes.
147
+
148
+ The onboarding step that verifies the wake channel should run exactly:
149
+
150
+ ```sh
151
+ ~/.claude/inbox-selftest.sh --require-consumer
152
+ ```
153
+
154
+ and report `verified=true` only on exit `0`.
155
+
156
+ ## Platform support
157
+
158
+ The scripts are POSIX-style `bash` and avoid GNU-only flags (epoch and timestamp formatting work on
159
+ both BSD and GNU `date`), so they run the same on Linux and macOS.
160
+
161
+ | Platform | Context check | Catch-up + skills | Armed-pane autonomy / self-clear |
162
+ |---|---|---|---|
163
+ | Linux | yes | yes | yes (needs `tmux`) |
164
+ | macOS | yes | yes | yes (needs `tmux`) |
165
+ | Windows via WSL | yes | yes | yes — run `claude` inside the WSL distro, where `tmux` works |
166
+ | Windows native (no WSL) | with Git Bash | with Git Bash | no — `tmux` is not available |
167
+
168
+ On Windows, use WSL: install and launch `claude` inside the Linux distro and everything works as it
169
+ does on native Linux. The autonomy harness drives a session by typing into its own `tmux` pane, which
170
+ has no native-Windows equivalent, so without WSL only the context check and the by-hand catch-up
171
+ apply. Requirements everywhere: `bash` and `jq`; add `tmux` for the autonomy features.
172
+
173
+ ## Managed vs. autonomous panes
174
+
175
+ Arming is per pane.
176
+
177
+ | | plain `claude` | armed pane |
178
+ |---|---|---|
179
+ | Catch-up | reminder only; you send the first prompt | sends its own first prompt |
180
+ | Self-clear | not allowed; you manage context | allowed, after the gate below |
181
+
182
+ To arm a pane, launch it with `~/.claude/claude-armed.sh`, or tell the agent to go autonomous
183
+ mid-session and it runs `~/.claude/arm-session.sh on` (`off` turns it back off). A plain `claude`
184
+ session stays under your control.
185
+
186
+ ## Self-clear gate
187
+
188
+ A pane clears itself only after both steps:
189
+
190
+ 1. `/kijito-qa-memory` curates memory, writes a current-state note that begins with `RESUME NOW:`,
191
+ and confirms with a fresh subagent that a cold start can resume. It records a pass token.
192
+ 2. `self-clear.sh` checks that the kill switch is off, the pane is armed, it is not a subagent, it is
193
+ in tmux, the target pane is alive, and the pass token is **fresh**.
194
+
195
+ Every one of those is a property of *this* clear — above all, "is the handoff good enough to survive
196
+ it?" A count-based cycle cap and an every-N human checkpoint used to sit here too and were removed on
197
+ 2026-07-29: measured over 88 cycles they accounted for 19 of 24 refusals and never once caught a
198
+ loop, because a count measures uptime, not runaway. If a runaway ever needs catching, detect the loop
199
+ (consecutive cycles landing no commits and no memories) rather than the count.
200
+
201
+ It then runs `/clear`. The SessionStart hook catches the new session up and it resumes from the note.
202
+ To stop all autonomous sending and clearing, create the file `~/.claude/.lifecycle/STOP`.
203
+
204
+ ## Running without Kijito
205
+
206
+ The context check (`myctx.sh`) has no dependencies; install and run it.
207
+
208
+ For the autonomy harness, set `KIJITO_MODE=off` for a generic catch-up prompt, or set your own with
209
+ `KIJITO_AUTOCATCHUP_PROMPT`. The self-clear gate only requires that some curation step write the pass
210
+ token (`~/.claude/kijito-qa-pass.sh`). Kijito is the default backend, not a requirement.
211
+
212
+ ## Tests
213
+
214
+ ```bash
215
+ bash tests/lc_test.sh
216
+ ```
217
+
218
+ Covers arming, the token gate (both directions — a stale handoff refuses, a fresh one fires), the
219
+ kill switch, auto-send, and a regression guard that the removed count gates stay removed.
220
+
221
+ By default this exercises the scripts **in this repo** — the ones that actually ship. Set
222
+ `KIJITO_TEST_TARGET=installed` to run it against `~/.claude` instead, and `bash tests/drift_test.sh`
223
+ to report when those two disagree.
224
+
225
+ The rest of the suite:
226
+
227
+ ```bash
228
+ bash tests/drift_test.sh # does this machine RUN what the repo SHIPS?
229
+ bash tests/conformance_test.sh --selftest # every provider states the shared doctrine
230
+ node --test providers/codex/test/codex-hive-watch.test.mjs \
231
+ providers/codex/test/release-packaging.test.mjs # codex controller + packaging
232
+ node providers/codex/tools/refresh-manifest.mjs --check # codex gated hashes are current
233
+ ```
234
+
235
+ `drift_test.sh` covers both lanes — `providers/claude/` against `~/.claude`, and
236
+ `providers/codex/skills/` against `~/.codex/skills`. The codex lane is why it exists: those two skills
237
+ once lived *only* as installed state with no upstream in any repository, so a machine reinstall would
238
+ have destroyed them. `conformance_test.sh --selftest` first proves none of its own matchers can match
239
+ an empty document, because a prose check that accepts anything reports green forever.
240
+
241
+ ## License
242
+
243
+ Apache 2.0. Copyright 2026 Arcada Labs. See [LICENSE](LICENSE) and [NOTICE](NOTICE).