javis 0.2.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- javis-0.2.0/LICENSE +202 -0
- javis-0.2.0/NOTICE +4 -0
- javis-0.2.0/PKG-INFO +200 -0
- javis-0.2.0/README.md +172 -0
- javis-0.2.0/javis/__init__.py +7 -0
- javis-0.2.0/javis/_banner.py +69 -0
- javis-0.2.0/javis/budget.py +17 -0
- javis-0.2.0/javis/builtin_marketplace/code-review/agents/reviewer.md +9 -0
- javis-0.2.0/javis/builtin_marketplace/code-review/commands/review.md +16 -0
- javis-0.2.0/javis/builtin_marketplace/code-review/plugin.json +4 -0
- javis-0.2.0/javis/builtin_marketplace/commit/commands/commit.md +13 -0
- javis-0.2.0/javis/builtin_marketplace/commit/plugin.json +4 -0
- javis-0.2.0/javis/builtin_marketplace/explain/agents/explainer.md +7 -0
- javis-0.2.0/javis/builtin_marketplace/explain/commands/explain.md +15 -0
- javis-0.2.0/javis/builtin_marketplace/explain/plugin.json +4 -0
- javis-0.2.0/javis/builtin_marketplace/test-author/agents/test-author.md +8 -0
- javis-0.2.0/javis/builtin_marketplace/test-author/commands/test.md +12 -0
- javis-0.2.0/javis/builtin_marketplace/test-author/plugin.json +4 -0
- javis-0.2.0/javis/caching.py +39 -0
- javis-0.2.0/javis/catalog.py +68 -0
- javis-0.2.0/javis/cli.py +644 -0
- javis-0.2.0/javis/commands.py +77 -0
- javis-0.2.0/javis/compress.py +33 -0
- javis-0.2.0/javis/config.py +60 -0
- javis-0.2.0/javis/context.py +111 -0
- javis-0.2.0/javis/core.py +56 -0
- javis-0.2.0/javis/distill.py +74 -0
- javis-0.2.0/javis/errors.py +120 -0
- javis-0.2.0/javis/eval.py +281 -0
- javis-0.2.0/javis/eval_ab.py +133 -0
- javis-0.2.0/javis/events.py +131 -0
- javis-0.2.0/javis/experiment.py +214 -0
- javis-0.2.0/javis/failure_memory.py +97 -0
- javis-0.2.0/javis/gates/__init__.py +0 -0
- javis-0.2.0/javis/gates/base.py +16 -0
- javis-0.2.0/javis/gates/lint.py +36 -0
- javis-0.2.0/javis/gates/oracle.py +78 -0
- javis-0.2.0/javis/gates/parse.py +31 -0
- javis-0.2.0/javis/gates/policy.py +108 -0
- javis-0.2.0/javis/gates/readwrite.py +28 -0
- javis-0.2.0/javis/gates/resolve.py +213 -0
- javis-0.2.0/javis/gates/verify.py +13 -0
- javis-0.2.0/javis/guardrails.py +107 -0
- javis-0.2.0/javis/hooks.py +127 -0
- javis-0.2.0/javis/ladders.py +75 -0
- javis-0.2.0/javis/languages.py +145 -0
- javis-0.2.0/javis/localproto.py +126 -0
- javis-0.2.0/javis/loop.py +623 -0
- javis-0.2.0/javis/lsp.py +350 -0
- javis-0.2.0/javis/marketplace.py +212 -0
- javis-0.2.0/javis/mcp.py +459 -0
- javis-0.2.0/javis/mcp_install.py +184 -0
- javis-0.2.0/javis/model.py +96 -0
- javis-0.2.0/javis/narrator.py +85 -0
- javis-0.2.0/javis/orchestrate.py +341 -0
- javis-0.2.0/javis/permissions.py +108 -0
- javis-0.2.0/javis/plan.py +112 -0
- javis-0.2.0/javis/planmode.py +28 -0
- javis-0.2.0/javis/plugins.py +324 -0
- javis-0.2.0/javis/polyglot.py +309 -0
- javis-0.2.0/javis/preflight.py +180 -0
- javis-0.2.0/javis/ratelimit.py +89 -0
- javis-0.2.0/javis/redact.py +36 -0
- javis-0.2.0/javis/repomap.py +83 -0
- javis-0.2.0/javis/router.py +125 -0
- javis-0.2.0/javis/sanitize.py +44 -0
- javis-0.2.0/javis/semsearch.py +171 -0
- javis-0.2.0/javis/setup.py +84 -0
- javis-0.2.0/javis/slash.py +101 -0
- javis-0.2.0/javis/subagents.py +155 -0
- javis-0.2.0/javis/swebench.py +385 -0
- javis-0.2.0/javis/swebench_docker.py +136 -0
- javis-0.2.0/javis/theme.py +99 -0
- javis-0.2.0/javis/tools/__init__.py +0 -0
- javis-0.2.0/javis/tools/code.py +101 -0
- javis-0.2.0/javis/tools/fs.py +139 -0
- javis-0.2.0/javis/tools/git.py +32 -0
- javis-0.2.0/javis/tools/shell.py +23 -0
- javis-0.2.0/javis/tools/tests.py +158 -0
- javis-0.2.0/javis/trajectory.py +59 -0
- javis-0.2.0/javis/treesitter.py +266 -0
- javis-0.2.0/javis/tui.py +910 -0
- javis-0.2.0/javis/tui_app.py +284 -0
- javis-0.2.0/javis.egg-info/PKG-INFO +200 -0
- javis-0.2.0/javis.egg-info/SOURCES.txt +193 -0
- javis-0.2.0/javis.egg-info/dependency_links.txt +1 -0
- javis-0.2.0/javis.egg-info/entry_points.txt +10 -0
- javis-0.2.0/javis.egg-info/requires.txt +21 -0
- javis-0.2.0/javis.egg-info/top_level.txt +1 -0
- javis-0.2.0/pyproject.toml +61 -0
- javis-0.2.0/setup.cfg +4 -0
- javis-0.2.0/tests/test_analysis_mode.py +67 -0
- javis-0.2.0/tests/test_builtin_marketplace.py +130 -0
- javis-0.2.0/tests/test_cache_friendly.py +24 -0
- javis-0.2.0/tests/test_caching.py +21 -0
- javis-0.2.0/tests/test_cancel.py +48 -0
- javis-0.2.0/tests/test_catalog.py +23 -0
- javis-0.2.0/tests/test_cli.py +29 -0
- javis-0.2.0/tests/test_cli_ladder.py +84 -0
- javis-0.2.0/tests/test_cli_local.py +73 -0
- javis-0.2.0/tests/test_cli_marketplace.py +65 -0
- javis-0.2.0/tests/test_cli_mcp.py +33 -0
- javis-0.2.0/tests/test_cli_plugin_update.py +58 -0
- javis-0.2.0/tests/test_cli_plugins.py +46 -0
- javis-0.2.0/tests/test_cli_tier_models.py +40 -0
- javis-0.2.0/tests/test_cli_tui.py +58 -0
- javis-0.2.0/tests/test_code.py +93 -0
- javis-0.2.0/tests/test_commands.py +55 -0
- javis-0.2.0/tests/test_compress.py +23 -0
- javis-0.2.0/tests/test_config.py +48 -0
- javis-0.2.0/tests/test_context_pressure.py +71 -0
- javis-0.2.0/tests/test_distill.py +29 -0
- javis-0.2.0/tests/test_errors.py +44 -0
- javis-0.2.0/tests/test_eval.py +177 -0
- javis-0.2.0/tests/test_eval_ab.py +79 -0
- javis-0.2.0/tests/test_events.py +54 -0
- javis-0.2.0/tests/test_experiment.py +64 -0
- javis-0.2.0/tests/test_failure_memory.py +35 -0
- javis-0.2.0/tests/test_fs.py +99 -0
- javis-0.2.0/tests/test_git.py +36 -0
- javis-0.2.0/tests/test_guardrails.py +75 -0
- javis-0.2.0/tests/test_hooks.py +61 -0
- javis-0.2.0/tests/test_ladder_router.py +71 -0
- javis-0.2.0/tests/test_ladders.py +51 -0
- javis-0.2.0/tests/test_languages.py +73 -0
- javis-0.2.0/tests/test_lint_gate.py +15 -0
- javis-0.2.0/tests/test_localproto.py +100 -0
- javis-0.2.0/tests/test_loop_ask.py +78 -0
- javis-0.2.0/tests/test_loop_delegate.py +48 -0
- javis-0.2.0/tests/test_loop_events.py +88 -0
- javis-0.2.0/tests/test_loop_guardrail.py +60 -0
- javis-0.2.0/tests/test_loop_hooks.py +66 -0
- javis-0.2.0/tests/test_loop_lsp.py +64 -0
- javis-0.2.0/tests/test_loop_mcp.py +90 -0
- javis-0.2.0/tests/test_loop_multifile.py +50 -0
- javis-0.2.0/tests/test_loop_oracle.py +64 -0
- javis-0.2.0/tests/test_loop_policy.py +29 -0
- javis-0.2.0/tests/test_loop_regression.py +48 -0
- javis-0.2.0/tests/test_loop_resolve.py +49 -0
- javis-0.2.0/tests/test_loop_scripted.py +69 -0
- javis-0.2.0/tests/test_loop_text_tools.py +68 -0
- javis-0.2.0/tests/test_lsp.py +90 -0
- javis-0.2.0/tests/test_lsp_pool.py +80 -0
- javis-0.2.0/tests/test_marketplace.py +83 -0
- javis-0.2.0/tests/test_mcp.py +136 -0
- javis-0.2.0/tests/test_mcp_http.py +93 -0
- javis-0.2.0/tests/test_mcp_hub.py +88 -0
- javis-0.2.0/tests/test_mcp_install.py +94 -0
- javis-0.2.0/tests/test_mcp_resources.py +51 -0
- javis-0.2.0/tests/test_model_local.py +96 -0
- javis-0.2.0/tests/test_multilang_fixtures.py +203 -0
- javis-0.2.0/tests/test_multilang_structure.py +70 -0
- javis-0.2.0/tests/test_narrator.py +70 -0
- javis-0.2.0/tests/test_oracle_gate.py +41 -0
- javis-0.2.0/tests/test_orchestrate.py +81 -0
- javis-0.2.0/tests/test_orchestrate_compare.py +54 -0
- javis-0.2.0/tests/test_parse_gate.py +15 -0
- javis-0.2.0/tests/test_permission_prompt.py +43 -0
- javis-0.2.0/tests/test_permissions.py +99 -0
- javis-0.2.0/tests/test_plan_shape.py +16 -0
- javis-0.2.0/tests/test_planmode.py +21 -0
- javis-0.2.0/tests/test_plugin_update.py +146 -0
- javis-0.2.0/tests/test_plugins.py +90 -0
- javis-0.2.0/tests/test_plugins_wired.py +62 -0
- javis-0.2.0/tests/test_policy_gate.py +44 -0
- javis-0.2.0/tests/test_polyglot.py +129 -0
- javis-0.2.0/tests/test_preflight.py +180 -0
- javis-0.2.0/tests/test_project_context.py +26 -0
- javis-0.2.0/tests/test_ratelimit.py +34 -0
- javis-0.2.0/tests/test_readwrite_gate.py +20 -0
- javis-0.2.0/tests/test_redact.py +41 -0
- javis-0.2.0/tests/test_repomap.py +27 -0
- javis-0.2.0/tests/test_resolve_gate.py +63 -0
- javis-0.2.0/tests/test_resolve_imports.py +28 -0
- javis-0.2.0/tests/test_resolve_multilang.py +79 -0
- javis-0.2.0/tests/test_router.py +86 -0
- javis-0.2.0/tests/test_router_resilience.py +42 -0
- javis-0.2.0/tests/test_sanitize.py +31 -0
- javis-0.2.0/tests/test_semsearch.py +30 -0
- javis-0.2.0/tests/test_setup.py +52 -0
- javis-0.2.0/tests/test_shell_tool.py +68 -0
- javis-0.2.0/tests/test_slash.py +51 -0
- javis-0.2.0/tests/test_subagents.py +61 -0
- javis-0.2.0/tests/test_suite.py +16 -0
- javis-0.2.0/tests/test_swebench.py +207 -0
- javis-0.2.0/tests/test_swebench_docker.py +151 -0
- javis-0.2.0/tests/test_task_checklist.py +51 -0
- javis-0.2.0/tests/test_test_runner.py +96 -0
- javis-0.2.0/tests/test_tier_dispatch.py +84 -0
- javis-0.2.0/tests/test_trajectory_capture.py +51 -0
- javis-0.2.0/tests/test_treesitter.py +53 -0
- javis-0.2.0/tests/test_tui.py +242 -0
- javis-0.2.0/tests/test_tui_modal.py +62 -0
- javis-0.2.0/tests/test_tui_select.py +116 -0
- javis-0.2.0/tests/test_write_create.py +104 -0
javis-0.2.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.
|
javis-0.2.0/NOTICE
ADDED
javis-0.2.0/PKG-INFO
ADDED
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: javis
|
|
3
|
+
Version: 0.2.0
|
|
4
|
+
Summary: Joint Autonomous Verified Intelligence System — harness-governed coding agent; intelligence in the harness, not the model
|
|
5
|
+
Author: Okello Solomon Roy Jasper
|
|
6
|
+
License-Expression: Apache-2.0
|
|
7
|
+
Requires-Python: >=3.9
|
|
8
|
+
Description-Content-Type: text/markdown
|
|
9
|
+
License-File: LICENSE
|
|
10
|
+
License-File: NOTICE
|
|
11
|
+
Provides-Extra: llm
|
|
12
|
+
Requires-Dist: litellm>=1.0; extra == "llm"
|
|
13
|
+
Requires-Dist: tenacity; extra == "llm"
|
|
14
|
+
Provides-Extra: lsp
|
|
15
|
+
Requires-Dist: python-lsp-server; extra == "lsp"
|
|
16
|
+
Requires-Dist: pyflakes; extra == "lsp"
|
|
17
|
+
Provides-Extra: treesitter
|
|
18
|
+
Requires-Dist: tree-sitter-language-pack>=0.20; extra == "treesitter"
|
|
19
|
+
Provides-Extra: tui
|
|
20
|
+
Requires-Dist: rich>=13; extra == "tui"
|
|
21
|
+
Requires-Dist: prompt_toolkit>=3; extra == "tui"
|
|
22
|
+
Provides-Extra: dev
|
|
23
|
+
Requires-Dist: pytest>=7; extra == "dev"
|
|
24
|
+
Requires-Dist: pytest-cov>=4; extra == "dev"
|
|
25
|
+
Requires-Dist: ruff>=0.6; extra == "dev"
|
|
26
|
+
Requires-Dist: mypy>=1.8; extra == "dev"
|
|
27
|
+
Dynamic: license-file
|
|
28
|
+
|
|
29
|
+
# JAVIS — Joint Autonomous Verified Intelligence System
|
|
30
|
+
|
|
31
|
+
A harness-governed coding agent. The name is the thesis: intelligence is **joint** —
|
|
32
|
+
the model is an untrusted prover, the harness a sound proof checker, and neither is the
|
|
33
|
+
agent alone — and every claim is **verified**: the gates refuse to advance on anything
|
|
34
|
+
the tests, parser, or resolver can't confirm. **Put the execution intelligence in the
|
|
35
|
+
harness, not the model.** See [`docs/harness-contract.md`](docs/harness-contract.md).
|
|
36
|
+
|
|
37
|
+
Created by **Okello Solomon Roy Jasper**.
|
|
38
|
+
|
|
39
|
+
## Quickstart
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
git clone https://github.com/Code-weaver1/javis.git && cd javis
|
|
43
|
+
python3 -m venv .venv && source .venv/bin/activate
|
|
44
|
+
pip install -e ".[llm,tui]"
|
|
45
|
+
|
|
46
|
+
export OPENROUTER_API_KEY=sk-or-... # any OpenRouter key — free-tier models are enough
|
|
47
|
+
javis --check # preflight: validates your model ladder against the live catalog
|
|
48
|
+
javis --tui --repo /path/to/your/project --task "fix the failing test"
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
No API key yet? Watch the harness narrate a three-step gated task behind a scripted model —
|
|
52
|
+
no network, no account:
|
|
53
|
+
|
|
54
|
+
```bash
|
|
55
|
+
python scripts/tui_narration_demo.py --delay 0.4
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
Prefer a guided setup (pick a provider, model, and key interactively)? `javis --setup`.
|
|
59
|
+
|
|
60
|
+
## Status: v1 — a trustworthy correctness engine
|
|
61
|
+
|
|
62
|
+
The `plan → propose → adjudicate → admit` loop with an **enforced gate set** —
|
|
63
|
+
**0** (plan-shape), **1** (resolve — rejects hallucinated calls), **2/2b** (read-before-write /
|
|
64
|
+
read-verbatim), **3** (parse), **6** (test), **7** (oracle-integrity — the test oracle is read-only) —
|
|
65
|
+
plus a **tiered router** (escalate to a strong tier on failure), a **difficulty-graded fixture
|
|
66
|
+
suite**, `--sandbox` runs, and tier-labeled trajectory logging. Self-planning is off by default
|
|
67
|
+
(Phase 0 showed it hurts; opt in with `--plan`).
|
|
68
|
+
|
|
69
|
+
**Honest scope:** the harness guarantees **correctness** — it never ships broken or regressing
|
|
70
|
+
code, and the oracle can't be gamed — but it does **not** by itself lift a weak model's *completion
|
|
71
|
+
rate* on reasoning-hard tasks (that's the router + distillation). See `docs/harness-contract.md` §7.
|
|
72
|
+
Growth still ahead: lint/type gates (4/5), coherence + `arch-spec` (8), distillation *training* (P5).
|
|
73
|
+
|
|
74
|
+
**Reliability layer** (adapted from [Hermes](https://github.com/NousResearch/hermes-agent)): tool-loop
|
|
75
|
+
guardrails (halt-and-escalate on thrash), tool-call JSON repair for weak models, a structured API
|
|
76
|
+
error taxonomy driving router escalation, and a rate-limit cooldown guard so a 429'd model is skipped
|
|
77
|
+
rather than hammered.
|
|
78
|
+
|
|
79
|
+
**Cost & caching (provider-agnostic).** No provider-specific caching code. The loop keeps a byte-stable
|
|
80
|
+
prompt prefix (system + task) across turns, so providers that auto-cache prefixes (OpenAI, DeepSeek,
|
|
81
|
+
Gemini, most via OpenRouter) apply the discount for free; the one provider that needs explicit
|
|
82
|
+
`cache_control` markers (Anthropic) is handled by litellm when you opt in with `--cache` (off by
|
|
83
|
+
default), never by branching in JAVIS. Context
|
|
84
|
+
compression trims the non-cacheable tail. Net cost levers, all agnostic: stable prefix → auto-cache,
|
|
85
|
+
compression, and escalating to the expensive tier only on failure.
|
|
86
|
+
|
|
87
|
+
**Extending JAVIS** (provider-agnostic, opt-in — see [`docs/extensibility.md`](docs/extensibility.md)):
|
|
88
|
+
project context (`JAVIS.md`), declarative policy (`.javis-policy.json`), lifecycle hooks
|
|
89
|
+
(`.javis/hooks.json`), reusable commands (`.javis/commands/`), and read-only subagents the main
|
|
90
|
+
agent can delegate to (`.javis/agents/`). Autonomous sandboxing recipe in
|
|
91
|
+
[`docs/autonomous-sandbox.md`](docs/autonomous-sandbox.md).
|
|
92
|
+
|
|
93
|
+
## Layout
|
|
94
|
+
|
|
95
|
+
```
|
|
96
|
+
javis/
|
|
97
|
+
loop.py plan -> propose -> adjudicate -> admit
|
|
98
|
+
plan.py plan stage + plan-shape gate (gate 0)
|
|
99
|
+
context.py context window + read-set / read-content (gates 2, 2b)
|
|
100
|
+
model.py Model protocol; ScriptedModel (tests/control) + LiteLLMModel (OpenRouter)
|
|
101
|
+
router.py tiered escalation (cheap -> strong on failure / API error)
|
|
102
|
+
guardrails.py loop detection — halt a thrashing run so the router escalates
|
|
103
|
+
sanitize.py repair malformed tool-call JSON from weak models
|
|
104
|
+
errors.py API error taxonomy (rate_limit / billing / not_found / ...)
|
|
105
|
+
ratelimit.py x-ratelimit header parse + file-based cooldown guard
|
|
106
|
+
budget.py run budget
|
|
107
|
+
trajectory.py day-0 tier-labeled distillation capture
|
|
108
|
+
experiment.py the de-risk matrix runner (models x conditions x fixtures)
|
|
109
|
+
distill.py export gate-passed trajectories as tier-labeled SFT data (P5)
|
|
110
|
+
failure_memory.py mine recurring failures -> guardrail-hint candidates
|
|
111
|
+
catalog.py pick tool-capable / cheap OpenRouter models
|
|
112
|
+
hooks.py lifecycle hooks (PreTool/PostTool/Stop scripts)
|
|
113
|
+
commands.py markdown task templates (--command / /name)
|
|
114
|
+
subagents.py read-only specialized agents (delegate + PARALLEL dispatch); built-in reviewer
|
|
115
|
+
repomap.py symbol-level repo map (files + their defs/classes)
|
|
116
|
+
planmode.py human-approved plan mode (REPL /plan)
|
|
117
|
+
tools/git.py git awareness (status/diff/log) + commit-on-success
|
|
118
|
+
tools/ fs (read/edit), code (grep/resolve), tests (the pytest oracle)
|
|
119
|
+
gates/ resolve (1), readwrite (2/2b), parse (3), verify (6), oracle (7), policy, base
|
|
120
|
+
cli.py REPL + --headless + --sandbox + --strong-model + --cache + --command + --agent
|
|
121
|
+
+ --commit + --review + --lint + --types + --map; REPL /plan
|
|
122
|
+
fixtures/ difficulty-graded suite L1-L6 (see fixtures/SUITE.md) + suite.json
|
|
123
|
+
tests/ JAVIS's own suite (the harness verifies itself)
|
|
124
|
+
docs/ harness-contract.md
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
## Maturity
|
|
128
|
+
|
|
129
|
+
JAVIS has a **stable core** and a wider **experimental surface**. Both are covered by the test suite,
|
|
130
|
+
but the core is what the correctness guarantees rest on and what every run exercises; the experimental
|
|
131
|
+
modules are iterated less often, change faster, and are not on the correctness path.
|
|
132
|
+
|
|
133
|
+
- **Stable core** — the loop and gates (`loop.py`, `gates/`, `tools/`), the model/provider layer
|
|
134
|
+
(`model.py`, `router.py`, `errors.py`, `ratelimit.py`), context + planning (`context.py`, `plan.py`,
|
|
135
|
+
`compress.py`), `guardrails.py`, `narrator.py`, the LSP type gate (`lsp.py`), and the TUI/CLI.
|
|
136
|
+
- **Experimental / research** — the orchestration bake-off (`orchestrate.py`), the distillation
|
|
137
|
+
pipeline (`distill.py`, `experiment.py`, `failure_memory.py`), the benchmark runners
|
|
138
|
+
(`swebench*.py`, `polyglot.py`, `eval_ab.py`), and the plugin marketplace (`marketplace.py`,
|
|
139
|
+
`mcp_install.py`). Useful and tested, but expect rougher edges and faster change.
|
|
140
|
+
|
|
141
|
+
## Run
|
|
142
|
+
|
|
143
|
+
```bash
|
|
144
|
+
# JAVIS's own tests (no network, no litellm needed)
|
|
145
|
+
python -m pytest
|
|
146
|
+
|
|
147
|
+
# Drive a real model against a fixture (needs litellm + OPENROUTER_API_KEY)
|
|
148
|
+
pip install -e ".[llm]"
|
|
149
|
+
export OPENROUTER_API_KEY=...
|
|
150
|
+
javis --headless --repo fixtures/bugfix-01 --task "make the test suite pass" \
|
|
151
|
+
--model openrouter/meta-llama/llama-3.1-8b-instruct --trajectory run.jsonl
|
|
152
|
+
|
|
153
|
+
# Run fully local — no cloud, no API bill (Ollama/LM Studio/vLLM). See docs/local-llm.md
|
|
154
|
+
javis --repo . --task "fix the failing test" --local --model ollama/qwen2.5-coder:7b
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
Local LLMs (incl. models with no native tool-calling) are first-class — see
|
|
158
|
+
[`docs/local-llm.md`](docs/local-llm.md).
|
|
159
|
+
|
|
160
|
+
```bash
|
|
161
|
+
# First-run setup wizard (pick provider/model, local or a key). See docs/setup.md
|
|
162
|
+
pip install -e ".[tui]"
|
|
163
|
+
javis --setup
|
|
164
|
+
|
|
165
|
+
# Live terminal UI — splash, welcome panel, working status, slash commands. See docs/tui.md
|
|
166
|
+
javis --tui --repo . --task "fix the failing test"
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
The agent can run shell commands behind a permission prompt, and renders multi-step plans as a live
|
|
170
|
+
checklist — see [`docs/shell-and-tasks.md`](docs/shell-and-tasks.md).
|
|
171
|
+
|
|
172
|
+
JAVIS speaks **MCP** — drop in the standard `.mcp.json` and it inherits the whole Model Context Protocol
|
|
173
|
+
tool ecosystem (`javis --mcp`), gated by permission. See [`docs/mcp.md`](docs/mcp.md).
|
|
174
|
+
|
|
175
|
+
**Plugins** bundle commands + agents + hooks + MCP servers; JAVIS installs them from a git URL or local
|
|
176
|
+
dir, including **Claude-Code-format** plugins — translated to run on *any* model (incl. local). A
|
|
177
|
+
curated **built-in marketplace** ships in the package (`javis --plugin-install code-review`). See
|
|
178
|
+
[`docs/plugins.md`](docs/plugins.md).
|
|
179
|
+
|
|
180
|
+
**Measure capability** — `javis-eval` is a lite, local, SWE-bench-style scorecard: real bug-fix
|
|
181
|
+
fixtures, reproduce → solve → score *independently* with the test oracle. Headline numbers are
|
|
182
|
+
`resolved/total` and **false-green** (claimed success the tests don't support — a trustworthy harness
|
|
183
|
+
scores zero, and the CLI exits non-zero if any appear). See [`docs/eval.md`](docs/eval.md).
|
|
184
|
+
|
|
185
|
+
```bash
|
|
186
|
+
javis-eval --strong-model openrouter/anthropic/claude-sonnet-4 # cheap base, escalate on measured failure
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
For a comparable number, **`javis-swebench`** points the same reproduce → solve → score loop at the
|
|
190
|
+
**SWE-bench format** (real GitHub issues; checkout at `base_commit`, apply `test_patch`, score
|
|
191
|
+
`FAIL_TO_PASS`/`PASS_TO_PASS`). See [`docs/swebench.md`](docs/swebench.md).
|
|
192
|
+
|
|
193
|
+
### De-risk experiment knobs
|
|
194
|
+
- `--no-gates` — control: disable the harness (still scored by the final suite) to measure the harness's contribution.
|
|
195
|
+
- `--plan` — opt back into the self-planning stage (OFF by default; Phase 0 showed self-planning hurts completion).
|
|
196
|
+
- `--sandbox` — run on a throwaway copy of `--repo`, leaving the original untouched (try the agent on a fixture without mutating it).
|
|
197
|
+
|
|
198
|
+
## License
|
|
199
|
+
|
|
200
|
+
[Apache-2.0](LICENSE) © 2026 Okello Solomon Roy Jasper.
|
javis-0.2.0/README.md
ADDED
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
# JAVIS — Joint Autonomous Verified Intelligence System
|
|
2
|
+
|
|
3
|
+
A harness-governed coding agent. The name is the thesis: intelligence is **joint** —
|
|
4
|
+
the model is an untrusted prover, the harness a sound proof checker, and neither is the
|
|
5
|
+
agent alone — and every claim is **verified**: the gates refuse to advance on anything
|
|
6
|
+
the tests, parser, or resolver can't confirm. **Put the execution intelligence in the
|
|
7
|
+
harness, not the model.** See [`docs/harness-contract.md`](docs/harness-contract.md).
|
|
8
|
+
|
|
9
|
+
Created by **Okello Solomon Roy Jasper**.
|
|
10
|
+
|
|
11
|
+
## Quickstart
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
git clone https://github.com/Code-weaver1/javis.git && cd javis
|
|
15
|
+
python3 -m venv .venv && source .venv/bin/activate
|
|
16
|
+
pip install -e ".[llm,tui]"
|
|
17
|
+
|
|
18
|
+
export OPENROUTER_API_KEY=sk-or-... # any OpenRouter key — free-tier models are enough
|
|
19
|
+
javis --check # preflight: validates your model ladder against the live catalog
|
|
20
|
+
javis --tui --repo /path/to/your/project --task "fix the failing test"
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
No API key yet? Watch the harness narrate a three-step gated task behind a scripted model —
|
|
24
|
+
no network, no account:
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
python scripts/tui_narration_demo.py --delay 0.4
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
Prefer a guided setup (pick a provider, model, and key interactively)? `javis --setup`.
|
|
31
|
+
|
|
32
|
+
## Status: v1 — a trustworthy correctness engine
|
|
33
|
+
|
|
34
|
+
The `plan → propose → adjudicate → admit` loop with an **enforced gate set** —
|
|
35
|
+
**0** (plan-shape), **1** (resolve — rejects hallucinated calls), **2/2b** (read-before-write /
|
|
36
|
+
read-verbatim), **3** (parse), **6** (test), **7** (oracle-integrity — the test oracle is read-only) —
|
|
37
|
+
plus a **tiered router** (escalate to a strong tier on failure), a **difficulty-graded fixture
|
|
38
|
+
suite**, `--sandbox` runs, and tier-labeled trajectory logging. Self-planning is off by default
|
|
39
|
+
(Phase 0 showed it hurts; opt in with `--plan`).
|
|
40
|
+
|
|
41
|
+
**Honest scope:** the harness guarantees **correctness** — it never ships broken or regressing
|
|
42
|
+
code, and the oracle can't be gamed — but it does **not** by itself lift a weak model's *completion
|
|
43
|
+
rate* on reasoning-hard tasks (that's the router + distillation). See `docs/harness-contract.md` §7.
|
|
44
|
+
Growth still ahead: lint/type gates (4/5), coherence + `arch-spec` (8), distillation *training* (P5).
|
|
45
|
+
|
|
46
|
+
**Reliability layer** (adapted from [Hermes](https://github.com/NousResearch/hermes-agent)): tool-loop
|
|
47
|
+
guardrails (halt-and-escalate on thrash), tool-call JSON repair for weak models, a structured API
|
|
48
|
+
error taxonomy driving router escalation, and a rate-limit cooldown guard so a 429'd model is skipped
|
|
49
|
+
rather than hammered.
|
|
50
|
+
|
|
51
|
+
**Cost & caching (provider-agnostic).** No provider-specific caching code. The loop keeps a byte-stable
|
|
52
|
+
prompt prefix (system + task) across turns, so providers that auto-cache prefixes (OpenAI, DeepSeek,
|
|
53
|
+
Gemini, most via OpenRouter) apply the discount for free; the one provider that needs explicit
|
|
54
|
+
`cache_control` markers (Anthropic) is handled by litellm when you opt in with `--cache` (off by
|
|
55
|
+
default), never by branching in JAVIS. Context
|
|
56
|
+
compression trims the non-cacheable tail. Net cost levers, all agnostic: stable prefix → auto-cache,
|
|
57
|
+
compression, and escalating to the expensive tier only on failure.
|
|
58
|
+
|
|
59
|
+
**Extending JAVIS** (provider-agnostic, opt-in — see [`docs/extensibility.md`](docs/extensibility.md)):
|
|
60
|
+
project context (`JAVIS.md`), declarative policy (`.javis-policy.json`), lifecycle hooks
|
|
61
|
+
(`.javis/hooks.json`), reusable commands (`.javis/commands/`), and read-only subagents the main
|
|
62
|
+
agent can delegate to (`.javis/agents/`). Autonomous sandboxing recipe in
|
|
63
|
+
[`docs/autonomous-sandbox.md`](docs/autonomous-sandbox.md).
|
|
64
|
+
|
|
65
|
+
## Layout
|
|
66
|
+
|
|
67
|
+
```
|
|
68
|
+
javis/
|
|
69
|
+
loop.py plan -> propose -> adjudicate -> admit
|
|
70
|
+
plan.py plan stage + plan-shape gate (gate 0)
|
|
71
|
+
context.py context window + read-set / read-content (gates 2, 2b)
|
|
72
|
+
model.py Model protocol; ScriptedModel (tests/control) + LiteLLMModel (OpenRouter)
|
|
73
|
+
router.py tiered escalation (cheap -> strong on failure / API error)
|
|
74
|
+
guardrails.py loop detection — halt a thrashing run so the router escalates
|
|
75
|
+
sanitize.py repair malformed tool-call JSON from weak models
|
|
76
|
+
errors.py API error taxonomy (rate_limit / billing / not_found / ...)
|
|
77
|
+
ratelimit.py x-ratelimit header parse + file-based cooldown guard
|
|
78
|
+
budget.py run budget
|
|
79
|
+
trajectory.py day-0 tier-labeled distillation capture
|
|
80
|
+
experiment.py the de-risk matrix runner (models x conditions x fixtures)
|
|
81
|
+
distill.py export gate-passed trajectories as tier-labeled SFT data (P5)
|
|
82
|
+
failure_memory.py mine recurring failures -> guardrail-hint candidates
|
|
83
|
+
catalog.py pick tool-capable / cheap OpenRouter models
|
|
84
|
+
hooks.py lifecycle hooks (PreTool/PostTool/Stop scripts)
|
|
85
|
+
commands.py markdown task templates (--command / /name)
|
|
86
|
+
subagents.py read-only specialized agents (delegate + PARALLEL dispatch); built-in reviewer
|
|
87
|
+
repomap.py symbol-level repo map (files + their defs/classes)
|
|
88
|
+
planmode.py human-approved plan mode (REPL /plan)
|
|
89
|
+
tools/git.py git awareness (status/diff/log) + commit-on-success
|
|
90
|
+
tools/ fs (read/edit), code (grep/resolve), tests (the pytest oracle)
|
|
91
|
+
gates/ resolve (1), readwrite (2/2b), parse (3), verify (6), oracle (7), policy, base
|
|
92
|
+
cli.py REPL + --headless + --sandbox + --strong-model + --cache + --command + --agent
|
|
93
|
+
+ --commit + --review + --lint + --types + --map; REPL /plan
|
|
94
|
+
fixtures/ difficulty-graded suite L1-L6 (see fixtures/SUITE.md) + suite.json
|
|
95
|
+
tests/ JAVIS's own suite (the harness verifies itself)
|
|
96
|
+
docs/ harness-contract.md
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
## Maturity
|
|
100
|
+
|
|
101
|
+
JAVIS has a **stable core** and a wider **experimental surface**. Both are covered by the test suite,
|
|
102
|
+
but the core is what the correctness guarantees rest on and what every run exercises; the experimental
|
|
103
|
+
modules are iterated less often, change faster, and are not on the correctness path.
|
|
104
|
+
|
|
105
|
+
- **Stable core** — the loop and gates (`loop.py`, `gates/`, `tools/`), the model/provider layer
|
|
106
|
+
(`model.py`, `router.py`, `errors.py`, `ratelimit.py`), context + planning (`context.py`, `plan.py`,
|
|
107
|
+
`compress.py`), `guardrails.py`, `narrator.py`, the LSP type gate (`lsp.py`), and the TUI/CLI.
|
|
108
|
+
- **Experimental / research** — the orchestration bake-off (`orchestrate.py`), the distillation
|
|
109
|
+
pipeline (`distill.py`, `experiment.py`, `failure_memory.py`), the benchmark runners
|
|
110
|
+
(`swebench*.py`, `polyglot.py`, `eval_ab.py`), and the plugin marketplace (`marketplace.py`,
|
|
111
|
+
`mcp_install.py`). Useful and tested, but expect rougher edges and faster change.
|
|
112
|
+
|
|
113
|
+
## Run
|
|
114
|
+
|
|
115
|
+
```bash
|
|
116
|
+
# JAVIS's own tests (no network, no litellm needed)
|
|
117
|
+
python -m pytest
|
|
118
|
+
|
|
119
|
+
# Drive a real model against a fixture (needs litellm + OPENROUTER_API_KEY)
|
|
120
|
+
pip install -e ".[llm]"
|
|
121
|
+
export OPENROUTER_API_KEY=...
|
|
122
|
+
javis --headless --repo fixtures/bugfix-01 --task "make the test suite pass" \
|
|
123
|
+
--model openrouter/meta-llama/llama-3.1-8b-instruct --trajectory run.jsonl
|
|
124
|
+
|
|
125
|
+
# Run fully local — no cloud, no API bill (Ollama/LM Studio/vLLM). See docs/local-llm.md
|
|
126
|
+
javis --repo . --task "fix the failing test" --local --model ollama/qwen2.5-coder:7b
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
Local LLMs (incl. models with no native tool-calling) are first-class — see
|
|
130
|
+
[`docs/local-llm.md`](docs/local-llm.md).
|
|
131
|
+
|
|
132
|
+
```bash
|
|
133
|
+
# First-run setup wizard (pick provider/model, local or a key). See docs/setup.md
|
|
134
|
+
pip install -e ".[tui]"
|
|
135
|
+
javis --setup
|
|
136
|
+
|
|
137
|
+
# Live terminal UI — splash, welcome panel, working status, slash commands. See docs/tui.md
|
|
138
|
+
javis --tui --repo . --task "fix the failing test"
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
The agent can run shell commands behind a permission prompt, and renders multi-step plans as a live
|
|
142
|
+
checklist — see [`docs/shell-and-tasks.md`](docs/shell-and-tasks.md).
|
|
143
|
+
|
|
144
|
+
JAVIS speaks **MCP** — drop in the standard `.mcp.json` and it inherits the whole Model Context Protocol
|
|
145
|
+
tool ecosystem (`javis --mcp`), gated by permission. See [`docs/mcp.md`](docs/mcp.md).
|
|
146
|
+
|
|
147
|
+
**Plugins** bundle commands + agents + hooks + MCP servers; JAVIS installs them from a git URL or local
|
|
148
|
+
dir, including **Claude-Code-format** plugins — translated to run on *any* model (incl. local). A
|
|
149
|
+
curated **built-in marketplace** ships in the package (`javis --plugin-install code-review`). See
|
|
150
|
+
[`docs/plugins.md`](docs/plugins.md).
|
|
151
|
+
|
|
152
|
+
**Measure capability** — `javis-eval` is a lite, local, SWE-bench-style scorecard: real bug-fix
|
|
153
|
+
fixtures, reproduce → solve → score *independently* with the test oracle. Headline numbers are
|
|
154
|
+
`resolved/total` and **false-green** (claimed success the tests don't support — a trustworthy harness
|
|
155
|
+
scores zero, and the CLI exits non-zero if any appear). See [`docs/eval.md`](docs/eval.md).
|
|
156
|
+
|
|
157
|
+
```bash
|
|
158
|
+
javis-eval --strong-model openrouter/anthropic/claude-sonnet-4 # cheap base, escalate on measured failure
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
For a comparable number, **`javis-swebench`** points the same reproduce → solve → score loop at the
|
|
162
|
+
**SWE-bench format** (real GitHub issues; checkout at `base_commit`, apply `test_patch`, score
|
|
163
|
+
`FAIL_TO_PASS`/`PASS_TO_PASS`). See [`docs/swebench.md`](docs/swebench.md).
|
|
164
|
+
|
|
165
|
+
### De-risk experiment knobs
|
|
166
|
+
- `--no-gates` — control: disable the harness (still scored by the final suite) to measure the harness's contribution.
|
|
167
|
+
- `--plan` — opt back into the self-planning stage (OFF by default; Phase 0 showed self-planning hurts completion).
|
|
168
|
+
- `--sandbox` — run on a throwaway copy of `--repo`, leaving the original untouched (try the agent on a fixture without mutating it).
|
|
169
|
+
|
|
170
|
+
## License
|
|
171
|
+
|
|
172
|
+
[Apache-2.0](LICENSE) © 2026 Okello Solomon Roy Jasper.
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"""Generated by scripts/gen_banner.py from the JAVIS logo. Do not edit by hand.
|
|
2
|
+
HERO/LOGO are rich markup (crimson scorpion / white shield); *_PLAIN strip the tags."""
|
|
3
|
+
|
|
4
|
+
HERO = r'''
|
|
5
|
+
[#f5f5f5]▒▓▓▒▒[/] [#e10600]▓█████▓[/] [#e10600]▓█████▒[/] [#f5f5f5]▒▓▓▓▒[/]
|
|
6
|
+
[#f5f5f5]▓██▓[/] [#e10600]▒██████▓[/] [#e10600]▒▓[/] [#e10600]▓▒[/] [#e10600]▓██████▓[/] [#f5f5f5]▓██▓[/]
|
|
7
|
+
[#f5f5f5]█▓[/] [#e10600]▒▓███████▓███▒[/] [#e10600]██[/] [#e10600]▓█[/] [#e10600]▒███▓████████[/] [#f5f5f5]▓█▒[/]
|
|
8
|
+
[#f5f5f5]▓█[/] [#e10600]▓▓▓████▓██▓[/] [#e10600]█████[/] [#e10600]▒██▓█████▓█▓[/] [#f5f5f5]█▓[/]
|
|
9
|
+
[#f5f5f5]▓█[/] [#e10600]████▓[/] [#e10600]▒██▒███████▒██▒[/] [#e10600]▓████[/] [#f5f5f5]▓▓[/]
|
|
10
|
+
[#f5f5f5]▓▓[/] [#e10600]█████[/] [#e10600]▒████▓████████▓███▓[/] [#e10600]█████[/] [#f5f5f5]▓▓[/]
|
|
11
|
+
[#f5f5f5]▒▒[/] [#e10600]████▓████▓█████████▓████▓▓███[/] [#f5f5f5]▒[/]
|
|
12
|
+
[#e10600]██▒████▒[/] [#e10600]▓████████[/] [#e10600]▒▓███▒██[/]
|
|
13
|
+
[#e10600]▒[/] [#e10600]▒[/] [#e10600]▓█████▓[/] [#e10600]▒[/]
|
|
14
|
+
[#e10600]▒██▓[/] [#e10600]█▓▓▓▒██[/]
|
|
15
|
+
[#e10600]▓███▓[/] [#e10600]█████▓[/]
|
|
16
|
+
[#e10600]▓██▓[/] [#e10600]▓██▓███[/]
|
|
17
|
+
[#f5f5f5]▒[/][#e10600]▒████[/] [#e10600]▓████▒[/] [#f5f5f5]▒[/]
|
|
18
|
+
[#f5f5f5]▒▓[/] [#e10600]▓█▓█▓[/] [#e10600]▓███▓[/] [#f5f5f5]▓▒[/]
|
|
19
|
+
[#f5f5f5]▓▓[/] [#e10600]▓███▒███▓[/] [#f5f5f5]▓▓[/]
|
|
20
|
+
[#f5f5f5]▒█▓[/] [#e10600]▓█▓█▓[/] [#f5f5f5]▒█▓[/]
|
|
21
|
+
[#f5f5f5]▓█▓[/] [#f5f5f5]▒█▓[/]
|
|
22
|
+
[#f5f5f5]▒██▓██▒[/]
|
|
23
|
+
[#f5f5f5]▒█▒[/]
|
|
24
|
+
'''
|
|
25
|
+
|
|
26
|
+
HERO_PLAIN = r'''
|
|
27
|
+
▒▓▓▒▒ ▓█████▓ ▓█████▒ ▒▓▓▓▒
|
|
28
|
+
▓██▓ ▒██████▓ ▒▓ ▓▒ ▓██████▓ ▓██▓
|
|
29
|
+
█▓ ▒▓███████▓███▒ ██ ▓█ ▒███▓████████ ▓█▒
|
|
30
|
+
▓█ ▓▓▓████▓██▓ █████ ▒██▓█████▓█▓ █▓
|
|
31
|
+
▓█ ████▓ ▒██▒███████▒██▒ ▓████ ▓▓
|
|
32
|
+
▓▓ █████ ▒████▓████████▓███▓ █████ ▓▓
|
|
33
|
+
▒▒ ████▓████▓█████████▓████▓▓███ ▒
|
|
34
|
+
██▒████▒ ▓████████ ▒▓███▒██
|
|
35
|
+
▒ ▒ ▓█████▓ ▒
|
|
36
|
+
▒██▓ █▓▓▓▒██
|
|
37
|
+
▓███▓ █████▓
|
|
38
|
+
▓██▓ ▓██▓███
|
|
39
|
+
▒▒████ ▓████▒ ▒
|
|
40
|
+
▒▓ ▓█▓█▓ ▓███▓ ▓▒
|
|
41
|
+
▓▓ ▓███▒███▓ ▓▓
|
|
42
|
+
▒█▓ ▓█▓█▓ ▒█▓
|
|
43
|
+
▓█▓ ▒█▓
|
|
44
|
+
▒██▓██▒
|
|
45
|
+
▒█▒
|
|
46
|
+
'''
|
|
47
|
+
|
|
48
|
+
LOGO = r'''
|
|
49
|
+
[#e10600]▓▒[/] [#e10600]▓[/]
|
|
50
|
+
[#f5f5f5]▒▓[/][#e10600]▓███▓▒▓▒████[/][#f5f5f5]▒▓[/]
|
|
51
|
+
[#f5f5f5]▓[/][#e10600]██▓██████▓██▒[/][#f5f5f5]▒[/]
|
|
52
|
+
[#e10600]▓▓█▓███▓█▓▒[/]
|
|
53
|
+
[#e10600]█▓██▓[/]
|
|
54
|
+
[#e10600]▓█▓▓█▒[/]
|
|
55
|
+
[#f5f5f5]▓[/][#e10600]▓▓[/][#f5f5f5]▓▒[/]
|
|
56
|
+
[#f5f5f5]▒▓[/]
|
|
57
|
+
'''
|
|
58
|
+
|
|
59
|
+
LOGO_PLAIN = r'''
|
|
60
|
+
▓▒ ▓
|
|
61
|
+
▒▓▓███▓▒▓▒████▒▓
|
|
62
|
+
▓██▓██████▓██▒▒
|
|
63
|
+
▓▓█▓███▓█▓▒
|
|
64
|
+
█▓██▓
|
|
65
|
+
▓█▓▓█▒
|
|
66
|
+
▓▓▓▓▒
|
|
67
|
+
▒▓
|
|
68
|
+
'''
|
|
69
|
+
|