Not AI news. Not an LLM blog. AI playbook.
Build AI agents that survive production.
Practical patterns, failure cases, architecture, and governance for agents that call real tools.
Not sure which pattern you need? Design your agent →
Learn
Start Here
What an agent is, what it isn’t, and when you should not build one.
5
Showing 3 / 5
- What Are AI Agents
- AI Agents vs ChatGPT and Workflows: What's the Difference?
- How AI Agents Make Decisions
View all (5) →
Foundations
Tool calling, planning vs reactive, and the limits you’ll hit in prod.
9
Showing 3 / 9
- What AI Agents Are Made Of
- How AI Agents Use Tools (Basics)
- How AI Agents Are Allowed to Use Tools
View all (9) →
Agent Patterns
Patterns that didn’t break production (with code and trade-offs).
15
Showing 3 / 15
- React Agent Pattern: Reliable Task-Handling
- Task Decomposition Agent Pattern: Break Complex Tasks
- Routing Agent Pattern: Smart Task Routing Between Agents
View all (15) →
Build
Architecture
Production stack, observability, rate limits, operations.
10
Showing 3 / 10
- Agent Runtime: Control the Agent Execution Loop
- Tool Execution Layer: Safe Tool Execution for AI Agents
- Memory Layer: How Agents Store and Retrieve Memory
View all (10) →
Agent Governance
Budgets, approvals, permissions, audit logs — the controls that keep agents safe.
5
Showing 3 / 5
- Allowlist vs Blocklist (Why Default-Deny Wins) + Code
- Budget Controls for AI Agents (Steps, Time, $) + Code
- Human-in-the-Loop Approvals (Write Gates) + Code
View all (5) →
Observability
Logging, traces, metrics, and alerts that keep agent incidents from becoming mysteries.
1
Showing 1 / 1
- AI Agent Logging (What to Log, What to Redact, What to Alert On)
View all (1) →
Testing AI Agents
Unit tests, golden tasks, record/replay, and evals that catch regressions before prod does.
7
Showing 3 / 7
- Testing AI Agents: Production Testing Strategy
- Eval Harness for AI Agents: Repeatable Evaluations
- Golden Datasets: Reliable Test Data for AI Agents
View all (7) →
Optimization
Prompt + runtime tuning without breaking safety: latency, cost, and regression control.
1
Showing 1 / 1
- Prompt Optimization for AI Agents (Without Breaking Production)
View all (1) →
Security
Permissions, budgets, kill switch, idempotency, audit logs.
1
Showing 1 / 1
- AI Agent Tool Permissions (With Code)
View all (1) →
Tools & Integrations
APIs, browsers, databases — the stuff your agent will inevitably call.
1
Showing 1 / 1
- Browser Tool for AI Agents (With Code)
View all (1) →
Avoid
Failures & Fixes
How agents fail in the real world, and how to stop the bleeding.
15
Showing 3 / 15
- Why AI Agents Fail: Common Production Problems
- Agent Drift: When AI Agents Gradually Lose Focus
- Infinite Agent Loop: when an AI agent does not stop
View all (15) →
Anti-Patterns
Things that look smart in demos and break production (with receipts).
12
Showing 3 / 12
- Anti-Pattern Agent Everywhere: When Everything Becomes an Agent
- Anti-Pattern Overengineering Agents: When Architectures Become Too Complex
- Anti-Pattern Too Many Tools: When Agents Have Too Many Options
View all (12) →
Apply
Playbooks
Build X in 20 minutes (safe by default).
1
Showing 1 / 1
- Build Your First AI Agent (Safely, With Code)
View all (1) →
Real Examples
End-to-end agents with code and the parts that went wrong.
24
Showing 3 / 24
- ReAct Agent in Python: Full Example
- Task Decomposition Agent in Python: Full Example
- Routing Agent in Python: Full Example
View all (24) →
Comparisons
Framework vs framework, agents vs workflows — what breaks in production and what to pick.
10
Showing 3 / 10
- AutoGPT vs Production Agents: What's the Difference?
- CrewAI vs LangGraph: What's the Difference?
- LangChain vs AutoGPT: What's the Difference?
View all (10) →
Integrated: production controlOnceOnly
Add guardrails to tool-calling agents
Ship this pattern with governance:
- Budgets (steps / spend caps)
- Tool permissions (allowlist / blocklist)
- Kill switch & incident stop
- Idempotency & dedupe
- Audit logs & traceability
Integrated mention: OnceOnly is a control layer for production agent systems.
Example policy (concept)
Python
# Example (Python — conceptual)
policy = {
"budgets": {"steps": 25, "usd": 2.0},
"tools": {"allow": ["http.get", "browser.search"]},
"controls": {"kill_switch": True, "idempotency": True, "audit": True},
}
# run = onceonly.run(policy)
# result = run.invoke(agent, input="...")