One command.
Production-ready.
Run meshflow init and get a fully scaffolded project — main.py, .env.example, README.md, a governed Team template, policy mode, and run/replay commands. The golden standard, from day one.
pip install meshflow && meshflow init my-projectpython main.py, then inspect history with meshflow logs and meshflow replay."""Research pipeline - my-project."""
import asyncio
from meshflow import Agent, Team, tool, RiskTier
@tool(name="search", description="Search for information", risk=RiskTier.READ_ONLY)
async def search(query: str) -> str:
# Replace with Tavily, Exa, SerpAPI, or another search API.
return f"[simulated] Results for: {query}"
planner = Agent(name="planner", role="planner", memory=True)
researcher = Agent(name="researcher", role="researcher", tools=[search], memory=True)
writer = Agent(name="writer", role="executor")
critic = Agent(name="critic", role="critic")
team = Team(
name="my-project",
agents=[planner, researcher, writer, critic],
pattern="supervised",
policy="standard",
)
async def main() -> None:
result = await team.run(
"Research and summarise the latest in AI agent frameworks.",
)
print("\n" + "=" * 60)
print(result.output)
print(f"\nrun_id={result.run_id} cost=${result.total_cost_usd:.4f}")
if __name__ == "__main__":
asyncio.run(main())Template choice
Pick research, code, legal, or custom. Each template maps to the real Team patterns in the package.
Policy mode
Choose dev, standard, regulated, or legal-critical so the generated Team starts with the right governance posture.
Provider env
.env.example uses ANTHROPIC_API_KEY and leaves optional ledger and OpenTelemetry settings commented.
Run ledger
The README points to meshflow logs and meshflow replay, matching the CLI commands available in the package.
HITL commands
Approval and resume commands are included for workflows that pause on human review gates.
Extend from there
Add tools, skills, memory, guardrails, and compliance profiles directly in main.py as the project grows.
Run it now.
Free forever. Works with Claude Code, Codex, Cursor, and 29 more tools.