Skip to content

doronpers/council-ai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

500 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ›οΈ Council AI

Intelligent Advisory Council System β€” Get advice from a council of AI-powered personas with diverse perspectives and expertise.

Python 3.11+ License: MIT Open in GitHub Codespaces

πŸš€ Getting Started (5 Minutes)

Option 1: Local LLM (Free, No API Key)

Use a local LLM with LM Studio for cost-free, private consulting:

# 1. Download & start LM Studio, load any model

# 2. Install and run Council AI
pip install -e ".[dev]"
council init          # Detects LM Studio automatically
council run "Should we redesign our API?"

Option 2: Cloud LLM (OpenAI, Anthropic, Gemini)

# Install with your provider
pip install -e ".[anthropic]"    # or [openai], [gemini]

# Set API key
export ANTHROPIC_API_KEY="your-key"

# Run
council init
council run "Your question here"

Need More Guidance?

β†’ GETTING_STARTED.md β€” Detailed 5-10 minute setup guide for all platforms

β†’ REPOSITORY_STRUCTURE.md β€” Understand council-ai vs council-ai-personal


✨ Features

  • 🎭 14 Built-in Personas β€” Advisors, red team, specialists with diverse perspectives
  • 🌐 15 Domain Presets β€” Business, research, engineering, creative, career, legal, medical, and more
  • πŸ”§ Fully Customizable β€” Create personas, adjust traits, modify behavior
  • πŸ€– Multi-Provider β€” OpenAI, Anthropic, Google Gemini, Ollama, LM Studio, or custom endpoints
  • πŸ’¬ Multiple Modes β€” Individual, synthesis, debate, vote, sequential, or pattern-based
  • πŸ” Web Search β€” Live data via Tavily, Serper, or Google Custom Search
  • 🧠 Extended Thinking β€” Reasoning mode for complex analysis
  • πŸ“ Session Management β€” Track and resume consultations
  • 🧭 Web UI β€” Modern React/TypeScript interface with Dieter Rams design
  • 🎯 Onboarding Wizard β€” Guided 6-step setup for first-time users
  • πŸ”Š Text-to-Speech β€” Voice responses via ElevenLabs or OpenAI
  • πŸ“– Full API β€” Use Council AI in your code

πŸ“š Documentation

Need Link
Setup Guide GETTING_STARTED.md
Troubleshooting TROUBLESHOOTING.md
Common Tasks COMMON_TASKS.md
Using Web UI WEB_APP.md
Configuration CONFIGURATION.md
Web Search WEB_SEARCH_AND_REASONING.md
Personas & Domains PERSONAS_AND_DOMAINS.md
Python API API_REFERENCE.md
Contributing CONTRIBUTING.md
All Docs documentation/README.md

πŸ“¦ Installation & Configuration

Full step-by-step setup β†’ GETTING_STARTED.md

Quick Version

# Clone repository
git clone https://github.com/doronpers/council-ai.git
cd council-ai

# Create virtual environment
python3 -m venv venv
source venv/bin/activate  # macOS/Linux: source venv/bin/activate; Windows: .\venv\Scripts\activate.bat

# Install package
pip install -e ".[dev]"

# Run setup wizard (guides you through API key configuration)
council init

# Launch web UI
python launch-council.py --web
# OR launch CLI
council run

Supported API Providers: OpenAI, Anthropic, Google Gemini, Ollama, LM Studio, or custom endpoints.

See REPOSITORY_STRUCTURE.md to understand which repository to use (council-ai vs council-ai-personal).


🎯 Usage Examples

Web UI:

python launch-council.py --web
# Open http://localhost:8000 β†’ Complete onboarding wizard

CLI:

# Interactive session
council run

# One-shot consultation
council run --query "Should we pivot our business model?"

# With specific domain & personas
council run --domain startup --model gpt-4

Python API:

from council_ai import Council

council = Council.for_domain("business", api_key="your-key")
result = council.consult("Should we expand to Europe?")
print(result.synthesis)

For comprehensive examples, see COMMON_TASKS.md and examples/.


πŸ—οΈ Persona Architecture (v2.0+)

Council AI uses archetypes β€” reusable personality templates β€” combined with specialization for flexible persona management.

Archetypes (Public)

Generic trait-based templates in src/council_ai/personas/archetypes/:

  • quality_advocate β€” Design philosophy & best practices
  • security_specialist β€” Adversarial thinking & risk
  • strategic_leader β€” Long-term strategy
  • risk_analyst β€” Probabilistic reasoning
  • cognitive_scientist β€” Human behavior & UX

Specialized Personas (Personal)

In council-ai-personal (private repo, sibling directory):

  • Real-name personas inheriting from archetypes
  • Private configurations
  • Personal customizations

14 Built-in Personas across 3 councils:

  • Advisory Council: Dieter Rams, Daniel Kahneman, Martin Dempsey, Julian Treasure
  • Red Team: Pablo Holman, Nassim Taleb, Andy Grove, and others
  • Specialists: Audio, compliance, fraud, and domain experts

15 Domain Presets: Business, startup, coding, creative, career, audio, medical, legal, and more.

Create custom personas or modify weights to fit your needs.

Reference: PERSONAS_AND_DOMAINS.md


Advanced Features

Feature Documentation
Web Search WEB_SEARCH_AND_REASONING.md
Context Injection CONTEXT_INJECTION_GUIDE.md
LLM Response Review REVIEWER_SETUP.md
Configuration CONFIGURATION.md
Error Handling ERROR_HANDLING.md
Python API API_REFERENCE.md

Support


Testing

# Run all tests
pytest

# Run with coverage
pytest --cov=council_ai

# Run specific test
pytest tests/unit/test_core.py

See CONTRIBUTING.md for code quality and testing standards.


License

MIT License β€” see LICENSE file.


Built with ❀️ for better decisions.

About

Council AI provides a framework for consulting multiple AI "personas" - each with distinct expertise, perspectives, and decision-making approaches. Whether you're making business decisions, reviewing code, planning strategy, or working on creative projects, the council provides comprehensive, multi-perspective advice.

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors