LOGOS turns a research question into a Markdown report. Run the four-stage CLI with an OpenAI-compatible provider or Ollama, or use a configured Azure AI Foundry project for research with web-enabled agents. The CLI keeps a local SQLite research history. The FastAPI service returns structured reports.
The standard CLI runs a planner, researcher, analyst and writer in sequence. You can give these stages reference documents with --source. The standard pipeline uses the model and supplied material. Live web retrieval depends on tools deployed with your Foundry agents.
Foundry workflow
Planner → Researcher ┬→ Industry news ─┬→ Analyst → Writer
└→ Competitors ──┘
Both specialists receive the researcher's findings. The analyst receives the available output from both. If the writer fails, LOGOS tries the configured Azure chat deployment and can return partial research notes when synthesis is unavailable. A run with no usable research or report ends in failure.
The system divides labor across six specialized agents, each fine-tuned with specific system instructions and model deployment targets:
- Planner Agent (
planner-agent): Decomposes the primary business goal into structured sub-tasks. It estimates execution times and defines required tools. - Researcher Agent (
researcher-agent): Executes live searches via the MCP toolboxes to fetch verified data and source URLs. - Industry News Scanner (
industry-news-trend-scanner): Focuses on breaking developments and near-term market signals from the last 3-6 months. - Competitive Landscape Researcher (
competitive-landscape-researcher): Maps industry competitors, assesses market share, and identifies product differentiation gaps. - Analyst Agent (
analyst-agent): Performs qualitative analysis, categorizes evidence strength, and builds a probability-impact risk matrix. - Writer Agent (
writer-agent): Synthesizes the aggregated findings and drafts the final formal report using a standard corporate strategy template.
Detailed design specs, execution logs, and guides are organized within the docs/ directory:
- Agent Design and Multi-Agent Architecture: Breakdown of prompt structures, A2A communication, SQLite memory structures, and the HITL interface.
- Hackathon Alignment and Requirements Mapping: Alignment matrices mapping how LOGOS emulates Work IQ, Foundry IQ, and Fabric IQ layers.
- Developer Guide and Local Execution Manual: Step-by-step setup guides for configuring virtual environments,
.envparameters, and running CLI tests. - Microsoft Azure AI Foundry Usage Guide: Deep dive into Azure SDK project client calls, Responses API, Agents Thread API, and ACR deployment patterns.
LOGOS can be installed in editable developer mode to modify source files:
# Clone the repository
git clone https://github.com/madhesh60/logos_reasoning_agent.git
cd logos_reasoning_agent
# Create and activate a virtual environment
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
# Install dependencies and editable package
pip install -e ".[dev,api]"# Launch the interactive research shell (REPL)
logos
# Execute a query directly and save the report
logos -q "Evaluate the 2026 market prospects for hydrogen fuel cells."
# Send a local document to the configured provider and cite it in the report
logos -q "Which findings support expanding the pilot?" --source pilot-notes.md
# Use your configured Foundry agents and their deployed tools
logos --foundry -q "Compare solid-state battery commercialization timelines."
# Run a diagnostics check on model endpoints
logos --model-testRun logos setup once to choose a provider. For local inference, choose Ollama and an installed model. A single query saves its report to the current directory and exits without prompts. Use --source repeatedly for UTF-8 Markdown or text files, up to 48 KiB combined. The report lists supplied filenames, the citation IDs used in the text, and unmatched IDs. This checks citation labels only. A reader still needs to check whether the passage supports the claim.
To view or print the agent's persisted memory database:
- Launch the interactive shell:
(Or if running directly via python:
logos
python logos/cli.py) - Once the greeting banner displays, type
memoryat the prompt:This prints a clean, beautifully formatted panel containing Personalization Details, Recent investigations history, and Frequently researched entities.> memory - You can also view your bookmarked findings by typing:
> insights
# Launch the API server locally
uvicorn main:app --reload --port 8000- Interactive Swagger UI: http://localhost:8000/docs
- ReDoc Technical Specifications: http://localhost:8000/redoc
LOGOS is containerized and ready to be pushed to your cloud environment:
- Build the Container Image:
docker build -t reasoningagentregistry.azurecr.io/logos-research-agent:latest . - Authenticate & Push to Azure Container Registry (
reasoningagentregistry):az acr login --name reasoningagentregistry docker push reasoningagentregistry.azurecr.io/logos-research-agent:latest
- Provision in Azure AI Foundry: Deploy the pushed container image as a managed hosted agent within the Foundry Agent Service, attaching Managed Identities (Entra ID) for secure keyless access to Azure OpenAI and Azure Search endpoints.
LOGOS outputs structured JSON logging formatted by structlog, making it directly indexable by monitoring solutions like Azure Monitor and Application Insights.
Run the offline test suite for the agents, API, CLI and workflow:
python -m pytestThis section lists the system validation runs and screenshots showcasing the working state of the agent, its memory, traces, containerization, and security guardrails.
Watch the LOGOS Autonomous Multi-Agent Research System in action.
Provides a high-level overview of the multi-agent orchestration pipeline, depicting how Planner, Researcher, Industry News Scanner, Competitive Intel, Analyst, and Writer agents cooperate and coordinate in a sequential pipeline.
A visual execution trace illustrating the active agent steps, agent-to-agent protocol exchanges, and LLM calls executed during a research session.
Demonstrates the persistent SQLite memory layer. Type memory inside the interactive shell to review the customized profile, domain focus, and tracked research history.
Confirms that the FastAPI service is containerized and pushed to the Azure Container Registry (reasoningagentregistry.azurecr.io), ready to be pulled by Azure AI Foundry Hosted Agent Services.
Showcases active safety layers, demonstrating how toxic prompts, PII leaks, and blocked content are intercepted and sanitized in real-time.
Validates the connection of the multi-agent system to the project knowledge base, enabling the agents to query internal documentation and custom databases.
Displays the visual layout of the 6-agent sequential orchestration pattern as defined within the Azure AI Foundry playground.
Confirms local installation verification as an editable Python package, showing successful dependency resolution and environment setup.
Confirms the successfully configured Azure AI Foundry assistants, listing IDs and deployment specifications.
MIT License
Copyright (c) 2026
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
