drom-flow

Structured workflows, parallel grok sub-agents, and closed-loop pipelines for Claude Code

View the Project on GitHub drompincen/drom-flow

Plans and closed loops

Chapter-based plans

Plans live in drom-plans/ as markdown with YAML frontmatter, broken into chapters — each a logical phase with its own steps. Chapter status runs pendingin-progresscompleted, and the session-start hook surfaces any plan still in progress.

---
title: Add Auth Middleware
status: in-progress
current_chapter: 2
---

## Chapter 2: Implementation
**Status:** in-progress
- [x] Create auth middleware module
- [ ] Add token validation

Create them with /planner. On resume, read the plan’s current chapter, not the whole file — a long plan is expensive, and every turn re-reads resident context.

Closed loops

A closed loop is: check → analyse → fix in parallel → re-check, repeating until a machine-checked pass condition holds or a max-iteration cap is reached.

The discipline that makes it work:

/orchestrator runs these; workflows/closed-loop.md is the protocol. Real example: a QA pipeline took 134 visual issues to 0 in 15 iterations.

Gates, honestly

A loop is only as good as its pass condition. Write gates that can fail for the right reason — and when a gate fails because your checker is wrong rather than the work, fix the checker rather than loosening the gate.