A terminal-based tool that visually maps the connections between ideas by exploring diverse related concepts. Starting from a single root concept, it builds an expanding tree of interconnected ideas that span across different domains and intellectual territories.

Clone the repo (or just copy the explorer.py code):
bash
git clone https://github.com/UdaraJay/concept-explorer.git
cd concept-explorer
Create and activate a virtual environment, then install the required dependencies:
bash
python -m venv venv
source venv/bin/activate
pip install requests networkx colorama
You can now run explorer.py while the virtual environment is active:
bash
python explorer.py
Ensure Ollama is installed and running with at least one model:
# Install Ollama from https://ollama.ai/
# Pull a model
ollama pull llama3
Run the concept explorer with default settings:
python explorer.py
Specify a different root concept:
python explorer.py "Time"
Customize multiple parameters:
python explorer.py --root="Emergence" --model="llama3" --diversity=0.9 --depth=100
--root=CONCEPT: The starting concept (default: "Consciousness")--model=MODEL: The Ollama model to use (default: "llama3")--diversity=FLOAT: Diversity bias between 0.0-1.0 (default: 0.8)--depth=INT: Maximum exploration depth (default: 3)Starting with "Consciousness" might lead to branches like:
Ctrl+C to interrupt the exploration and save the current statereset if your terminal display becomes corrupted after the program exitsYou can modify the prompt template in the get_related_concepts method to adjust how the LLM generates connections.
$ claude mcp add concept-explorer \
-- python -m otcore.mcp_server <graph>