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-extract)<a href="https://agentmods.dev/commands/intellegix/intellegix-code-agent-toolkit/council-extract"><img src="https://agentmods.dev/badge/commands/intellegix/intellegix-code-agent-toolkit/council-extract/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-extract"><img src="https://agentmods.dev/badge/commands/intellegix/intellegix-code-agent-toolkit/council-extract.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.04638 |
| Opus 5.5 | $0.00000 | $0.01855 |
| Sonnet 5.5 | $0.00000 | $0.00928 |
| Haiku 4.5 | $0.00000 | $0.00464 |
Grade A, and why
council-extract 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 1mo 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 — 447 lines — stays where its author put it; the contents beside it link to each section on GitHub.
/council-extract — Extract Model Council Response to Markdown
Extract a completed Perplexity Model Council response from the current browser tab, converting it to structured markdown with model attribution, and save to disk.
Input
$ARGUMENTS = Optional output filename or tabId. Defaults to timestamped name. If a number, treated as tabId.
Prerequisites
- Browser-bridge MCP server running with Chrome extension connected
- A completed Model Council response visible in an active Perplexity tab
- Read
~/.claude/perplexity-selectors.jsonfor CSS selectors
Workflow
Step 1: Identify the target tab
browser_get_tabsto find tabs withperplexity.aiURLs- If
$ARGUMENTSis a number, use that as the specific tabId - Otherwise use the most recently active Perplexity tab in the current session group
- If no Perplexity tab found, error: "No Perplexity tab found. Navigate to a council response first."
- Store the target
tabIdfor all subsequent tool calls
Step 2: DOM Recon (adaptive selector discovery)
Run browser_evaluate on the target tab with this script to discover the actual DOM structure:
(() => {
const results = {
proseBlocks: document.querySelectorAll('.prose').length,
proseFallback: document.querySelectorAll("[class*='prose']").length,
modelNames: [],
modelRows: [],
completedIndicators: 0,
thinkingSteps: 0,
hasCloseButton: false,
hasThreeDotMenu: false,
pageUrl: location.href,
pageTitle: document.title,
queryText: ''
};
// Find model name elements — look for short text matching known model patterns
const MODEL_PATTERNS = [/Claude/i, /GPT/i, /Gemini/i, /Llama/i, /Grok/i, /Mistral/i, /Sonar/i, /DeepSeek/i];
document.querySelectorAll('div, span').forEach(el => {
const text = el.textContent?.trim();
if (text && text.length < 40 && MODEL_PATTERNS.some(p => p.test(text))) {
// Check this isn't a huge container — should be a leaf-ish element
if (el.children.length <= 3 && !results.modelNames.includes(text)) {
results.modelNames.push(text);
}
}
});
// Try configured selectors
const selectors = {
councilModelRow: "[class*='interactable'][class*='appearance-none']",
councilModelRowFallback: "[class*='gap-x-xs'][class*='items-center']",
councilModelName: "div[class*='font-sans'][class*='text-xs'][class*='font-medium']",
councilCompletedIndicator: "[class*='Completed'], svg[class*='check']",
councilThinkingSteps: "[class*='steps']",
councilPanelClose: "button[aria-label='Close']",
councilThreeDotMenu: "button[aria-label='More'], [class*='overflow']"
};
results.modelRows = document.querySelectorAll(selectors.councilModelRow).length ||
document.querySelectorAll(selectors.councilModelRowFallback).length;
results.completedIndicators = document.querySelectorAll(selectors.councilCompletedIndicator).length;
results.thinkingSteps = document.querySelectorAll(selectors.councilThinkingSteps).length;
results.hasCloseButton = !!document.querySelector(selectors.councilPanelClose);
results.hasThreeDotMenu = !!document.querySelector(selectors.councilThreeDotMenu);
// Try to extract query text from the page
const askInput = document.querySelector('#ask-input');
if (askInput) results.queryText = askInput.textContent?.trim() || '';
// Also try the first user message block
if (!results.queryText) {
const userMsg = document.querySelector('[class*="query"], [class*="question"]');
if (userMsg) results.queryText = userMsg.textContent?.trim().slice(0, 200) || '';
}
return results;
})()
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.
- 1mo ago First seen · 447 lines · 0 tokens per session scan A 9a248056b004
council-extract is a command published in the GitHub repository intellegix/intellegix-code-agent-toolkit (57 stars, last pushed 5d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 4,638 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.
Other commands, from other repositories
doc-generate
Generate API, architecture, code, and user documentation from a codebase and automate keeping it current.
wtfp:export-latex
Export the manuscript and bibliography to portable LaTeX source with declared formatting.
dev-document
Code that makes an application generate office documents (export endpoints, invoices, report jobs).
ssp-guidance
System Security Plan (SSP) documentation guidance.
notebooklm
Google NotebookLM programmatic access — create notebooks, manage sources (URLs, PDFs, YouTube, Drive), generate audio/video/slides/quizzes, and chat with documents. Use when building a research notebook, generating a podcast from docs, or querying a source collection. Triggers on notebooklm, podcast from docs…
pdf-to-markdown-docling
Convert a local PDF to markdown via Docling's standard pipeline (layout + table-structure recognition — higher fidelity than MarkItDown on complex tables/layouts, 10x slower). Requires the opt-in Docling install.