# Stop Prompting, Start Delegating — Ross Cefalu & Dex Horthy, Factory

Ross Cefalu, Factory · Dex Horthy, Factory

AI Engineer Code Summit 2026

[Talk page](https://ai.engineer/talks/OU0iA4Xo3Xw-stop-prompting-start-delegating) · [Video](https://www.youtube.com/watch?v=OU0iA4Xo3Xw)

Ross Cefalu and Dex Horthy demonstrate how Factory Workstreams coordinate long-running coding agents. A feature with 22 merged pull requests shows why shared plans, isolated machines, recurring checks and a manageable review queue matter as much as the agents writing the code.

- Keep the orchestrator available for decisions. Workers can handle implementation on separate machines, share plans through files and receive new assignments through messages or triggers.
- Limit how much work enters review at once. After a larger queue overloaded the review bots, Horthy kept two PRs open and asked the orchestrator to promote the next draft when a slot became available.
- Keep design documents alive during implementation. Horthy’s orchestrator returned to the original PRD agent when requirements changed. He also recommends regularly comparing the spec with the code and bringing new decisions to a human’s attention.
- Use generated walkthroughs to find consequential code, then inspect the actual diffs and validation evidence. Repeated review objections can become repository skills or enforceable lint rules.
- Separate sandboxes become particularly useful when parallel workers compete for ports, memory or clean benchmark conditions. Judge the resulting work against an appropriate baseline.

## Chapters

[0:00](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=0s) Introduction

[1:33](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=93s) From prompts to delegated workstreams

[3:30](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=210s) Development, migrations and automation use cases

[9:11](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=551s) Setting up compute, goals and involvement

[11:47](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=707s) Orchestrators, agents and machines

[16:07](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=967s) Shared context across a long project

[18:14](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=1094s) Pull requests and recurring automations

[21:46](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=1306s) Q&A: models and development workflows

[24:27](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=1467s) Dex Horthy: a running workstream demo

[29:06](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=1746s) RPI skills, planning and automation triggers

[34:14](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=2054s) Agent communication and human steering

[36:21](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=2181s) Planning and architecture on a larger team

[39:27](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=2367s) PR walkthroughs, semantic diffs and validation

[42:00](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=2520s) Turning review patterns into skills and lint rules

[47:01](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=2821s) Integration limits and trusting AI reviews

[49:53](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=2993s) Keeping specs and code aligned

[51:50](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=3110s) Worktrees versus cloud sandboxes

[54:44](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=3284s) Uses beyond engineering

[55:53](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=3353s) Review bottlenecks and measuring improvements

[58:32](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=3512s) Team collaboration and closing questions

## Slides

### From one task to a stream of work

You keep adding work in one chat. The orchestrator delegates to agents in parallel and brings back pull requests and documents. In the TodoMVC example, one agent finishes the README while another audits accessibility and the preview waits for approval.

[2:55](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=175s) [A comparison of sequential tasks and parallel workstreams alongside an orchestrator chat and agent list.](https://assets.ai.engineer/sites/aiecode2025/sha256/4de73eddbc854c353273403136dda793f0f7eadc03351eb910cc4894a2108ba4.webp)

02  WHAT A WORKSTREAM IS

From one task to a stream of work

ONE TASK AT A TIME
Prompt, wait, review, repeat. You manage each step, and one thing moves at a time.

A WORKSTREAM
You give a goal to an orchestrator. It splits the work across agents, runs them in parallel, and brings the results back as PRs and documents.

You keep adding work to the same workstream.

ORCHESTRATOR CHAT  ·  AGENTS TAB

FACTORY  ·  AI ENGINEER SF
02 / 12

Interface text:
File  Edit  View  Window  Help
Build TodoMVC in vanilla JS

While the preview waits for my approval, run two more pieces in parallel: one agent writes a short README sectio...

The README agent is consolidating the run/test instructions. The accessibility audit is running separately, without touching the pending preview.

Received message from TodoMVC run documentation
Thought for 1s
Messaged TodoMVC run documentation

The README update is complete and passes whitespace checks. It's being committed locally as a docs-only change. The accessibility audit is still running.

Received message from TodoMVC run documentation
Thought for 1s
Messaged TodoMVC accessibility audit

README instructions are committed locally as [illegible]. The working tree is clean. The accessibility audit is still running, and the preview approval remains untouched.

Received message from TodoMVC accessibility audit
Thought for 1s
Messaged TodoMVC accessibility audit

The audit found issues with filter/clear-button overlap, keyboard focus after deletion, and placeholder contrast. The agent is finishing reproducible details. No app changes were made.

TodoMVC app code
Needs approval to run Script
View Agent

Message the orchestrator...
[illegible]  Autonomy  Connectors  Skills (27)

Agents  PRs  Files
Search agents...
Waiting on you  1
TodoMVC app code  Needs approval to run Script  5m
Working  1
TodoMVC accessibility audit  [illegible]  now
Idle  1  All
TodoMVC run documentation  1m

AI Engineer
Code Summit
PRESENTED BY
Google DeepMind
AI Engineer

### What you can use it for

A development workstream can keep taking issues from triage to merge. A migration ends when you retire the old platform. The speaker has seen migrations run for weeks with little human oversight, thanks to upfront planning and automated checks.

[6:10](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=370s) [Six cards describe development, vulnerability remediation, migration, research, development automation and custom workstreams.](https://assets.ai.engineer/sites/aiecode2025/sha256/0d575eda62ed62d88b208a0242c13a81facd0fe4134d0f766ddb3f22674a81ff.webp)

03 WHAT A WORKSTREAM IS

What you can use it for

Setup offers six starters. Some run continuously. Some have a finish line.

01 PARTNER
Core Development Partner
Takes issues from triage to merged PRs and keeps main green.

02 DEFENSE
Vulnerability Discovery & Remediation
Finds, tracks, and fixes vulnerabilities in your engineering system.

03 PROJECT
Migration
Moves code or infrastructure to a new platform, then retires the old one.

04 RESEARCH
Automated Research & Discovery
Runs experiments against your evals or metrics and records each one.

05 OPERATING SYSTEM
AI Development Automation
Automates QA, code review, security review, and CI so more PRs merge on their own.

06 CUSTOM
Custom
Start from a blank goal and describe the outcome yourself.

FACTORY · AI ENGINEER SF
03 / 12

Interface text:
AI Engineer
[illegible]
PRESENTED BY
Google DeepMind
Engineering the future of AI

### Agents

Each agent is a Droid session that owns one part of the work and reports back to the orchestrator. In the TodoMVC example, the coding agent needs your approval to run a script while the accessibility agent keeps working and the documentation agent is ready for another task.

[14:30](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=870s) [An explanation of Droid agent sessions appears beside an interface grouping agents into Waiting on you, Working and Idle states.](https://assets.ai.engineer/sites/aiecode2025/sha256/e30387056f706117744a3fe34ec418ee83a1ea55e81fcd1b814c6b3818ef9016.webp)

07 HOW IT WORKS
Agents

Each agent is a regular Droid session that owns one area of the work.

• Uses your models, skills, MCP servers, hooks, and AGENTS.md.
• Reports to the orchestrator when it’s done, blocked, or finds something that changes the plan.
• Open any agent to read its work, answer questions, approve tools, or message it directly.

WAITING ON YOU
Has a question or needs a tool approved.

WORKING
In the middle of a turn.

IDLE
Finished its turn. Ready for more work.

FACTORY · AI ENGINEER SF
07 / 12

AI Engineer
Code Summit
PRESENTED BY
Google DeepMind
NOVEMBER 10, 2026
Workshop Room 4

Interface text:
Agents 1    PRs    Files    +
Search agents...
Waiting on you 1
TodoMVC app code    Needs approval to run Script    5m
Working 1
TodoMVC accessibility audit    Reading webpage    now
Idle 1    All
TodoMVC run documentation    1m

### Machines

You can run the orchestrator locally to access your files while agents work on separate cloud machines or share a Droid Computer. Workstream Defaults control where agents can run. Machine descriptions help the orchestrator route iOS work to the computer with Xcode.

[15:10](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=910s) [Three columns compare cloud environments, Droid Computer and local execution. A lower panel explains how machine descriptions guide task assignment.](https://assets.ai.engineer/sites/aiecode2025/sha256/66b53f96be30d03ec416a65ce1be6a5886be61f2008d1e041156197778dea51e.webp)

08  HOW IT WORKS

Machines

You choose where the orchestrator runs. Workstream Defaults decide where agents can run.

ENVIRONMENT
Environment
A fresh cloud computer for the orchestrator and for each agent. Keeps working after you close your laptop.
ONE COMPUTER PER AGENT

DROID COMPUTER
Droid Computer
A Factory-managed cloud computer, or your own machine connected through Remote Control.
SHARED BY ITS AGENTS

LOCAL
This computer
Runs in the desktop app. Agents share your working directory. Stops when you quit the app.
SHARED · DESKTOP APP ONLY

MACHINE DESCRIPTIONS
The orchestrator reads each machine’s description to decide which work to send there.
“Has the mobile repo, Xcode, and the iOS simulator. Use for iOS work.”

FACTORY · AI ENGINEER SF
08 / 12

Interface text:
AI Engineer
Code Summit
PRESENTED BY
Google DeepMind
Engineering the future of AI

### Shared folder

The orchestrator and agents share a folder that syncs across machines. In the Files tab, a reviewer records how the application agent fixed three issues and the test agent added regression coverage. Code stays in the repo and goes out as pull requests.

[17:55](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=1075s) [Slide explaining how agents share plans, findings and handoffs across machines, with a Files tab showing a review document.](https://assets.ai.engineer/sites/aiecode2025/sha256/08a7ee32e8c8f5263a9f202d79074a219a292d7d23a2888a6bbc60a650fa630f.webp)

09 HOW IT WORKS
Shared folder

One folder that the orchestrator and every agent read and write, kept in sync across machines.

• Holds plans, notes, findings, handoffs, and reports.
• Browse it in the Files tab. Upload specs or reference files for the agents.
• Code stays in the repo and goes out as PRs.

FILES TAB · AN AGENT’S REVIEW HANDOFF

Independent TodoMVC review

Date: 2026-10-29 Repository: /home/factory-user/todomvc Reviewer: independent read-only review agent, session [redacted]. Baseline: clean template commit [illegible].

Recommendation

LGTM. No unresolved actionable findings. All three issues found during review were fixed by the application agent, covered by regression tests from the separate test agent, and independently reverified.

Scope

Reviewed the entire intended change, including application HTML/JavaScript/CSS, both README files, package manifest/lockfile, ignore rules, Playwright configuration, local server, and the complete browser test suite. No repository files were edited by the reviewer; temporary verification configuration and results were kept outside the repository.

Requirements source: https://github.com/tastejs/todomvc/blob/master/app-spec.md

Checked empty-state visibility, autofocus, trimmed nonempty creation and ordering, individual/toggle-all completion, global pluralized counts, clearing [illegible]

FACTORY · AI ENGINEER SF
09 / 12

Interface text:
Agents 4
PRs
Files
Shared files > review-handoff.md
Search...
app-handoff.md
docs-handoff.md
review-handoff.md
tests-handoff.md

AI Engineer
Code Summit
PRESENTED BY
Google DeepMind
AI Engineer

### Your first workstream

Factory’s first workstream example asks agents to migrate REST handlers from Express to Fastify, preserve route behavior, keep tests passing, and open one PR per service. You review the PRs and decide whether any public response shape can change.

[20:25](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=1225s) [Five steps for creating a workstream, assigning tasks, following agents and reviewing pull requests, alongside an example migration request.](https://assets.ai.engineer/sites/aiecode2025/sha256/b9b19ae60ec6cc129c2cd9c90b3698ddad3eb9bf580c0e5f62a4de37f1802fee.webp)

12  YOUR FIRST WORKSTREAM

Your first workstream
What we’ll do in the hands-on part.

01  Create a workstream
Pick an environment with your repo, then a starter.

02  Give it a first task
Goal, constraints, how to verify, and which decisions are yours.

03  Follow the agents
Open the Agents tab. Answer anything under Waiting on you.

04  Review the PRs
Comment, request changes, or merge.

05  Give it the next task
Same workstream. Or ask it to set up an automation.

EXAMPLE FIRST MESSAGE
Migrate the REST handlers in services/api from Express to Fastify. Keep every route’s behavior the same and the test suite green. Open one PR per service. Ask me before changing any public response shape.

DOCS
docs.factory.com/workstreams/quickstart

FACTORY  ·  AI ENGINEER SF
12 / 12

Interface text:
AI Engineer
Code Summit
PRESENTED BY
Google DeepMind
NOVEMBER 10, 2026
Workshop Room 4

### Reviewing a document-comment fix

Selecting from a paragraph into a footnote defined earlier can reverse the range in the Markdown source. PR #32151 hides Add comment for that selection to prevent a broken thread anchor. Factory shows 101 passing checks alongside the fix.

[27:38](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=1658s) [Factory displays a pull request with 101 passing checks, a description of a comment-selection fix and a numbered implementation plan beside the pull request list.](https://assets.ai.engineer/sites/aiecode2025/sha256/219baa02a948b3e189137e24e2e20a00fc3e446d980b4d2dbef3d15197ecfe74.webp)

fix(component-library): offer no comment range for a selection i...

factory-droid
101 passing checks
no-e2e-needed

Factory Code Review: Web · Desktop
AC-2417 | PRD | Tech design | Slices

Selecting from a later paragraph into a footnote defined earlier offered Add comment with a source range that ran backwards; now that selection offers no comment, so no thread can get a broken anchor.

Slices

1. Prem stores comment events; droid space doc leaves them alone (#30883, merged)
2. Files tab shows a doc's threads, read-only (#30935)
3. droid space comment list|get for agents and people, plus quick anchor speed fixes (#31835, #31836, #31779, #31873)
4. Start a thread on text or a block in the Files tab, in stacked PRs:
   ○ 4.1 write path (#32073, merged)
   ○ 4.2.1 selection or block mapped to its Markdown source range (#32091, merged)
   ○ 4.2.2 Add comment bar and pending highlight (#32092, merged)
   ○ 4.2.3 margin Add comment button and empty rail hint (#32093, merged)

Interface text:
Factory  File  Edit  View  Window  Help
Tue Nov 10 10:38 AM
multiplayer-docs-2
factory-mono #32151
factory-mono #32149
Agents  Files  PRs 8
Review  Squash and merge
Conversation 9  Files changed 2  Walkthrough  Validation
factory-droid  3 ✓

Open 3
fix(component-library): offer...  factory-mono #32...  8 ✓
refactor(frontend, prem, droi...  factory-mono #32...  13 ×
slopfiles #1  Status unknown

Draft 5
feat(component-library): ope...  factory-mono #32...  7 ✓
feat(component-library): kee...  factory-mono #32...  3 ×
feat(component-library): ad...  factory-mono #32...  3 ✓
feat(frontend): show an age...  factory-mono #32...  8 ✓
feat(frontend): post replies t...  factory-mono #32...  7 ×

Closed 1

Merged 22
feat(cli): reply to doc comme...  factory-mono #32...  9 ×
feat(component-library, web...  factory-mono #32...  16 ✓
feat(component-library, web...  factory-mono #32...  5 ✓
feat(component-library): pos...  factory-mono #32...  9 ✓
feat(component-library, fron...  factory-mono #32...  11 ✓

### Designing document references and comment anchors

Factory’s design gives each comment thread a document reference and a version string that clients only check for equality. After an edit, clients can find the passage again using the original Markdown, its position and the text of neighboring blocks.

[28:08](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=1688s) [A technical design page explains document references, opaque versions and Markdown comment anchors. A code example and table appear above the anchor discussion, with the presenter inset at left.](https://assets.ai.engineer/sites/aiecode2025/sha256/fde5e58bad613b81beb77888f7a2120e72550ed357867998c00d0fd5cb9e942b.webp)

2. A thread names its doc with a DocRef and an opaque version (decided)

Spec mode will later comment on local plan files, not just shared-folder docs (PRD follow-on). So code never assumes a doc lives in a space. It passes a DocRef, and the MVP builds only the space kind.

type DocRef =
  | { kind: 'space'; spaceId: string; documentId: string }
  | { kind: 'local'; machineId: string; path: string }   // later: spec mode settles the fields

function docRefKey(ref: DocRef): string {
  if (ref.kind === 'space') return `space:${ref.spaceId}:${ref.documentId}`
  return `local:${ref.machineId}:${ref.path}`
}

Where | Uses
DocThread.doc (decision 8) | The doc the thread is on
Comment UI props and query keys (decisions 11 and 13) | Which doc's threads to show
Draft keys in sessionDraftsAtom | docRefKey(ref) plus the thread id, so drafts for two kinds of doc never clash
The Send block parser (decisions 10 and 14) | What the "Received comment thread" row opens

The doc version is an opaque string. docVersion in the anchor, ThreadPlacement and DocThread.documentVersion are strings. Prem sends its version number as text ("9"). Clients only test two versions for equality, never order them or do math, so a local doc can later use a content hash.

3. Anchor: block fingerprints plus the Markdown source (decided)

A thread remembers the block it sits in and the Markdown it quotes, so any client can find it again after the doc changes.

Each end of the selection records its block: the block's type, its text, the text of the blocks before and after it, and an offset. The anchor also keeps the raw Markdown quote, its position in the source, and the doc version it was made on.

Clients build anchors and find threads with the same shared code (decision 4). The anchor travels inside the thread.started event (decision 1). Prem checks its shape with the shared schema and never parses Markdown.

No new parser. Prem, the CLI, web and desktop already depend on @factory/utils, which parses Markdown for chat (parseMarkdown, getMarkdownNodeText in packages/utils/src/text/markdown.ts). We add parseBlocks(body), which walks the parsed tree and returns a flat list of blocks, each with its type, plain text,

AI Engineer
Code Summit
PRESENTED BY
Google DeepMind
NOVEMBER 10, 2026
Workshop Room 4

Interface text:
Brave | File | Edit | View | History | Bookmarks | Profiles | Tab | Window | Help
Tue Nov 10 10:38 AM
prd-doc-comments.conjure.factory.ai/tdd.html
Update
Factory | Doc comments | Product requirements | Tech design | Slices
System Design | Vertical slices | Patterns to Follow
Click any block to comment
Copy 0 comments
Read the PRD

### Research, planning and implementation workflow references

HumanLayer’s RPI skill gives agents separate instructions for creating and revising research, requirements, designs and implementation plans. The speaker uses it to show how teams can encode their own development process in Workstreams.

[30:03](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=1803s) [A GitHub directory lists folders for creating and revising research, design documents and implementation outlines, alongside Markdown workflow references. The presenter appears at left.](https://assets.ai.engineer/sites/aiecode2025/sha256/dfbff339871ed03694ef04b9f55c2fb0d4320c724229257da62fd663ed50a7e0.webp)

skills / plugins / rpi / skills / rpi / references /

create-design-discussion | make rpi design and implementation portable across coding agents | last month
create-prd | make rpi design and implementation portable across coding agents | last month
create-research-questions | make rpi design and implementation portable across coding agents | last month
create-research | make rpi design and implementation portable across coding agents | last month
create-structure-outline | make rpi design and implementation portable across coding agents | last month
create-tdd | make rpi design and implementation portable across coding agents | last month
implement-outline | make rpi design and implementation portable across coding agents | last month
iterate-design-discussion | make rpi design and implementation portable across coding agents | last month
iterate-implementation | make rpi design and implementation portable across coding agents | last month
iterate-prd | make rpi design and implementation portable across coding agents | last month
iterate-research-questions | make rpi design and implementation portable across coding agents | last month
iterate-research | make rpi design and implementation portable across coding agents | last month
iterate-structure-outline | make rpi design and implementation portable across coding agents | last month
iterate-tdd | make rpi design and implementation portable across coding agents | last month
subagents | restore full private-source rpi agent instructions | last month
prose.md | rpi: add prose reference file | last week
show-me.md | add portable research process and document templates | last month
workflow-choice.md | mention early implementation when choosing an rpi flow | last month
workflow.md | make rpi design and implementation portable across coding agents | last month

AI Engineer
Code Summit
PRESENTED BY
Google DeepMind
AI Engineer

Interface text:
github.com/humanlayer/skills/tree/main/plugins/rpi/skills/rpi/references
Files
main
Go to file
T
Top

create-structure-outline
create-tdd
implement-outline
iterate-design-discussion
iterate-implementation
iterate-prd
iterate-research-questions
iterate-research
iterate-structure-outline
iterate-tdd
subagents
prose.md
show-me.md
workflow-choice.md
workflow.md
SKILL.md
show-me
visual-pr
scripts
.gitignore
LICENSE
README.md

Brave
File
Edit
View
History
Bookmarks
Profiles
Tab
Window
Help
Tue Nov 10 10:40 AM
Update

### Agent orchestration, shared files and sandbox templates

Each agent starts in its own sandbox from a prebuilt template. The orchestrator can point it to another agent’s Git branch, and a shared filesystem holds common context. A cron job or a pull request review requesting changes can wake an agent up.

[33:28](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=2008s) [A hand-drawn diagram connects an orchestrator, two agents, a shared filesystem and automations. A separate template points to a virtual machine or sandbox for each agent. Notes illustrate scheduled messages and review webhooks.](https://assets.ai.engineer/sites/aiecode2025/sha256/a1b7f113157423a96b928f99e5555cf6fe01612fb31a4186dd67d997a56c0d3d.webp)

template
VM / sandbox
for each
agent

orchestrator
agent1
agent2
shared filesystem
automations

on a cron, send a message to $AGENT
webhooks - if a pr review comes in with requested changes, send to $AGENT

Interface text:
Brave  File  Edit  View  History  Bookmarks  Profiles  Tab  Window  Help
Tue Nov 10 10:44 AM
excalidraw.com
Install
Update
Try Excalidraw+
14-day free trial
Share
Enter to add text, Cmd + [illegible] to create a flowchart
Stroke
Background
Stroke width
Stroke style
Sloppiness
Edges
Font family
Font size
S  M  L  XL
Text align
Opacity
0  100
Layers
100%

### Reviewing a transcript navigation pull request

Factory opens PR #32408 in a familiar GitHub-style review. The proposed navigator puts one mark per prompt beside a long chat. Hover to preview the prompt and Droid’s reply, or click to jump there. The Walkthrough tab helps reviewers trace that behavior to the code.

[39:39](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=2379s) [Factory displays a pull request describing navigation between prompts in long conversations, alongside review information and pending or failed checks.](https://assets.ai.engineer/sites/aiecode2025/sha256/435e7cee68b491880f99efc3920134c14cf925daf436885e93d5be5426493bb2.webp)

feat(component-library, frontend): add transcript turn navigator

Open · factory-mono #32408
factory-ross   dev ← droid/turn-navigator

Conversation 14   Files changed 25   Walkthrough   Validation
+1,215 −126

Factory Code Review: Web · Desktop

Description

Long sessions are hard to move around in. Today the only way back to an earlier prompt is to scroll and scan. This PR adds a turn navigator: a slim rail beside the chat transcript with one mark per user prompt.

• Hover a mark to preview that prompt and the start of Droid's reply.
• Click a mark to jump to that prompt. The prompt lands at the top of the transcript.
• Prev/next buttons (above and below the marks) step one prompt at a time.
• Keyboard: with a mark focused, ArrowUp/ArrowDown step between prompts and Home/End jump to the first or last one. The marks form one tab stop (roving tabindex), and focus follows the jump.
• Accessibility: the rail is a navigation landmark ("Conversation navigator"). The marks are a vertical toolbar ("Your messages"). Each mark has aria-label="Jump to message: <prompt>", and the reader's current prompt has aria-current="location".
• Virtualized and paginated transcripts: jumps go through the transcript virtualizer, so prompts whose rows are not mounted still work. Stepping back from the first loaded prompt while older history exists loads earlier pages (up to 5 per step) and lands on the prompt just before it. The button's label changes to "Load earlier messages" in that state.
• Current-prompt tracking reuses the user-message metrics observer that PinnedUserMessageOverlay already uses. I pulled it out into a shared observeUserMessageMetrics helper, so both features read the same measurements. After a jump, the target prompt stays current while it is in view, even when the transcript ends too soon to bring it to the top. Scrolling with the wheel or touch releases that hold.

Design decisions
Show more

Merge status
Not ready to merge

Reviews
factory-droid   7   2

Labels
No labels

Checks   76/85
× Validate PR
× prem-migrations
× prem-query-plans
× prem-build-status
cli-e2e-status
playwright-e2e-critical
desktop-e2e-status
playwright-e2e-status
byom-status
plan

factory-ross committed feat(component-library, frontend): add transcript turn navigator   fdc73dc   16h ago

vercel   16h ago
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
Review with Vercel Agent

AI Engineer
Code Summit
PRESENTED BY
Google DeepMind
NOVEMBER 10, 2026
Workshop Room 4
FACTORY

Interface text:
Research   factory-mono #32428   factory-mono #32408
Review   Squash and merge
Agents   PRs 2
Open 2
feat(component-library, frontend): add tra...   factory-mono #32408   13
feat(frontend, component-library): stash ...   factory-mono #32428   15

New Session
Inbox
Automations
Code Review
Search
More

Workstreams   Beta
AIE DEMO
Research   9m
AIE   16m
Apps KTLO   18h
Code Review   21h

Today
New Session   16m
factory-mono
Switch to ross/session-pane-laun...   10h
factory-mono
Workshop deck outline for AIE Co...   10h
factory-mono

Last 3 days
Switch to droid/picker-mock-effort   17h
factory-mono
Find Ainesh's PTC rendering PR   20h
factory-mono
Scan for connector requests and ...   21h
factory-eng · factory-mono
Can you switch to agent/tabs-tes...   22h
factory-mono
Review PR session transcript ...   1d
[illegible]-factory-eng · factory-mono

Last 7 days
Figma access question   4d
factory-mono

Ross Cefalu

### Transcript navigator architecture walkthrough

Factory’s Walkthrough maps the proposed transcript rail to the code behind it. One observer tracks prompt positions for both the rail and the pinned prompt. Below the diagram, Factory groups edits by task, starting with the prompt list and reply previews.

[40:11](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=2411s) [The walkthrough pairs an explanation of transcript navigation with a diagram connecting chat components, navigation controls, and message tracking.](https://assets.ai.engineer/sites/aiecode2025/sha256/e03de61597d9123d8ed27107b494e66fe66ed95081f6082eca80677e43969ee1.webp)

feat(component-library, frontend): add transcript turn navigator

Overview
Long chat sessions get a rail beside the transcript with one mark per prompt, so readers can preview and jump between turns. The rail stays hidden until its feature flag is turned on.

Rail placement: The rail appears once a conversation has three prompts or older history, and only when the margin fits it.

Shared tracking: One observer measures prompt positions for both the rail and the pinned prompt overlay.

Earlier history: The rail requests older pages through the transcript’s normal loader and waits for the target prompt to arrive.

ships there.
2 code references
Changed in Declare the rail in the platform capabilities contract

Architecture
Web app
ActiveSessionChatModule

Shared config
TranscriptTurnNavigator +

Component library
DroidSessionChat
TranscriptTurnNavigatorDock +
PinnedUserMessageOverlay
buildTranscriptTurnNavigatorItems +
TranscriptTurnNavigator +
observeUserMessageMetrics +

Added | Modified | Removed | Unchanged
Expand

Transcript turn navigator
01 / 04  +1,105  -126  Viewed
Shows a rail of prompt marks beside long transcripts so readers can find and jump between turns. The rail reads the transcript’s prompts and reply starts, and it stays hidden until the flag is on or the margin beside the transcript is too narrow. The rail is also

Build the prompt list and reply previews  +226
packages/component-library/src/chat/v2/TranscriptTurnNavigator/transcriptTurnNavigato...  +215  Viewed

1  // Turn extraction and the reader's-turn rule are adapted from T3 Code's
2  // timeline minimap (https://github.com/pingdotgg/t3code). Copyright (c) 2026
3  // T3 Tools Inc., released under the MIT License.
4  import {
5    MessageContentBlockType,
6    MessageRole,
7  } from '@factory/droid-sdk-core/protocol/sessionV2';

AI Engineer
Code Summit
PRESENTED BY
Google DeepMind
FACTORY
NOVEMBER 10, 2026
Workshop Room 4

Interface text:
Research | factory-mono #32428 | factory-mono #32408
Open | Review | Squash and merge
Conversation 14 | Files changed 25 | Walkthrough | Validation
Agents | PRs 2
Open 2
feat(component-library, frontend): add tra...  factory-mono #32408  13
feat(frontend, component-library): stash ...  factory-mono #32428  15

New Session
Inbox
Automations
Code Review
Search
More
Workstreams  Beta
AIE DEMO
Research  9m
AIE  16m
Apps KTLO  18h
Code Review  21h
Today
New Session  16m
factory-mono
Switch to ross/session-pane-laun...  10h
factory-mono
Workshop deck outline for AIE Co...  10h
factory-mono
Last 3 days
Switch to droid/picker-mock-effort  17h
factory-mono
Find Ainesh’s PTC rendering PR  20h
factory-mono
Scan for connector requests and ...  21h
factory-eng · factory-mono
Can you switch to agent/tabs-tes...  22h
factory-mono
Review PR session transcript ...  1d
cpo-factory-eng · factory-mono
Last 7 days
Figma access question  4d
factory-mono
Ross Cefalu

### Inspecting an inline code review finding

Factory’s walkthrough puts a P2 review comment beside the code that picks a reply preview. A connection notice can carry the Assistant role, so the navigator saves it and stops looking. The preview still shows the notice when Droid answers.

[40:39](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=2439s) [A highlighted review comment explains why reply previews can display system notices instead of assistant responses. Related files and source changes surround the comment.](https://assets.ai.engineer/sites/aiecode2025/sha256/217917c5b684b6a7d48fe4e6bc864f3f63d8228a8a1b3ae19128ab47b6409d86.webp)

feat(component-library, frontend): add transcript turn navigator

Transcript turn navigator
01 / 04  +1,105  -126  Viewed

Shows a rail of prompt marks beside long transcripts so readers can find and jump between turns. The rail reads the transcript’s prompts and reply starts, and it stays hidden until the flag is on or the margin beside the transcript is too narrow. The rail is also declared in the shared platform-capabilities contract so each platform’s parity list tracks it.

transcriptTurnNavigatorItems.ts  pac...  +215
constants.ts  packages/component-libr...  +11
TranscriptTurnNavigator.tsx  package...  +363
types.ts  packages/component-library/s...  +26
DroidSessionChat.tsx  package...  +466  -126
constants.ts  packages/common/src/fea...  +7
types.ts  packages/component-library/sr...  +5
ActiveSession.module.tsx  packages/fro...  +4
constants.ts  packages/common/src/fea...  +5
enums.ts  packages/common/src/feature...  +1
Show all 12 files

packages/component-library/src/chat/v2/TranscriptTurnNavigator/transcriptTurnNavigato...  +215  Viewed

95          continue;
96        }
97        if (awaitingReply === undefined) continue;
98        if (message.role !== MessageRole.Assistant) continue;

P2  Reply previews show system notices instead of Droid's reply
9h ago

These groups contain display-normalized messages. A user-only System notice or legacy user-only error is promoted to Assistant, and its text can also merge into a row with genuine replies. For a prompt followed by a connection notice and then Droid's answer, this selects the notice and clears `awaitingReply`, so the hover preview still shows the notice after the answer arrives. Select reply text using original-message authorship and block provenance rather than the display role.

Fix with an agent
Reply  Resolve

99        const reply = getTextBlocks(message)
100         .map((block) => block.trim())
101         .find((block) => block.length > 0);
102       if (reply === undefined) continue;
103       awaitingReply.replySource = reply.slice(0, REPLY_SOURCE_MAX_LENGTH);
104       awaitingReply = undefined;
105     }
106   });
107   return items;
108 }
109
110 /**
111  * Whether the transcript is long enough to need the navigator. Earlier
112  * history that is not loaded yet always makes it long enough.
113  */
114 export function shouldShowTranscriptTurnNavigator({
115   hasEarlierTurns,
116   turnCount,
117 }: {
118   hasEarlierTurns: boolean;
119   turnCount: number;
120 }): boolean {
121   return (
122     turnCount >= TRANSCRIPT_TURN_NAVIGATOR_MIN_TURNS ||
123     (hasEarlierTurns && turnCount > 0)
124   );
125 }
126
127 /**
128  * Plain text for a reply preview: markdown syntax, code blocks, and markup
129  * removed, on one line.

AI Engineer
Code Summit
PRESENTED BY
Google DeepMind
FACTORY
NOVEMBER 10, 2026
Workshop Room 4

Interface text:
Research  ...  factory-mono #32428  factory-mono #32408
Open  Review  Squash and merge
Conversation 14  Files changed 25  Walkthrough  Validation
Agents  PRs 2
Open 2
feat(component-library, frontend): add tra...  factory-mono #32408  13
feat(frontend, component-library): stash ...  factory-mono #32428  15

New Session
Inbox
Automations
Code Review
Search
More
Workstreams  Beta
AIE DEMO
Research  10m
AIE  17m
Apps KTLO  18h
Code Review  21h

Today
New Session  17m
factory-mono
Switch to ross/session-pane-laun...  10h
factory-mono
Workshop deck outline for AIE Co...  10h
factory-mono

Last 3 days
Switch to droid/picker-mock-effort  17h
factory-mono
Find Ainesh’s PTC rendering PR  20h
factory-mono
Scan for connector requests and ...  21h
factory-eng · factory-mono
Can you switch to agent/tabs-tes...  22h
factory-mono
Review PR session transcript ...  1d
opc-factory-eng · factory-mono

Last 7 days
Figma access question  4d
factory-mono

Ross Cefalu

### Transcript navigator code changes

The proposed navigator marks each prompt so readers can preview replies and jump between turns. The 25-file diff illustrates why the speakers want AI to group related edits for review. The UI, its default-off feature flag and the gap in CLI support all live in separate files.

[41:16](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=2476s) [A pull request displays a changed-file tree and side-by-side code differences for transcript navigation and feature settings.](https://assets.ai.engineer/sites/aiecode2025/sha256/903862c4f4aba204d27a393fa52b7dd4039ce396762b482b34114dceac38f0c8.webp)

feat(component-library, frontend): add transcript turn navigator
Open · factory-mono #32408
factory-ross    dev ← droid/turn-navigator
Conversation 14    Files changed 25    Walkthrough    Validation
+1,215 −126

apps/cli/src/features/platform-coverage/constants.ts    +1
210 unmodified lines
211  'surface:connected-connector-count': 'active',
212  // The CLI starts sessions on this machine, never in a cloud environment.
213  'surface:environment-repositories': 'not-applicable',
214  'surface:transcript-turn-navigator': { gap: 'APP-392' },
215
216  // Settings — exposed through the CLI's settings menu / config.
217  'setting:session-defaults': 'active',
95 unmodified lines

packages/common/src/feature-flags/constants.ts    +7
1099 unmodified lines
1100    statsigName: 'roll_search_into_execute',
1101    defaultValue: false,
1102  },
1103  // Off leaves out the rail beside a session's transcript that marks each
1104  // prompt, to preview and jump between turns of a long conversation.
1105  TranscriptTurnNavigator: {
1106    displayName: 'Transcript Turn Navigator',
1107    statsigName: 'transcript_turn_navigator',
1108    defaultValue: false,
1109  },
1110  MissionsV2: {
1111    displayName: 'Missions 2.0',
1112    statsigName: 'missions_v2',
2314 unmodified lines

packages/common/src/features/platform-capabilities/constants.ts    +5
737 unmodified lines
738      'Count and list of the repositories included in the cloud environment picked for a new session',
739    category: CapabilityCategory.Surface,
740  },
741  [PlatformCapability.SurfaceTranscriptTurnNavigator]: {
742    description:
743      'Rail beside a long chat transcript with one mark per user prompt, previews of each prompt and its reply, and jumps between prompts',
744    category: CapabilityCategory.Surface,
745  },
746

Files changed
apps / cli / src / features / platform-coverage
  constants.ts    M
packages
  common / src
    feature-flags
      constants.ts    M
    features / platform-capabilities
      constants.ts    M
      enums.ts    M
  component-library / src
    chat
      v2 / TranscriptTurnNavigator
        constants.ts    A
        TranscriptTurnNavigator.stories.tsx    A
        TranscriptTurnNavigator.test.tsx    A
        TranscriptTurnNavigator.tsx    A
        transcriptTurnNavigatorItems.test.ts    A
        transcriptTurnNavigatorItems.ts    A
        types.ts    A
      DroidSessionChat.stories.tsx    M
      DroidSessionChat.test.tsx    M
      DroidSessionChat.tsx    M
      types.ts    M
    i18n / locales
      de / components
        chat.json    M
      en / components
        chat.json    M
      es / components

AI Engineer
Code Summit
PRESENTED BY
Google DeepMind
NOVEMBER 10, 2026
Workshop Room 4
FACTORY

Interface text:
Research    factory-mono #32428    factory-mono #32408
Review    Squash and merge
Search...
Viewed
Viewed
Viewed
Agents    PRs 2
Open 2
feat(compone...    factory-...    13
feat(frontend, ...    factory-...    15
New Session
Inbox
Automations
Code Review
Search
More
Workstreams    Beta
AIE DEMO
Research    10m
AIE    17m
Apps KTLO    18h
Code Review    21h
Today
New Session    17m
factory-mono
Switch to ross/session-pane-laun...    10h
factory-mono
Workshop deck outline for AIE Co...    10h
factory-mono
Last 3 days
Switch to droid/picker-mock-effort    17h
factory-mono
Find Ainesh's PTC rendering PR    20h
factory-mono
Scan for connector requests and ...    21h
factory-eng · factory-mono
Can you switch to agent/tabs-tes...    22h
factory-mono
Review PR session transcript ...    1d
opc-factory-eng · factory-mono
Last 7 days
Figma access question    4d
factory-mono
Ross Cefalu

### Transcript navigator walkthrough

Factory’s walkthrough gives reviewers a starting point in a 25-file change. It explains how the rail highlights the prompt you’re reading, links to the code at line 176, and flags a feature the desktop app supports but the CLI still lacks.

[41:55](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=2515s) [A pull request walkthrough summarizes transcript navigation, highlights product and implementation changes, and shows part of a component architecture diagram.](https://assets.ai.engineer/sites/aiecode2025/sha256/e43198d643553c502b26c66ace7fb2b46ca281bb092da89176aaa35ad2737a20.webp)

feat(component-library, frontend): add transcript turn navigator
Open · factory-mono #32408
factory-ross    dev ← droid/turn-navigator

Overview
Long chat sessions get a rail beside the transcript with one mark per prompt, so readers can preview and jump between turns. The rail stays hidden until its feature flag is turned on.

Rail placement: The rail appears once a conversation has three prompts or older history, and only when the margin fits it.

Shared tracking: One observer measures prompt positions for both the rail and the pinned prompt overlay.

Earlier history: The rail requests older pages through the transcript's normal loader and waits for the target prompt to arrive.

Product changes
4 of 5
The mark for the prompt being read is highlighted    Minor    Session transcript
New
The mark for the prompt at the top of the reading position is drawn longer and darker, and it moves as the transcript scrolls.

transcriptTurnNavigatorItems.ts:176
Changed in Build the prompt list and reply previews

Under the hood
3 of 4
The CLI lists the rail as a parity gap    Minor    Contract
What changes
The shared platform-capabilities contract now includes the rail, and the desktop app marks it active while the CLI marks it as a gap tracked in APP-392.

Why it matters
Platform parity owners must track APP-392, since the CLI reports the rail as missing until it ships there.

2 code references
Changed in Declare the rail in the platform capabilities contract

Architecture
Web app
ActiveSessionChatModule
Shared config
TranscriptTurnNavigator +
Component library
DroidSessionChat

Interface text:
Research    factory-mono #32428    factory-mono #32408
Review    Squash and merge
Conversation 14    Files changed 25    Walkthrough    Validation
+1,215 −126
Agents    PRs 2
Open 2
feat(compone...    factory-...    13
feat(frontend, ...    factory-...    15

New Session
Inbox
Automations
Code Review
Search
More

Workstreams    Beta
AIE DEMO
Research    11m
AIE    18m
Apps KTLO    18h
Code Review

Today
New Session    18m
factory-mono
Switch to ross/session-pane-laun...    10h
factory-mono
Workshop deck outline for AIE Co...    10h
factory-mono

Last 3 days
Switch to droid/picker-mock-effort    17h
factory-mono
Find Ainesh's PTC rendering PR    20h
factory-mono
Scan for connector requests and ...    21h
factory-eng · factory-mono
Can you switch to agent/tabs-tes...    22h
factory-mono
Review PR session transcript ...    1d
[illegible] · factory-mono

Last 7 days
Figma access question    4d
factory-mono
Ross Cefalu

AI Engineer
Code Summit
PRESENTED BY
Google DeepMind
FACTORY
AI Engineer

### Code review results and shared files

Ross keeps a shared review playbook and log so recurring issues can inform future reviews. Of three PRs, two earned approvals but still needed a code owner. The in-app browser review requested changes with seven comments.

[42:10](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=2530s) [A code review conversation lists findings and summarizes three pull request outcomes in a table, alongside shared review documents.](https://assets.ai.engineer/sites/aiecode2025/sha256/d295c7963a8e406ba34a38bffc787b2a6034d9a7263d00f3116bded1ab846dec.webp)

Code Review

and Stop don't work the way the UI says.
Request changes with the 7 findings, plus a note about the rebase and bundled #31003

Which findings should go in?
All 7

Activity · 4 events

#27805 is approved, with the 6 comments and the CI note: https://github.com/Factory-AI/factory-mono/pull/27805#pullrequestreview-5832856203. The PR hadn't changed since the review, and the merge-train item was left out. As with #31260, the approval doesn't count toward merging yet, so it probably still needs a code owner.

The request for changes on #30936 is being posted now, with all 7 findings. The body says the PR needs a rebase because it conflicts with dev in three code files. It also says #31003 should merge separately and be dropped from this PR. I'll send the link when it's up.

I've updated the review log for both.

Activity · 3 events

The request for changes on #30936 is posted, with all 7 comments: https://github.com/Factory-AI/factory-mono/pull/30936#pullrequestreview-5833232278

The PR hadn't changed since the review, so every comment went up as planned. The review body says the PR needs a rebase and that #31003 should merge on its own first. The 7 comments cover:

1. Take control still letting Droid watch the page
2. Stop being bypassed by a connection that doesn't name its session
3. Droid's paste reading your clipboard
4. saved tabs rewriting storage on every change
5. icon downloads never being cancelled
6. pop-up addresses being cut off from the end
7. pages being closed right after Droid stops using them

All three PRs from this batch are now posted:

PR | Result | Counts toward merging?
#31260 Code Review tabs | Approved with 3 comments | No, still needs a code owner
#27805 GitLab parity | Approved with 6 comments and a CI note | No, still needs a code owner
#30936 In-app browser | Changes requested, 7 comments | Changes requested

I've updated the review log for all three.

Shared files
NAME | MODIFIED | KIND
code-review | 21h ago | Folder
  detection-patterns.md | 21h ago | Markdown
  pr-30937-bench-harness.md | 6d ago | Markdown
  pr-30937-review.md | 6d ago | Markdown
  pr-30940-review.md | 6d ago | Markdown
  review-log.md | 21h ago | Markdown
  review-playbook.md | 4d ago | Markdown

Interface text:
New Session
Inbox
Automations
Code Review
Search
More

Workstreams  Beta
AIE DEMO
Research  11m
AIE  18m
Apps KTLO  18h
Code Review  21h

Today
New Session  18m
factory-mono
Switch to ross/session-pane-laun...  10h
factory-mono
Workshop deck outline for AIE Co...  10h
factory-mono

Last 3 days
Switch to droid/picker-mock-effort  17h
factory-mono
Find Ainesh's PTC rendering PR  20h
factory-mono
Scan for connector requests and ...  21h
factory-eng · factory-mono
Can you switch to agent/tabs-tes...  22h
factory-mono
Review PR session transcript ...  1d
[illegible]-factory-eng · factory-mono

Last 7 days
Figma access question  4d
factory-mono

Ross Cefalu
Agents
Files
PRs
Search files
Message the orchestrator...
High Autonomy
Orchestrator
Opus 5.5  High

AI Engineer
[illegible]
PRESENTED BY
Google DeepMind
FACTORY
Engineering the future of AI

## Full transcript

[0:12](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=12s) Gonna get started here shortly.

[0:17](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=17s) Hi, I am Ross. I am a member of the technical staff at Factory. For those of you who do not know, Factory makes AI coding agents for the enterprise. Um, our coding agent is called Droid. It specializes across the entire SDLC. Um, but today I'm going to be talking about a new product we've been working on called Workstreams. Workstreams is the evolution of our long-running agentic workflows. So I don't know

[0:47](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=47s) how many people here are familiar with Factory, but we used to have a product, or we still do have a product called Missions. This was our first iteration of what would it mean to have agents run pretty autonomously for days, even weeks at a time. Um, obviously, we launched that-- not obviously, we launched that in January, and the models have evolved quite a lot since then. And so Workstreams is this next evolution of all of our harness research, model evolution, and what we've seen really work for our customers. So before I do get started, I know Kyle, who's also from Factory, and Julia, who is

[1:17](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=77s) somewhere around here, have Factory codes and various things. There will be a collaborative portion at the end. If people want to download Factory, give it a try. We have codes for free. Um, wanted to call that out at the beginning just so people had time if they'd like.

[1:33](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=93s) So really, the idea behind a Workstream is that most work is not these one-off tasks that people prompt agents for. At the end of the day, you really just want to give a direction and ultimately have the agent orchestrate that handle delegating tasks, deciding should this be a sub-agent? Should this be a new task? How should I break down PRs? You know, ultimately, as the models get smarter and smarter, more and more of this becomes implementation details that we believe should and ultimately will be abstracted away from the end developer. Uh, what it is

[2:03](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=123s) not is saying the humans are completely out of the loop. Ultimately, it depends how you use a Workstream and what you're trying to go into, which I'll, I'll talk into next. But I think we still view that the human developer is there to guide the Workstreams, provide direction, set up the scaffolding, um, but they really shouldn't have to think about, like, how to break down PRs, how to think about, you know, "Oh, should I do this first? Should I do that first?" They should really have this really smart, we think of it, you know, almost like an engineering manager they can converse with, and that engineering manager can go down to their team and delegate the work.

[2:33](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=153s) So in this concept, we call it an orchestrator. So really at a high level, a Workstream is a chat with a orchestrator, and that orchestrator is really deciding how any-- everything gets implemented. Uh, there's a lot of, lot of things behind the scenes that go into how that actually works, and actually someone else from Factory, uh, I think, believe tomorrow will be going more in detail. But at a high level, it should feel like you're having a conversation with this really smart engineering manager, and they are then delegating to your agents. Um, and you can kind of see this on the side here, where

[3:04](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=184s) the orchestrator will communicate with the agents, the agents will then communicate back. They can surface up details. Depending on how you set up your Workstream, sometimes the orchestrator will just handle all the questions from the agents. If you want to be a little more hands-on, you can kind of jump in and, you know, founder mode, if you want to call it that, and really kind of get in the nitty-gritty with each of the agents. But, uh, again, it depends how you want to use a Workstream. Which goes into nicely here. So I think there's obviously other products in the market that are trying to accomplish a similar thing, and I think

[3:34](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=214s) what we want to specialize in on Workstreams are these six core workflows that we found really work. Or well, five core ones, and then the ability to kind of customize it, uh, to your needs. Uh, so the one that we've seen, uh, probably the most use cases internally is just a core development partner. So internally, I have a Workstream set up for-- I, I lead our apps development, and so anytime I really just wanna clean up bugs, I just have one Workstream for that. I have an orchestrator that really has context across our entire how I like to fix bugs, what

[4:04](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=244s) bugs I think are important, um, and really I can kind of just delegate essentially how many bugs I want it to fix. Uh, because ultimately, like, the bottleneck then becomes like, okay, we're now just dealing with, like, a lot of, you know, PRs and everything like that. Uh, but ultimately, I can trust that development partner to kind of carry out my wishes around how to fix bugs. You know, especially in an app surface, it's not always exactly clear. Uh, and so we do have a concept of a shared file system, which I'll go into later, which you can think of it as a collaborative space for both

[4:33](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=273s) agents, humans, um, and your orchestrator to kind of build this shared understanding about how you're trying to accomplish your task. Um, another one is a very hot-button topic right now, obviously, is vulnerability discovery and remediation. There is-- and I'm kind of hinting at all these core components I'll get into later, but one big component of a Workstream is the ability to set up automations within them. So anyone who's ever-- you know, you build an app, typically, there's maybe or a surface or anything like that. There is this initial hill climb to get the feature out, and then some of the things

[5:03](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=303s) start to become these background automation tasks. And we wanted to build that natively into Workstreams from the get-go, where you can essentially tell your orchestrator, "Hey, this is going to be a pretty continual task. I want you every day to go, you know, scan the code base for the latest vulnerabilities or things like that." Um, it can also be, "Hey, do a sweep of our bug reports and triage the most important issues." And then that orchestrator will surface, uh, the issues to me or if I ask it to just go clean up, um, the issues itself. But we find this is really helpful for vulnerability issues because, again, it's just you need that

[5:33](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=333s) level of autonomy where ultimately, at the end of the day, we-- and for some of these, we just auto-merge them, given obviously sometimes the complexity or simplicity. Uh, but at the end of the day, the engineer really should be there just to click approve on a PR if ultimately that's the final gate. Uh, migrations. So anyone who's ever-- who ever used our early Missions products, this was the most popular use case by far, where I have X code base and maybe some coding language, I want to get it in another. I have this legacy service I want to modernize into something else. This is by far the most hands-off use

[6:03](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=363s) case. I've seen these run for weeks at a-- for Yeah, I'll say weeks at a time. Uh, and really, they're designed for the human to be as pretty out of the loop as possible with a heavy planning stage. So we wanted workstreams to be adaptable to sometimes, you know, you really do need a big planning stage up front, and then you can trust the agent to kind of build these validation loops. Um, and that's ultimately how we kind of view migrations is building these automated validation loops, uh, but again, that your workstream can handle. Automated research and discovery, this is probably my favorite

[6:33](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=393s) use case of workstreams, are just really long-running agents in general. I think auto-research is another term that obviously was popularized, uh, but really just defining the objective function and then letting the agent hill climb on it, I think is going to be an increasingly popular way of doing work, especially around UI, UX performance, um, optimizations, and really anything where ultimately you're really just trying to optimize a set of numbers. Uh, agents don't get tired, and ultimately, they're really good at, uh, hill climbing on those types of things. And what we wanted to build into workstreams is the ability to

[7:03](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=423s) maintain coherence across really long runs. Uh, we found with some other auto research tools and things like that, ultimately, you need to be a little more prescriptive and really make sure that the agent is kind of not deviating too far from your initial expectations over a long time. And again, I'll, I'll talk about this in a second, but, uh, the shared file system is really our core concept there, is trying to build, you know, the equivalent of what would a Notion project look like if it was collaborative across humans, agents-- or, well, your orchestrator agents, humans, and then obviously everyone doing-- or all the agents doing the work.

[7:35](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=455s) Um, AI development automation. I think almost every PR at Factory is just thrown through a workstream at this point as a, as a get-go, um, which I find really interesting because obviously we have our own internal, um, QA that runs on all of our PRs, but we found that everyone, especially like more senior engineers, have particular things they want to look out for. And you can't obviously customize a generic code review bot that will scan for everyone's preferences. And so, for example, I have a really strong preference to make sure we don't have any performance regressions.

[8:05](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=485s) And so I have a workstream that's basically taking any PR that touches, um, UI files and running it through kind of my pre-configured workflows for, uh, performance regressions. And I know everyone's kind of tried to, you know, encapsulate that of like, what does it mean to kind of have these... In the age of AI code review, what does it mean to still have maybe these nuances and, like, how do you incorporate human tastes and preferences and things like that without necessarily having to scale, you know, you'd spend all your time doing code review with, uh, you know, I've seen a workstream crank out a hundred PRs in

[8:35](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=515s) a day, and ultimately you need another workstream to, uh, handle that volume. And so, you know, it's a little bit of you create, you know, create a great solution, you have to find a great, uh, defense against it. And then custom. So that's the fun part of workstreams. They build upon almost every open standard that's available. You can customize them. You can create an orchestrator to behave pretty much however you'd like, delegate however you'd like. Um, this is where we think developers are gonna have a lot of fun, and especially a lot of our, you know, bigger customers pre-configuring these workflows for their

[9:05](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=545s) employees, uh, to come in and just have, like, a great experience off the bat.

[9:11](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=551s) So I'll kind of go through this a little faster. Um, but how setup works is ultimately you have to decide where this system's gonna run. Uh, we have a handful of compute options across, uh, you know, BYOM, our own, uh, ephemeral cloud sandboxes, a local. Uh, my favorite part of workstreams is they can pair all of these together in any which way you want. I can have a local orchestrator delegating to my Mac mini at home and also delegating to a series of cloud sandboxes that it's spun up for nes-- you know,

[9:41](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=581s) simple tasks. I can obviously do the reverse, where I can set my home computer up as a BYOM machine and then delegate past. Ultimately, we just think this idea that everything's cloud, everything's local, everything needs to be on-prem, everything needs there. It's just you need to have the flexibility, and we wanted to design workstreams from the ground up to make sure it, it was adaptable. Uh, pick a starter, which is kind of what I mentioned earlier. Uh, confirm the goal. I think we find the best thing is you really should just chat with your orchestrator to start. What are you trying to do? What are you trying to go after? Um,

[10:11](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=611s) I find the most fun I have with workstreams is the less I say up front and the less prescriptive I am, I get some of the most interesting results. Um, I think, you know, if you're too prescriptive, I think you're gonna end up constraining what the agents can do. And in some cases, uh, I don't wanna say the agents are smarter than me, but I think they're less maybe blinded by my biases or expectations, or I'm thinking that we need to solve something in this way. And I think when you set up a system that really can operate autonomously for long-running periods, it's really beneficial to let it come to its own conclusions, um,

[10:42](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=642s) obviously with guardrails. But I think the best results we've seen is where you really provide this directionality goal and less prescriptive on exactly how to achieve it. Obviously, unless you do specifically, though. Um, yeah, some more questions. And then, yeah, I think the final thing is how involved you wanna be. And so this pairs with all of them that at the end of the day, development workflows are very unique. Some people wanna be-- I've seen people, you know, jumping into each orchestrator chat. I think... Where is that photo? Uh, so yeah, you know, if you have your agents right there, you know, jumping into each one, really

[11:12](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=672s) treating it like each agent is its own session. I've seen-- I personally just talk to the orchestrator and kind of close all the other panels, um, and trust that things are gonna, you know, work out well. But ultimately, I think the one thing we've learned is you need to adapt to people's workflows, and there's no, at least in my opinion, no right way to build software today. I think there's a lot of great ways, but ultimately, it depends what you're doing, how you're doing, how you prefer to work, and honestly, what you just enjoy. Um, you know, it's one thing to say you can take your hands off the wheel, but if you like your hands on the

[11:42](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=702s) wheel, that's-- I, I think it's crazy to say the otherwise. So here's a little high-level, uh, diagram, but really this is essentially everything I've been sharing earlier, just maybe in a nicer picture. Uh, the one thing I wanted to call out are the automations and the shared folder. So you can think of these as these shared context spaces across all of the agents working. The shared folder can be plans, notes, handoffs, uh- It is interesting because depending on how prescriptive you be--

[12:12](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=732s) uh, you are, sometimes the, uh, the agents like to communicate in fun ways that I don't exactly-- not, not to, not a, not a that type of way I don't understand, but in a way that is, uh, you know, very adaptive, and you can see really this, like, really cool coordination happening. Um, and then sometimes I actually prompt a lot of my agents to say, "In this shared folder, keep a space for us," and that's where I want the notes a lot more structured. I want the notes a lot easier for me to follow, um, versus when it's the agents communicating, it's actually pretty interesting patterns that, uh, emerge. Um, but yeah,

[12:42](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=762s) ultimately, this can be outputs, images, plans, specs, learnings. For my code review workflow, I actually have a folder for each person on my team who I have basically learned preferences and learned, uh, maybe areas where I think they often make mistakes. And so I think it's kind of building this shared understanding that ultimately now my orchestrator can just pull that in, uh, whenever I send a PR. And then on the back end, as I was kind of saying,

[13:07](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=787s) the agent can delegate across any environment, team, et cetera. And then at the end of the day, you get, um, PRs. That's ultimately the output I think we're optimizing for. We have some internal workflows where people are using this for non-technical work, but I think ultimately really where we're headed initially is you'll get a list of PRs. Uh, we have, uh, yeah, and then you get to review them right in the app and hopefully merge them.

[13:32](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=812s) So kind of been hinting at a lot of these. Ultimately, the orchestrator's job is to coordinate the agents. So we give it a series of tools. I don't think these are the exact tools, but it's representative of the tools that the agent has to basically create agents, ask what they're doing, receive a message, um, interrupt an agent, and, uh, create an automation. And really, the only job of the orchestrator is to make sure that you are having an enjoyable development workflow and that things are getting done. Uh, they really should not be doing any work. Uh, sometimes it is helpful if you just have a quick

[14:02](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=842s) question, but really, they should be delegating as much as possible. And I think what that allows you to do is main-- y-maintain an always-on partner to ask questions. I think people have tried to figure out how do you do this with side chats and, you know, multiple sessions and things like that. I think our solution is that the orchestrator should always be available and really just delegate everything out so that then when you come in, you're not really interrupting anything. Um, and the agent can hand-- figure out if it needs to go, uh, interrupt or do anything else.

[14:32](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=872s) The agents, so these you can think of as the close semblance to like what sessions have existed for, you know, maybe the better part of the last year, where you can configure them with the model, skills, MCPs, you know, basically any open standard you want. They report back to the orchestrator. Um, they can be long-lived. I've seen some agents that honestly kind of outlive, um, you know, maybe not, you know, a week's worth of work. They can be throwaway agents. Really, this is again, somewhat how you prompt the agent and also how you, um, you know, what you're working on.

[15:04](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=904s) Machines, yeah, I talked about this a little earlier, but we believe that really this should work across any type of environment that you are doing development in, and it should work-- You shouldn't be constrained just 'cause you started in one and you delegate to the other. If you have, you know, and sometimes in a corporate setting, you have information that has to live on specific types of BYOM machines, but you really wanna be able to fan out other work across kind of an ephemeral cloud compute plane. Um, and then ultimately, maybe you have some files locally you need to orchestrate, or the orchestrator needs access to. And so really, we want it to be

[15:34](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=934s) adaptable. I do find that the scalable cloud compute is really the best way to run this at scale. Um, I think the best-- a lot of the best results from Workstreams come from being able to fan out work across ten, twenty, thirty, forty different, um, agents, and each one of those agents typically will run on their own machine. And so this is something where we are seeing that, you know, how can you make sure that you have this type of scalable compute infrastructure? And we think it's gonna be, uh, increasingly important to make sure, uh, as we kind of get into this next layer of agentic

[16:04](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=964s) orchestration.

[16:07](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=967s) The shared folder. So I wanted to talk a, a good bit about this. Um, one thing we learned with Missions, which was our, our first foray into agentic orches-- or, you know, lo-long-running agentic orchestration, is that maintaining coherence, um, especially as you make the objective function less and less defined, is quite hard. Uh, obviously, if you create a long-running agent, you say, "I want to get this number smaller," it can kind of maintain coherence because it has that North Star. Uh, as soon as you start saying, "I want to make this product better," well, that

[16:37](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=997s) becomes a little more subjective. Little becomes, you know, what is better? Sometimes maybe removing a feature is better, but you don't want to remove the feature. You know, it's all these things where you need to kind of understand preferences and taste and kind of these like micro-interactions you might have with the orchestrator where it suggests something. You're like, "Mm, no, I really care about this." Well, you don't want to have to keep saying that. And so the shared folder is our kind of thought on how,

[17:03](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=1023s) I guess, large scale projects will be orchestrated across humans, agent-- humans and agents, uh, in the long run. And so the agents can write up to the shared folder, the orchestrator can write up to the shared folder, obviously, humans can read it, and then everyone can obviously pull down from the shared folder. And the agents are prompted to basically use this as a source of truth, um, and actually, sometimes it is how they communicate. So they can communicate with each other, but also it's very helpful if multiple agents are working up on one project to be able to basically write everything up, and then

[17:33](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=1053s) everyone can pull everything down. Uh, you get into some fun like race conditions, but I, I think we've solved that in a, a pretty-- some fun, interesting ways. And actually, it's pretty amazing how adaptable the agents are to like understanding when something feels out of date and then kind of basically asking the other agent to update it and everything like that. Uh, I think it's one of those-- it's one of those things where I think, yeah, agents really are quite, quite adaptable to-- for their ability to handle what I think used to be maybe blocking edge cases where it's like, "Oh, this would never work." Um, they're just, they're just quite smart.

[18:03](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=1083s) Um, I think the general rule of thumb is if a human would, uh, kind of understand that, then at this point, we find that especially for large-scale collaboration, agents are, uh, sometimes better.

[18:14](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=1094s) And as I said, the ultimate end result is a pull request. And so at the end of the day, you'll get a list of pull requests. Um, you'll be able to review it directly, um, in our app. Uh, we've built some really fun stuff when it comes to actually viewing these pull requests, um, around, like, semantic diffs, walkthroughs, validations. Because as easy as it-- as easy as it might be to say that, "Oh, you know, you need to read through the code, you need to understand what your agents are doing," when the workstream is populating, you know, hundreds of PRs, um, potentially a day,

[18:45](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=1125s) really, you need to pull up the level of understanding to what humans can kind of quickly go through. And we find what we've built with walkthroughs, which I don't know if I have in the slides, but I have a example of later, uh, is really a great way to do that. And I think you really have to start rethinking code review at scale when you start, you know, kind of implementing these types of solutions. And so I think baking workstream-- or pull requests into workstreams from day one was something we just realized you had to do or else you, uh... Actually, the first version of workstreams did not have any

[19:15](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=1155s) of this, and we ended up with a lot of draft pull requests, uh, that were not merged, and that's, you know, not good for anyone.

[19:22](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=1162s) The final thing, I think. Yeah. Final thing, automations. So as I said earlier, you don't want the human to have to keep going into the chat every day and saying, "Hey, can you go check my inbox and see..." Or well, not inbox. "Can you go check our Linear, uh, and see if there's any new bug reports?" A lot of that is pretty monotonous. You can put that on autopilot, and so automations are built directly into a workstream, where either the human can suggest that and say, "Hey, I'm..." You know, every day. Yeah. Every weekday at nine, summarize the open to-dos.

[19:52](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=1192s) Uh, what I find most powerful is actually the orchestrator can create these automations as it kind of discovers the workflows that you're doing. Um, obviously, again, depending on how hands-on you want to be, it will ask for your approval. But I think people often find that you get used to these micro frictions of just every day doing something. And really, the goal of the orchestrator is to try to make this as smooth as possible, and we find giving it as much powerful-- as much power as possible to really create, um, these new types of-- what's the right word? Kind of these new types of workflows for you,

[20:22](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=1222s) and then be like, "Hey, wouldn't this be more helpful?"

[20:27](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=1227s) So in the hands-on portion, which I don't know, by a show of hands, does anyone actually have Factory up with a workstream possibly able to be working on? Okay. All good. I can--  I'll do more of a live demo then. I was, uh, prepared for this. Um.

[20:52](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=1252s) Go, Ross.

[20:54](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=1254s) Hey, Dex. This is also Dex. He'll be around to help as well. If anyone does like to get started, we do have Dex and Kyle, um, who would be happy to answer any, like, maybe specific questions if you need help getting started as we go. Um, let me see if I can make this bigger. Um.

[21:19](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=1279s) Oh, the fun of live demos.

[21:25](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=1285s) Good fun.

[21:29](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=1289s) While I debug this in the background, 'cause this was working earlier, uh, does anyone have any specific questions or anything in particular they would like me to go deeper into, uh, when it comes to workstreams and what we've seen work?

[21:42](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=1302s) Any thoughts? Anything that people find very interesting?

[21:46](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=1306s) Uh, yeah.

[21:46](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=1306s) Perfect.

[21:47](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=1307s) Do you use different models for the review from the orchestrator and/or for the executing agents?

[21:52](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=1312s) Yes. So the models can be configured across the different agents and the orchestrator. I believe right now it is constrained to a orchestrator model and a worker model. Um, the next evolution, I believe we want to let the orchestrator essentially delegate to the model of choice. Um, obviously, 'cause you might-- And then each, uh, sub-agent or agent can then delegate to sub-agents, which then can have their own models. And so really our typical suggestion is your highest level orchestrator is your state-of-the-art model, and then you cascade down as the work gets simpler and

[22:22](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=1342s) simpler.

[22:34](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=1354s) This is fine.

[22:38](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=1358s) So we need a local.

[22:42](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=1362s) Okay, perfect. We're gonna do this locally then. Um.

[22:45](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=1365s) Can we get this right there as well?

[22:49](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=1369s) Um, yes. I believe that we can share that. Yeah. That sounds great. Um, okay, perfect. So let's-- We're gonna run this locally. Um,

[23:04](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=1384s) mm.

[23:05](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=1385s) If you can think of [unclear], it’s also going to [unclear] for each workflow and then each [unclear] pipeline?

[23:17](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=1397s) Is it a workflow that provides the engineering pipeline?

[23:20](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=1400s) Like, um, planning.

[23:22](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=1402s) Yes. Yeah. So this-- It really adapts to the workflows you have. So we have people who are using it kind of really who want to automate the SDLC. And I think what that creates is you can have this planning stage where you just suggest to your agent, "I wanna make things, you know, faster, better. I need to solve this customer pain point." And it will first present you with a series of plans, specs, kind of how you define them, and then you can approve those and delegate off all the way to PR review, where then you can have automations that essentially review the code, and then if you're

[23:52](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=1432s) feeling risky, auto-merge or obviously get people to, to merge those code pieces. Um, perfect.

[24:00](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=1440s) Kyle, do you have any good demos we could run possibly?

[24:02](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=1442s) I have a demo.

[24:03](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=1443s) Oh, Dex.

[24:05](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=1445s) I mean, I can show a workstream I've been working on for basically a week now, and like what it was like to run from left.

[24:12](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=1452s) I think that would be amazing.

[24:13](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=1453s) All right. Well, then-

[24:22](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=1462s) I think you have a loud enough voice.

[24:23](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=1463s) What?

[24:23](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=1463s) Do you have a loud enough voice?

[24:25](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=1465s) Uh.

[24:25](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=1465s) To have like-

[24:26](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=1466s) Oh, I can, I can... Does this one-

[24:27](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=1467s) There we go.

[24:28](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=1468s) Is this one hot?

[24:28](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=1468s) Probably.

[24:29](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=1469s) Can you guys hear me okay? What's up, everybody? Uh, I am Dex. Uh, I work with Ross and, uh, Kyle. Uh, formerly I was the CEO of, uh, HumanLayer, uh, but we have now joined forces. Uh, and, uh, while he's getting that set up, 'cause, like, I can show you all basically what a Workstream... Well, would you rather see, like, one from scratch, or, like, what does a Workstream look like after it's been running for a while with all the pieces going?

[24:54](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=1494s) After it's been going.

[24:55](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=1495s) Okay. All right. Uh, I did not make out any of that in any manner, but I'm gonna do the thing I said I was gonna do, and we're gonna see how it goes.  Um. Oh.

[25:08](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=1508s) Give Ross a break. I know he's been talking for, what is it, like forty minutes on stage? I've done one forty-minute talk in my entire, like, life of doing talks, and I think twenty is, twenty is the, is, is where I run out of steam. Um, let's see. All right. Can you guys see this? Nope. Uh, display. Actually, we'll move this over. Display is... Are you just mirroring, Ross?

[25:33](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=1533s) Yeah, mirror.

[25:34](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=1534s) Okay. Let's see what we got.

[25:41](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=1541s) And incredible. Um, okay, cool. So, uh, this is a Workstream I've been working on for quite a while now. Um, it's got... And I can zoom this in a little bit maybe. Um, I'm working on a specific feature, uh, for Factory, actually a Workstreams related feature. Um, but I'll close the sidebar just so we can see this a little bit better. Um, so I have my orchestrator. Um, it's been running for, uh, basically since, like, uh, roughly two weeks ago, I started all this work. So it's got a

[26:11](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=1571s) ton of different agents, all of whom are-- have been working on various bits of research and things like this. And then, uh, has anyone heard of like RPI or Crispy? Like this like methodology of like context compaction with agents? Um, so yeah. I've been using the shared file system to track all of my RPI docs. So we have like research on like some roadmap stuff. We have, um, like a product requirements document of like the thing we're gonna build. Um, and then we have

[26:41](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=1601s) like a whole stack of PRs. So there's, you know, 22 merged PRs from here, um, and five draft PRs, and two open PRs. Uh, I did have like 30 open PRs or 10 open PRs, but then the CI team told me that we should, uh, stop thrashing all the review bots, so. Uh, but I have this thing, it has a rule of like, hey, have two open PRs at any given time. Uh, keep an eye on them, watch them, uh, update them, or merge in issues with them. So it's like I can just come in here and like check... Oh, so this is a

[27:10](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=1630s) specific agent, but I'll go back to the orchestrator, and I can say like, "Let's check on the open PR statuses."

[27:20](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=1640s) And, uh, we'll see what we got. And then, yeah, we have the PR review in. The PR view in here I, I'm a huge fan of. I basically don't even review PRs on GitHub anymore 'cause it just surfaces all of the interesting stuff. Looks like this one was approved and was small enough to be eligible for auto merge. So, uh, but other things that this, this, uh, work tree... So I was gonna check on that. We'll jump back. Other things that this thing is, uh, managing is like, basically like our product requirements docs and like being able to

[27:50](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=1670s) ta- work with the team and like kind of align on what are we gonna build and what is it gonna look like. And so like I can send this to my team and get feedback from product, from other engineers who have a lot of opinions. Uh, and then also had my Workstream walk through like building out the technical design of like what are the database tables gonna look like, and like what order are we gonna do all this work? 'Cause this is like probably like 20,000 lines of code for this feature, of which we've done, uh, you know, a few thousand so far in the last couple days. It's a lot of planning up front. Um, so really powerful like

[28:20](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=1700s) workspace to have a long-running large project and manage the context with your team. Um, so let's see what it said about our PRs. So can merge now. Approved. All checks passed, ready to merge. Let's merge and promote the next draft into an open slot. Uh, that's really the basics. I don't know, Ross, did you, do you have, do you have something you wanna show off? Should I just do like creating one from scratch? Do people have questions so far about like how we're using this and

[28:50](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=1730s) like why it's dope? Yes.

[28:54](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=1734s) I understand the purpose of the system. I didn't quite understood where all the stages of your SDLC are presented here. So we saw the PRD.

[29:03](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=1743s) Yeah.

[29:04](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=1744s) And probably the next stage?

[29:06](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=1746s) There's PRD, there's tech design, there's how do we break it out into slices.

[29:10](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=1750s) I don't see all the stages here. How can I know what's next?

[29:13](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=1753s) Ah, that's a great question. Um, so it's... Actually, it's not visualized here. That's actually a thing that we're talking about like kind of baking into the UI more so. Uh, I'm using a open source skill that you are welcome to grab, which, um, let me just unplug quickly 'cause I'm gonna switch to my browser, and who knows what tab is open. Um, oh, I know what tab is open 'cause I opened this. Um, all right, here we go. We're going back.

[29:42](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=1782s) Um, so this is currently still in the like HumanLayer skills repo, but we're gonna get this like packaged up and, and probably some- somehow merged into Factory. But it's basically a single skill that has all of the stages of, of product design, uh, and, and building built into it. This is how I like to build. But the idea with Workstreams is not to bring opinions about how your SDLC works. It's to give you the right building blocks so that you can kind of codify in skills and

[30:11](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=1811s) prompts how your team likes to work. And then you have the shared file system as a source of like shared context between agents. You have the orchestrator, and then you have the automations feature, which allows you to kinda say like, "Hey, every hour check on the open PRs, and if there's merge conflicts, go fix them," or thing, things like this. That's like the most generic like simple automation. I don't actually think I have that Um, create an automation so that when PRs are ready to go,

[30:41](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=1841s) they get merged.

[30:46](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=1846s) Um, 'cause I, I, I left this last night, I came back to it and it's like, "Hey, this PR is ready to merge." I'm like, okay, well, if it's approved and, and everything, like, why isn't it, why isn't it merged? So, uh, we need an automation for that. Um, but the other thing I think that's interesting is just, like, talking through how all this fits together,

[31:02](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=1862s) um, which is, you know, you have the workstream itself, which is sort of the large parent object of all of this stuff. And then in here you have the orchestrator, which will run, you know, any number of agents, agent one, agent two, and it will sort of like archive these if their, if their job is like completely finished. Um, but like our agent that built that product requirements doc is still open, and every time we hit a surprise during development, uh, the orchestrator, without being prompted,

[31:32](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=1892s) is going back to my PRD agent and having it update that, like, description of what we're building as well. Um, the other things that sit in here are the, like, shared file system. So the orchestrator and all of the agents, um... Oops. The orchestrator and all the agents are basically all able to read files, write files, communicate with each other through that file system. And then, yeah, we have this automations thing, uh, which is basically the orchestrator or

[32:02](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=1922s) any agent can basically create a trigger. Like, the simplest version of this is, like, on a cron, send a message to, you know, agent, whether that's one of the individual agents or the orchestrator agent. Um, and so these automations kind of talk back. There's also stuff here, uh, where you can, um... Ross, I believe, do we have webhooks too?

[32:24](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=1944s) Yes.

[32:24](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=1944s) Yeah. So you can tie this up to, like, webhooks, like if a, you know, PR review comes in with, like, requested changes, send it to the agent. Comes in with requested changes. I know, I know this is planned, but I wasn't sure if it was out yet. Uh, send to the agent. Send to $agent. And these are kind of like, for me, the, the, the main building blocks you need to run a giant agent swarm. You need the ability to manage a bunch of different workers.

[32:54](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=1974s) You need, uh, a way to wake things up, whether on a schedule or, uh, or in response to an event. And you need a way for all those systems to kind of share context and share memory. Um, and so when I run this, I have this orchestrator is running on one, like, server that is built off of a template. Uh, so I'm running all this in the cloud. You can also run this locally. Um, so I have a template, which then every time a new agent runs, it gets a fresh template with just the repo checked out, and so the orchestrator will tell it, "Hey, go get

[33:24](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=2004s) that branch that the other agent was working on," or, like, they can communicate to each other through Git or however you'd like as far as, like, sharing work in progress. Um, but every agent kind of sits on this, uh, in like a VM/sandbox, um, for each agent. And so the template has my setup of, like, my skill. It's just like a Bash script. Uh, I can actually show you probably. Um,

[33:51](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=2031s) let's see. Uh, yeah. So we just have all these environments on the team, and so, like, this one is mine, and it's just got a setup script that, like, installs a couple tools and things like this. And then anytime an agent launches, it gets all this set up. Uh, and this is like a pre-baked image. This doesn't run, uh, this doesn't run every time an agent launches. We bake the image one time every time you change the script. Other questions?

[34:12](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=2052s) Yeah.

[34:13](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=2053s) Yeah. What's up?

[34:14](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=2054s) If we go back to the diagram, uh-

[34:15](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=2055s) Yeah

[34:16](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=2056s) ... is, uh, the only way for agent one to know what's been done by agent two is just by looking at the shared file system or is there another system that you've implemented that allows them to gain knowledge on what's been done previously?

[34:28](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=2068s) Um, so they also talk-- They, they can talk to the orchestrator. So they, they, they can send messages to the orchestrator with a tool, and the orchestrator can interrupt them and inject message-- like steering messages into them, either as they're working or if they're stopped. Um, I can also just go to one of these specific agents. Um, let's see. I can just pop into one of these specific agents and talk to it directly. I find myself, eighty percent of the time, I am talking to the orchestrator, and then every once in a while, if I'm doing like a very, like, an interview, sort of like a Matt Pocock

[34:58](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=2098s) style, like grill me thing, I may just talk directly with that agent so that it doesn't have to like do two hops through the whole thing. But you can see here that this one created an automation, which we'll check every fifteen minutes. Uh, and then it messaged one of my working agents that's working on, like, slice number five of like, "Hey, by the way, I made an automation that will ping you every thirty minutes," or whatever it is. Um, and so it's like, yeah, you, you can stop checking every thirty minutes. You will get a, you will get a ping. Um, and so they, they can message each other. So I can come here and, like, tell the

[35:28](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=2128s) orchestrator, "You're on screen at a fun workshop." Um, and so you can see here it sent another message of like, "Hey, I redeployed the site with the tech design. Um, heads up from the human. I'm on screen at a fun workshop right now." And then in the orchestrator view, we'll see that it, uh,

[35:56](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=2156s) um... Oh, it got a message from TDD, and it's thinking about it. Um, I'll keep things quiet. Yeah. Thank you. Don't post anything in Slack without me. Cheers. Uh, other questions? And Ross, I don't know if you wanna, you wanna come help answer questions or whatever-

[36:12](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=2172s) I've been, uh-

[36:13](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=2173s) ... the demo.

[36:14](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=2174s) My, my computer decided to stop working midway through, so I've been live-

[36:17](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=2177s) Oh, nice. Okay

[36:18](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=2178s) ... on that. But yeah, happy to help answering the questions while I work on this.

[36:20](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=2180s) Yeah. What's up?

[36:21](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=2181s) Yeah. Dex, you gave a pretty great talk maybe a few months ago on Why Software Factories Scale.

[36:27](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=2187s) Oh, God. All right.

[36:28](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=2188s) And I thought it was pretty good. Good idea from your experience. It's clearly what you do a lot of this.

[36:33](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=2193s) Yeah.

[36:34](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=2194s) On

[36:35](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=2195s) Pushing a lot of the time invested in reviewing PRs through the upfront spec.

[36:40](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=2200s) Yeah.

[36:40](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=2200s) Can you talk a bit, just from a high level, how well that's worked transitioning to a new, presumably much larger team? How much of your time are you actually still spending communicating with agents in chat versus letting things run after you've put together a very well, you know-

[36:54](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=2214s) Yeah

[36:54](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=2214s) ... documented spec for a new feature?

[36:56](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=2216s) All right. So first of all, "Why Software Factories Fail" was probably a bad name for that talk. Uh, and if you watch it, you kind of understand, like, I actually love software factories, right? And the whole point was, like, not all software factories are doomed to fail, but there are things you could do that might cause your software d- factory to fail. And, uh, I, you know, here's what they are, and please don't do them. Uh, things like going fully lights off and things like that, and, like, losing touch with the architecture of your system. Um, I will talk more about that, uh, on Thursday at the keynote, um, about like, hey, what's

[37:26](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=2246s) the next chapter and how has that thinking evolved? But, uh, overall, I think upfront planning and building, like, product requirements docs like this is, like, so much more useful on a team of 50 engineers especially. Everyone's super high agency, everyone's super autonomous, everyone's building 10 different things at once. Uh, or we have these little, like, autonomous pods, and so it's, like, very useful to be able to be like, "Hey, here's what I'm thinking about this feature." And people are very active and chime in and give feedback. And, like, I even built, like, a janky, like, commenting system into

[37:56](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=2276s) here where I could say, like, "This sucks." Uh, this is actually just, like, fun HTML trick you can do if you're doing static HTML, is you could say, like, keep it all-- There's no back end to this, right? So I say, "This sucks." I say, "This is great." Uh, and then this thing just stores those comments in localStorage. So if I re-refresh the page, I can just copy them onto my clipboard, uh, and then I can, like, paste them into my agent like this. Uh, and it just tells it like, "Hey, the human said this about this part of the doc." Um, so these are the kind of workflows, and so, like, people would send me these. I, yeah, my-- The short-- The, the very

[38:26](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=2306s) long answer, but I think the short answer is that, um, the, uh, the bigger your team and the more that is happening, the more valuable it is. I mean, before it was, like, me and Kyle and a couple engineering contractors, and it was kind of like, yeah, we do this review stuff 'cause we believe it's important and we need to use the project to do it-- the product to do it so we can make the best product. But I think it matters even more. And I mean, the thesis was always like the, if you're in an enterprise with hundreds of engineers and hundreds of repos, this gets even more valuable. Great question. Yes.

[38:54](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=2334s) So with so many PRs to review, how do you help people to stay attached with what's going on? Ross mentioned something about doing some walkthrough [unclear]. Can you expand on this one?

[39:07](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=2347s) Yeah. What is that one? You wanna show that off?

[39:08](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=2348s) Yeah, I can show that real fast.

[39:09](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=2349s) Did we fix your, did we fix your laptop?

[39:11](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=2351s) It's, it is slowly getting back to sanity. I don't know what I did to it.

[39:15](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=2355s) All right.

[39:27](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=2367s) Uh, perfect. Okay. Yeah. Um, this is actually for a random feature I had a workstream work on.

[39:34](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=2374s) Oh, yeah. That's the thing, Ross.  I was saying I love this thing and then I didn't show them the cool part of it.

[39:39](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=2379s) Um, so yeah, it starts off just like a normal PR review. This should feel a lot like GitHub. Um, Files changed, again, should feel a lot like GitHub. But Walkthrough is kind of our opinionated take around what we think code review should be or will increasingly become. So you can kind of click through these product changes. It should tell you, you know, where in the code did this actually happen, things like that. Um, we tend to break it down of like what will a u... This is a UI change, so it breaks it down into what will, like, the user experience change, and that's the product change. Um, under the

[40:09](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=2409s) hood, obviously, how does this all work? Then you get the architecture of basically kind of walking through how these different changes happen. So this is not really like a, like, systems architecture. It's more of like a code architecture of like, where are these changes happening? Um, where were files added? Where were they modified? Where were they possibly removed? Um, this is a relatively small change, so it's still pretty, pretty easy to follow, but... And then it breaks it down into a semantic, essentially a semantic diff, where it kind of walks you through each one of these changes, um, what happened, where the files

[40:39](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=2439s) changed. Um, obviously, if there are just any normal GitHub comments and things like that that run, they'll show up where they should. Um, I don't know if this-

[40:47](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=2447s) And I'll just say, like, what's really cool about this grouping is, like, if you open a PR in GitHub, you usually get it in alphanumeric order. And like, I don't know how you're, how, like, you review code, but like, when we were working on HumanLayer, it was always like, okay, I have to scroll all the way to, like, packages/db 'cause the first thing I wanna read is, like, what new tables are we adding and what new schemas are we adding? And then I wanna scroll up midway through the PR to find the API stuff, and then I always wanna read the web app stuff last. But if you're just doing it in alphanumeric order, like, you're gonna get all the changes, like, way out of

[41:17](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=2477s) order. And like, this is the problem that AI is actually really, really good at solving of, like, take all the information that's here and restructure it so it's more consumable.

[41:25](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=2485s) Yeah. And then I think the final thing for like... So if this is a UI change, we always, um, push through a validation PR. So have the agent then walk through the exact product changes, run the app locally, or, well, in the cloud in this case, and then send you a video of what the new change would look like. This obviously works when you're working in, like, a front-end styled repo. But, uh, basically, the, the general concept is you should make PRs as human readable as possible. You should have as, as much visual evidence as possible and as much things that allow people to get context without

[41:55](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=2515s) necessarily having to read every line of code. Um, my actual, like, code review, I was mentioning this earlier, my-- I do then have an opinionated code review workstream that is around specific files. So I think as Dex was kind of mentioning, like, there are still files that matter, in my opinion. Uh, but not every file should have the same level of importance. And so how do you kind of pull out these very core files that you probably should still understand at very, at a pretty deep level how the code works, while pulling out the noise of like, you know, you made a bunch of

[42:25](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=2545s) components that arguably, you know, it's, the agents wrote them anyway. They're gonna understand them a lot better.

[42:29](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=2549s) Or maybe there's like specific patterns in the code base that, hey, you've reviewed 30 PRs in the last month, and you're like, "I keep seeing this issue," and like, "I'm happy to keep commenting on it," but like, how do I like log that and make sure that, like, these things that we, we know the agents have a propensity for doing that we maybe don't think is optimal. Like, how do you, how do you bake your opinions into that review process? Uh, whether it's by file or by pattern or whatever.

[42:50](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=2570s) I was gonna say, very nicely, this is my detection pattern file that's in their shared file system for reviewing front-end PRs. But Basically, it's all the patterns I've noticed that I find people mess up in our code base. Then the idea is you can pull this back. So actually, I now have a workflow that pulls this back into skills that then modify how we tell the agents how to do certain things in the code base to hopefully make this like a self-improving loop. Um-

[43:12](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=2592s) Do you, do you talk to the AI to build this out, or is this like an automation that just checks whenever you review a PR, like tries to pull new insights out of your code base?

[43:20](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=2600s) This was part of how I set up the c-- This is how I set up the workstream, was basically my whole goal is to build like this knowledge base. And so as you review, check against our detection patterns, and then I have an automation that will then try to update the skills in our repo.

[43:32](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=2612s) Okay. Software factory building blocks for the, uh, for the, uh, the world where you're not quite designing the code, but you're designing how do we make sure that the code is constantly getting better, and we never have to say the same thing twice, right?

[43:44](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=2624s) Yeah. Oh, Kyle was about to add.

[43:47](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=2627s) Yeah. There's, there's actually an entire, um, talk that could be given about the unreasonable effectiveness of Oxlint. Uh, Factory actually has a really good open source Oxlint rules repo, uh, that I highly recommend checking out and trying. But that's also actually like a great use case for workstreams, is to have an automation that is periodically like going through all your pull requests and looking like what are the things that humans keep saying over and over and over and over again, and then turn those into Oxlint rules or into formatter or linter

[44:17](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=2657s) rules so that you don't have to keep telling agents that. There's even like a JEV plugin for Oxlint, so you can just write a rule in, in natural language and, and run it. Um, it's another, like, great use case for just how do you actually make a software factory that's getting smarter over time and, like, lowering the load on humans who have to do code review over time.

[44:37](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=2677s) Is anybody here writing in TypeScript?

[44:41](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=2681s) No. The rest of you are not writing in TypeScript. Wait, what languages are you using?

[44:47](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=2687s) Prompts. Elixir. Okay. Well, if you are writing in TypeScript, you should absolutely be using Oxlint. Factory has a great config. Also, Dillon Mulroy is a principal engineer at Cloudflare. He has an awesome public repo with a bunch of rules of how to prevent, uh, you know, a hundred agent patterns that he saw over and over again and then curated into this rule set. Um, but whatever language you're in, you probably have a good linter or you can, you know, vibe up one that works for you.

[45:12](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=2712s) Uh, sorry. Can you say that word you keep saying?

That's Oxlint.

[45:16](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=2716s) Oxlint. It's O-X-L-I-N-T. So ox as in oxide, which is like a Rust thing. It's, uh, so Rust linter for TypeScript, basically. Yes.

[45:29](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=2729s) That is, uh, that is the fa-- my favorite thing that's-- I've working at Factory and kind of seeing the agentic code base develop, is it's all these patterns that I think engineers probably should have been doing for the last twenty years. Just it's kind of annoying to like write lint rules and keep them up to date. And honestly, there's probably only one engineer who actually knew how to write them. Um, code commenting, all these things I think we've realized, like workstreams, if you set them up correctly, can really just automate all of these code base hygiene, uh, that where you do take very opinionated stances of like our code base should work this

[45:59](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=2759s) way. Like we had an engineer who was very opinionated around useEffect. Went kind of viral on Twitter, and we have no useEffect hooks in our entire code base, um, because it-- there's a lint rule, like you actually can't add one. Um-

[46:10](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=2770s) I forgot that was Factory that posted that.

[46:12](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=2772s) Yeah.

[46:12](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=2772s) Yeah. We, we were right around the same point in that journey at HumanLayer. We were like, how-- Did you, did you, did you take the Factory post and implement that or... Yeah. Okay. Yeah, we stole that. It was great. You guys should steal that. No. Ban useEffect from your code base.

[46:23](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=2783s) Um, but it's all those things like actually as a human, it's quite annoying sometimes to figure out how to write around useEffect, but the agents are quite good at that. And so you can get very opinionated without worrying about developer velocity, or you can ban things that typically you're like, "Well, this is just unreasonable. Our developers are never gonna go for it. It's gonna make things take too much time." And then again, the agents, they get a rule, they try to run something, the lint says you can't, and they write it in a better way. Um-

[46:46](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=2806s) Should we do some more questions?

[46:47](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=2807s) Yeah.

[46:55](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=2815s) Sorry, what was the question?

[46:57](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=2817s) Can I replicate this into other harnesses?

[47:01](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=2821s) The question was, can you integrate the workstream as concept into other harnesses?

[47:07](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=2827s) No. I mean, I think there's concepts around like large scale agentic orchestration that, you know, are maybe just more generalizable, but this works with Droid. Like within the Factory system, the workstream concepts work with Droid. Um, any other, other questions?

[47:23](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=2843s) Are the artifacts that are being generated [unclear]? Are both deterministic in nature? Like, how do we, why trust them?

[47:35](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=2855s) Fair. So there are, I-- there are deterministic portions of that around like basically code analysis that kind of generates some of these structures. But no, they are mostly like a lot of the like these are the product changes are AI telling you that these are the product changes. Um,

[47:51](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=2871s) I'm actually curious, Dex, you probably have a stronger opinion on this than I do. How do you trust AI to co-- review code?

[47:56](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=2876s) Uh, I mean, in general, my take is like, uh, linters are necessary but not sufficient. Uh, AI code review is absolutely helpful to catch low-hanging stuff and find weird edge cases that humans might not have caught. But it is, it is not sufficient if your goal is to build a, like, well-architected system that will stand the test of time, and you won't have to rewrite in six months. Um, so I believe that there is a ton, a ton of value in finding ways to better

[48:26](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=2906s) understand the code. I don't know. The question was about like is it deterministic or not, these PR walkthroughs, and I think probably the one we showed is mostly generated by AI.

[48:34](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=2914s) Yeah.

[48:35](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=2915s) Other than obviously the code diffs are, are the actual code diffs. We're not having AI reproduce the diff in the artifact.  Um, but I think whether it's deterministic or using AI, I think or, or a blend of those things, I think it's really, really important op-optimize for human understanding. Like the, the, the thing I love about interview skills and these PRD things is like how do we pull as much context and intent out of the human into a format that the AI can use it? And then on the other side, on the review side is how do we

[49:04](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=2944s) pull as much, like and efficiently pull context out of the agent so that it's very easy for a human to consume? And, you know, the high level summary may not be sufficient, but it will tell you where you need to look if you actually wanna go into the weeds and look at individual files or code blocks that are, you know, super critical or core to your system.

[49:25](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=2965s) Oh.

[49:28](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=2968s) Make sure that, uh, your code, your spec is up to date with the code, or even the shared file system is up to date [unclear] scale? Uh, that's one question. 2nd, uh, have you run into any situations where something wasn't in the plan, [unclear] when, you know, the agents made a decision, and you found out two days later there was a wrong decision? Like, who's responsible, what do we do with that?

[49:53](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=2993s) Yeah. I think that's two things. One, in the workstream setup, it's very important to kind of build the workstream in a way, depending on how fault-tolerant maybe some of these workflows are. The orchestrator can be as kind of hand-holdy or as hands-off as needed in a way that sometimes people do prefer smaller specs that maybe leave out certain details, and you're leaving a little trust in the agent. Versus if you prefer saying, "Hey, let's make sure everything is in there," I found that the orchestrator is often very good at making sure that happens. Uh, with regards to making sure context is up to date with the code

[50:23](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=3023s) base, the shared file system, maybe anything else you might have, all of these agents are still able to access the latest Git, you know, commits, uh, if you have any documents in Notion or any of these other external file sources. And the shared folder context is, while important for kind of understanding how the agents are orchestrating together, uh, they do still understand that there might be sources of truth and can prompt around-- or, you know, they are designed to make sure that they have the latest information.

[50:49](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=3049s) Yeah. I would say again, like, the, the goal here is building blocks, not an opinionated, like spec-driven development process or something. You bring the specs how you-- however you want to, and we can, we can bring you the tools to basically say like, "Hey, you know, once a day, check what's been built and compare it to the spec. And if the spec is-- if it's out of date, like, tell the agents to fix it. If there was a new decision, surface it to the human. If the human made a decision, go update the spec." Like, you can, you can kind of fragment what would normally be like a giant prompt that might be hard for a model to follow into all these,

[51:19](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=3079s) like, tiny little loops that will push, you know, over time, push your feature to, uh, to production, to where-- whatever the end state you want, whether it's migrating or building a new thing or just fixing every th-- Sentry alert that comes in. Does that sound right?

[51:35](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=3095s) Yeah.

[51:36](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=3096s) I have a question too.

[51:38](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=3098s) Yes.

[51:39](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=3099s) Yeah. Uh, our orchestrator uses a shared folder for its agents. But then you-- once-- as the agents work in Git worktrees to avoid collisions in the code base. Is this something that you've tried or is that what y'all do?

[51:51](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=3111s) So the question-- So I'm just gonna read the question for the live stream, but it's basically like, "Hey, we have a big agent orchestrator, and it, it uses, uh, it uses Git worktrees to keep agents from stepping on each other and, and messing with each other's work so they can all work in parallel. Uh, how do you, how do you think about that? Do you, do you use worktrees these days?"

[52:07](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=3127s) Uh, I typically use delegate across like, uh... So for example, actually, in this demo right now, each one of these agents is running in its own cloud sandbox that was spun up specifically for its run. If you are delegating across just local, then we find worktrees are quite effective. There's some limitations with worktrees, especially as I've seen this scale to, you know, thirty, forty, fifty agents at once. Ultimately, worktrees don't scale as, as nicely.

[52:30](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=3150s) Yeah. I think one of the first problems that people tend to run into is, like, if you have a really big monorepo or lots of different repos, uh, worktrees are really great until you need to actually, like, run services that bind ports and have to interact with each other, and then you end up having to spend a ton of time having to wire it so that, like, it can locate all the ports that it needs and find them that are available, and then wire those through into the URLs for the different services to talk to each other. Uh, and the benefit of just, like, using cloud sandboxes for everything is you don't have to worry about

[53:00](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=3180s) that. Uh, so, like, I have a workstream that's been running for about a week, like rewriting a hundred thousand lines of Go into, uh, TypeScript, and it's doing a bunch of, like, Kubernetes stuff with different services, and it's really easy to just have it tested because it can use [unclear] to, like, spin up a little local Kubernetes cluster and test everything locally. And to parallel path that with, like, lots of different agents that are working on different parts of that, and all those can, like, test, uh, the entire, like, service stack against everything else without having to, like, worry about stepping on each

[53:30](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=3210s) other's toes. And, like, the thing that, you know, we--  when Dex and I were working just on our workstations all the time, you'd have, like, agents, like, killing each other's services because they're trying to, like, free up ports for their own thing, and they just, like, trample all over each other, and it... Yeah.

[53:43](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=3223s) It wasn't even, it was, it wa-- it wasn't even, like, running services sometimes. It was just like, oh, this agent is running, like, the TypeScript compiler, and there's three of them, and your Mac is literally out of memory because you're running, like, tsgo in four places at once.

[53:57](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=3237s) Um, and I think this is actually the, the example. So for context, in the background, when I was sitting over there, I decided to, say, ask our orchestrator to make our desktop app faster 'cause I was annoyed that it was bugging out. Um, and so right now, well, we have one, two, three, four, five. But basically, my-- especially when you're dealing with performance, having like an isolated environment where you can control all the other services running, basically anything that can be measured, the more you try to parallelize that on the same machine, you introducing noise into those measurements, um, and so it can create

[54:27](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=3267s) issues. Um, you also can do things like I said, to spin up twenty more. We'll see if it agrees with that statement. Uh, but I was determined to see how many PRs I could get before, uh, this is over. We might not get to one, but we'll see.

[54:41](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=3281s) Do we have non-technical roles using this as well?

[54:44](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=3284s) Question was, do we have non-technical roles using workstreams in Factory?

[54:48](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=3288s) Yes. Um, actually across the entire gamut of technical roles. So obviously like tech adjacent, product design, things like that. Uh, I know our sales like team also has started having like a workstream per account and keeping all of the context for that account in there. Ultimately, we view it as just a better way to get work done.

[55:04](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=3304s) That's awesome. I didn't-- I hadn't heard about that. That's sick.

[55:08](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=3308s) Yeah. It's not-- It's definitely maybe not purpose-built for our sales team right now, but I do think at the end of the day, really what you're giving people is a powerful tool to get work done. And I also have the opinion that like the best coding agents are just the best agents. And so over time, I think we see this really just transforming in a way that, you know, people are just gonna work.

[55:25](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=3325s) Didn't, didn't [REDACTED], didn't he post like a long Twitter thread of all the cool shit he uses this for, for like running, running the books?

[55:33](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=3333s) Yep.

[55:33](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=3333s) [REDACTED] … [REDACTED] … [REDACTED].

[55:38](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=3338s) And he's not an engineer. He's, he works in finance.

[55:41](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=3341s) Those, those Excel spreadsheets, man. They'll, they'll get to you.

[55:43](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=3343s) Okay. We got f-- we got four and a half minutes left. We'll do as many questions as we can.

[55:47](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=3347s) Let's go. Rapid fire.

[55:53](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=3353s) What, what kind of what?

[55:54](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=3354s) What kind of bottlenecks?

[55:55](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=3355s) Oh.

[55:56](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=3356s) Uh, yeah, I think PR review is definitely the-- th-that was why we really had to iterate on how to review PRs because I have, uh... when someone on my team sent me thirty-seven PRs to review one morning, and I was like, "This is simply not, not gonna scale that well." Um, as you can see, I, I'm very curious how many PRs this one ends up making. But I think code review was the most obvious bottleneck. I don't know if-

[56:16](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=3376s) It makes me feel less bad for sending you five PRs yesterday.

[56:20](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=3380s) Oh, there's-- He created his own Slack channel, just me and him.  Um, but sorry, I just wanna make sure we get to all the questions. Um, any... Oh, sorry. Oh, P-- I think PR review is probably the, the biggest bottleneck initially. Um, yeah, I think PR review and the ability to run agents, like, a bunch of agents at once. And I think the solutions we found were making PR review more approachable for humans, and then of like cloud sandboxes and things like that to really scale across, you know, not just your laptop. 'Cause I

[56:50](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=3410s) think this would truly be killing my laptop right now, um, 'cause these are all running our performance harness. Uh, sorry. Yes.

[57:10](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=3430s) Uh, okay. So as your agents are, are working and learning things and wanting to make changes to your skills, how do you actually eval that and, and know that the new version of the skill is actually better and is not gonna cause regressions for, you know, engineers working on other things?

That is a good question. I think for performance, it's the easiest because we have baseline performance metrics that we basically, like, on each PR, I can essentially see how is the performance trending over time and, like, are there regressions. Um, I think it ends up being a little context dependent of, like, which systems are you trying

[57:40](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=3460s) to measure. Uh, I'm a big fan of you just should be measuring everything, and ultimately you need like a source of truth, um, for whatever you're trying to hill climb on.

[57:53](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=3473s) Yes.

[57:56](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=3476s) Yes.  Uh, like a BYOM situation where you wanna bring maybe your own cloud sandboxes or you have a machine at home or... Basically, you wanna delegate to a machine that you own that is not necessarily your local laptop.

[58:09](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=3489s) Yes. If you wanna spin up like an EC2 in AWS and use that, that could work as well.

[58:28](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=3508s) Yeah.

[58:32](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=3512s) Yeah. I'm gonna hand this to Dex. I'll quickly re-reiterate the question, but it was essentially how do you-- how have we thought about like multiplayer and the ability to have people collaborate? I think Dex is gonna have by far the best take here.

[58:42](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=3522s) And I realize I'm probably not on camera here, so I'm gonna come hang out on stage with you.

[58:46](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=3526s) Oh, you can swap with me.

[58:47](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=3527s) Um, for the last ninety seconds. Um, yes, uh, I think the idea of having... I mean, this was one of the things that we found was like the highest impact to how we worked. Uh, we built like prototypes of things like this in HumanLayer, where multiple people can all prompt the same session. Uh, I don't know how much I can say about what's coming, but yes, we're very excited about the idea of taking a workstream and making it collaborative among multiple people, both across the documents, across talking to the orchestrator, et cetera.

[59:38](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=3578s) Ross, do we have any benchmarks that show that, uh, workstreams and agent swarms are, uh, are a great way of doing work?

So there-- we have a blog post out that is basically... So we had Missions V1, and as we were hill climbing on what is the next version of Missions, we put out a blog post that's basically the-- there's a handful of benchmarks we essentially indexed against of how do you fan out these really long-running tasks. Um, I don't remember any specific numbers, but there is a great blog post that kind of goes actually quite deeply into how we-- where we were, how we got to this architecture, and why it

[1:00:08](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=3608s) actually is better, um, on these various long-running tasks. Yeah. Maybe final question.

[1:00:13](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=3613s) Yeah. And when you're running sub-agents, what I've noticed when I ask hundred more, twenty more, there's a lot of queues and waiting.

[1:00:20](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=3620s) Yeah.

[1:00:20](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=3620s) [unclear] running [unclear]. So what, what have you [unclear] like an orchestrator to manage all these queues? You see they’re working. In reality, they’re stopping, [unclear].

[1:00:32](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=3632s) Yeah. I guess in this case, they're actually all... I'm curious here. Okay. So-

[1:00:35](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=3635s) Let's go look at, let's go look at one, one of these. What is it doing?

[1:00:38](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=3638s) That's actually a point. Um, okay, let me load into one. Um-

[1:00:43](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=3643s) Oh, I saw the word V8. That's, uh, that's scary. We're digging into the, the Node VM. Okay.

[1:00:49](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=3649s) Um, so I think in this case, the agent, actually what it decided to do is instead of spinning up maybe one or two across, like just our entire repo, has stuck each agent on its own particular portion of our repo. Um, and I think that's how it avoids collisions, that these actually can work quite autonomously without worrying. And I think that is time, so.

[1:01:05](https://www.youtube.com/watch?v=OU0iA4Xo3Xw&t=3665s) Awesome. Thanks, everybody.
