Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Show HN: Recursive-Mode for Coding Agents (recursive-mode.dev)
6 points by try-working 70 days ago | hide | past | favorite | 1 comment
recursive-mode is an installable skill package for coding agents. It gives your agent a file-backed workflow for requirements, planning, implementation, testing, review, closeout, and memory, instead of leaving the whole process scattered in context.

Long-running agent work has a common failure mode: requirements, decisions, and plans live in the conversation. Once the session ends or the context window overflows, the agent loses track of what was decided, what was implemented, and why.

recursive-mode solves context rot by making repository documents the source of truth for every phase. Requirements, plans, evidence, state, and decisions live in files that persist across sessions, contributors, and repositories. Prompts become short commands, not full specs.

The workflow is built on a few simple rules. Each development phase produces one locked output document. Each phase uses earlier phase outputs as input. Before the agent can exit a phase and move forward, it must satisfy defined criteria based on the workflow and prior docs.

It is called recursive-mode because the workflow keeps revisiting its own outputs. Later phases consume earlier artifacts. Audited phases loop through draft, audit, repair, and re-audit until the work is actually ready. Closeout feeds validated lessons back into decisions, state.

The generated docs are both human-readable and machine-readable. They give strong traceability for what was built, why it was built that way, what changed, and how it was validated. Instead of reconstructing rationale from chat logs, you can point directly to the repo artifacts.

That also makes recursive-mode useful beyond day-to-day development. The run docs, together with code diffs in the worktrees, form a high-quality dataset for fine-tuning, auto-training, or self-distillation against your own codebase and engineering process.

Chat is treated more like a CLI. You use it for commands, not as the place where critical project knowledge lives. You can refine a plan with the agent, ask it to turn that plan into a new recursive run, or create the run folder and requirements doc yourself, and tell the agent to "implement run 01" to start the run.

recursive-mode is a free open source alternative to Missions. It is for developers and teams who want auditable agent runs, recorded evidence, and long or resumable work that can continue without losing context.

Installation:

npx skills add try-works/recursive-mode --skill '*' --full-depth

skills.sh:

https://skills.sh/try-works/recursive-mode/recursive-mode

GitHub:

https://github.com/try-works/recursive-mode

For detailed documentation:

https://recursive-mode.dev/

Write-up with benchmark:

https://try.works/recursive-mode-for-coding-agents



This resonates with something I've been working on from the opposite direction. Recursive-mode solves context rot for the development process — requirements and plans as persistent files instead of chat history.

I hit the same problem but with research papers: the knowledge an agent needs to implement a technique from a paper gets lost across sessions. So I built a tool that converts papers into structured markdown files with YAML triggers, every equation with variables defined, and full result tables — designed to sit in the repo alongside the code.

The "locked output document" concept maps well here. A skill file is essentially a locked extraction of a paper's implementation-relevant content. Once generated, it doesn't change, and any agent session can consume it without re-reading the source.

Interesting to think about combining the two: recursive-mode for the dev workflow, with skill files as the "knowledge layer" that feeds into requirements and planning phases.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: