Add personality tone control plugin#313
Draft
nhicks00 wants to merge 2 commits intompfaffenberger:mainfrom
Draft
Add personality tone control plugin#313nhicks00 wants to merge 2 commits intompfaffenberger:mainfrom
nhicks00 wants to merge 2 commits intompfaffenberger:mainfrom
Conversation
Owner
|
quality checks plz - I added a note in AGENTS.md |
61c0fcc to
f889ad0
Compare
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.
Summary
personality_toneplugin that controls Code Puppy's response style without editing the core prompt directly./tonefor quick switching betweenprofessional,neutral,default, andplayfultones.personality_toneand reloads the active agent so the updated prompt applies immediately.Why
Code Puppy's default prompt is intentionally playful and sassy, which is useful for some users but too informal for others. This keeps the existing default behavior intact while giving users a lightweight way to opt into a dry, business-professional style when they want focused engineering work.
Usage
/toneor/tone show: display the current tone and available options./tone professional: dry, direct, business-professional responses./tone neutral: friendly but restrained responses./tone default: native Code Puppy personality with no override./tone playful: explicitly playful while staying task-focused./tone 0,/tone 1,/tone 2,/tone 3.Implementation Notes
code_puppy/plugins/personality_tone/.load_prompthook to append a tone override, so core prompt text is not rewritten.custom_commandandcustom_command_helphooks for/toneand help-menu integration.default, so existing users see no behavior change unless they opt in.Validation
uv run pytest --no-cov tests/plugins/test_personality_tone.py tests/plugins/test_plugins_init_coverage.py -quv run ruff check code_puppy/plugins/personality_tone tests/plugins/test_personality_tone.pyNote: I also attempted the broader command-handler coverage suite, but this local environment fails during import before reaching this feature because
pydantic_ai.mcpcannot import the optionalmcp.client.ssepath.