dikasta 0.3.31__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 (138) hide show
  1. dikasta-0.3.31/LICENSE +202 -0
  2. dikasta-0.3.31/PKG-INFO +81 -0
  3. dikasta-0.3.31/README.md +190 -0
  4. dikasta-0.3.31/cli/README.md +52 -0
  5. dikasta-0.3.31/cli/account_export_command.py +55 -0
  6. dikasta-0.3.31/cli/active_command.py +61 -0
  7. dikasta-0.3.31/cli/attachments.py +488 -0
  8. dikasta-0.3.31/cli/attention.py +57 -0
  9. dikasta-0.3.31/cli/bug_bundle.py +324 -0
  10. dikasta-0.3.31/cli/challenge_command.py +102 -0
  11. dikasta-0.3.31/cli/change_graph.py +1162 -0
  12. dikasta-0.3.31/cli/changed_coverage.py +229 -0
  13. dikasta-0.3.31/cli/ci_failure.py +180 -0
  14. dikasta-0.3.31/cli/codemod.py +490 -0
  15. dikasta-0.3.31/cli/codemod_rename.py +971 -0
  16. dikasta-0.3.31/cli/command_counts.py +43 -0
  17. dikasta-0.3.31/cli/command_help.py +283 -0
  18. dikasta-0.3.31/cli/commit_style.py +92 -0
  19. dikasta-0.3.31/cli/daily_digest.py +179 -0
  20. dikasta-0.3.31/cli/diff_view.py +129 -0
  21. dikasta-0.3.31/cli/dikasta.egg-info/PKG-INFO +81 -0
  22. dikasta-0.3.31/cli/dikasta.egg-info/SOURCES.txt +136 -0
  23. dikasta-0.3.31/cli/dikasta.egg-info/dependency_links.txt +1 -0
  24. dikasta-0.3.31/cli/dikasta.egg-info/entry_points.txt +3 -0
  25. dikasta-0.3.31/cli/dikasta.egg-info/requires.txt +4 -0
  26. dikasta-0.3.31/cli/dikasta.egg-info/top_level.txt +99 -0
  27. dikasta-0.3.31/cli/dikasta.py +7818 -0
  28. dikasta-0.3.31/cli/dikasta_api.py +135 -0
  29. dikasta-0.3.31/cli/environment_view.py +47 -0
  30. dikasta-0.3.31/cli/error_text.py +130 -0
  31. dikasta-0.3.31/cli/evidence_bundle.py +123 -0
  32. dikasta-0.3.31/cli/explain_command.py +76 -0
  33. dikasta-0.3.31/cli/file_links.py +56 -0
  34. dikasta-0.3.31/cli/first_week.py +70 -0
  35. dikasta-0.3.31/cli/fix_command.py +88 -0
  36. dikasta-0.3.31/cli/follow_command.py +66 -0
  37. dikasta-0.3.31/cli/git_notes.py +109 -0
  38. dikasta-0.3.31/cli/host_client.py +417 -0
  39. dikasta-0.3.31/cli/inline_images.py +82 -0
  40. dikasta-0.3.31/cli/issue_groups.py +362 -0
  41. dikasta-0.3.31/cli/jury_view.py +346 -0
  42. dikasta-0.3.31/cli/known_issues.py +85 -0
  43. dikasta-0.3.31/cli/last_failure.py +135 -0
  44. dikasta-0.3.31/cli/local_state.py +354 -0
  45. dikasta-0.3.31/cli/machine_blame.py +97 -0
  46. dikasta-0.3.31/cli/markdown_render.py +384 -0
  47. dikasta-0.3.31/cli/memories_view.py +127 -0
  48. dikasta-0.3.31/cli/migration_trial_command.py +43 -0
  49. dikasta-0.3.31/cli/mutation.py +228 -0
  50. dikasta-0.3.31/cli/native_changes.py +473 -0
  51. dikasta-0.3.31/cli/native_context.py +846 -0
  52. dikasta-0.3.31/cli/native_delivery.py +1062 -0
  53. dikasta-0.3.31/cli/native_export.py +286 -0
  54. dikasta-0.3.31/cli/native_extensions.py +190 -0
  55. dikasta-0.3.31/cli/native_headless.py +268 -0
  56. dikasta-0.3.31/cli/native_lessons.py +222 -0
  57. dikasta-0.3.31/cli/native_playbooks.py +64 -0
  58. dikasta-0.3.31/cli/native_service_commands.py +343 -0
  59. dikasta-0.3.31/cli/native_services.py +649 -0
  60. dikasta-0.3.31/cli/native_session.py +1798 -0
  61. dikasta-0.3.31/cli/native_skills.py +312 -0
  62. dikasta-0.3.31/cli/native_templates.py +172 -0
  63. dikasta-0.3.31/cli/native_why.py +86 -0
  64. dikasta-0.3.31/cli/native_workspace.py +1246 -0
  65. dikasta-0.3.31/cli/next_steps.py +43 -0
  66. dikasta-0.3.31/cli/onboarding.py +887 -0
  67. dikasta-0.3.31/cli/open_schemas.py +260 -0
  68. dikasta-0.3.31/cli/plan_impact_view.py +21 -0
  69. dikasta-0.3.31/cli/playbook_export.py +40 -0
  70. dikasta-0.3.31/cli/prepush.py +262 -0
  71. dikasta-0.3.31/cli/private_files.py +62 -0
  72. dikasta-0.3.31/cli/prose_style.py +320 -0
  73. dikasta-0.3.31/cli/protected_paths.py +157 -0
  74. dikasta-0.3.31/cli/published_config.py +101 -0
  75. dikasta-0.3.31/cli/question_cards.py +95 -0
  76. dikasta-0.3.31/cli/queue_store.py +111 -0
  77. dikasta-0.3.31/cli/release_notes.py +172 -0
  78. dikasta-0.3.31/cli/reply_evidence.py +78 -0
  79. dikasta-0.3.31/cli/repro_command.py +176 -0
  80. dikasta-0.3.31/cli/retired_models.py +40 -0
  81. dikasta-0.3.31/cli/review_hook.py +144 -0
  82. dikasta-0.3.31/cli/route_view.py +128 -0
  83. dikasta-0.3.31/cli/run_command.py +193 -0
  84. dikasta-0.3.31/cli/sample_project.py +123 -0
  85. dikasta-0.3.31/cli/scenario_draft_command.py +29 -0
  86. dikasta-0.3.31/cli/sentence_trace.py +97 -0
  87. dikasta-0.3.31/cli/shell_completion.py +73 -0
  88. dikasta-0.3.31/cli/shipping.py +422 -0
  89. dikasta-0.3.31/cli/spec_drift.py +205 -0
  90. dikasta-0.3.31/cli/spike_command.py +83 -0
  91. dikasta-0.3.31/cli/split_apply.py +455 -0
  92. dikasta-0.3.31/cli/syntax_colour.py +93 -0
  93. dikasta-0.3.31/cli/task_worktree.py +134 -0
  94. dikasta-0.3.31/cli/team_share.py +244 -0
  95. dikasta-0.3.31/cli/telemetry_view.py +66 -0
  96. dikasta-0.3.31/cli/terminal_comfort.py +482 -0
  97. dikasta-0.3.31/cli/terminal_signals.py +210 -0
  98. dikasta-0.3.31/cli/terminal_ui.py +1896 -0
  99. dikasta-0.3.31/cli/terminal_views.py +245 -0
  100. dikasta-0.3.31/cli/tidy_command.py +113 -0
  101. dikasta-0.3.31/cli/timeline.py +257 -0
  102. dikasta-0.3.31/cli/token_store.py +614 -0
  103. dikasta-0.3.31/cli/tree_view.py +160 -0
  104. dikasta-0.3.31/cli/upgrade_command.py +142 -0
  105. dikasta-0.3.31/cli/voice_input.py +62 -0
  106. dikasta-0.3.31/cli/watch_mode.py +122 -0
  107. dikasta-0.3.31/cli/weekly_view.py +29 -0
  108. dikasta-0.3.31/cli/whats_new.py +153 -0
  109. dikasta-0.3.31/pyproject.toml +188 -0
  110. dikasta-0.3.31/server/shared/__init__.py +6 -0
  111. dikasta-0.3.31/server/shared/artifact_evidence.py +1328 -0
  112. dikasta-0.3.31/server/shared/atomic_files.py +114 -0
  113. dikasta-0.3.31/server/shared/browser_evidence.py +345 -0
  114. dikasta-0.3.31/server/shared/cited_diagrams.py +740 -0
  115. dikasta-0.3.31/server/shared/client_versions.py +16 -0
  116. dikasta-0.3.31/server/shared/code_audits.py +1074 -0
  117. dikasta-0.3.31/server/shared/dead_code.py +124 -0
  118. dikasta-0.3.31/server/shared/delivery_intent.py +54 -0
  119. dikasta-0.3.31/server/shared/dependency_evidence.py +2227 -0
  120. dikasta-0.3.31/server/shared/dependency_formats.py +516 -0
  121. dikasta-0.3.31/server/shared/dependency_meaning.py +1125 -0
  122. dikasta-0.3.31/server/shared/history_evidence.py +218 -0
  123. dikasta-0.3.31/server/shared/history_inquiry.py +715 -0
  124. dikasta-0.3.31/server/shared/house_style.py +143 -0
  125. dikasta-0.3.31/server/shared/http_redirects.py +20 -0
  126. dikasta-0.3.31/server/shared/image_attachments.py +428 -0
  127. dikasta-0.3.31/server/shared/infra_evidence.py +941 -0
  128. dikasta-0.3.31/server/shared/irreversible.py +44 -0
  129. dikasta-0.3.31/server/shared/native_index.py +558 -0
  130. dikasta-0.3.31/server/shared/payload_codec.py +119 -0
  131. dikasta-0.3.31/server/shared/plan_diff.py +82 -0
  132. dikasta-0.3.31/server/shared/plan_impact.py +175 -0
  133. dikasta-0.3.31/server/shared/ticket_rubric.py +759 -0
  134. dikasta-0.3.31/server/shared/version_ranges.py +310 -0
  135. dikasta-0.3.31/server/shared/workspace_protocol.py +287 -0
  136. dikasta-0.3.31/server/shared/yaml_reader.py +726 -0
  137. dikasta-0.3.31/server/shared/zero_tier.py +165 -0
  138. dikasta-0.3.31/setup.cfg +4 -0
