{
  "markdown": "# Gemini LLM Council Extension\n\nConsult multiple top-tier LLMs simultaneously with automated peer review and synthesis. Leverage the \"Wisdom of the Crowd\" to get high-confidence answers for complex architectural and debugging tasks.\n\nInspired by Andrej Karpathy's [llm-council](https://github.com/karpathy/llm-council).\n\n## ✨ Advanced Features\n\n-   **Autonomous Investigator**: New `/council:investigate` command that uses a specialized subagent to autonomously explore your codebase and gather evidence before deliberating.\n-   **Hierarchical Config**: Save your council settings **Globally** (for all projects) or **Project-specifically** (checked into your repo).\n-   **Specialized Personas**: Run targeted reviews using built-in audit personas (e.g., `security`, `performance`).\n-   **Automatic IQ**: The council automatically detects if your query requires a specific persona and applies it to guide the review phase.\n-   **Customizable**: Define your own personas in `~/.gemini/extensions/gemini-llm-council/personas.json`.\n-   **Ambient Grounding**: System hooks automatically inject core project metadata (README, package.json) into council consultations.\n-   **Deep Audit Trail**: Offload massive raw deliberations to MCP Resources. Accessible via `council://` URIs provided in the summary report.\n\n## Prerequisites\n\n- [Gemini CLI](https://github.com/theerud/gemini-cli) installed.\n- An **OpenRouter API Key**.\n\n## Setup\n\n1.  **Link the extension**:\n    ```bash\n    gemini extensions link .\n    ```\n\n2.  **Configure API Key**:\n    Use the Gemini CLI to set your OpenRouter API key securely. \n    ```bash\n    gemini extensions config gemini-llm-council \"OpenRouter API Key\"\n    ```\n\n3.  **Build the extension**:\n    ```bash\n    npm install\n    npm run build\n    ```\n\n4.  **Configure Council Members**:\n    ```bash\n    /council:setup\n    ```\n    *Choose between **Global** (All Projects) or **Project** (Current Folder) scope.*\n\n## Commands\n\n| Command | Description |\n| :--- | :--- |\n| `/council:setup` | Select models, reasoning depth, and configuration scope. |\n| `/council:ask <query>` | One-shot consultation with automated project grounding and persona detection. |\n| `/council:investigate <issue>` | **Autonomous**: Subagent handles the file-reading and deliberation loop. |\n| `/council:persona <name> <query>` | Consult using a specific persona (e.g., `security`, `performance`, or your custom ones). |\n| `/council:status` | Show active members, reasoning effort, and active configuration scope. |\n\n## Usage Examples\n\n### Autonomous Debugging\n```\n/council:investigate \"The database connection keeps timing out in production environments.\"\n```\n*The council investigator will autonomously find your config files, logs, and connection logic to provide a verified fix.*\n\n### Security Audit (Automatic or Explicit)\n```\n/council:ask \"Audit the new user registration flow for potential injection flaws.\"\n```\n*The Chairman will automatically detect the \"Security\" domain and load the appropriate persona.*\n\n### Global vs Project Config\n- **Global**: Stored in `~/.gemini/extensions/gemini-llm-council/config.json`.\n- **Project**: Stored in `.gemini/llm-council.json`. (Project config overrides global).\n\n## Architecture\n\n*   **Autonomous Orchestration**: Uses Gemini CLI **Subagents** to isolate the heavy lifting of multi-file investigations.\n-   **Intelligent Grounding**: Uses **BeforeTool Hooks** to automatically provide context about your tech stack.\n-   **Clean UI**: Moves raw multi-model critiques to **MCP Resources**, keeping your main chat readable.\n\n## Inspiration\n\nThis project was inspired by Andrej Karpathy's [LLM council](https://github.com/karpathy/llm-council) project, as shared in his [Twitter (X) post](https://x.com/karpathy/status/1992381094667411768).\n\n## License\n\nMIT",
  "bytes": 3800,
  "sha": "cbecba27af39bc4de8b413afb40c6e28661c3160b085c30c13d25c5436172e6b",
  "repo_slug": "theerud/gemini-llm-council",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/plg_theerud_gemini_llm_council_15f31089/readme"
}