@caddis/cli 0.4.83 → 0.4.84

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 (19) hide show
  1. package/bundles/antigravity-plugin/plugin.json +1 -1
  2. package/bundles/antigravity-plugin/scripts/__pycache__/caddis_exit.cpython-311.pyc +0 -0
  3. package/bundles/antigravity-plugin/scripts/__pycache__/caddis_file_lock.cpython-311.pyc +0 -0
  4. package/bundles/antigravity-plugin/scripts/__pycache__/caddis_frontmatter.cpython-311.pyc +0 -0
  5. package/bundles/antigravity-plugin/scripts/__pycache__/caddis_redact.cpython-311.pyc +0 -0
  6. package/bundles/antigravity-plugin/scripts/__pycache__/caddis_roadmap.cpython-311.pyc +0 -0
  7. package/bundles/antigravity-plugin/scripts/__pycache__/caddis_roadmap_page.cpython-311.pyc +0 -0
  8. package/bundles/antigravity-plugin/scripts/__pycache__/caddis_rows.cpython-311.pyc +0 -0
  9. package/bundles/antigravity-plugin/scripts/__pycache__/caddis_tidy.cpython-311.pyc +0 -0
  10. package/bundles/antigravity-plugin/scripts/__pycache__/caddis_todo.cpython-311.pyc +0 -0
  11. package/bundles/antigravity-plugin/scripts/__pycache__/caddis_workstreams.cpython-311.pyc +0 -0
  12. package/bundles/antigravity-plugin/scripts/__pycache__/caddis_worktree_safety.cpython-311.pyc +0 -0
  13. package/bundles/antigravity-plugin/scripts/claudster_doctor.py +24 -0
  14. package/bundles/antigravity-plugin/skills/coordinate/SKILL.md +1 -1
  15. package/bundles/antigravity-plugin/skills/feature-plan/SKILL.md +1 -1
  16. package/bundles/antigravity-plugin/skills/handoff/SKILL.md +1 -1
  17. package/bundles/antigravity-plugin/skills/implement/SKILL.md +1 -1
  18. package/bundles/manifest.json +2 -2
  19. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "caddis",
3
- "version": "1.3.167",
3
+ "version": "1.3.168",
4
4
  "description": "caddis — agent-agnostic dev harness as an Antigravity (agy) plugin: TDD skills + commands, single-sourced with the Claude Code plugin."
5
5
  }
