Who it is forA developer who asks Claude Code for commit messages or other short deliverables and wants clean text to paste.
The problemChat replies often wrap a requested message in extra commentary, so you have to trim it before using it.
The outcomeWhen you ask for a message or commit, Claude returns just that deliverable, which the repo's benchmark reports for 88% of tasks.
What you need first
- Claude Code installed and working
- A terminal to run the install commands
- Internet access to GitHub for the plugin or the curl download
Steps
- Install the plugin with
/plugin marketplace add alexgreensh/attention-spanand/plugin install attention-span - Set Attention-kind as the Output style under
/config - Ask Claude for a commit message for your staged changes
- Paste the reply as-is and check that no chat text surrounds it
Prompt for your agent
Using the repo alexgreensh/attention-span, install the attention-span plugin in Claude Code with Attention-kind as the Output style. Then ask Claude to write a commit message for <describe your change>. Expected output: only the commit message, with no wrapper text. Verify that the reply contains nothing except the message.
Caveat. The 88% clean-deliverable figure comes from the repo's own benchmark, so your results may differ with other tasks and models.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for alexgreensh/attention-span and "Get commit messages from Claude with no chat wrapper"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer