By vgeshel
Enforces deliberate thinking, eliminates sycophancy, and improves response quality through behavioral rules and mechanical hooks
A Claude Code plugin that enforces deliberate thinking, eliminates sycophancy, and improves response quality.
When enabled, this plugin changes how Claude Code works:
Deliberation checklist — Before every substantive response, Claude works through 5 questions: What is being asked? What does a complete solution require? What do I not know? Does this conflict with anything? How will I verify this works?
Zero sycophancy — Blocks reflexive agreement phrases ("you're right", "good point", "great idea"). These are a canary for shallow thinking — if Claude is agreeing without examining, it hasn't evaluated deeply enough. Note: the sycophancy patterns currently match English phrases only.
Structured evidence requirement — Every substantive response must include a structured **EVIDENCE:** or **CONJECTURE:** block. EVIDENCE clauses must cite typed refs (src:, url:, quote:, knowledge:); CONJECTURE clauses must declare a basis and a likelihood (low/medium/high). A parser in the hook rejects malformed blocks. See agents/thinking.md for the full format spec.
Behavioral rules — Think before acting, verify your own work, fix all problems (no "low priority" excuses), answer questions before jumping to action, finish everything the user asked for.
The plugin has two parts:
agents/thinking.md) — Applies the thinking rules as a system prompt to every conversation. This is always active when the plugin is enabled.hooks/) — Python scripts that mechanically block responses containing sycophantic phrases or lacking the _I THOUGHT_ deliberation marker. These catch violations that slip through the system prompt.claude plugin marketplace add vgeshel/claude-code-thinking --scope project
claude plugin install claude-thinking --scope project
The first command adds the marketplace. The second installs the plugin from it. --scope project stores the configuration in the project so all contributors get it.
The plugin checks for python3 on session start and prints a warning if it's missing.
cd hooks && python3 -m unittest -v
If the _I THOUGHT_ marker is too noisy for your workflow, remove the check_thinking.py hook from hooks/hooks.json. The behavioral rules from the agent will still apply.
Edit the SYCOPHANCY_PATTERNS list in hooks/check_sycophancy.py. Patterns are regexes checked against the first 300 characters of each response.
If you prefer CLAUDE.md-based rules over a plugin, copy the content from agents/thinking.md (everything below the frontmatter) into your project's CLAUDE.md.
Uses power tools
Uses Bash, Write, or Edit tools
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
npx claudepluginhub vgeshel/claude-code-thinkingTeaches Claude Code how to install and manage skills from plugin marketplaces using the local-skills CLI
Structured thinking and multi-perspective deliberation tools
Analytical thinking tools - dialectic analysis, bias elimination, codex consultation
21 composable cognitive constraints that reshape how Claude thinks through inhibition-based prompting. Core fields, anti-fields, and a field generator.
Meta-cognition: refine input through brainstorming, refine output through challenge and condensed communication mode.
Achieve certain comprehension of AI work — /grasp (κατάληψις: a grasping firmly)
Intelligent prompt optimization: injects the right context at the right moment so Claude lands a better first output. Clarifies vague prompts with research-based questions, plus targeted nudges for approach selection, plan readability, workflow routing, background execution, subagent routing, output readability, user-decision questions, and plan-mode assessment