Skip to content

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Stepan flows

Personal flow collection for Stepan, a CLI for agent workflows. Definitions live in .stepan/flows/<name>/.

Install

Requires Stepan with the install command, Node.js 22+ and Git on PATH. Run from the project where you want to use the flow:

stepan install grinev/stepan-flows --flow plan-and-implement
stepan start plan-and-implement "Try Stepan"

Omit --flow to install every flow. Use --ref <branch|tag|commit> to select a version. Existing destinations are never overwritten. Installed definitions are editable project files; commit .stepan/flows/ and ignore .stepan/runs/.

Flows

  • plan-and-implement — plan → approve-plan → implement → finish. The user explicitly approves the current plan before implementation; requested changes return to planning and another approval. Passes the plan file path, user feedback, and implementation summary between steps. No specific harness, tracker, or subagent required.

The agent must write the plan to a Markdown file before leaving plan, using the project's prescribed location or .stepan/plans/<run-id>.md by default. Here <run-id> is the actual ID printed by Stepan, not a literal filename. The plan outcome contains the project-relative file path, not the plan text. Requested changes update the same file with the complete revised plan.

At approve-plan, the agent reads the file, shows the approach and file path, and waits for an explicit answer using the harness's question tool, if available, or chat otherwise. It must not call next while waiting. Approval applies only to that plan version. Planning does not implement the task; the final step summarizes work and checks without authorizing a commit or push. Independent review is not part of this minimal flow: self-checks are not a substitute for a separate reviewer.

Follow each instruction, then report its actual outcome with the printed stepan next <run-id> ... template. The final step also needs next. Resume with stepan current <run-id>; recover IDs with stepan runs.

Read a flow before asking an agent to follow it. Installation validates its format, not the safety of its instructions. Stepan validates the reported decision and routes the flow, but does not independently verify that the user approved the plan, that the plan file exists, or that checks ran. Writing the file and obtaining real approval remain the agent's responsibility.

License

MIT

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors