7.6 KiB
theme, title, info, author, transition, mdc, lineNumbers, monaco, aspectRatio, canvasWidth, layout, class
| theme | title | info | author | transition | mdc | lineNumbers | monaco | aspectRatio | canvasWidth | layout | class |
|---|---|---|---|---|---|---|---|---|---|---|---|
| seriph | Lesson 21 — How Can Code Let an Agent Create New Capabilities? | English video course for AI Agents in Depth | Bojie Li | slide-left | true | false | false | 16/9 | 980 | cover | cover |
How Can Code Let an Agent Create New Capabilities?
Adapters, generative UI, hot repair, and Agent bootstrapping
Why this problem matters
Adapter
Translate unstable external formats into stable internal ones.
Interface
Generate a UI that matches the current intent.
Bootstrap
Create a specialized Agent from a validated reference.
Three ideas to keep in view
Hot repair
Failure sample → generated parser → tests → registration
Artifact pattern
Pass paths and queries instead of moving large data through tokens
Validated generation
Compile, test, scan, and exercise generated Agents
The book's visual model
One-off generation vs. Capability creation
One-off generation
- Produces an artifact
- Capability disappears after task
- No reuse gate
Capability creation
- Packages implementation
- Validates and versions it
- Reuses on later tasks
Capability promotion needs gates
candidate = agent.generate_tool(failure_sample)
compile(candidate)
run_security_scan(candidate)
run_regression_tests(candidate)
registry.promote(candidate)
Test the claim
Repair an unknown log format
Observe: Failure detection, generated parser, tests, and later reuse
Generate a dynamic form
Observe: Intent gaps converted into fields and cascading constraints
Inspect Agent-creation validation gates
Observe: Scratch versus template generation, compile, tests, and protocol audit
class: course-terminal
Switching to the terminal
$ uv run python chapter5/adaptive-log-parser/demo.py --offline
$ uv run python chapter5/dynamic-form/demo.py --offline
$ uv run python chapter5/agent-creator/demo.py --no-live --output chapter5/agent-creator/runs/course-smoke
What the evidence supports
Finding 1
Generated adapters let a system follow changing data formats.
Finding 2
Generative UI moves structured clarification out of slow chat turns.
Finding 3
Reference-based Agent creation preserves a proven loop while specializing tools.