Observed since 20 Oct, 22:30 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Multi-LLM Council Backend for AGENT-K - Three-stage consensus with GPT, Gemini, and Claude
Multi-LLM Council Backend for AGENT-K
╭──────────────────────────────────────────────── AGENT-K v2.3.7 ────────────────────────────────────────────────╮
│ Multi-LLM Council - GPT + Gemini + Claude │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
The Python backend provides multi-LLM consensus and Smart Context Selection for AGENT-K.
pip install agentk8
OPENAI_API_KEY - For GPT-4GEMINI_API_KEY - For GeminiANTHROPIC_API_KEY - For Claudefrom agentk.scout import Scout
import asyncio
async def main():
scout = Scout(project_root="/path/to/project")
# Query-aware file selection
context = await scout.scan_project("Where is authentication handled?")
print(context["files"]) # Returns only relevant files
# Full investigation with web search
report = await scout.investigate("Latest JWT best practices")
print(report.to_context_string())
asyncio.run(main())
from agentk.council import Council
import asyncio
async def main():
council = Council()
# Three-stage consensus
result = await council.deliberate(
"Design a rate limiting system for our API",
mode="council" # or "solo" for multi-Claude personas
)
print(result["final_synthesis"])
asyncio.run(main())
┌─────────────────────────────────────┐
│ Stage 1: Analysis │
│ GPT-4 | Gemini | Claude (parallel) │
└─────────────────┬───────────────────┘
│
┌─────────────────▼───────────────────┐
│ Stage 2: Cross-Review │
│ Each model reviews others' work │
└─────────────────┬───────────────────┘
│
┌─────────────────▼───────────────────┐
│ Stage 3: Chairman Synthesis │
│ Claude synthesizes consensus │
└─────────────────────────────────────┘
Instead of blindly grabbing files, the Scout asks the LLM to select relevant files:
# Traditional approach (naive):
files = get_top_10_files() # Often irrelevant
# Smart Context Selection:
scout = Scout(project_root=".")
context = await scout.scan_project("How does the auth middleware work?")
# LLM analyzes file tree + query → selects only auth-related files
This is inspired by the Recursive Language Models paper, which treats the codebase as an environment to navigate intelligently.
# Run Scout investigation
python -m agentk.scout "Where are the API endpoints defined?"
# Run Council deliberation
python -m agentk.council "Design a caching strategy" --mode council
agentk/
├── __init__.py
├── council.py # Multi-LLM consensus logic
├── scout.py # Smart Context Selection
├── llm.py # LiteLLM wrapper for unified API
└── tools.py # File tree, directory scanning
| Variable | Description |
|---|---|
OPENAI_API_KEY | OpenAI API key for GPT-4 |
GEMINI_API_KEY | Google API key for Gemini |
ANTHROPIC_API_KEY | Anthropic API key for Claude |
MIT License
AGENT-K v2.3.7 - Python Backend
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 2.3.8 | 16 Jan 2026 | 6 |
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 22:30 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:d4d103201f35dfa63e5080a3b7060fdeae0e74cb541ee964ba5c82dbc481f6db