feat: prepend *Claw:* header to all replies - #72
Merged
Conversation
Add CLAW_REPLY_HEADER config flag (default True) and prepend bold attribution header to agent replies in _run_response_loop when enabled. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.
Closes #71
Summary
• Adds
CLAW_REPLY_HEADER: bool = TruetoAppConfig— controls whether the bold*Claw:*attribution header is prepended to agent replies• In
_run_response_loop, conditionally prepends*Claw:*\ntofull_responsebefore callingreply_to_thread• Two new tests: header present when enabled, absent when disabled
Test plan
• RED phase confirmed
test_reply_has_claw_header_when_enabledfails before implementation• GREEN phase: both new tests pass
• Full suite: 284 passed, 0 failures
🤖 Generated with Claude Code