Skip to content
OPQAI.
Sourced intermediate / 💻 Coding

Make Claude Code Responses Concise with Custom Plugins

Job to be done: Make Claude Code's responses more concise without sacrificing quality by using custom plugins

🇳🇬 Ways to use this in Nigeria

Ideas to get you started, adapt to your situation.

  • Entrepreneur

    As you build out the payment integration for your e-commerce app, get concise code examples for handling API calls, including any security warnings, without lengthy explanations.

  • 9-5 employee

    When integrating a new API into your company's backend system, get direct code examples for authentication and data retrieval, ensuring all error handling warnings are included concisely.

  • Student

    When debugging a Python script for your CSC301 assignment, get only the corrected code and a one-line explanation of the fix, without extra conversational text.

What you’ll get

You will learn how to use custom plugins to make Claude Code provide more direct and concise answers. This approach aims to reduce verbosity while ensuring that critical information like warnings, assumptions, and exact numbers are not lost, leading to a more efficient AI coding assistant.

Tools you need

  • Claude Code (paid): An AI coding assistant that helps with writing, debugging, and understanding code.
  • GitHub (freemium): A platform for hosting and collaborating on code projects, used here to share open-source plugins.

Steps

  1. Understand the problem: Claude Code can be overly verbose, providing long explanations when a shorter answer is sufficient. The goal is to make it more concise without making its answers less informative or accurate.
  2. Explore the “Clear Partner” plugin: This plugin is designed to change how Claude Code communicates. It focuses on providing the answer first, without unnecessary introductions or summaries. It aims to be economical in the words it uses to report its work, not in the work itself.
  3. Implement conciseness rules: The “Clear Partner” plugin uses specific instructions to ensure that important details are not omitted. These include warnings, constraints, assumptions, exact numbers, and tradeoffs. The plugin prioritizes explicit user constraints (e.g., “one sentence”) over its default habits.
  4. Handle safety-critical warnings: For warnings related to data loss, security risks, or irreversible actions, the plugin is designed to keep them as a single, short line with no additional explanation or alternatives. This is a measured approach to ensure critical safety information is delivered effectively.
  5. Integrate the plugin: The article mentions that the “Clear Partner” plugin is a Markdown file that can be loaded as the system’s communication layer. The exact steps to load this file into Claude Code are not detailed in the excerpt, but it is available on GitHub under an MIT license.

Original source

This workflow is based on an article by nguyen_jesse_8602dc05abd6 posted on DEV Community. The author shares their engineering process for creating open-source plugins to improve Claude Code’s conciseness and user interface.

Notes & variations

  • Free-tier alternative: While Claude Code itself is a paid tool, you can explore prompt engineering techniques with free AI chat tools like ChatGPT, Claude.ai, or Gemini to practice crafting concise responses. However, these will not directly integrate as plugins into a coding environment.
  • Common mistake: A common pitfall when trying to make AI responses concise is to simply tell it to “be concise” without further guidance. This can lead the AI to omit important details, making the answer shorter but less useful or even incorrect.
  • Tip for better results: When crafting your own prompts or plugins, clearly define what constitutes “essential information” that should never be omitted, even when aiming for brevity. Specify the format for warnings and critical details.

Keep going

More Coding workflows