@@ -437,6 +437,28 @@ def machine_findings(which: Callable[[str], str | None] | None = None,
437
437
  return out
438
438
 
439
439
 
440
+ AUTOCOMPACT_KEY = "CLAUDE_AUTOCOMPACT_PCT_OVERRIDE"
441
+
442
+
443
+ def autocompact_backstop_line(settings: dict, environ: Mapping[str, str]) -> str | None:
444
+ """A warning when no auto-compact backstop is set (session-size plan); None when it is set."""
445
+ env = settings.get("env") if isinstance(settings, dict) else None
446
+ if environ.get(AUTOCOMPACT_KEY) or (isinstance(env, dict) and env.get(AUTOCOMPACT_KEY)):
447
+ return None
448
+ return (
449
+ f"[caddis] Set {AUTOCOMPACT_KEY}=40 in ~/.claude/settings.json env, "
450
+ "so a session compacts at 400k, not about 967k."
451
+ )
452
+
453
+
454
+ def _user_claude_settings() -> dict:
455
+ try:
456
+ data = json.loads((_home() / ".claude" / "settings.json").read_text(encoding="utf-8"))
457
+ return data if isinstance(data, dict) else {}
458
+ except (OSError, ValueError):
459
+ return {}
460
+
461
+
440
462
  def keys_line(env: Mapping[str, str]) -> tuple[str, str]:
441
463
  scripts = Path(__file__).resolve().parent
442
464
  try:
@@ -629,6 +651,8 @@ def run(dest: Path, quiet: bool) -> int:
629
651
  if k_level == "FAIL":
630
652
  hard = 1
631
653
  print(f" {k_level:4} {k_text}")
654
+ backstop = autocompact_backstop_line(_user_claude_settings(), os.environ)
655
+ print(f" WARN {backstop}" if backstop else f" OK auto-compact backstop: {AUTOCOMPACT_KEY} set")
632
656
 
633
657
  host = host_guard_findings()
634
658
  if host:
@@ -33,7 +33,7 @@ Measured 24-25 Oct 2026: each background wake-up re-reads the whole conversation
33
33
  then `/caddis:coordinate start`.
34
34
  - Post a peer message only when the queue or a PR state changes. Send no acknowledgement of an
35
35
  acknowledgement. The watcher already prints a line only on a change, so a quiet cycle wakes nobody.
36
- - Restart (handoff, `/clear`, `/caddis:coordinate`) when this conversation passes about 200k tokens, or once a day.
36
+ - Restart (handoff, `/clear`, `/caddis:coordinate`) when this conversation passes about 200k tokens, or once a day. The context_size hook prints a [caddis] warning at 200k and a restart notice at 350k.
37
37
 
38
38
  ## How to call the script
39
39
 
@@ -282,7 +282,7 @@ to the phase or task that owns the code. Write "none found" only after you check
282
282
  **Session rules for the orchestrator** (measured 24-25 Oct 2026: long Opus sessions re-read 400-600k tokens
283
283
  on every turn). Keep the context small: subagent replies under about 200 words, full reports in files,
284
284
  never paste or tail large outputs. At each phase end, write the handoff; continue in the same session only
285
- while the conversation is under about 200k tokens. Run the phase review as
285
+ while the conversation is under about 200k tokens. The context_size hook prints a [caddis] warning at 200k and a restart notice at 350k. Run the phase review as
286
286
  `/caddis:cross-review --range <base>..HEAD`. Send a task marked mechanical (literal tests, moves, deletes,
287
287
  renames) to agy through `caddis_spend.py run`. Run one `ci-watch` per PR head; on a queued-run timeout watch
288
288
  that run once with `--run <id>`; write no "still waiting" turns.
@@ -466,7 +466,7 @@ claude --name <role>-<MMDD>-<HH> '<the resume prompt on one line> <the announce
466
466
  ## Rules
467
467
  - **Clear above 200k tokens.** A session whose conversation passes about 200k tokens writes this handoff at
468
468
  the next safe point and asks the owner for `/clear`. Each turn re-reads the whole conversation, so a long
469
- session costs more with every turn.
469
+ session costs more with every turn. The context_size hook prints a [caddis] warning at 200k and a restart notice at 350k.
470
470
  - **Model for the next session.** Print one line `Model for next session: ...` just before the RESUME block (the block stays the last output): Sonnet (effort medium) to run an approved
471
471
  plan; Opus to write a plan or design. Start line: `claude --model sonnet --effort medium --name <role>-<MMDD>-<HH>`.
472
472
  - **One next action, by priority ladder.** `## Next step` names exactly ONE action — not a menu. Pick it in
@@ -62,7 +62,7 @@ and 95-154 turns per session were started by background events. Each turn re-rea
62
62
  - **Small context.** Ask each subagent for a reply under about 200 words. Full reports go to files; read a
63
63
  file only for the part you need. Never paste or tail a large output.
64
64
  - **Handoff at phase end.** At each phase end, write the handoff yourself (see "At every halt" below). Continue
65
- in the same session only while the conversation is under about 200k tokens. Above that, ask for `/clear`.
65
+ in the same session only while the conversation is under about 200k tokens. Above that, ask for `/clear`. The context_size hook prints a [caddis] warning at 200k and a restart notice at 350k.
66
66
  - **Model.** The orchestrator runs on Sonnet. Opus stays for plans, designs and critical-code subagents.
67
67
  - **One phase review.** Run `/caddis:cross-review --range <base>..HEAD` (one other vendor; agy Argon by default).
68
68
  Never use a Claude reviewer subagent. Exception: every other-vendor provider failed. Then say so in the review file.
@@ -1,7 +1,7 @@
1
1
  {
2
- "poolVersion": "1.3.167",
2
+ "poolVersion": "1.3.168",
3
3
  "bundles": {
4
- "antigravity-plugin": "1.3.167",
4
+ "antigravity-plugin": "1.3.168",
5
5
  "antigravity-plugin-extras": "1.3.47",
6
6
  "codex": "unknown"
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@caddis/cli",
3
- "version": "0.4.83",
3
+ "version": "0.4.84",
4
4
  "description": "Install, update and diagnose the caddis dev harness across every coding agent you use (Claude Code, agy/Antigravity, and more).",
5
5
  "keywords": [
6
6
  "caddis",