@caddis/cli 0.4.64 → 0.4.66

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 (23) hide show
  1. package/bundles/antigravity-plugin/plugin.json +1 -1
  2. package/bundles/antigravity-plugin/scripts/caddis_fleet.py +104 -3
  3. package/bundles/antigravity-plugin/scripts/caddis_roadmap_page.py +205 -70
  4. package/bundles/antigravity-plugin/scripts/oss_review.py +77 -45
  5. package/bundles/antigravity-plugin/scripts/roadmap_assets/LICENSE-Lucide.txt +43 -0
  6. package/bundles/antigravity-plugin/scripts/roadmap_assets/{OFL-JetBrainsMono.txt → OFL-Atkinson.txt} +2 -2
  7. package/bundles/antigravity-plugin/scripts/roadmap_assets/fonts.css +3 -3
  8. package/bundles/antigravity-plugin/scripts/roadmap_assets/icons.svg +2 -0
  9. package/bundles/antigravity-plugin/skills/_registry.md +1 -1
  10. package/bundles/antigravity-plugin/skills/catchup/SKILL.md +11 -5
  11. package/bundles/antigravity-plugin/skills/cross-review/SKILL.md +10 -7
  12. package/bundles/antigravity-plugin/skills/feature-plan/SKILL.md +1 -1
  13. package/bundles/antigravity-plugin/skills/fleet-close/SKILL.md +5 -2
  14. package/bundles/antigravity-plugin/skills/handoff/SKILL.md +59 -24
  15. package/bundles/antigravity-plugin/skills/roadmap/assets/plan-resume-prompt.md +3 -3
  16. package/bundles/antigravity-plugin/skills/use-model/SKILL.md +3 -1
  17. package/bundles/antigravity-plugin-extras/plugin.json +1 -1
  18. package/bundles/antigravity-plugin-extras/skills/_registry.md +1 -1
  19. package/bundles/antigravity-plugin-extras/skills/agent-orchestration/SKILL.md +2 -2
  20. package/bundles/antigravity-plugin-extras/skills/cross-review/SKILL.md +9 -8
  21. package/bundles/codex/.codex/skills/workflow/roadmap/assets/plan-resume-prompt.md +3 -3
  22. package/bundles/manifest.json +3 -3
  23. package/package.json +1 -1
@@ -3,14 +3,15 @@
3
3
 
4
4
  A different vendor's model has different blind spots, so a second model reviewing your diff
5
5
  catches bugs a same-vendor reviewer misses. This tool is provider-agnostic: point it at
6
- DeepSeek (default — cheapest + most architecturally distinct from Claude), GLM, OpenRouter,
7
- or any OpenAI-compatible `/chat/completions` endpoint via three env vars.
6
+ agy Argon (default since 2026-10-21; needs no key), DeepSeek (cheap, architecturally distinct from
7
+ Claude), GLM, OpenRouter, or any OpenAI-compatible `/chat/completions` endpoint via three env vars.
8
8
 
9
9
  Config precedence (highest wins): explicit CLI flag > env var > provider preset.
