Speaker Notes

Agent Experience Is the New Developer Experience | Sean Roberts

Designing a deliberate agent experience with context files, feedback loops, and specialized subagents transforms isolated AI usage into cohesive team productivity.

AI Native Dev · 30:01 · YouTube ↗

Talk · solo speaker  Intermediate · concepts and strategy

Highlights

3 clips · 5 min of 30 min
    • LLMs will confidently fabricate information or pick incorrect patterns when knowledge gaps exist.
    • Spend initial agent experience efforts on robust context files and steering documents.
    • Explicitly document connections in decoupled architectures to stop agents from guessing.
    • Systematically capture manual human interventions and tribal knowledge back into context files.
    • Run retrospective sessions with agents when they go off the rails to analyze mistakes.
    • Update context files immediately after failure analysis to prevent repeating errors.
    • Generalist agents struggle when overloaded with excessive context across different domains.
    • Define specialized subagents in simple markdown files for tasks like copywriting or data migrations.
    • Routing tasks to dedicated specialists prevents context window pollution and confusion.

Questions this video answers

10 · every answer cites the moment it was said
01 What is agent experience and why should developers care about it? 2 sources · 5:00

Agent experience is the holistic way an agent interacts with your system or codebase, extending traditional developer experience. Supporting it ensures your human developers can successfully delegate tasks to AI without friction. It is no longer optional since developers are actively using agents.

02 How do I combat the one-person band fragmentation problem on my team? 2 sources · 11:17

Start by auditing your team to see what AI agents people are actually using and what works best. Build an internal community by getting developers together to discuss tools and run collaborative pair programming sessions with AI. This helps align your team away from isolated, fragmented tool setups.

03 How can I prevent AI agents from confidently making things up when they hit knowledge gaps? 2 sources · 13:50

Spend your initial time writing context files like steering files or agentsmd files to bridge knowledge gaps. Make complex workflows obvious and document decoupled architecture connections clearly. This stops the model from hallucinating incorrect implementations when it lacks information.

04 How should I handle third-party dependency documentation for agents? 2 sources · 16:09

Third-party dependencies and version mismatches frequently confuse models, especially when trained on older API versions. Ensure you explicitly document key third-party modules and version differences in your context files. This prevents the agent from mixing up APIs and generating broken code.

05 When should I use knowledge graphs for my codebase? 2 sources · 17:50

For very large codebases, asking an agent to traverse everything on the fly is slow, expensive, and error-prone. Knowledge graphs pre-produce an understanding of the overall architecture and file relations. Agents can consult these graphs first before attempting complex tasks.

06 What is an agent therapy session and how does it improve workflows? 2 sources · 19:43

An agent therapy session is a practice where you ask a struggling agent to analyze why it went off the rails and what could be done better. You then immediately update your context files with those learnings to prevent future failures. This creates a tight feedback loop for continuous improvement.

07 How do ephemeral environments help with agent feedback loops? 2 sources · 0:45

Ephemeral environments like preview deployments give you safe spaces to inspect agent outputs for non-code issues like layout and styling. Developers or review agents can inspect these deployments to catch visual mistakes. Combining this with context updates creates a solid end-to-end feedback loop.

08 How do shared subagents solve context overload? 2 sources · 22:31

Putting all specialized instructions into a single global markdown file overloads the context and confuses generalist models. Shared subagents use separate markdown files to define specialists for design, copywriting, or data migrations. When you assign a task, the system automatically routes it to the right specialized subagent.

09 How can I distribute global configurations and subagents across multiple repos? 2 sources · 24:32

Centralize your global guidelines, brand tones, and subagents into a shared repository. Provide a command-line interface tool that developers can run to sync these global configs across their individual repositories. This keeps cross-repo workflows consistent without manual copying.

10 How do I run evaluations on agent experience to prune bloated configs? 2 sources · 26:03

Run agent evals by placing an agent SDK under specific conditions to test its performance on your repository. This helps you identify missing documentation gaps and safely prune bloated, overgrown context rules. Evals give you the confidence to manage context growth effectively.

Section-by-section summary

6 parts

Agent experience is an extension of developer experience

Every codebase has an agent experience whether intentional or not because developers constantly delegate work to AI. Designing this experience bridges the gap between raw model capability and productive human-AI collaboration.

Overcoming the one-person band fragmentation problem

Individual team members often adopt disjointed AI tools and workflows, leading to fragmented practices across the organization. Treating agent usage as a team discipline rather than isolated experiments aligns everyone toward shared goals.

Context files are the first line of defense

Large language models lack implicit knowledge of your codebase and will confidently hallucinate when gaps appear. Maintaining up-to-date context files, steering rules, and architecture maps keeps agents aligned with reality.

Establishing continuous feedback loops and agent therapy

Manual interventions by senior devs or human reviewers must be systematically captured back into context files. Techniques like post-mortem agent therapy sessions help agents learn from mistakes and prevent repeated failures.

Scaling with shared subagents and centralized configs

Generalist agents struggle when overloaded with excessive context across different domains like copywriting or database migrations. Offloading specific tasks to markdown-defined subagents and centralizing global rules via shared repos or CLIs improves consistency.

Running evaluations on agent experience

Agent instructions naturally grow monotonically over time without pruning, leading to bloated configs. Applying automated evaluations to your repo's agent workflows validates changes and builds confidence in trimming unnecessary rules.

0:00 / 30:01
k play/pause · f fullscreen · m mute
n next · p previous clip · t highlights/full
< > slower/faster · / search what was said
  • Agent experience16× · first 0:00

    The holistic experience an agent has interacting with a codebase or system.

  • Context files6× · first 0:26

    Markdown files providing codebase-specific instructions and rules for AI agents.

  • Knowledge graphs2× · first 17:55

    Pre-produced architectural summaries that large codebases use to speed up agent comprehension.

  • Ephemeral environments2× · first 0:42

    Temporary pre-production or preview deployments used for reviewing agent outputs.

  • Shared subagents2× · first 22:21

    Specialized modular markdown agents focused on specific tasks like data migrations or design.

  • Agent evals1× · first 26:08

    Automated evaluations testing agent performance under specific conditions to find documentation gaps.