dikasta-0.3.31/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.
@@ -0,0 +1,81 @@
1
+ Metadata-Version: 2.4
2
+ Name: dikasta
3
+ Version: 0.3.31
4
+ Summary: Terminal client for the Dikasta coordinator: sign in with your account and talk to the platform's agent.
5
+ Author: Dikasta
6
+ License-Expression: Apache-2.0
7
+ Project-URL: Homepage, https://app.dikasta.ai
8
+ Project-URL: Documentation, https://app.dikasta.ai/docs/quickstart
9
+ Project-URL: Changelog, https://app.dikasta.ai/changelog
10
+ Project-URL: Status, https://app.dikasta.ai/status
11
+ Keywords: code review,coding agent,llm,terminal,cli
12
+ Classifier: Development Status :: 4 - Beta
13
+ Classifier: Environment :: Console
14
+ Classifier: Intended Audience :: Developers
15
+ Classifier: Operating System :: MacOS
16
+ Classifier: Operating System :: POSIX :: Linux
17
+ Classifier: Programming Language :: Python :: 3
18
+ Classifier: Programming Language :: Python :: 3 :: Only
19
+ Classifier: Programming Language :: Python :: 3.12
20
+ Classifier: Programming Language :: Python :: 3.13
21
+ Classifier: Topic :: Software Development :: Quality Assurance
22
+ Requires-Python: >=3.12
23
+ Description-Content-Type: text/markdown
24
+ License-File: LICENSE
25
+ Requires-Dist: prompt_toolkit<4,>=3.0.48
26
+ Provides-Extra: terminal
27
+ Requires-Dist: prompt_toolkit<4,>=3.0.48; extra == "terminal"
28
+ Dynamic: license-file
29
+
30
+ # dikasta
31
+
32
+ The terminal client for [Dikasta](https://app.dikasta.ai), a hosted service where one model plans,
33
+ a model from a different family challenges the plan, workers do bounded work and cite file and
34
+ line, and every citation is checked before it is believed.
35
+
36
+ The client reads and edits the working copy of your repository under its policy; the service plans,
37
+ reviews and runs every model on its own API keys. Nothing is sent to a model provider from your
38
+ machine, and no provider key is kept on it.
39
+
40
+ ## Install
41
+
42
+ macOS or Linux, Python 3.12 or later:
43
+
44
+ ```sh
45
+ pipx install dikasta
46
+ ```
47
+
48
+ ## Sign in
49
+
50
+ Accounts are by invitation: your invitation link creates your account. Then, in a terminal:
51
+
52
+ ```sh
53
+ dikasta login
54
+ ```
55
+
56
+ With no address, the client asks the service's site which coordinator to use, keeps the answer, and
57
+ falls back to `https://api.dikasta.ai` when the site cannot be reached. `dikasta login --host
58
+ https://COORDINATOR-ADDRESS` signs in at another deployment's coordinator.
59
+
60
+ ## Work
61
+
62
+ ```sh
63
+ cd your-repository
64
+ dikasta
65
+ ```
66
+
67
+ `dikasta doctor` checks this computer, the service and your sign-in, and names the fix for anything
68
+ that fails. `dikasta --help` lists every command.
69
+
70
+ ## Upgrade
71
+
72
+ ```sh
73
+ dikasta upgrade
74
+ ```
75
+
76
+ It says whether the service publishes a newer client or no longer accepts this one, and upgrades it
77
+ the way it was installed, with pipx or pip, once you say yes. `dikasta upgrade --check` only reports.
78
+
79
+ ## Licence
80
+
81
+ Apache License 2.0.
@@ -0,0 +1,190 @@
1
+ # Dikasta
2
+
3
+ Dikasta, from *dikastes*, the Athenian panel juror: no single judge decides. A coordinator
4
+ model plans, a model from a different family attacks the plan (when only one family can run,
5
+ the plan it approves stays provisional), workers do bounded read-only work and cite file and
6
+ line, and every citation is checked against a fingerprint before it is believed.
7
+
8
+ Dikasta is a hosted service. People install the `dikasta` terminal client, sign in, and work in
9
+ their own repositories: the client reads and edits the working copy under its policy, and the
10
+ service plans, reviews and runs every model (Claude, GPT and Gemini) on the platform's own API
11
+ keys, which only its administrators set. Nothing is sent to a model provider from a person's
12
+ machine, and no provider key is kept there. See [CONTAINERS.md](CONTAINERS.md) for the service's
13
+ Docker stack, unified capture, model routing, and recovery. Stored context is shared across
14
+ conversations within each repository. Session IDs track origin and assignment ownership.
15
+
16
+ Every model call uses a provider API. The service does not install or launch Codex, Gemini,
17
+ Claude Code or subscription sign-ins. Its own `dikasta` terminal client remains the normal
18
+ entry point; older chat transcripts remain readable.
19
+
20
+ ### Its own dissent rate
21
+
22
+ The number this product is accountable to is how often the second family's challenge changed
23
+ the plan. The last dated report, [public numbers of 24 September 2026](docs/public-numbers-2026-09-24.md),
24
+ counts 4 of 6 challenged plans changed over 90 days (Wilson 95% interval 30% to 90%): far too
25
+ few to conclude anything, which is why the interval is printed. That report covers every
26
+ repository of the install it was generated on; `dikasta numbers --project PATH` regenerates it
27
+ for one repository, for example this one.
28
+
29
+ ## Quick start
30
+
31
+ For a person using the service: macOS or Linux, Python 3.12 or later and pipx. Accounts are by
32
+ invitation: your invitation link creates your account. Install the client from the service's site,
33
+ sign in from the terminal, and work in any repository. Two addresses: the client comes from the
34
+ service's site, and the terminal signs in at the service's coordinator address, a different one.
35
+
36
+ Replace `SERVICE-SITE` and `COORDINATOR-ADDRESS` below with the real addresses. The site shows the
37
+ coordinator address when the operator has set it; otherwise ask your operator.
38
+
39
+ ```sh
40
+ pipx install https://SERVICE-SITE/client/dikasta-0.3.31-py3-none-any.whl
41
+ dikasta login --host https://COORDINATOR-ADDRESS
42
+ dikasta doctor # is the coordinator reachable, which client versions it serves
43
+ cd /path/to/your/project
44
+ dikasta # or: dikasta try "a read-only question"
45
+ ```
46
+
47
+ Use the site your invitation link opened and the coordinator address your operator gave you. Where
48
+ an operator opens registration, `dikasta signup --host https://COORDINATOR-ADDRESS` makes an account
49
+ instead of an invitation.
50
+
51
+ If the shell cannot find `dikasta` after the install, run `pipx ensurepath` and open a new
52
+ terminal. To upgrade from an earlier client, remove it and install the new one:
53
+ `pipx uninstall dikasta && pipx install https://SERVICE-SITE/client/dikasta-0.3.31-py3-none-any.whl`.
54
+ Your sign-in is kept; it lives in your home folder, not in the client.
55
+ [Release notes](docs/release-notes.md) list what changed and the known issues, each with what to do.
56
+
57
+ ## Running the service
58
+
59
+ This part is for the platform's operators. The service runs from a checkout of this repository
60
+ on its own servers, with Python 3.12 or later and Docker:
61
+
62
+ ```sh
63
+ git clone <this repository> dikasta
64
+ cd dikasta
65
+ python3 -m tools.bootstrap # secrets, mounts, images, the running stack, a readiness report
66
+ ```
67
+
68
+ [Running the service](docs/handbook/operations.md#running-the-service) in the handbook covers
69
+ the first administrator, the optional services, sleeping the stack and the provider keys.
70
+
71
+ ## Handbook
72
+
73
+ The rest of this page lives in `docs/handbook/`; the headings under "Older links" keep a
74
+ pointer each so links to the longer README still land.
75
+
76
+ - [Your first day](docs/handbook/first-day.md): your ownership row, the worktree and land flow, one key with a limit, the fast loop, ports, and what each kind of change needs
77
+ - [Developing Dikasta](docs/handbook/developing.md): clone, prerequisites, the test database, the fast tier, the dashboard build, the stack
78
+ - [Talking to the coordinator](docs/handbook/chat.md)
79
+ - [Sessions, memory and the live view](docs/handbook/sessions.md)
80
+ - [The public site, accounts and the dashboard build](docs/handbook/accounts.md)
81
+ - [Operating the stack](docs/handbook/operations.md)
82
+ - [Decision records](docs/adr/README.md), [recipes for agents](docs/agents/README.md), [the architecture](docs/architecture.md)
83
+ - [Release notes and known issues](docs/release-notes.md)
84
+
85
+ ## Licence and security
86
+
87
+ Dikasta is licensed under the Apache License 2.0; see [LICENSE](LICENSE) and
88
+ [NOTICE](NOTICE). Report a vulnerability privately through GitHub's private vulnerability
89
+ reporting, as [SECURITY.md](SECURITY.md) describes, not in a public issue.
90
+ [CONTRIBUTING.md](CONTRIBUTING.md) covers contributions.
91
+
92
+ ## Older links
93
+
94
+ Each heading below moved into the handbook and points to where it went.
95
+
96
+ ### Talk to the coordinator from a terminal
97
+
98
+ Moved to [docs/handbook/chat.md](docs/handbook/chat.md#talk-to-the-coordinator-from-a-terminal).
99
+
100
+ ### Use from Claude Code
101
+
102
+ Moved to [docs/handbook/chat.md](docs/handbook/chat.md#use-from-claude-code).
103
+
104
+ ### Shared project context and session ownership
105
+
106
+ Moved to [docs/handbook/sessions.md](docs/handbook/sessions.md#shared-project-context-and-session-ownership).
107
+
108
+ ### Context efficiency and budgets
109
+
110
+ Moved to [docs/handbook/sessions.md](docs/handbook/sessions.md#context-efficiency-and-budgets).
111
+
112
+ ### Routing pressure and evidence prefetch
113
+
114
+ Moved to [docs/handbook/sessions.md](docs/handbook/sessions.md#routing-pressure-and-evidence-prefetch).
115
+
116
+ ### Verification and dashboard actions
117
+
118
+ Moved to [docs/handbook/sessions.md](docs/handbook/sessions.md#verification-and-dashboard-actions).
119
+
120
+ ### Backups and server deployment
121
+
122
+ Moved to [docs/handbook/operations.md](docs/handbook/operations.md#backups-and-server-deployment).
123
+
124
+ ### Continuity and questions
125
+
126
+ Moved to [docs/handbook/sessions.md](docs/handbook/sessions.md#continuity-and-questions).
127
+
128
+ ### Memory lifecycle
129
+
130
+ Moved to [docs/handbook/sessions.md](docs/handbook/sessions.md#memory-lifecycle).
131
+
132
+ ### Live view
133
+
134
+ Moved to [docs/handbook/sessions.md](docs/handbook/sessions.md#live-view).
135
+
136
+ ### The public site and accounts
137
+
138
+ Moved to [docs/handbook/accounts.md](docs/handbook/accounts.md#the-public-site-and-accounts).
139
+
140
+ ### Dashboard build
141
+
142
+ Moved to [docs/handbook/accounts.md](docs/handbook/accounts.md#dashboard-build).
143
+
144
+ ### Defaults and scope
145
+
146
+ Moved to [docs/handbook/operations.md](docs/handbook/operations.md#defaults-and-scope).
147
+
148
+ ### Files
149
+
150
+ Moved to [docs/handbook/operations.md](docs/handbook/operations.md#files).
151
+
152
+ ### Docker and background service
153
+
154
+ Moved to [docs/handbook/operations.md](docs/handbook/operations.md#docker-and-background-service).
155
+
156
+ ### Engine stack: rebuild and redeploy
157
+
158
+ Moved to [docs/handbook/operations.md](docs/handbook/operations.md#engine-stack-rebuild-and-redeploy).
159
+
160
+ ### Manual commands
161
+
162
+ Moved to [docs/handbook/operations.md](docs/handbook/operations.md#manual-commands).
163
+
164
+ ### Integration and removal
165
+
166
+ Moved to [docs/handbook/operations.md](docs/handbook/operations.md#integration-and-removal).
167
+
168
+ ### Upgrading from before the rename
169
+
170
+ Moved to [docs/handbook/operations.md](docs/handbook/operations.md#upgrading-from-before-the-rename).
171
+
172
+ ### Limits of this first version
173
+
174
+ Moved to [docs/handbook/operations.md](docs/handbook/operations.md#limits-of-this-first-version).
175
+
176
+ ### Validation
177
+
178
+ Moved to [docs/handbook/operations.md](docs/handbook/operations.md#validation).
179
+
180
+ ### Protocol references
181
+
182
+ Moved to [docs/handbook/operations.md](docs/handbook/operations.md#protocol-references).
183
+
184
+ ### Pilot, approved checks, and session maintenance
185
+
186
+ Moved to [docs/handbook/sessions.md](docs/handbook/sessions.md#pilot-approved-checks-and-session-maintenance).
187
+
188
+ ### Productivity workflows
189
+
190
+ Moved to [docs/handbook/sessions.md](docs/handbook/sessions.md#productivity-workflows).
@@ -0,0 +1,52 @@
1
+ # dikasta
2
+
3
+ The terminal client for [Dikasta](https://app.dikasta.ai), a hosted service where one model plans,
4
+ a model from a different family challenges the plan, workers do bounded work and cite file and
5
+ line, and every citation is checked before it is believed.
6
+
7
+ The client reads and edits the working copy of your repository under its policy; the service plans,
8
+ reviews and runs every model on its own API keys. Nothing is sent to a model provider from your
9
+ machine, and no provider key is kept on it.
10
+
11
+ ## Install
12
+
13
+ macOS or Linux, Python 3.12 or later:
14
+
15
+ ```sh
16
+ pipx install dikasta
17
+ ```
18
+
19
+ ## Sign in
20
+
21
+ Accounts are by invitation: your invitation link creates your account. Then, in a terminal:
22
+
23
+ ```sh
24
+ dikasta login
25
+ ```
26
+
27
+ With no address, the client asks the service's site which coordinator to use, keeps the answer, and
28
+ falls back to `https://api.dikasta.ai` when the site cannot be reached. `dikasta login --host
29
+ https://COORDINATOR-ADDRESS` signs in at another deployment's coordinator.
30
+
31
+ ## Work
32
+
33
+ ```sh
34
+ cd your-repository
35
+ dikasta
36
+ ```
37
+
38
+ `dikasta doctor` checks this computer, the service and your sign-in, and names the fix for anything
39
+ that fails. `dikasta --help` lists every command.
40
+
41
+ ## Upgrade
42
+
43
+ ```sh
44
+ dikasta upgrade
45
+ ```
46
+
47
+ It says whether the service publishes a newer client or no longer accepts this one, and upgrades it
48
+ the way it was installed, with pipx or pip, once you say yes. `dikasta upgrade --check` only reports.
49
+
50
+ ## Licence
51
+
52
+ Apache License 2.0.
@@ -0,0 +1,55 @@
1
+ """`dikasta export-account [EMAIL]`: one person's data in one JSON file (engine account_export.py).
2
+
3
+ Your own account by default; an administrator may name another by email. The file is new
4
+ (never overwritten) and readable by you alone, because it holds the person's conversations.
5
+ Deleting stays `dikasta admin delete-user`.
6
+ """
7
+ import json
8
+ import os
9
+ from pathlib import Path
10
+ from server.shared.atomic_files import write_json
11
+
12
+
13
+ def register(sub):
14
+ parser = sub.add_parser('export-account', help="one person's data as one JSON file: account, records, owned sessions "
15
+ 'and tasks, chats; never credentials')
16
+ parser.add_argument('email', nargs='?', help='the account to export (administrators only; default: your own)')
17
+ parser.add_argument('--out', help='the new file to write (default dikasta-account-<id>.json)')
18
+ parser.add_argument('--json', action='store_true', help='print the summary as JSON')
19
+
20
+
21
+ def summary(result, path):
22
+ rows = {table: len(items) for table, items in sorted((result.get('records') or {}).items())}
23
+ owned = {table: len(items) for table, items in sorted((result.get('owned') or {}).items())}
24
+ return {'path': str(path), 'account': (result.get('account') or {}).get('email'), 'records': rows, 'owned': owned,
25
+ 'chats': len(result.get('chats') or []), 'truncated': result.get('truncated') or [],
26
+ 'omitted': result.get('omitted') or []}
27
+
28
+
29
+ def run(args, host, out):
30
+ # Checked before the export, which takes up to minutes and is audited, so a bad path wastes neither.
31
+ chosen = Path(args.out).expanduser() if args.out else None
32
+ folder = (chosen.parent if chosen else Path('.')).resolve()
33
+ if chosen is not None and os.path.lexists(chosen):
34
+ raise SystemExit('dikasta: %s exists; the export never overwrites a file, so name a new one with --out' % chosen)
35
+ if not os.access(folder, os.W_OK | os.X_OK):
36
+ raise SystemExit('dikasta: cannot write in %s; run it from a folder you can write to, or give --out' % folder)
37
+ payload = {'email': args.email} if args.email else {}
38
+ result = host.request('POST', '/x/export_account', payload, timeout=150)
39
+ target = chosen or Path('dikasta-account-%s.json' % (result.get('account') or {}).get('id', 'unknown'))
40
+ try:
41
+ write_json(target, result, mode=0o600, exclusive=True, indent=2, sort_keys=True, streaming=True)
42
+ except FileExistsError:
43
+ raise SystemExit('dikasta: %s exists; the export never overwrites a file, so name a new one with --out' % target) from None
44
+ except OSError as exc:
45
+ raise SystemExit('dikasta: cannot write %s: %s' % (target, exc.strerror or exc)) from None
46
+ told = summary(result, target.resolve())
47
+ if args.json:
48
+ out(json.dumps(told, indent=2))
49
+ return told
50
+ out('Wrote %s for %s: %d record tables, %d owned sessions and tasks, %d chats.' % (
51
+ told['path'], told['account'], len(told['records']), sum(told['owned'].values()), told['chats']))
52
+ if told['truncated']:
53
+ out('Cut at the row limit: ' + ', '.join(told['truncated']))
54
+ out('Not in it: ' + '; '.join(told['omitted']))
55
+ return told
@@ -0,0 +1,61 @@
1
+ """`dikasta active [--stop TASK]`: the account's running terminal tasks, and a way to stop one.
2
+
3
+ An account runs at most two terminal tasks at once (server/chat/native_delivery.py). A task
4
+ started in another terminal, or one whose terminal was closed, holds a slot until it ends, so
5
+ this lists what holds them and stops one from anywhere: the same cancel as Ctrl-C in the
6
+ task's own terminal, which keeps completed work.
7
+ """
8
+ import json
9
+ import time
10
+
11
+
12
+ def register(sub):
13
+ parser = sub.add_parser('active', help='list your running terminal tasks, or stop one with --stop')
14
+ parser.add_argument('--stop', metavar='TASK', help='stop this task (its id from the list); completed work is kept')
15
+ parser.add_argument('--release-writes', action='store_true',
16
+ help='with --stop: also release the folder from an edit that was cut off, after checking the files')
17
+ parser.add_argument('--json', action='store_true', help='print the result as JSON instead of text')
18
+
19
+
20
+ def age(updated, now=None):
21
+ seconds = max(0, int((now or time.time()) - float(updated or 0)))
22
+ return '%d min' % (seconds // 60) if seconds >= 60 else '%d s' % seconds
23
+
24
+
25
+ def describe(task, now=None):
26
+ from terminal_ui import plain
27
+ prompt = ' '.join(str(task.get('prompt') or '').split())
28
+ if len(prompt) > 80:
29
+ prompt = prompt[:80] + '…'
30
+ return plain(' %s %s, %s, updated %s ago: %s' % (task.get('delivery_id'), task.get('intent') or 'task',
31
+ task.get('stage') or 'running', age(task.get('updated'), now), prompt))
32
+
33
+
34
+ def run(args, host, out):
35
+ as_json = getattr(args, 'json', False)
36
+ if getattr(args, 'release_writes', False) and not args.stop:
37
+ raise SystemExit('--release-writes goes with --stop TASK')
38
+ if args.stop:
39
+ request = {'action': 'cancel', 'delivery_id': args.stop}
40
+ if getattr(args, 'release_writes', False):
41
+ request['release_writes'] = True
42
+ stopped = host.request('POST', '/native/deliveries', request)
43
+ out(json.dumps(stopped, indent=2) if as_json else 'Stopping %s; completed work is kept.%s' % (
44
+ args.stop, ' Its claim on this folder is released.' if request.get('release_writes') else ''))
45
+ return
46
+ listed = host.request('POST', '/native/deliveries', {'action': 'list'}).get('tasks') or []
47
+ tasks = [task for task in listed if task.get('running')]
48
+ # A task a service update stopped waits here when no terminal is attached to resume it (decision 0212).
49
+ held = [task for task in listed if not task.get('running') and (task.get('stop_reason') or {}).get('code') == 'maintenance']
50
+ if as_json:
51
+ out(json.dumps({'tasks': tasks, 'paused_for_update': held}, indent=2))
52
+ return
53
+ for task in held:
54
+ out('Paused for a service update: dikasta resume %s' % task['delivery_id'])
55
+ if not tasks:
56
+ out('No terminal task is running for this account.')
57
+ return
58
+ out('Running terminal tasks (at most two at once):')
59
+ for task in tasks:
60
+ out(describe(task))
61
+ out('Stop one with `dikasta active --stop <task>`.')