@zerwiz/ymir 0.1.16 → 0.1.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.agents/config/app-repos.yaml +38 -0
- package/.claude/settings.json +31 -0
- package/.codex/hooks.json +43 -0
- package/.cursor/hooks.json +33 -0
- package/.pi/extensions/README.md +39 -0
- package/.pi/extensions/gna-pi-watch.ts +15 -0
- package/.pi/extensions/lib/ro-assistant-layout.ts +96 -0
- package/.pi/extensions/lib/ro-operational-user-layout.ts +145 -0
- package/.pi/extensions/lib/ro-visibility.ts +99 -0
- package/.pi/extensions/lib/ro-working-ship.ts +243 -0
- package/.pi/extensions/lib/rodd-operational-input.ts +62 -0
- package/.pi/extensions/lib/skuld-branch-dispatch.ts +252 -0
- package/.pi/extensions/lib/skuld-branch-model-picker.ts +77 -0
- package/.pi/extensions/lib/vordr-sessionstart-supervisor.mjs +48 -0
- package/.pi/extensions/ro.ts +11 -0
- package/.pi/extensions/skuld-branch-supervision.ts +11 -0
- package/.pi/extensions/syn-turnend-guard.ts +11 -0
- package/.pi/mcp.json +16 -0
- package/.pi/mcp.json.example +11 -0
- package/.pi/npm/.gitignore +2 -0
- package/.pi/settings.json +8 -0
- package/.pi/shared/extensions/gna-pi-watch.ts +750 -0
- package/.pi/shared/extensions/herdr-agent-state.ts +257 -0
- package/.pi/shared/extensions/open-editor.ts +509 -0
- package/.pi/shared/extensions/ro.ts +504 -0
- package/.pi/shared/extensions/skuld-branch-supervision.ts +1535 -0
- package/.pi/shared/extensions/syn-turnend-guard.ts +683 -0
- package/.pi/shared/extensions/todo.ts +133 -0
- package/.pi/shared/extensions/ymir-subagents.ts +287 -0
- package/.pi/shared/extensions/ymir-well.ts +130 -0
- package/CHANGELOG.md +23 -0
- package/assets/Ymir.md +4654 -0
- package/assets/healer.html +717 -0
- package/assets/icon-family/family-sheet.png +0 -0
- package/assets/icon-family/hlidskjalf.svg +1 -0
- package/assets/icon-family/sessrumnir.svg +1 -0
- package/assets/icon-family/smidja.svg +1 -0
- package/assets/icon-family/ymir.svg +1 -0
- package/assets/mimirswell.html +880 -0
- package/assets/mock/README.md +16 -0
- package/assets/mock/feeds.ts +175 -0
- package/assets/mock/mock.ts +408 -0
- package/assets/reference/docs/agent-control.md +122 -0
- package/assets/reference/docs/apodex/Appdex_as_Orchestrator_Planner_Reviewer_Assessment.md +176 -0
- package/assets/reference/docs/apodex/Final Report(1).md +198 -0
- package/assets/reference/docs/apodex/Final Report(2).md +54 -0
- package/assets/reference/docs/apodex/Final Report(3).md +40 -0
- package/assets/reference/docs/apodex/Final Report(4).md +234 -0
- package/assets/reference/docs/apodex/Final Report(5).md +13 -0
- package/assets/reference/docs/apodex/Final Report.md +82 -0
- package/assets/reference/docs/architecture.md +392 -0
- package/assets/reference/docs/arm-pretool-check.md +247 -0
- package/assets/reference/docs/calm-mode-feasibility.md +541 -0
- package/assets/reference/docs/calm.md +59 -0
- package/assets/reference/docs/captain-hold-lifecycle.md +96 -0
- package/assets/reference/docs/cd-guard.md +165 -0
- package/assets/reference/docs/cmux-backend.md +133 -0
- package/assets/reference/docs/codex-app-backend.md +57 -0
- package/assets/reference/docs/configuration.md +924 -0
- package/assets/reference/docs/documentation-audiences.json +468 -0
- package/assets/reference/docs/documentation-audiences.md +28 -0
- package/assets/reference/docs/examples/crew-dispatch.json +26 -0
- package/assets/reference/docs/examples/process-event-extension/file-signal.mjs +96 -0
- package/assets/reference/docs/examples/process-event-extension/firstmate-extension.json +15 -0
- package/assets/reference/docs/examples/watched-tools.json +24 -0
- package/assets/reference/docs/examples/wedge-alarm +22 -0
- package/assets/reference/docs/extension-bindings.md +237 -0
- package/assets/reference/docs/fm-test-isolation-proof.json +37 -0
- package/assets/reference/docs/fm-test-isolation-proof.md +149 -0
- package/assets/reference/docs/fm-test-portable-shards.md +118 -0
- package/assets/reference/docs/gitlab-merge-watch.md +275 -0
- package/assets/reference/docs/herdr-backend.md +346 -0
- package/assets/reference/docs/orca-backend.md +84 -0
- package/assets/reference/docs/pi-supervision-branch-poster.svg +125 -0
- package/assets/reference/docs/pi-supervision-branch.md +96 -0
- package/assets/reference/docs/plans/agentic-engineering-workflow.md +395 -0
- package/assets/reference/docs/plans/agentic-factory-implementation-plan.md +615 -0
- package/assets/reference/docs/plans/command-factory-enhancement-plan.md +420 -0
- package/assets/reference/docs/plans/phase-1-layer3-program-design.md +134 -0
- package/assets/reference/docs/plans/phase-2-vertical-slices.md +100 -0
- package/assets/reference/docs/plans/phase-3-measurable-goals.md +106 -0
- package/assets/reference/docs/plans/phase-4-context-budget.md +106 -0
- package/assets/reference/docs/plans/phase-5-pre-mortem-confidence.md +100 -0
- package/assets/reference/docs/plans/phase-6-incident-to-agent.md +109 -0
- package/assets/reference/docs/remote-secondmates.md +268 -0
- package/assets/reference/docs/scripts.md +146 -0
- package/assets/reference/docs/sessionstart-nudge.md +115 -0
- package/assets/reference/docs/subagent-guard.md +383 -0
- package/assets/reference/docs/supervision-protocols/claude.md +27 -0
- package/assets/reference/docs/supervision-protocols/codex.md +16 -0
- package/assets/reference/docs/supervision-protocols/cursor.md +31 -0
- package/assets/reference/docs/supervision-protocols/grok.md +39 -0
- package/assets/reference/docs/supervision-protocols/opencode.md +17 -0
- package/assets/reference/docs/supervision-protocols/pi.md +33 -0
- package/assets/reference/docs/supervision-protocols/unknown.md +13 -0
- package/assets/reference/docs/tmux-backend.md +115 -0
- package/assets/reference/docs/trace-context.md +117 -0
- package/assets/reference/docs/turnend-guard.md +170 -0
- package/assets/reference/docs/verification/dispatch-auth.md +204 -0
- package/assets/reference/docs/verification/muse.md +221 -0
- package/assets/reference/docs/verification/process-event-sources.md +208 -0
- package/assets/reference/docs/verification/public-followup.md +119 -0
- package/assets/reference/docs/verification/runtime-backends.md +1022 -0
- package/assets/reference/docs/verification/stow-memory.md +53 -0
- package/assets/reference/docs/verification/supervision.md +534 -0
- package/assets/reference/docs/verification/trace-context.md +31 -0
- package/assets/reference/docs/voice-relay.md +295 -0
- package/assets/reference/docs/watcher-continuity.md +119 -0
- package/assets/reference/docs/wedge-alarm.md +39 -0
- package/assets/reference/docs/zellij-backend.md +114 -0
- package/assets/reference/index.html +1172 -0
- package/assets/reference/skills/afk/SKILL.md +241 -0
- package/assets/reference/skills/ahoy/SKILL.md +56 -0
- package/assets/reference/skills/ask-user-authority/SKILL.md +56 -0
- package/assets/reference/skills/bearings/SKILL.md +161 -0
- package/assets/reference/skills/bearings/assets/board-template.html +731 -0
- package/assets/reference/skills/bootstrap-diagnostics/SKILL.md +68 -0
- package/assets/reference/skills/captain-hold-lifecycle/SKILL.md +54 -0
- package/assets/reference/skills/decision-hold-lifecycle/SKILL.md +15 -0
- package/assets/reference/skills/diagnostic-reasoning/SKILL.md +53 -0
- package/assets/reference/skills/firstmate-codexapp/SKILL.md +110 -0
- package/assets/reference/skills/firstmate-codexapp/agents/openai.yaml +4 -0
- package/assets/reference/skills/firstmate-coding-guidelines/SKILL.md +127 -0
- package/assets/reference/skills/firstmate-orca/SKILL.md +92 -0
- package/assets/reference/skills/fmx-respond/SKILL.md +283 -0
- package/assets/reference/skills/harness-adapters/SKILL.md +95 -0
- package/assets/reference/skills/harness-adapters/references/common/control-and-recovery.md +37 -0
- package/assets/reference/skills/harness-adapters/references/common/dispatch.md +32 -0
- package/assets/reference/skills/harness-adapters/references/common/model-and-effort.md +42 -0
- package/assets/reference/skills/harness-adapters/references/common/primary-hooks.md +40 -0
- package/assets/reference/skills/harness-adapters/references/harness/claude.md +55 -0
- package/assets/reference/skills/harness-adapters/references/harness/codex.md +43 -0
- package/assets/reference/skills/harness-adapters/references/harness/cursor.md +75 -0
- package/assets/reference/skills/harness-adapters/references/harness/grok.md +69 -0
- package/assets/reference/skills/harness-adapters/references/harness/kimi.md +51 -0
- package/assets/reference/skills/harness-adapters/references/harness/muse.md +70 -0
- package/assets/reference/skills/harness-adapters/references/harness/opencode.md +42 -0
- package/assets/reference/skills/harness-adapters/references/harness/pi.md +56 -0
- package/assets/reference/skills/process-event-sources/SKILL.md +137 -0
- package/assets/reference/skills/project-management/SKILL.md +92 -0
- package/assets/reference/skills/quota-array-dispatch/SKILL.md +131 -0
- package/assets/reference/skills/secondmate-provisioning/SKILL.md +254 -0
- package/assets/reference/skills/stow/SKILL.md +309 -0
- package/assets/reference/skills/stuck-crewmate-recovery/SKILL.md +54 -0
- package/assets/reference/skills/updatefirstmate/SKILL.md +64 -0
- package/assets/skills/README.md +5 -0
- package/assets/yggdrasil.html +649 -0
- package/assets/ymir-banner-01.png +0 -0
- package/assets/ymir-banner-02.png +0 -0
- package/assets/ymir-banner-03.png +0 -0
- package/assets/ymir-banner-04.png +0 -0
- package/assets/ymir-banner-05.png +0 -0
- package/assets/ymir-banner-06.png +0 -0
- package/assets/ymir-emblem-darksteel.svg +63 -0
- package/assets/ymir-emblem-forged.svg +55 -0
- package/assets/ymir-emblem-slate.svg +55 -0
- package/assets/ymir-mark-algiz-anvil.svg +9 -0
- package/assets/ymir-stave.svg +53 -0
- package/assets/ymir.html +563 -0
- package/bin/ymir-install.sh +6 -1
- package/data/learnings.md +33 -0
- package/data/local-models.md +34 -0
- package/data/operator.md +15 -0
- package/data/projects.md +28 -0
- package/data/realm.md +1 -0
- package/deploy/Containerfile +27 -0
- package/deploy/README.md +104 -0
- package/deploy/compose/compose.yaml +45 -0
- package/deploy/env.example +30 -0
- package/deploy/quadlet/ymir.container +57 -0
- package/package.json +10 -8
|
@@ -0,0 +1,395 @@
|
|
|
1
|
+
# Agentic Engineering Workflow — Ex-NASA Dev (Dex Horthy) Framework
|
|
2
|
+
|
|
3
|
+
**Source**: David Ondrej podcast interview with Dex Horthy (coined "context engineering")
|
|
4
|
+
**Date**: August 2026
|
|
5
|
+
**Reference**: YouTube `xgkjtF89-44`, OpenClawDatabase deep-dive, FrontierModels summary, Zovi AI, LinkedIn analysis by Wesley Stander
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## Executive Summary
|
|
10
|
+
|
|
11
|
+
> **"Agents can solve problems. They cannot, yet, write maintainable code without you."** — Dex Horthy
|
|
12
|
+
|
|
13
|
+
The core thesis: **structured pre-coding design phases** are the difference between vibe-coding toys and shipping production software. The step everyone skips is **Program Design** — not product specs, not architecture diagrams, but the actual call stack, type signatures, and file placement decided BEFORE the agent writes code.
|
|
14
|
+
|
|
15
|
+
> **The failure that produced this system**: Dex's team ran a "light software factory" in July 2025 — reviewing plans and tickets, **never reading the code** — for three months. Then a bug hit a shipping desktop app. Several frontier models in a council kept diagnosing the wrong cause and shipping fixes that didn't fix it. Resolving it meant going back into a codebase nobody had read for three months and working through unfamiliar, sloppy code for weeks while users were angry. **His thesis: the odds of this happening to you are higher than the odds that models get good enough before it does.**
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
## The Four-Layer Program Design System
|
|
20
|
+
|
|
21
|
+
### Layer 1 — Product (What & Why)
|
|
22
|
+
- **Problem statement**: What user problem are we solving?
|
|
23
|
+
- **Success metrics**: How will we measure it? (Quantitative, not vibes)
|
|
24
|
+
- **Announcement post** (Amazon practice): Write the launch blog post *before* building the feature — forces you to explain value to a user first
|
|
25
|
+
- **HTML mockups**: Prototype relevant views as plain HTML at this stage
|
|
26
|
+
- **Zero tech**: No databases, no schemas, no architecture
|
|
27
|
+
|
|
28
|
+
### Layer 2 — System Architecture (How Services Fit)
|
|
29
|
+
- Service topology and boundaries
|
|
30
|
+
- Request/response flow diagrams
|
|
31
|
+
- New endpoints and their contracts
|
|
32
|
+
- New tables and query outlines
|
|
33
|
+
- **Note**: Most experienced teams already operate at this level — people are generally comfortable designing architecture back-and-forth with a model
|
|
34
|
+
|
|
35
|
+
### Layer 3 — Program Design ⚠️ THE SKIPPED LAYER
|
|
36
|
+
**One level below architecture — this is where the agent makes decisions you will dislike later.**
|
|
37
|
+
|
|
38
|
+
- **File locations**: Where does each piece live?
|
|
39
|
+
- **Types and method signatures**: Exact interfaces before implementation
|
|
40
|
+
- **Call stack visualization**: What does the execution path look like when this runs?
|
|
41
|
+
- **Test shapes**: What will the tests look like? (Not implementation — test *signatures*)
|
|
42
|
+
- **Deliberately NOT implementation detail**
|
|
43
|
+
|
|
44
|
+
> Dylan Mulroy (Cloudflare): *"A good plan with the tests and the call stack. The point is that [the agent] will otherwise make silently, and that [you] may not like."*
|
|
45
|
+
|
|
46
|
+
### Layer 4 — Vertical Slices / Tracer Bullets (Execution Order)
|
|
47
|
+
**Models default to building horizontally** — entire database layer → entire service layer → entire API → entire frontend — leaving **nothing testable until thousands of lines are done**.
|
|
48
|
+
|
|
49
|
+
**Vertical slice = thin and end-to-end**:
|
|
50
|
+
1. Mock the API endpoint
|
|
51
|
+
2. Stub the frontend
|
|
52
|
+
3. Wire them together
|
|
53
|
+
4. *Then* add migrations, business logic, error handling
|
|
54
|
+
|
|
55
|
+
> **Dex**: "I have never seen a model do this without a human telling it the order."
|
|
56
|
+
|
|
57
|
+
---
|
|
58
|
+
|
|
59
|
+
## Context Engineering Principles
|
|
60
|
+
|
|
61
|
+
### Right Tokens, Not More Tokens
|
|
62
|
+
- **"Dumb zone" at ~50% context is real** — for models AND humans
|
|
63
|
+
- Compaction and handoffs matter
|
|
64
|
+
- Don't token-max while your bottleneck is code review
|
|
65
|
+
|
|
66
|
+
### Make Structural Decisions Early
|
|
67
|
+
- In the context window where they are **cheap** and the model is **sharpest**
|
|
68
|
+
- One 43k-token planning session with PRD read in and most endpoint/flow decisions already made > re-steering a 3,000-line diff later
|
|
69
|
+
- Structural decisions = file placement, type signatures, call stack, test strategy
|
|
70
|
+
- **Prompt for output in code blocks** — types and method signatures — because those are fast for a human to scan and judge right-or-wrong (review takes minutes, not hours)
|
|
71
|
+
|
|
72
|
+
### The Victor Tali Trick (Pre-Mortem)
|
|
73
|
+
> After a change, ask the model: *"While working on this, which choices did you make that you're not confident of?"*
|
|
74
|
+
|
|
75
|
+
Dex's system does this **before the run instead of after** — surfacing uncertain choices during program design, not post-hoc.
|
|
76
|
+
|
|
77
|
+
---
|
|
78
|
+
|
|
79
|
+
## Measurable Goals Beat Instructions
|
|
80
|
+
|
|
81
|
+
> **Both speakers converge**: an agent given a number to move will go much further than one given a description.
|
|
82
|
+
|
|
83
|
+
- **Dex calls it "back-pressure"**: LLM-as-judge is acceptable, but a **real metric tied to the business** (conversion rate, resource-reduction target for a CUDA kernel) lets an agent run experiments, check data daily, and pick a winner
|
|
84
|
+
- **David's framing**: *"If you can tell it a measurable output, the agent will move mountains for you."*
|
|
85
|
+
|
|
86
|
+
---
|
|
87
|
+
|
|
88
|
+
## The Working Workflow for Real Teams
|
|
89
|
+
|
|
90
|
+
```
|
|
91
|
+
┌─────────────┐ ┌────────────────┐ ┌──────────────────┐ ┌─────────────────┐ ┌─────────────────┐
|
|
92
|
+
│ PRODUCT │──▶│ ARCHITECTURE │──▶│ PROGRAM DESIGN │──▶│ VERTICAL SLICES │──▶│ YOU READ LOGIC │
|
|
93
|
+
│ (problem, │ │ (services, │ │ (files, types, │ │ (thin e2e, │ │ (or at least │
|
|
94
|
+
│ metrics, │ │ flow, tables)│ │ signatures, │ │ test as you │ │ the logic) │
|
|
95
|
+
│ announcement) │ │ │ call stack, │ │ go) │ │ │
|
|
96
|
+
└─────────────┘ └────────────────┘ │ tests) │ └─────────────────┘ └─────────────────┘
|
|
97
|
+
└──────────────────┘
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
### When to Apply Each Mode
|
|
101
|
+
|
|
102
|
+
| Context | Approach |
|
|
103
|
+
|---------|----------|
|
|
104
|
+
| **Pre-PMF / MVP** | Vibe faster — ship, learn, iterate (Dex calls four-layer "overkill" here) |
|
|
105
|
+
| **~5+ engineers, paying users, 6-month maintenance horizon** | **Start earning its keep** — full four-layer discipline |
|
|
106
|
+
| **Enterprise fintech / regulated** | **This isn't optional** — a bug costs $1M+ |
|
|
107
|
+
|
|
108
|
+
---
|
|
109
|
+
|
|
110
|
+
## Strategic Positioning
|
|
111
|
+
|
|
112
|
+
### You're Not Competing With Google/Anthropic
|
|
113
|
+
- You're competing with **a product manager at Anthropic** with red tape and a roadmap
|
|
114
|
+
- Large orgs have rules, slow movement — a small founder/team who **gives a damn** can out-execute most internal teams
|
|
115
|
+
- OpenAI/Anthropic work hard to keep "startup energy" — but they still have PM overhead
|
|
116
|
+
|
|
117
|
+
### The Future Isn't "Agents Replace Engineers"
|
|
118
|
+
> **"It's engineers who know where to stay in the loop, and where to let the model cook."**
|
|
119
|
+
|
|
120
|
+
### Death of the Traditional PR Model
|
|
121
|
+
- **PR model breaks down** when agents generate tens of thousands of lines faster than any human can review
|
|
122
|
+
- **Running multiple model reviewers (Codex + Opus) in parallel** emerges as a practical proxy for human code trust at scale
|
|
123
|
+
|
|
124
|
+
---
|
|
125
|
+
|
|
126
|
+
## Dex's Practical Habits (No-Framework Approach)
|
|
127
|
+
|
|
128
|
+
### Prompting Like a Slack Message to a Senior Engineer
|
|
129
|
+
> *"The number one thing that's important for me when writing prompts is where does the information come from that the agent has access to to interpret what I mean."*
|
|
130
|
+
|
|
131
|
+
**Two sources only**: Training data + Context window
|
|
132
|
+
|
|
133
|
+
**Mental model**: Senior engineer who's seen it all, hooded, dropped at a desk with:
|
|
134
|
+
- Codebase
|
|
135
|
+
- Browser
|
|
136
|
+
- Terminal
|
|
137
|
+
- Text editor
|
|
138
|
+
- A prompt: "Implement this"
|
|
139
|
+
|
|
140
|
+
**If your prompt/context/AGENTS.md doesn't contain enough info → can't turn shitty prompt into good output**
|
|
141
|
+
|
|
142
|
+
### His Prompt Template (Porting Puck to CLI)
|
|
143
|
+
```
|
|
144
|
+
"Look at how it's implemented in the web UI. This is what you should take as the standard.
|
|
145
|
+
I want to port this to our CLI.
|
|
146
|
+
I think we should have a 'puck open' command. We have a command palette in our CLI that opens the puck for it.
|
|
147
|
+
That shows up in the sidebar. We have a sidebar in the TUI.
|
|
148
|
+
I think we should have a 'puck clear' thing...
|
|
149
|
+
|
|
150
|
+
[Research phase]
|
|
151
|
+
Research how it's implemented. Look at the news post. Document how it works in the doc.
|
|
152
|
+
Sit down and think about it. Compile what you learn.
|
|
153
|
+
|
|
154
|
+
[Design phase]
|
|
155
|
+
Come up with a good idea for how to translate it.
|
|
156
|
+
|
|
157
|
+
[Execution phase]
|
|
158
|
+
Use sub-agents for implementing this (GPT models).
|
|
159
|
+
Present me with the results."
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
### Sub-Agent Delegation
|
|
163
|
+
- Uses **sub-agents (GPT models)** for implementation grunt work
|
|
164
|
+
- Expensive — "scares me" — but isolates implementation from design
|
|
165
|
+
- Main agent = architect/reviewer; sub-agents = builders
|
|
166
|
+
- **Running Codex and Opus in parallel** as multiple reviewers
|
|
167
|
+
|
|
168
|
+
### Validation Loop
|
|
169
|
+
- **End-to-end tests > local dev environment** for validation
|
|
170
|
+
- Runs against live dev servers (orbs/portals)
|
|
171
|
+
- Spot-checks architectural choices after tests pass
|
|
172
|
+
- "If it did end-to-end tests, and I read through it, and I kind of agree with the architectural choices... what more do I need my local dev env for?"
|
|
173
|
+
|
|
174
|
+
---
|
|
175
|
+
|
|
176
|
+
## Critical Failure Modes & Guardrails
|
|
177
|
+
|
|
178
|
+
### The "Never Read Code" Experiment (July 2025 — Failed)
|
|
179
|
+
| Aspect | Detail |
|
|
180
|
+
|--------|--------|
|
|
181
|
+
| **Duration** | 3 months |
|
|
182
|
+
| **Method** | Review plans/tickets only, zero code review |
|
|
183
|
+
| **Failure trigger** | Bug in shipping desktop app |
|
|
184
|
+
| **Model behavior** | Council of frontier models kept diagnosing wrong cause, shipping non-fixes |
|
|
185
|
+
| **Recovery cost** | Weeks of unfamiliar, sloppy code while users angry |
|
|
186
|
+
| **Lesson** | Odds of this happening > odds models get good enough first |
|
|
187
|
+
|
|
188
|
+
### David's Accepted Counterpoint
|
|
189
|
+
> The requirement may be **understanding the *logic*** rather than literal code — what the first 5 minutes of onboarding does, what happens when someone cancels, what fires when this endpoint is hit. **The failure mode is losing the shape of the system, not skipping line-by-line read.**
|
|
190
|
+
|
|
191
|
+
### Guard Against Silently Losing the Thread
|
|
192
|
+
- **Prototype that quizzed operator mid-session**: multiple-choice questions + Mermaid diagrams on current codebase state and new changes
|
|
193
|
+
- **David's version**: Have the agent deliberately slow down and educate you when you start losing grip
|
|
194
|
+
- **Target**: Keep the system's logic in your head, not read every line
|
|
195
|
+
|
|
196
|
+
---
|
|
197
|
+
|
|
198
|
+
## Benchmark Critique (Structural, Not Vibes)
|
|
199
|
+
|
|
200
|
+
| Benchmark | Problem |
|
|
201
|
+
|-----------|---------|
|
|
202
|
+
| **SWE-bench** | Reinforcement learning scores traces on whether human-written tests pass |
|
|
203
|
+
| **Golden patches** | Often 100–200 lines — no penalty for bad design anywhere in the loop |
|
|
204
|
+
| **Result** | Models solve problems well but produce code that's hard to maintain |
|
|
205
|
+
| **Dex's objection** | Coherent explanation of why models solve problems but fail at maintainability |
|
|
206
|
+
|
|
207
|
+
---
|
|
208
|
+
|
|
209
|
+
## Incident Routing Into the Agent Pipeline
|
|
210
|
+
|
|
211
|
+
> **"I don't wake up to an alert, I wake up to a pull request."**
|
|
212
|
+
|
|
213
|
+
### Working Implementation (David's)
|
|
214
|
+
- **GLM 5.2** reviews every uptime incident on API product
|
|
215
|
+
- Returns report classifying: provider outage (nothing to do) vs missing migration (specific fix)
|
|
216
|
+
- Runs on cron jobs: Vercel + GitHub Actions
|
|
217
|
+
- Small agent loop on render.com doing inference
|
|
218
|
+
- Same applies to triaging support queue directly to agent
|
|
219
|
+
|
|
220
|
+
---
|
|
221
|
+
|
|
222
|
+
## Integration With Firstmate Factory
|
|
223
|
+
|
|
224
|
+
### Direct Mapping to Existing Firstmate Constructs
|
|
225
|
+
|
|
226
|
+
| Four-Layer Concept | Firstmate Equivalent |
|
|
227
|
+
|--------------------|----------------------|
|
|
228
|
+
| **Product Layer** | Ticket creation (`ticket-create`), PRD (`write-a-prd`), success metrics in ticket |
|
|
229
|
+
| **Architecture Layer** | `create-plan` with system architecture section, `improve-codebase-architecture` |
|
|
230
|
+
| **Program Design Layer** | **NEW** — needs explicit capture in plan/brief: file map, type signatures, call stack, test signatures |
|
|
231
|
+
| **Vertical Slices** | `github-branch` + worktree isolation (`worktree` skill), `ticket-executor` phase-by-phase, `validate-implementation` per slice |
|
|
232
|
+
| **Incident → PR** | `process-event-sources` + `fmx-respond` for automated incident-to-agent routing |
|
|
233
|
+
| **Measurable goals** | `ticket-context` with quantitative success criteria, `validate-implementation` against metrics |
|
|
234
|
+
|
|
235
|
+
### Recommended Factory Enhancements
|
|
236
|
+
|
|
237
|
+
1. **Add "Program Design" section to `create-plan` output** — enforce file locations, type signatures, call stack, test shapes before implementation
|
|
238
|
+
2. **Vertical slice enforcement in `ticket-executor`** — require thin e2e path before horizontal expansion (Phase 0 = vertical slice definition)
|
|
239
|
+
3. **Context budget awareness** — track token usage, warn at 50% ("dumb zone"), enforce structural decisions early
|
|
240
|
+
4. **Sub-agent pattern in briefs** — scaffold briefs to delegate implementation to cheaper models after design is locked
|
|
241
|
+
5. **Live validation integration** — `validate-implementation` against running dev environment (orbs, preview deployments)
|
|
242
|
+
6. **Pre-mortem confidence check** — add "which choices are you not confident about?" to program design review
|
|
243
|
+
7. **Measurable goal enforcement** — require quantitative success metric in every ticket/plan
|
|
244
|
+
8. **Incident-to-agent pipeline** — route alerts through `process-event-sources` → agent brief → PR
|
|
245
|
+
9. **Logic retention guard** — periodic "quiz the operator" or agent-educates-human during long tasks
|
|
246
|
+
10. **Multi-model review gate** — parallel Codex + Opus review for high-stakes changes
|
|
247
|
+
|
|
248
|
+
---
|
|
249
|
+
|
|
250
|
+
## Anti-Patterns to Avoid
|
|
251
|
+
|
|
252
|
+
| Anti-Pattern | Consequence | Fix |
|
|
253
|
+
|--------------|-------------|-----|
|
|
254
|
+
| Skip Layer 3 (Program Design) | Agent makes silent structural decisions you hate; 2000-line re-steer | Mandatory program design sign-off before spawn |
|
|
255
|
+
| Horizontal building (DB→Service→API→FE) | Nothing testable until 3000+ lines | Enforce vertical slice #1 in every task |
|
|
256
|
+
| Token-maxing context | Dumb zone at 50% — model quality degrades | Right tokens, structural decisions early |
|
|
257
|
+
| No announcement post | Building features nobody understands | Amazon practice: write launch post first |
|
|
258
|
+
| Vibe-coding in enterprise | $1M bugs, unreviewable PRs | Full four-layer discipline non-negotiable |
|
|
259
|
+
| "Never read code" factory | Silent degradation, catastrophic debug sessions | Keep logic in head; periodic code logic quizzes |
|
|
260
|
+
| Descriptive goals only | Agent wanders, no convergence | Measurable metric tied to business outcome |
|
|
261
|
+
| Single-model review | Blind spots in generated code | Parallel Codex + Opus review for critical paths |
|
|
262
|
+
|
|
263
|
+
---
|
|
264
|
+
|
|
265
|
+
## Skills to Create / Update
|
|
266
|
+
|
|
267
|
+
1. **`program-design`** — New skill: enforce Layer 3 capture in plans/briefs (file map, type signatures, call stack, test shapes)
|
|
268
|
+
2. **`vertical-slice-executor`** — New skill: structure ticket-executor around thin e2e slices (Phase 0 = vertical slice def)
|
|
269
|
+
3. **`context-budget`** — New skill: monitor token usage, enforce early structural decisions, warn at 50%
|
|
270
|
+
4. **`pre-mortem-confidence`** — New skill: "which choices are you not confident about?" integration in design review
|
|
271
|
+
5. **`measurable-goals`** — New skill: require quantitative success metrics in tickets/plans, validate against them
|
|
272
|
+
6. **`incident-to-agent`** — New skill: route alerts via `process-event-sources` → agent brief → PR
|
|
273
|
+
7. **`logic-retention-guard`** — New skill: periodic codebase logic quizzes / agent-educates-human during long tasks
|
|
274
|
+
8. **`multi-model-review`** — New skill: parallel Codex + Opus review gate for high-stakes changes
|
|
275
|
+
9. **Update `create-plan`** — Add program design section template + measurable goals + confidence check
|
|
276
|
+
10. **Update `ticket-executor`** — Phase 0 = vertical slice definition; measurable goal tracking
|
|
277
|
+
11. **Update `validate-implementation`** — Integrate live dev environment testing + metric validation
|
|
278
|
+
12. **Update `process-event-sources`** — Add incident classification + auto-brief generation
|
|
279
|
+
|
|
280
|
+
---
|
|
281
|
+
|
|
282
|
+
## Quick Reference Card
|
|
283
|
+
|
|
284
|
+
```
|
|
285
|
+
BEFORE SPAWNING ANY AGENT:
|
|
286
|
+
☐ Layer 1: Problem + Metrics + Announcement Post + HTML Mockups
|
|
287
|
+
☐ Layer 2: Services + Flow + Endpoints + Tables
|
|
288
|
+
☐ Layer 3: FILE MAP + TYPE SIGNATURES + CALL STACK + TEST SHAPES ← CRITICAL
|
|
289
|
+
☐ Layer 4: First vertical slice defined (mock API → stub FE → wire)
|
|
290
|
+
☐ Measurable goal: quantitative metric tied to business outcome
|
|
291
|
+
☐ Pre-mortem: "Which choices are you not confident about?"
|
|
292
|
+
|
|
293
|
+
DURING EXECUTION:
|
|
294
|
+
☐ Sub-agents for implementation grunt work (GPT models)
|
|
295
|
+
☐ Vertical slice 1: end-to-end testable
|
|
296
|
+
☐ Validate against live dev env (orbs/portals)
|
|
297
|
+
☐ Human reads logic, approves architectural choices
|
|
298
|
+
☐ Multi-model review (Codex + Opus) for critical paths
|
|
299
|
+
☐ Logic retention: periodic quiz / agent educates human
|
|
300
|
+
|
|
301
|
+
CONTEXT DISCIPLINE:
|
|
302
|
+
☐ Structural decisions at <50% context (sharp zone)
|
|
303
|
+
☐ Right tokens > more tokens
|
|
304
|
+
☐ Compaction/handoffs planned
|
|
305
|
+
☐ 43k-token planning session > 3000-line diff re-steer
|
|
306
|
+
|
|
307
|
+
INCIDENT RESPONSE:
|
|
308
|
+
☐ Route alert → agent pipeline → PR (not 3am page)
|
|
309
|
+
☐ GLM 5.2 classifies: provider outage vs actionable fix
|
|
310
|
+
☐ Cron on Vercel/GH Actions + render.com inference
|
|
311
|
+
|
|
312
|
+
WHEN TO SKIP FOUR-LAYER:
|
|
313
|
+
☐ Pre-PMF: vibe faster, ship/learn/iterate
|
|
314
|
+
☐ Threshold: ~5+ engineers, paying users, 6-month horizon
|
|
315
|
+
```
|
|
316
|
+
|
|
317
|
+
---
|
|
318
|
+
|
|
319
|
+
## Related Resources
|
|
320
|
+
|
|
321
|
+
- **Original Video**: https://www.youtube.com/watch?v=xgkjtF89-44
|
|
322
|
+
- **OpenClawDatabase Deep-Dive**: https://openclawdatabase.com/news/videos/2026-08-07-program-design-system-agentic-engineering/
|
|
323
|
+
- **FrontierModels Summary**: https://frontiermodels.cc/video/ex-nasa-dev-reveals-his-agentic-engineering-workflow/
|
|
324
|
+
- **Zovi AI**: https://zoviai.com/ex-nasa-dev-reveals-his-agentic-engineering-workflow/
|
|
325
|
+
- **LinkedIn Analysis**: Wesley Stander breakdown
|
|
326
|
+
- **Reaction Podcast**: "Reacting to an Ex-NASA Dev's INSANE AI Engineering Workflow!"
|
|
327
|
+
- **Dylan Mulroy (Cloudflare)**: Program design advocacy
|
|
328
|
+
- **Victor Tali**: Pre-mortem confidence question technique
|
|
329
|
+
- **HumanLayer**: https://www.humanlayer.com/ (Dex's software factory platform)
|
|
330
|
+
- **Dexter Horthy**: https://x.com/dexhorthy
|
|
331
|
+
- **David Ondrej**: https://x.com/DavidOndrej1
|
|
332
|
+
|
|
333
|
+
---
|
|
334
|
+
|
|
335
|
+
## Appendix: Dex Horthy GitHub Profile (Source Context)
|
|
336
|
+
|
|
337
|
+
**Profile**: https://github.com/dexhorthy
|
|
338
|
+
**Date Fetched**: August 2026
|
|
339
|
+
**Relevance**: Primary source for the agentic engineering workflow framework documented above
|
|
340
|
+
|
|
341
|
+
---
|
|
342
|
+
|
|
343
|
+
### Profile Summary
|
|
344
|
+
|
|
345
|
+
**Dex Horthy** (@dexhorthy) — Ex-NASA dev, co-founder of HumanLayer, author of "12-Factor Agents" and "Agent Control Plane"
|
|
346
|
+
|
|
347
|
+
- **Followers**: 1.9k | **Following**: 47 | **Repos**: 163 | **Stars**: 152
|
|
348
|
+
- **Bio**: "Looking for a cool place to deploy my hugo site"
|
|
349
|
+
- **Links**: https://humanlayer.dev | X: @dexhorthy | LinkedIn: in/dexterihorthy
|
|
350
|
+
|
|
351
|
+
---
|
|
352
|
+
|
|
353
|
+
### Pinned Repositories (Top 3)
|
|
354
|
+
|
|
355
|
+
1. **humanlayer/humanlayer** (11.5k ⭐, 947 forks) — TypeScript
|
|
356
|
+
> "The best way to get AI coding agents to solve hard problems in complex codebases."
|
|
357
|
+
|
|
358
|
+
2. **humanlayer/agentcontrolplane** (474 ⭐, 61 forks) — Go
|
|
359
|
+
> "ACP is the Agent Control Plane - a distributed agent scheduler optimized for simplicity, clarity, and control. It is designed for outer-loop agents that run without supervision, and make asynchronous decisions."
|
|
360
|
+
|
|
361
|
+
3. **humanlayer/12-factor-agents** (25.8k ⭐, 2k forks) — TypeScript
|
|
362
|
+
> "What are the principles we can use to build LLM-powered software that is actually good enough to put in the hands of production customers?"
|
|
363
|
+
|
|
364
|
+
---
|
|
365
|
+
|
|
366
|
+
### Achievements
|
|
367
|
+
|
|
368
|
+
- ⭐ Starstruck (x4)
|
|
369
|
+
- 🤝 Pair Extraordinaire (x3)
|
|
370
|
+
- 🦈 Pull Shark (x4)
|
|
371
|
+
- ⚡ Quickdraw
|
|
372
|
+
- 🎯 YOLO
|
|
373
|
+
- 🧊 Arctic Code Vault Contributor
|
|
374
|
+
|
|
375
|
+
---
|
|
376
|
+
|
|
377
|
+
### Professional Context
|
|
378
|
+
|
|
379
|
+
**HumanLayer** (https://humanlayer.dev) — Dex's software factory platform implementing the principles in this document. The four-layer program design system, context engineering principles, vertical slice execution, and measurable goals framework were developed through running HumanLayer's "light software factory" (reviewing plans/tickets without reading code) and learning from its failure modes.
|
|
380
|
+
|
|
381
|
+
**Key Insight from Failure**: The July 2025 experiment where models kept diagnosing wrong causes for a shipping bug while nobody had read the code for 3 months directly produced the thesis: *"The odds of this happening to you are higher than the odds that models get good enough before it does."*
|
|
382
|
+
|
|
383
|
+
---
|
|
384
|
+
|
|
385
|
+
### Framework Genealogy
|
|
386
|
+
|
|
387
|
+
This document's framework synthesizes:
|
|
388
|
+
- **David Ondrej Podcast** (YouTube `xgkjtF89-44`) — Primary interview
|
|
389
|
+
- **OpenClawDatabase Deep-Dive** — Technical breakdown
|
|
390
|
+
- **FrontierModels Summary** — Key takeaways
|
|
391
|
+
- **Zovi AI** — Visual summary
|
|
392
|
+
- **Wesley Stander LinkedIn Analysis** — Professional context
|
|
393
|
+
- **Dylan Mulroy (Cloudflare)** — Program design advocacy
|
|
394
|
+
- **Victor Tali** — Pre-mortem confidence technique
|
|
395
|
+
- **HumanLayer Platform** — Production implementation
|