Skip to content

Sam-bot-dev/Tiny-council

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

44 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ›οΈ Tiny Council

A multi-agent AI system where specialized agents debate, critique, and synthesize decisions β€” just like a real engineering council.

Python FastAPI AI Status License


πŸš€ Overview

Tiny Council is an experimental multi-agent AI architecture where multiple autonomous AI agents collaborate, debate, and challenge each other to arrive at high-quality, explainable decisions.

Instead of relying on a single AI response, Tiny Council forms a council of experts, each with a distinct role β€” mimicking how real-world engineering teams think.


🧠 Why Tiny Council?

Traditional AI systems:

  • Provide single-point answers
  • Lack internal critique
  • Hide reasoning paths

Tiny Council introduces:

  • πŸ—£οΈ Inter-agent debate
  • βš–οΈ Conflict-driven reasoning
  • πŸ” Explicit critique and validation
  • 🧩 Consensus-based decision making

This makes the system more robust, explainable, and realistic.


πŸ—οΈ Core Architecture

           User Query
               |
               v
      +-------------------+
      |  Council Manager  |
      +-------------------+
        |       |       |
        v       v       v
+---------+ +---------+ +---------+
| Planner | | Critic  | | Expert  |
+---------+ +---------+ +---------+
      \         |         /
       \        |        /
        v       v       v
      +-------------------+
      | Consensus Engine  |
      +-------------------+
                |
                v
   Final Answer + Reasoning Trace

πŸ‘₯ Council Agents (v1)

Agent Role
🧠 Planner Breaks down the problem and proposes a solution
πŸ”Ž Critic Challenges assumptions, finds flaws and risks
πŸ“š Domain Expert Ensures factual and technical correctness
🧩 Synthesizer Merges arguments into a final response

Each agent operates independently and communicates through a structured debate loop.


βš™οΈ How Tiny Council Works

Tiny Council follows a multi-agent orchestration workflow where multiple AI agents collaboratively solve problems through structured debate, critique, and synthesis.

Instead of relying on a single AI response, the system creates a council of specialized agents that independently analyze the query and contribute their perspectives.


πŸ”„ Workflow

User Query
    ↓
Council Manager receives request
    ↓
Planner Agent proposes solution
    ↓
Critic Agent challenges assumptions
    ↓
Domain Expert validates correctness
    ↓
Synthesizer merges all viewpoints
    ↓
Final Answer + Reasoning Trace

🧠 Agent Responsibilities

🧠 Planner Agent

  • Breaks down the problem
  • Creates an initial strategy
  • Suggests possible approaches

πŸ”Ž Critic Agent

  • Identifies flaws and risks
  • Challenges weak assumptions
  • Detects inconsistencies

πŸ“š Domain Expert Agent

  • Validates technical accuracy
  • Ensures factual correctness
  • Provides domain-specific insights

🧩 Synthesizer Agent

  • Combines all responses
  • Resolves conflicts
  • Produces final explainable answer

βš–οΈ Why Multi-Agent Systems?

Traditional AI systems:

  • Generate single-pass responses
  • Lack internal critique
  • Hide reasoning paths

Tiny Council improves this by:

  • Enabling collaborative reasoning
  • Increasing explainability
  • Supporting transparent decision-making
  • Producing more robust responses

πŸ› οΈ Tech Stack

  • Language: Python
  • Backend: FastAPI
  • AI Layer: Pluggable LLM interface (OpenAI / Local models)
  • Data Models: Pydantic
  • Architecture: Modular, agent-based design

⚑ Installation

1️⃣ Clone the Repository

git clone https://github.com/your-username/tiny-council.git
cd tiny-council

2️⃣ Create Virtual Environment (Recommended)

Linux / MacOS

python3 -m venv venv
source venv/bin/activate

Windows

python -m venv venv
venv\Scripts\activate

3️⃣ Install Dependencies

pip install -r requirements.txt

πŸ” Environment Variables

Tiny Council currently uses Hugging Face hosted LLMs for agent reasoning and collaborative responses.

Create a .env file in the root directory:

HUGGINGFACE_API_KEY=your_api_key_here

Generate your API key from:

https://huggingface.co/settings/tokens


4️⃣ Run Tiny Council

python -m api.main

Replace main.py with your actual project entry file if different.


πŸ’» Current Interface

πŸ–₯️ Tiny Council CLI Demo

Below is a live terminal execution of Tiny Council where multiple agents collaboratively debate and generate a final response.

Tiny Council CLI Demo


✨ Features Demonstrated

  • Multi-agent orchestration
  • Structured reasoning flow
  • Agent critique and validation
  • Consensus-based response generation
  • Terminal-based interactive workflow

πŸ“ Project Structure

tiny-council/
β”‚
β”œβ”€β”€ agents/
β”‚ β”œβ”€β”€ base_agent.py
β”‚ β”œβ”€β”€ planner.py
β”‚ β”œβ”€β”€ critic.py
β”‚ β”œβ”€β”€ expert.py
β”‚ └── synthesizer.py
β”‚
β”œβ”€β”€ council/
β”‚ β”œβ”€β”€ manager.py
β”‚ └── consensus.py
β”‚
β”œβ”€β”€ prompts/
β”‚ β”œβ”€β”€ planner.txt
β”‚ β”œβ”€β”€ critic.txt
β”‚ └── expert.txt
β”‚
β”œβ”€β”€ api/
β”‚ └── main.py
β”‚
β”œβ”€β”€ cli/
β”‚ └── banner.py
|
β”œβ”€β”€ tests/
β”‚ └── test_manager.py
β”œβ”€β”€ requirements.txt
└── README.md

βš™οΈ Current Features

  • βœ”οΈ Modular agent system
  • βœ”οΈ Role-specific prompting
  • βœ”οΈ Turn-based agent debate
  • βœ”οΈ Consensus synthesis

🧭 Roadmap

Phase 1

  • Core agent framework
  • Single-round debate

Phase 2

  • Multi-round discussions
  • Agent scoring & voting

Phase 3

  • Persistent memory per agent
  • Explainable reasoning logs

Phase 4

  • Web UI for live agent debates
  • Exportable decision reports

πŸŽ“ Use Cases

  • AI research & experimentation
  • Engineering decision support
  • Code review & system design critique
  • GSoC / research internship portfolios
  • Explainable AI demonstrations

πŸ“œ License

This project is licensed under the MIT License β€” free to use, modify, and distribute.


πŸ”— Connect With Me

Bhavesh
Lead Dev
Bhavesh
🌐 GitHub

About

Tiny Council is a multi-agent AI system where different AI agents analyze the same problem and combine their responses to produce a single, explainable decision. It compares ideas, detects disagreements, and generates a final answer with clear reasoning.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages