What I tried
On November 21, 2026, AWS Japan published Reverse Spec Flow (RSF) on AWS Samples. It is a workflow that reads an existing code base and writes specifications for AI agents to use. The target is code with no specs, outdated specs, or code nobody understands anymore.
I wanted to see the whole loop on something small, so I did three things:
Ran RSF on a 300-line PHP + MySQL app I wrote for this test
Gave only the generated specs to another AI agent and had it rebuild the app in TypeScript
Deployed the rebuild to AWS with the AWS CDK and checked it against the old logic
Announcement (Japanese): https://aws.amazon.com/jp/blogs/news/aidm-introducing-reverse-spec-flow/
Repository: https://github.com/aws-samples/sample-reverse-spec-flow
How RSF works in five phases
RSF splits the work into five phases. Phase 0 pins the commit and decides the scope. Phase 1 builds a code graph, a list of modules, entry points, and external connections.…