10
- REVIEW_PROVIDER preset name: deepseek | glm | openrouter (default deepseek)
10
+ REVIEW_PROVIDER preset name: agy-argon | deepseek | glm | openrouter (default agy-argon)
11
+ precedence: --provider flag, process env, then REVIEW_PROVIDER in ~/.caddis/keys.env
11
12
  REVIEW_BASE_URL base URL, no trailing /chat/completions (overrides the preset's URL)
12
13
  REVIEW_MODEL model id (overrides the preset's model)
13
- REVIEW_API_KEY bearer token (REQUIRED — no key ⇒ exit 3)
14
+ REVIEW_API_KEY bearer token (REQUIRED for an HTTP provider; agy-argon needs none)
14
15
 
15
16
  Future-proofing: model ids and endpoints churn. Two layers protect against that — (1) the PROVIDERS
16
17
  table below is the ONE place a renamed model/URL is edited; (2) REVIEW_MODEL / REVIEW_BASE_URL env
@@ -37,8 +38,9 @@ Exit codes (fail-closed):
37
38
  4 error — no diff verdict parsed, git failure, other endpoint/parse failure, or the diff
38
39
  exceeds REVIEW_MAX_DIFF_CHARS (see below — never silently downgraded to CLEAN)
39
40
 
40
- Provider chain (owner policy, 2026-10-16): deepseek -> agy-argon -> glm. A named --provider goes first,
41
- then the rest in policy order; a provider with no key (or no agy on PATH) is skipped. A provider failure
41
+ Provider chain (owner policy, 2026-10-21; was deepseek first from 2026-10-16): agy-argon -> deepseek -> glm.
42
+ A named --provider goes first, then the rest in policy order; a provider with no key (or no agy on PATH)
43
+ is skipped. With no provider named, the chain starts at the first provider that is available. A provider failure
42
44
  moves to the next provider and never splits the diff. On HTTP 429 a `Retry-After` is honoured ONCE per
43
45
  provider (capped at 60 s), then the next provider is tried. A provider that failed gets no more calls in
44
46
  the same run. agy runs through `caddis_spend.py run` (the EUR spend cap), in plan mode, with the diff in
@@ -99,9 +101,12 @@ PROVIDERS: dict[str, dict[str, str]] = {
99
101
  "glm": {"base_url": "https://api.z.ai/api/coding/paas/v4", "model": "glm-5.3"},
100
102
  "openrouter": {"base_url": "https://openrouter.ai/api/v1", "model": "deepseek/deepseek-v4-flash"},
101
103
  }
102
- DEFAULT_PROVIDER = "deepseek"
104
+ # The HTTP preset used when nobody names a provider but an HTTP endpoint is still needed: a custom
105
+ # endpoint (REVIEW_BASE_URL / REVIEW_MODEL) with no --provider, and resolve_config's own default. It is
106
+ # a key-lookup and label default only; it is NOT the review order (see REVIEW_ORDER).
107
+ HTTP_DEFAULT_PROVIDER = "deepseek"
103
108
 
104
- # The review chain, in owner-policy order (2026-10-16): DeepSeek, then agy Argon, then GLM. A named
109
+ # The review chain, in owner-policy order (2026-10-21): agy Argon, then DeepSeek, then GLM. A named
105
110
  # provider goes first and the rest follow in this order; a custom endpoint (REVIEW_BASE_URL /
106
111
  # REVIEW_MODEL) never falls back, because its owner named exactly who reviews.
107
112
  #
@@ -112,12 +117,14 @@ DEFAULT_PROVIDER = "deepseek"
112
117
  # sessions recorded "cross-review inconclusive" and moved on. A review that silently does not
113
118
  # happen is the same failure class as a diff that silently is not read.
114
119
  #
115
- # Order matters: DeepSeek leads because it has actually found real bugs (a date-boundary bug
116
- # two same-vendor passes missed, an anchor bug, an orphaned-permission-rows bug). GLM is the
117
- # spare tyre, not a co-equal — an alternation policy that sends half the phases to a provider
118
- # that times out buys variety it never actually collects.
120
+ # Order matters: agy Argon leads since 2026-10-21 (owner decision) because DeepSeek ran out of credit,
121
+ # so every unnamed review tried DeepSeek first and failed before it reached Argon. DeepSeek stays
122
+ # second: it has actually found real bugs (a date-boundary bug two same-vendor passes missed, an
123
+ # anchor bug, an orphaned-permission-rows bug). GLM is the spare tyre, not a co-equal — an alternation
124
+ # policy that sends half the phases to a provider that times out buys variety it never actually collects.
119
125
  AGY_PROVIDER = "agy-argon"
120
- REVIEW_ORDER: tuple[str, ...] = ("deepseek", AGY_PROVIDER, "glm")
126
+ DEFAULT_PROVIDER = AGY_PROVIDER
127
+ REVIEW_ORDER: tuple[str, ...] = (AGY_PROVIDER, "deepseek", "glm")
121
128
 
122
129
  # agy runs headless through the spend cap: plan mode (it needs no tools, the diff is in the prompt).
123
130
  AGY_MODEL = "gemini-4-argon-high"
@@ -239,8 +246,14 @@ def _parse_keys_file(path: str) -> dict[str, str]:
239
246
  p = Path(path).expanduser()
240
247
  if not p.is_file():
241
248
  return {}
249
+ try:
250
+ text = p.read_text(encoding="utf-8")
251
+ except (OSError, UnicodeDecodeError):
252
+ # Unreadable or not UTF-8 (PowerShell writes UTF-16). agy needs no key, so this file must not
253
+ # stop a review; a provider that needs a key then reports "no API key" as usual.
254
+ return {}
242
255
  out: dict[str, str] = {}
243
- for raw in p.read_text(encoding="utf-8").splitlines():
256
+ for raw in text.splitlines():
244
257
  line = raw.strip()
245
258
  if not line or line.startswith("#") or "=" not in line:
246
259
  continue
@@ -249,6 +262,15 @@ def _parse_keys_file(path: str) -> dict[str, str]:
249
262
  return out
250
263
 
251
264
 
265
+ def named_provider(args: argparse.Namespace, env: dict[str, str]) -> str:
266
+ """The provider the caller chose, or "". Order: --provider flag, process env REVIEW_PROVIDER,
267
+ REVIEW_PROVIDER in the keys file (~/.caddis/keys.env), so a default is switched with one line there."""
268
+ chosen = args.provider or env.get("REVIEW_PROVIDER")
269
+ if not chosen:
270
+ chosen = _parse_keys_file(env.get("CADDIS_KEYS_FILE") or DEFAULT_KEYS_FILE).get("REVIEW_PROVIDER")
271
+ return (chosen or "").strip().lower()
272
+
273
+
252
274
  def resolve_config(
253
275
  args: argparse.Namespace,
254
276
  env: dict[str, str],
@@ -265,9 +287,7 @@ def resolve_config(
265
287
  provider: pointing DeepSeek's model id at GLM's endpoint would turn a clean fallback into
266
288
  a confusing 404.
267
289
  """
268
- provider = (
269
- provider or args.provider or env.get("REVIEW_PROVIDER") or DEFAULT_PROVIDER
270
- ).strip().lower()
290
+ provider = (provider or named_provider(args, env) or HTTP_DEFAULT_PROVIDER).strip().lower()
271
291
  preset = PROVIDERS.get(provider, {})
272
292
  if use_overrides:
273
293
  base_url = (args.base_url or env.get("REVIEW_BASE_URL") or preset.get("base_url") or "").rstrip("/")
@@ -735,15 +755,16 @@ def main(argv: list[str] | None = None, env: dict[str, str] | None = None) -> in
735
755
  parser.add_argument("--cwd", default=".", help="repo directory (default: cwd)")
736
756
  parser.add_argument("--provider", default=None,
737
757
  help=f"preset: {', '.join(sorted(PROVIDERS))} or {AGY_PROVIDER} (default "
738
- f"{DEFAULT_PROVIDER}); env REVIEW_PROVIDER. A provider failure falls back in "
739
- f"the order {' -> '.join(REVIEW_ORDER)}")
758
+ f"{DEFAULT_PROVIDER}, then the next available provider); env REVIEW_PROVIDER "
759
+ f"or REVIEW_PROVIDER in the keys file. "
760
+ f"A provider failure falls back in the order {' -> '.join(REVIEW_ORDER)}")
740
761
  parser.add_argument("--base-url", dest="base_url", default=None, help="override REVIEW_BASE_URL / the preset")
741
762
  parser.add_argument("--model", default=None, help="override REVIEW_MODEL / the preset")
742
763
  parser.add_argument("--max-diff-chars", type=int, default=None,
743
764
  help=f"override REVIEW_MAX_DIFF_CHARS (default {DEFAULT_MAX_DIFF_CHARS})")
744
765
  parser.add_argument("--check-config", action="store_true",
745
- help="report whether a usable key exists and exit — no diff, no LLM call. "
746
- "Exit 0 = ready, 3 = nothing configured.")
766
+ help="report whether a usable reviewer exists (agy on PATH, or an API key) and "
767
+ "exit — no diff, no LLM call. Exit 0 = ready, 3 = nothing configured.")
747
768
  parser.add_argument("--allow-path", dest="allow_path", action="append", default=[],
748
769
  metavar="GLOB",
749
770
  help="re-admit a file the secret-filter deny list would otherwise drop "
@@ -756,16 +777,18 @@ def main(argv: list[str] | None = None, env: dict[str, str] | None = None) -> in
756
777
  # that can actually talk to a human. This half just answers "is it configured?" cheaply enough
757
778
  # to call before you need it, instead of finding out mid-commit.
758
779
  if args.check_config:
759
- available = configured_providers(env)
780
+ # agy Argon is the default reviewer and needs no key: agy on PATH plus caddis_spend.py is enough.
781
+ available = ([AGY_PROVIDER] if agy_launcher() is not None else []) + configured_providers(env)
760
782
  if not available:
761
783
  sys.stderr.write(
762
- "no second-vendor API key is configured anywhere.\n"
784
+ "no second-vendor reviewer is configured: no API key anywhere, and no agy on PATH\n"
785
+ " (with caddis_spend.py) for the default agy-argon reviewer.\n"
763
786
  " Cross-review needs one — the whole point is a reviewer that does not share this\n"
764
787
  " model's blind spots, so a same-vendor fallback would be no review at all.\n"
765
788
  f" Add a key to {env.get('CADDIS_KEYS_FILE') or DEFAULT_KEYS_FILE}, e.g.\n"
766
- " DEEPSEEK_API_KEY=<your-key>\n")
789
+ " GLM_API_KEY=<your-key>\n")
767
790
  return EXIT_CONFIG
768
- print(f"cross-review is ready. Providers with a key: {', '.join(available)}")
791
+ print(f"cross-review is ready. Providers available: {', '.join(available)}")
769
792
  return EXIT_CLEAN
770
793
 
771
794
  try:
@@ -804,13 +827,14 @@ def main(argv: list[str] | None = None, env: dict[str, str] | None = None) -> in
804
827
  return EXIT_CONFIG
805
828
  diff_text = filter_result.kept_diff
806
829
 
807
- primary_provider = (
808
- args.provider or env.get("REVIEW_PROVIDER") or DEFAULT_PROVIDER
809
- ).strip().lower()
830
+ named = named_provider(args, env)
810
831
  # A custom ENDPOINT names exactly who reviews (REVIEW_BASE_URL/REVIEW_MODEL, the documented
811
832
  # future-proofing path): it never falls back. A named preset falls back on a provider failure,
812
833
  # and the switch is printed, so the reviewer is never misreported.
813
834
  custom = bool(args.base_url or env.get("REVIEW_BASE_URL") or args.model or env.get("REVIEW_MODEL"))
835
+ # With nothing named, the default is agy Argon. A custom endpoint with no provider named is an HTTP
836
+ # call (never agy), keyed and labelled as before.
837
+ primary_provider = named or (HTTP_DEFAULT_PROVIDER if custom else DEFAULT_PROVIDER)
814
838
  agy_cmd = agy_launcher()
815
839
 
816
840
  def _http_entry(name: str, url: str, key: str, mdl: str):
@@ -821,12 +845,35 @@ def main(argv: list[str] | None = None, env: dict[str, str] | None = None) -> in
821
845
 
822
846
  try:
823
847
  if primary_provider == AGY_PROVIDER and not custom:
824
- if agy_cmd is None:
848
+ if agy_cmd is not None:
849
+ chain = [_agy_entry(agy_cmd)]
850
+ elif named:
825
851
  raise ConfigError(f"provider {AGY_PROVIDER!r} needs agy on PATH and caddis_spend.py "
826
852
  "(beside this script or in the repo's scripts/ folder).")
827
- chain = [_agy_entry(agy_cmd)]
853
+ else:
854
+ # The default degrades: no agy here, so the chain starts at the next provider with a key.
855
+ chain = []
828
856
  else:
829
857
  chain = [_http_entry(primary_provider, *resolve_config(args, env))]
858
+ # The rest of the chain in policy order (agy Argon -> DeepSeek -> GLM). A provider with no key, or
859
+ # agy with no agy on PATH, is skipped: not an error, just nothing to fall back to.
860
+ if not custom:
861
+ for name in REVIEW_ORDER:
862
+ if chain and name == chain[0][0]:
863
+ continue
864
+ if name == AGY_PROVIDER:
865
+ if agy_cmd is not None:
866
+ chain.append(_agy_entry(agy_cmd))
867
+ continue
868
+ try:
869
+ chain.append(_http_entry(name, *resolve_config(args, env, provider=name, use_overrides=False)))
870
+ except ConfigError:
871
+ continue
872
+ if not chain:
873
+ raise ConfigError(
874
+ "no reviewer is available: agy is not on PATH (with caddis_spend.py) and no provider has an "
875
+ "API key. Set $REVIEW_API_KEY, or add a key such as DEEPSEEK_API_KEY or GLM_API_KEY to "
876
+ f"{env.get('CADDIS_KEYS_FILE') or DEFAULT_KEYS_FILE}, or install agy.")
830
877
  except ConfigError as exc:
831
878
  sys.stderr.write(f"{exc}\n")
832
879
  return EXIT_CONFIG
@@ -897,21 +944,6 @@ def main(argv: list[str] | None = None, env: dict[str, str] | None = None) -> in
897
944
 
898
945
  branch = current_branch(args.cwd)
899
946
 
900
- # The rest of the chain in policy order (DeepSeek -> agy Argon -> GLM). A provider with no key, or
901
- # agy with no agy on PATH, is skipped: not an error, just nothing to fall back to.
902
- if not custom:
903
- for name in REVIEW_ORDER:
904
- if name == chain[0][0]:
905
- continue
906
- if name == AGY_PROVIDER:
907
- if agy_cmd is not None:
908
- chain.append(_agy_entry(agy_cmd))
909
- continue
910
- try:
911
- chain.append(_http_entry(name, *resolve_config(args, env, provider=name, use_overrides=False)))
912
- except ConfigError:
913
- continue
914
-
915
947
  # Per run: a provider that failed (429, 5xx, timeout, empty reply, cap refusal) gets no more calls,
916
948
  # and each provider waits for a 429 Retry-After at most once. Hammering a throttled provider with
917
949
  # more, smaller calls is the 18-19 Oct 2026 failure.
@@ -0,0 +1,43 @@
1
+ ISC License
2
+
3
+ Copyright (c) 2026 Lucide Icons and Contributors
4
+
5
+ Permission to use, copy, modify, and/or distribute this software for any
6
+ purpose with or without fee is hereby granted, provided that the above
7
+ copyright notice and this permission notice appear in all copies.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10
+ WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11
+ MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12
+ ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13
+ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14
+ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15
+ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16
+
17
+ ---
18
+
19
+ The following Lucide icons are derived from the Feather project:
20
+
21
+ airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out
22
+
23
+ The MIT License (MIT) (for the icons listed above)
24
+
25
+ Copyright (c) 2013-present Cole Bemis
26
+
27
+ Permission is hereby granted, free of charge, to any person obtaining a copy
28
+ of this software and associated documentation files (the "Software"), to deal
29
+ in the Software without restriction, including without limitation the rights
30
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
31
+ copies of the Software, and to permit persons to whom the Software is
32
+ furnished to do so, subject to the following conditions:
33
+
34
+ The above copyright notice and this permission notice shall be included in all
35
+ copies or substantial portions of the Software.
36
+
37
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
38
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
39
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
40
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
41
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
42
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
43
+ SOFTWARE.
@@ -1,8 +1,8 @@
1
- Copyright 2020 The JetBrains Mono Project Authors (https://github.com/JetBrains/JetBrainsMono)
1
+ Copyright 2020-2024 The Atkinson Hyperlegible Next Project Authors (https://github.com/googlefonts/atkinson-hyperlegible-next)
2
2
 
3
3
  This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
4
  This license is copied below, and is also available with a FAQ at:
5
- https://scripts.sil.org/OFL
5
+ https://openfontlicense.org
6
6
 
7
7
 
8
8
  -----------------------------------------------------------