Skip to content

Add caveman prompts feature + harden unreleased batch#4

Merged
dropdevrahul merged 1 commit into
mainfrom
caveman-prompts
Jun 27, 2026
Merged

Add caveman prompts feature + harden unreleased batch#4
dropdevrahul merged 1 commit into
mainfrom
caveman-prompts

Conversation

@dropdevrahul

Copy link
Copy Markdown
Owner

Caveman prompts (new feature)

A config-gated token-saving feature: caveman_prompts_enabled (default true).

  • /nx-plan writes the plan's prose fields (task summary, step title/objective/contract/scope) in clipped, telegraphic English.
  • /nx-build writes its executor dispatch prompts (shared-context prefix + self-authored instructions) the same way.

These are the artifacts re-fed to models repeatedly — the plan is re-read by every executor and the shared prefix ships on every dispatch — so trimming function words is a recurring saving.

Strict carve-outs (verbatim, never caveman-ified): file paths, identifiers, signatures, config keys, code, route/files values, and the runnable acceptance command. Caveman ≠ vague — a contract stays unambiguous since a weaker executor reads it cold.

Both command files were also rewritten in terse telegraphic style with minimal user-facing output (no per-step success chatter in /nx-build).

Also includes the rest of the [Unreleased] batch

  • Grep narrowing (PreToolUse output cap instead of hard-deny)
  • Wilson-bound, bidirectional routing calibration
  • Honest savings split in /nx-report (realized / bounded / theoretical)
  • PreCompact + SessionStart reset hooks
  • SubagentStop per-tier usage recording
  • Retention pruning, Fable pricing
  • Wasted-context analytics + /nx-report
  • Tiered budget alerts
  • Canonicalised predup signatures

Testing

python3 -m pytest tests/ — 369 passed.

Caveman prompts (caveman_prompts_enabled, default true): /nx-plan writes
the plan's prose fields (task summary, step title/objective/contract/scope)
and /nx-build writes its executor dispatch prompts in clipped, telegraphic
English to cut tokens in the re-read plan and the per-dispatch prefix.
Paths, identifiers, signatures, config keys, and the runnable acceptance
command stay verbatim; a contract stays unambiguous. Set false for normal
prose.

Also folds in the rest of the unreleased work: grep narrowing, Wilson-bound
bidirectional routing calibration, honest savings split in /nx-report,
PreCompact + SessionStart reset hooks, SubagentStop per-tier usage,
retention pruning, Fable pricing, wasted-context analytics, tiered budget
alerts, and canonicalised predup signatures.

Commands rewritten in terse telegraphic style with minimal user-facing
output. Full test suite green (369 passed).
@dropdevrahul
dropdevrahul merged commit c94f702 into main Jun 27, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant