Skip to main content
Tian Pan

Tian Pan

Software Engineer

View all authors

·tian

Why Your Existing Observability Stack Won't Save You When AI Agents Break

HTTP 200s and clean latency charts mean nothing when your AI agent is reasoning incorrectly. How execution-level tracing works, what to measure, and how the observability tooling landscape breaks down for production agent systems.

agent-observability
llm-tracing
ai-agents
production
·tian

Token Economics for AI Agents: Cutting Costs Without Cutting Corners

AI agents consume 3–10x more tokens than chatbots — and the gap between an unoptimized and optimized deployment can reach 200x in cost. A practical guide to prompt caching, model routing, context compression, and hard limits that actually move the needle.

ai-agents
cost-optimization
llm
finops
·tian

AlphaEvolve's Architecture: How Evolutionary Search + LLMs Discovered a Better Matrix Algorithm

A breakdown of AlphaEvolve's four-component loop — program database, prompt sampler, LLM ensemble, and evaluator — and what engineers can learn from the architecture that beat a 56-year-old algorithm.

ai-agents
algorithm-discovery
llm
optimization
·tian

Evaluating AI Agents: Why Grading Outcomes Alone Will Lie to You

A practical guide to evaluating AI agents by grading both outcomes and multi-step trajectories — covering grader types, pass@k vs pass^k, eval harness design, and the organizational pitfalls that sink evaluation programs.

ai-agents
evaluation
llm
testing
+1
·tian

Context Engineering: The Invisible Architecture of Production AI Agents

Context rot degrades every major LLM at scale. Learn how to manage context as first-class infrastructure—KV-cache optimization, reversible compression, error trace retention, and the metrics that reveal degradation before your first production incident.

context-engineering
ai-agents
llm
production
·tian

Agentic Engineering Patterns: The While Loop Is the Easy Part

Every production agent runs the same trivial loop. The patterns that matter are the ones built around it — prompt chaining, routing, reflection, and the context discipline that prevents $47,000 weekly bills.

agents
engineering
production
patterns
·tian

Revisiting Trade-offs: Think Like a Fox, or Focus Like a Hedgehog?

Using the Hedgehog Concept to discover core competency in startups. Learn how to identify the intersection of passion, capability, and economic engine to avoid distraction and achieve long-term value.

entrepreneurship
strategy
hedgehog concept
business thinking
·tian

Building a Multi-Agent Research System: Patterns from Production

How multi-agent research systems actually get built — the architectural patterns that work, the failure modes that bite in production, and the engineering discipline required to keep costs and quality under control.

multi-agent
ai-agents
orchestration
production
+1
·tian

Governing Agentic AI Systems: What Changes When Your AI Can Act

When AI agents can call APIs, write to databases, and spawn sub-agents, governance shifts from controlling outputs to controlling actions. A practical engineering framework for authorization, minimal footprint, prompt injection defense, and structured human oversight.

agentic-ai
security
authorization
governance
·tian

Agent Engineering Is a Discipline, Not a Vibe

Why most AI agents fail in production — and the six structural dimensions (intent, memory, planning, control flow, authority, tools) that separate reliable systems from ones that only work in demos.

agent-engineering
llm-agents
production-ai
reliability
·tian

Designing an Agent Runtime from First Principles

A production agent runtime is not a function runner — it is an execution substrate. Here is how to design one correctly, covering graph execution models, checkpointing, human-in-the-loop, and observability from first principles.

agent-architecture
ai-engineering
llm
production
·tian

Why Your Agent Should Write Code, Not JSON

Code-action agents let LLMs emit and run Python instead of JSON — achieving 20% higher task success rates and 30% fewer LLM round-trips. Here's how they work, where they fail, and how to run them safely in production.

agents
llm
python
code-execution
+1
Showing 2005–2016 of 2314 posts
Prev168 / 193Next