Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
git clone --depth 1 https://github.com/intellegix/intellegix-code-agent-toolkitWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/commands/intellegix/intellegix-code-agent-toolkit/council-refine)<a href="https://agentmods.dev/commands/intellegix/intellegix-code-agent-toolkit/council-refine"><img src="https://agentmods.dev/badge/commands/intellegix/intellegix-code-agent-toolkit/council-refine/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/commands/intellegix/intellegix-code-agent-toolkit/council-refine"><img src="https://agentmods.dev/badge/commands/intellegix/intellegix-code-agent-toolkit/council-refine.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.01005 |
| Opus 5.5 | $0.00000 | $0.00402 |
| Sonnet 5.5 | $0.00000 | $0.00201 |
| Haiku 4.5 | $0.00000 | $0.00101 |
Grade A, and why
council-refine scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 108 lines — stays where its author put it; the contents beside it link to each section on GitHub.
/council-refine — Multi-Model Plan Refinement with Opus 4.6 Synthesis
Submit a plan to 3 frontier AI models (GPT-5.2, Claude Sonnet 4.5, Gemini 3 Pro) via Perplexity API for iterative refinement, with Opus 4.6 extended thinking synthesis. Loop until convergence (score >= 8, no critical issues, score gain < 1) or max 3 iterations.
Prerequisites: PERPLEXITY_API_KEY and ANTHROPIC_API_KEY environment variables set. Python packages installed (pip install perplexityai anthropic).
Input
$ARGUMENTS = The plan text to refine. Can be multi-line.
Workflow
Step 0: Initialize
- Store the plan text from
$ARGUMENTS - Set
iteration = 1,maxIterations = 3,previousScore = 0
Step 1: Build refinement query
Compose the council query for this iteration:
You are a panel of expert reviewers evaluating a technical implementation plan. Analyze the following plan thoroughly and provide:
1. OVERALL SCORE (1-10): How production-ready is this plan?
2. STRENGTHS: What's well-designed?
3. WEAKNESSES: What needs improvement?
4. CRITICAL ISSUES: Blockers that must be fixed before implementation
5. SPECIFIC IMPROVEMENTS: Concrete, actionable changes with code/architecture suggestions
6. REVISED SECTIONS: Rewritten sections incorporating your feedback
PLAN TO REVIEW (Iteration {iteration}/{maxIterations}):
---
{planText}
---
{If iteration > 1: "PREVIOUS FEEDBACK ADDRESSED: {summary of changes made}"}
IMPORTANT: Include a numeric score (1-10) prominently in your response.
Step 2: Run council query
Call council_query MCP tool with:
query: The prompt from Step 1mode:"browser"(Playwright browser automation — no API keys needed, uses Perplexity login)includeContext:true
This runs the full pipeline: 3 parallel Perplexity queries + Opus 4.6 synthesis with extended thinking (~20s total).
Step 3: Read and evaluate
The council_query response contains the Opus synthesis. Extract:
- Score: From
recommended_actionsornarrative— look for the numeric score - Critical issues: From
risksanddisagreements - Improvements: From
recommended_actionsandunique_insights
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3mo ago First seen · 108 lines · 0 tokens per session scan A 499fad53da45
council-refine is a command published in the GitHub repository intellegix/intellegix-code-agent-toolkit (57 stars, last pushed 7d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,005 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
council-refine compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| council-refineintellegix/intellegix-code-agent-toolkit | Command | 57 | 7d ago | MIT | A | 0 | Claude Code |
| cost-optimizewshobson/agents | Command | 43k | 6d ago | MIT | A | 26 | Claude Code |
| deps-auditwshobson/agents | Command | 43k | 6d ago | MIT | A | 23 | Claude Code |
| refactor-cleanwshobson/agents | Command | 43k | 6d ago | MIT | A | 26 | Claude Code |
| export-closedloop-learningsclosedloop-ai/claude-plugins | Command | 122 | 3d ago | Apache-2.0 | A | 13 | Claude Code |
| research-verifydrobins25/craft | Command | 74 | today | MIT | A | 28 | Claude Code |
| custom-briefhoangsonww/AI-News-Briefing | Command | 45 | 7d ago | MIT | A | 26 | Claude Code |