Add caveman prompts feature + harden unreleased batch#4
Merged
Conversation
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).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Caveman prompts (new feature)
A config-gated token-saving feature:
caveman_prompts_enabled(defaulttrue)./nx-planwrites the plan's prose fields (task summary, steptitle/objective/contract/scope) in clipped, telegraphic English./nx-buildwrites 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/filesvalues, and the runnableacceptancecommand. Caveman ≠ vague — acontractstays 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/nx-report(realized / bounded / theoretical)PreCompact+SessionStartreset hooksSubagentStopper-tier usage recording/nx-reportTesting
python3 -m pytest tests/— 369 passed.