Skip to content

perf(rules): split stable TDD system prompt - #49

Open
Hiro-Chiba wants to merge 1 commit into
nizos:mainfrom
Hiro-Chiba:agent/split-tdd-system-prompt
Open

perf(rules): split stable TDD system prompt#49
Hiro-Chiba wants to merge 1 commit into
nizos:mainfrom
Hiro-Chiba:agent/split-tdd-system-prompt

Conversation

@Hiro-Chiba

Copy link
Copy Markdown
Contributor

Relates to #46

What

This is an initial implementation that separates the stable TDD rubric from per-write evidence while keeping Agent.reason backward compatible.

Claude receives the stable 6,474-character prefix through the SDK cache boundary. Copilot appends it to the SDK-managed system message. Codex and custom reason-only agents keep the previous combined prompt unchanged.

Would this optional capability shape fit Probity?

Local verification

npm run checks passed with 58 test suites, 546 passing tests, and 26 existing skips.

Across 100 representative writes, 640,926 repeated characters move into the Claude cross-session cache-eligible prefix. The first call still uses the full input. Local tests verify prompt transport and cache eligibility, not an actual provider cache hit or end-to-end latency reduction.

@Hiro-Chiba
Hiro-Chiba marked this pull request as ready for review July 18, 2026 11:58
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