β οΈ Active Development Notice This project is under active development. Features, APIs, and workflows may change. We recommend pinning to specific versions for production use.
- π₯οΈ Interactive CLI β Rich terminal interface for direct agent interaction
- π Web Frontend β Modern React UI wired to agent-as-workflow pattern (default)
- π Jupyter Notebooks β Exploration and prototyping environments in
notebooks/
- Python 3.12+
- uv package manager
- OpenAI API key (set as
OPENAI_API_KEY)
# 1. Clone the repository
git clone https://github.com/Qredence/agentic-fleet.git
cd agentic-fleet
# 2. Configure environment
cp .env.example .env
# Edit .env to add your OPENAI_API_KEY
# 3. Install dependencies
make install
# 4. Launch the fleet (runs frontend + backend)
uv run agentic-fleet
# Alternatives:
# make dev # Same as agentic-fleet
# uv run fleet # CLI/REPL only- π― Magentic-Native Architecture β Built on Microsoft Agent Framework's
MagenticBuilderwith intelligent planning and progress evaluation - π€ Specialized Agent Fleet β Pre-configured researcher, coder, and analyst agents with domain-specific tools
- π Modern Web Frontend β React-based UI with agent-as-workflow pattern for seamless agent interaction
- π Interactive Notebooks β Jupyter notebooks for experimentation, prototyping, and learning
- πΎ State Persistence β Checkpoint system saves 50-80% on retry costs by avoiding redundant LLM calls
- π‘οΈ Human-in-the-Loop (HITL) β Configurable approval gates for code execution, file operations, and sensitive actions
- π Full Observability β Event-driven callbacks for streaming responses, plan tracking, and tool monitoring
- π§ Long-term Memory β Optional Mem0 integration with Azure AI Search for persistent context
- π§ Declarative Configuration β YAML-based agent configuration for non-engineers to tune prompts and tools
- π¨ Multiple Interfaces β CLI, web frontend, and notebooks for different workflows
- Python 3.12+
- uv package manager
- OpenAI API key (set as
OPENAI_API_KEY)
# 1. Clone the repository
git clone https://github.com/Qredence/agentic-fleet.git
cd agentic-fleet
# 2. Configure environment
cp .env.example .env
# Edit .env to add your OPENAI_API_KEY
# 3. Install dependencies
make install
# 4. Launch the fleet (runs frontend + backend)
uv run agentic-fleet
# Frontend runs on port 5173, backend on port 8000
# Alternatives:
# make dev # Same as agentic-fleet
# uv run fleet # CLI/REPL onlyWeb Frontend (Default):
Run uv run agentic-fleet (or make dev) to launch both frontend and backend. Access the web UI at http://localhost:5173 to interact with agents through a modern React interface using the agent-as-workflow pattern.
CLI Interface:
For command-line interaction only, run uv run fleet:
AgenticFleet v0.5.4
________________________________________________________________________
Task β€ Analyze Python code quality in my repository
Plan Β· Iteration 1 Facts: User needs code analysis | Plan: Use coder agent...
Progress Status: In progress | Next speaker: coder
Agent Β· coder Analyzing repository structure...
Result Found 12 files, 3 quality issues...
Built-in CLI commands:
- History navigation:
β/βorCtrl+R - Checkpoints:
checkpoints,resume <id> - Exit:
quitorCtrl+D
Jupyter Notebooks:
Explore example workflows in notebooks/ including:
magentic.ipynbβ Magentic One pattern examplesagent_as_workflow.ipynbβ Agent-as-workflow demonstrationsmem0_basic.ipynbβ Memory integration tutorialazure_responses_client.ipynbβ Azure AI responses client usage
β Production Ready - v0.5.4
AgenticFleet is now production-ready with enterprise-grade features:
- π Type Safe: 100% mypy compliance, zero type errors
- π§ͺ Well Tested: Configuration validation + orchestration tests
- π Observable: Full OpenTelemetry tracing integrated
- π‘οΈ Secure: Human-in-the-loop approval system
- β‘ Performant: Checkpoint system reduces retry costs by 50-80%
- π¨ Modern UI: Production-ready React frontend with real-time streaming
AgenticFleet implements the Magentic One workflow pattern with a manager-executor architecture:
- PLAN β Manager analyzes task, gathers facts, creates structured action plan
- EVALUATE β Progress ledger checks: request satisfied? in a loop? who acts next?
- ACT β Selected specialist executes with domain-specific tools, returns findings
- OBSERVE β Manager reviews response, updates context, decides next action
- REPEAT β Continues until completion or limits reached (configurable in
workflow.yaml)
| Agent | Model Default | Tools | Purpose |
|---|---|---|---|
| Orchestrator | gpt-5 |
(none) | Task planning & result synthesis |
| Researcher | gpt-5 |
web_search_tool |
Information gathering & citations |
| Coder | gpt-5-codex |
code_interpreter_tool (Microsoft hosted sandbox) |
Code generation & analysis |
| Analyst | gpt-5 |
data_analysis_tool, visualization_suggestion_tool |
Data exploration & insights |
All agents use OpenAI Response API format via OpenAIResponsesClient and return structured Pydantic models for reliable downstream parsing.
See Architecture Documentation for detailed design patterns.
AgenticFleet uses a declarative YAML-first approach:
fleet:
manager:
model: "gpt-5"
instructions: |
You coordinate researcher, coder, and analyst agents.
Delegate based on task requirements...
orchestrator:
max_round_count: 30 # Maximum workflow iterations
max_stall_count: 3 # Triggers replan
max_reset_count: 2 # Complete restart limit
callbacks:
streaming_enabled: true
log_progress_ledger: truename: researcher
model: gpt-5
temperature: 0.3
max_tokens: 4000
system_prompt: |
You are a research specialist. Use web_search_tool to find information...
tools:
- name: web_search_tool
enabled: true# Required
OPENAI_API_KEY=sk-...
# Optional: Memory (Mem0)
MEM0_HISTORY_DB_PATH=./var/mem0
OPENAI_EMBEDDING_MODEL=text-embedding-3-small
# Optional: Observability
ENABLE_OTEL=true
OTLP_ENDPOINT=http://localhost:4317# Install with dev dependencies
make install
# Run configuration validation
make test-config
# Run all quality checks (lint, format, type-check)
make check
# Run test suite
make testAll commands use uv run prefix (managed by Makefile):
| Command | Purpose |
|---|---|
uv run agentic-fleet |
Launch frontend + backend (full stack) |
uv run fleet |
CLI/REPL interface only |
make dev |
Same as agentic-fleet |
make test |
Run full test suite |
make test-config |
Validate YAML configs & agent factories |
make lint |
Check code with Ruff |
make format |
Auto-format with Black + Ruff |
make type-check |
Run mypy strict type checking |
make check |
Chain lint + format + type checks |
- Configuration Tests:
tests/test_config.pyvalidates env vars, YAML structure, tool imports - Fleet Tests:
tests/test_magentic_fleet.pycovers 14 orchestration scenarios - Memory Tests:
tests/test_mem0_context_provider.pyvalidates Mem0 integration - Mock LLM Calls: Always patch
OpenAIResponsesClientto avoid API costs in tests
- Python 3.12+ with strict typing (
Type | Noneinstead ofOptional[Type]) - 100-character line limit (Black formatter)
- Ruff linting with
pyupgradeandisortrules - MyPy strict checks (except for test files)
- Pydantic models for all tool return types
See Contributing Guide for detailed conventions.
Comprehensive documentation organized by audience:
- Getting Started β Installation, configuration, first steps
- User Guides β Task-oriented tutorials
- Agent Catalog β Detailed agent capabilities & tools
- Troubleshooting β FAQ & common issues
- Architecture β System design & patterns
- Features β Implementation deep-dives
- Contributing β Development workflow & standards
- API Reference β REST API & Python SDK
π Documentation Index β Complete navigation guide
- Memory Bank Integration: Added comprehensive memory-bank instructions for AI context persistence
- Documentation Expansion: Enhanced AGENTS documentation with detailed capability descriptions
- UI/UX Polish: Significant frontend improvements for better user experience
- Backend Cleanup: Code quality improvements and architectural refinements
- Security Enhancements: Fixed workflow permissions and expression injection vulnerabilities
- CI/CD Improvements: Updated workflows for release triggering and code scanning
- Version Management: Consistent v0.5.4 versioning across all documentation
Extend the fleet with domain-specific agents:
mkdir -p src/agenticfleet/agents/planner/{tools,}
touch src/agenticfleet/agents/planner/{__init__.py,agent.py,config.yaml}# src/agenticfleet/agents/planner/agent.py
from agenticfleet.config.settings import settings
from agent_framework import ChatAgent
from agent_framework.azure_ai import OpenAIResponsesClient
def create_planner_agent() -> ChatAgent:
config = settings.load_agent_config("planner")
return ChatAgent(
name=config["name"],
model=config["model"],
system_prompt=config["system_prompt"],
client=OpenAIResponsesClient(model_id=config["model"]),
tools=[], # Add tools here
)We welcome contributions! Please follow these steps:
- Read Contributing Guidelines
- Review Code of Conduct
- Check existing Issues
# 1. Fork & clone
git clone https://github.com/YOUR_USERNAME/agentic-fleet.git
cd agentic-fleet
# 2. Create feature branch
git checkout -b feat/your-feature
# 3. Make changes
# Edit code, update docs, add tests
# 4. Run quality checks
make check # Lint, format, type-check
make test-config # Validate configurations
make test # Full test suite
# 5. Commit with conventional format
git commit -m "feat(agents): add planner agent with breakdown tool"
# 6. Push & open PR
git push origin feat/your-feature- β
Tests pass (
make test) - β
Code formatted (
make check) - β Documentation updated
- β
YAML configs validated (
make test-config) - β
Commit messages follow
feat:,fix:,docs:convention
Do NOT open public issues for security vulnerabilities.
Please follow the process outlined in SECURITY.md.
- Store API keys in
.env(never commit) - Use HITL approval for code execution
- Enable audit logging for sensitive operations
- Review tool permissions in agent configs
- Keep dependencies updated (
uv sync)
AgenticFleet is released under the MIT License.
Copyright (c) 2025 Qredence
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...
See LICENSE for full terms.
Built with:
- Microsoft Agent Framework β Core orchestration
- Mem0 β Long-term memory layer
- uv β Fast Python package manager
- Rich β Beautiful terminal UI
- Pydantic β Data validation
Special thanks to the Microsoft Agent Framework team for the Magentic One pattern.
- Documentation: docs/
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- Website: qredence.ai
Made with β€οΈ by Qredence