How mikeybeez/ollama_agents works
Ollama_Agents is an interactive Ollama-powered assistant with configurable agent personalities, web research, conversation memory, and a JSON/SQLite graph knowledgebase. Its user-facing workflow is to enter a prompt or slash command, have an agent combine model reasoning with context and research, and receive a response that can update history and knowledge. The graph preserves documented capabilities such as multi-agent use, fact-checking, knowledge trees, and user profiling, but their exact runtime wiring is not always visible in the excerpts. Arrows use explicit README statements or SOURCE INDEX references; unsampled subsystem links are omitted or marked unverified.
Main entry points: ollama_client.py Ollama client · debug_agent_v2.py Debug agent · cognitive_engine.py Cognitive processing · save_history.py History and memory
Components 25
User Interaction
- Interactive input
src/modules/input.py - Slash commands
src/modules/slash_commands.py - CLI entry point
src/main.py
Agents and Reasoning
- Debug agent
src/agents/debug_agent_v2.py - Agent switching
src/agents/multi_agent.py - Cognitive processing
src/modules/cognitive_engine.py - Agent tools
src/modules/agent_tools.py - Causal reasoning
src/modules/causal_reasoning.py - Hypothesis testing
src/modules/hypothesis_testing.py - Advanced reasoning
src/modules/adv_reasoning_engine.py - Planning engine
src/modules/adv_planning_engine.py - Research tools
src/modules/research_tools.py
Knowledge and Memory
- Context management
src/modules/context_management.py - Memory search
src/modules/memory_search.py - History and memory
src/modules/save_history.py - Knowledge management
src/modules/knowledge_management.py - Graph knowledgebase
src/modules/kb_graph.py - Knowledge extraction
src/modules/knowledge_extraction/main.py
Models and Services
- Ollama client
src/modules/ollama_client.py - DuckDuckGo search
src/modules/ddg_search.py - Ollama service
- DuckDuckGo
Configuration and Runtime
- Assistant configuration
config.py - Logging
src/modules/logging_setup.py
Other components
- Assistant user
Connections 37
- Assistant user → Interactive input: enters prompts
README.md - Interactive input → Slash commands: dispatches commands
src/modules/input.py - Assistant user → Debug agent: uses debug mode
README.md - Debug agent → Interactive input: reads input
src/agents/debug_agent_v2.py - Debug agent → Slash commands: uses commands
src/agents/debug_agent_v2.py - Debug agent → Agent tools: uses tools
src/agents/debug_agent_v2.py - Debug agent → Ollama client: calls model
src/agents/debug_agent_v2.py - Debug agent → DuckDuckGo search: uses search
src/agents/debug_agent_v2.py - Debug agent → Graph knowledgebase: uses graph
src/agents/debug_agent_v2.py - Debug agent → Causal reasoning: uses reasoning
src/agents/debug_agent_v2.py - Debug agent → Hypothesis testing: tests hypotheses
src/agents/debug_agent_v2.py - Debug agent → History and memory: saves history
src/agents/debug_agent_v2.py - Assistant user → Agent switching: switches agents
README.md - Cognitive processing → Agent tools: analyzes and responds
src/modules/cognitive_engine.py - Cognitive processing → Knowledge management: processes queries
src/modules/cognitive_engine.py - Cognitive processing → Context management: gathers and updates
src/modules/cognitive_engine.py - Cognitive processing → Memory search: searches memories
src/modules/cognitive_engine.py - Cognitive processing → Research tools: researches queries
src/modules/cognitive_engine.py - Cognitive processing → Ollama client: generates responses
src/modules/cognitive_engine.py - Context management → Memory search: searches memories
src/modules/context_management.py - Context management → Ollama client: updates context
src/modules/context_management.py - Research tools → DuckDuckGo search: searches web
src/modules/research_tools.py - Research tools → Ollama client: summarizes results
src/modules/research_tools.py - Ollama client → Ollama service: requests generation
src/modules/ollama_client.py - Ollama client → History and memory: saves interaction
src/modules/ollama_client.py - DuckDuckGo search → DuckDuckGo: runs search
src/modules/ddg_search.py - History and memory → Graph knowledgebase: writes memory edges
src/modules/save_history.py - Knowledge management → Graph knowledgebase: uses graph
src/modules/knowledge_management.py - Knowledge extraction → Ollama client: analyzes topics
- Advanced reasoning → Ollama client: calls model
src/modules/adv_reasoning_engine.py - Planning engine → Ollama client: calls model
src/modules/adv_planning_engine.py - Agent tools → Ollama client: generates prompts
src/modules/agent_tools.py - Causal reasoning → Ollama client: calls model
src/modules/causal_reasoning.py - Hypothesis testing → Ollama client: calls model
src/modules/hypothesis_testing.py - Assistant configuration → History and memory: sets memory paths
src/modules/save_history.py - Assistant configuration → Logging: sets log settings
src/modules/logging_setup.py - CLI entry point → Logging: sets up logging
src/main.py