From claude-memory-plugin
Creates a thinking document for multi-agent deliberation on a topic using memory think CLI, optionally automating invocations of agents and styles via --calls, --agents, --styles.
npx claudepluginhub gazmagik/claude-memory-plugin<topic> [--calls N] [--agents agent1,agent2] [--styles style1,style2]## User Input ## Goal Create a thinking document for structured deliberation on a topic, optionally invoking multiple agents with different output styles to gather diverse perspectives before concluding. ## Prerequisites **CRITICAL**: Before running any memory commands, you MUST activate the memory skill first using the Skill tool: This ensures the skill is loaded and the `memory` CLI command is available (installed via `bun link`). Without this step, the commands below may not work correctly. ## Discovering Available Agents and Styles To see which agents and output styles are av...
/councilAssembles AI agent council with dynamic personas to generate parallel opinions on a query, anonymously rank them, and synthesize weighted final response.
/polyclaudeAnalyzes questions, plans, or ideas from 2-6 configurable AI perspectives in parallel (flags: --quick|--full|--deep|--include|--exclude), producing a synthesized Council Report.
/debateOrchestrates structured multi-persona debate on a proposition, challenging assumptions via opposing views and synthesizing robust insights.
/role-debateSimulates structured debate between 2-3 expert roles (e.g., security,performance) on a topic, producing arguments, rebuttals, compromises, and final recommendations with roadmap.
/collaborateThinks alongside the user as a peer on the specified topic—no code implementation, guessing, file edits, or rushed answers.
/brainstormBrainstorms rough ideas into structured designs using parallel agents: analyzes topic, explores alternatives, evaluates feasibility, and synthesizes top approaches with trade-offs.
Share bugs, ideas, or general feedback.
$ARGUMENTS
Create a thinking document for structured deliberation on a topic, optionally invoking multiple agents with different output styles to gather diverse perspectives before concluding.
CRITICAL: Before running any memory commands, you MUST activate the memory skill first using the Skill tool:
Skill: memory
This ensures the skill is loaded and the memory CLI command is available (installed via bun link). Without this step, the commands below may not work correctly.
To see which agents and output styles are available in your environment, run:
memory help think
This displays:
curator, typescript-expert, security-code-expert, etc.Architect, Devils-Advocate, Pragmatist, Simplifier, etc.Note: Available agents and styles vary by installation. Always check memory help think for your specific environment.
Extract from $ARGUMENTS:
Examples:
"Should we use Redis or PostgreSQL for caching?"
"API design for auth module" --calls 5 --agents typescript-expert,security-code-expert --styles Architect,Devils-Advocate
memory think create "<topic>"
This creates a new thinking document and sets it as the current document for subsequent operations.
If the user provided context beyond just the topic, add an initial framing thought:
memory think add "Initial framing: <context from user>"
If --calls specified with --agents and/or --styles:
Distribute calls across the specified agents and styles. For each call, use the syntax:
memory think add|counter|branch "<prompt>" --call claude --agent <agent-type> --style <style-type>
Key syntax:
--call claude - Required to invoke Claude for the thought--agent <agent-type> - Optional domain expert (e.g., typescript-expert, curator)--style <style-type> - Optional output style (e.g., Architect, Devils-Advocate)Thought types:
add - Add a supporting thought or analysiscounter - Add a counter-argument or challengebranch - Add an alternative approach or directionIf no --calls specified (manual mode):
Ask the user how they want to proceed using the AskUserQuestion tool:
{
"question": "How would you like to conduct this deliberation?",
"header": "Deliberation mode",
"options": [
{"label": "Manual", "description": "I'll add thoughts myself using memory think add/counter/branch"},
{"label": "Quick (3 calls)", "description": "Get 3 diverse perspectives then review"},
{"label": "Thorough (6 calls)", "description": "Get 6 perspectives covering multiple angles"},
{"label": "Custom", "description": "Specify number of calls and which agents/styles to use"}
],
"multiSelect": false
}
If "Custom" selected, ask for number of calls using AskUserQuestion tool:
{
"question": "How many agent perspectives would you like?",
"header": "Call count",
"options": [
{"label": "3 calls", "description": "Quick deliberation"},
{"label": "5 calls", "description": "Moderate depth"},
{"label": "8 calls", "description": "Thorough exploration"},
{"label": "12+ calls", "description": "Comprehensive multi-agent analysis"}
],
"multiSelect": false
}
For automated calls, use a balanced distribution:
Recommended pattern for N calls:
add with Architect style (frame the problem)add, counter, branch with varied stylescounter with Devils-Advocate or Risk-Assessorbranch with Simplifier or PragmatistExample for 5 calls on "API authentication approach":
# 1. Frame the architectural options
memory think add "What are the main architectural approaches and trade-offs for API authentication?" --call claude --style Architect
# 2. Challenge assumptions
memory think counter "What could go wrong with each approach? What are we missing?" --call claude --style Devils-Advocate
# 3. Implementation perspective (if agent available)
memory think add "What are the practical implementation considerations?" --call claude --agent typescript-expert --style Pragmatist
# 4. Security perspective (if agent available)
memory think counter "What are the security implications and attack vectors?" --call claude --agent security-code-expert --style Risk-Assessor
# 5. Simplification perspective
memory think branch "What's the simplest approach that still solves the core problem?" --call claude --style Simplifier
Prompts should:
After all calls complete (or periodically during manual mode), show the current state:
memory think show
Present a summary to the user:
If --conclude specified or user requests conclusion:
Ask how to conclude using AskUserQuestion tool:
{
"question": "How would you like to conclude this deliberation?",
"header": "Conclusion",
"options": [
{"label": "Synthesise and promote", "description": "Create a summary and save as permanent memory"},
{"label": "Keep deliberating", "description": "Add more perspectives before concluding"},
{"label": "Discard", "description": "Delete without saving - the discussion was valuable but no record needed"}
],
"multiSelect": false
}
If promoting, ask for type using AskUserQuestion tool:
{
"question": "What type of memory should this become?",
"header": "Memory type",
"options": [
{"label": "Decision", "description": "An architectural or design choice with rationale"},
{"label": "Learning", "description": "An insight or principle discovered through deliberation"},
{"label": "Gotcha", "description": "A warning or pitfall to avoid"},
{"label": "Artifact", "description": "A reusable pattern or reference"}
],
"multiSelect": false
}
Then conclude:
memory think conclude "<synthesised conclusion text>" --promote <type>
The conclusion should:
Output a summary:
## Deliberation Complete
**Topic**: <topic>
**Perspectives gathered**: N thoughts (X add, Y counter, Z branch)
**Outcome**: Promoted to <type>: <memory-id>
**Key insights**:
- <insight 1>
- <insight 2>
- <insight 3>
| Command | Description |
|---|---|
memory think create "<topic>" | Start new deliberation |
memory think add "<thought>" | Add supporting thought |
memory think counter "<thought>" | Add counter-argument |
memory think branch "<thought>" | Add alternative approach |
memory think show | Display current deliberation |
memory think list | List all thinking documents |
memory think conclude "<text>" --promote <type> | Conclude and save |
memory think add|counter|branch "<prompt>" --call claude [--agent <agent>] [--style <style>]
--call claude - Required to invoke AI--agent <agent> - Domain expert (run memory help think for list)--style <style> - Output personality (run memory help think for list)| Purpose | Suggested Styles |
|---|---|
| Frame problem | Architect, Product-Manager |
| Challenge assumptions | Devils-Advocate, Risk-Assessor |
| Find simpler path | Simplifier, Pragmatist |
| User perspective | User-Advocate |
| Historical context | Historian |
| Implementation focus | Pragmatist + domain agent |
--call invocation receives the full deliberation context (all previous thoughts)--agent typescript-expert --style Devils-Advocatememory help think to discover available agents and styles in your environmenttemporary/ and are meant to be concluded and promoted--promote flag converts the conclusion to a permanent memory (decision, learning, gotcha, or artifact)