<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Divyek Soni</title>
    <description>The latest articles on DEV Community by Divyek Soni (@divyekksoni).</description>
    <link>https://dev.to/divyekksoni</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4240123%2F8376e783-04f0-4dc2-8318-de86b67b178a.jpg</url>
      <title>DEV Community: Divyek Soni</title>
      <link>https://dev.to/divyekksoni</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/divyekksoni"/>
    <language>en</language>
    <item>
      <title>Hexaphase: Make the Repo the Memory. An SDLC Framework for Coding with AI</title>
      <dc:creator>Divyek Soni</dc:creator>
      <pubDate>Fri, 13 Nov 2026 18:29:52 +0000</pubDate>
      <link>https://dev.to/divyekksoni/hexaphase-make-the-repo-the-memory-an-sdlc-framework-for-coding-with-ai-2b95</link>
      <guid>https://dev.to/divyekksoni/hexaphase-make-the-repo-the-memory-an-sdlc-framework-for-coding-with-ai-2b95</guid>
      <description>&lt;h2&gt;
  
  
  The problem nobody standardized
&lt;/h2&gt;

&lt;p&gt;In about two years, AI went from autocomplete to agents that write whole features. Yet our &lt;em&gt;process&lt;/em&gt; for using it is improvised. Each developer invents their own prompts, their own context files and their own habits. Projects built that way tend to share three symptoms:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Amnesia.&lt;/strong&gt; Every session starts from zero. The AI re-learns the project, or worse, guesses.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Skipped thinking.&lt;/strong&gt; It's so easy to generate code that planning, design and testing quietly disappear.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Sprawl.&lt;/strong&gt; Code, notes, experiments and docs end up mixed together in one folder.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Agile and Scrum standardized how teams &lt;em&gt;organize work&lt;/em&gt;. Hexaphase is an attempt to standardize how humans and AI &lt;em&gt;organize a project&lt;/em&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  The whole framework in one picture
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;your-project/
├── ai-instructions.md
├── project-health.md
├── 1-Planning/
├── 2-Analysis/
├── 3-Design/
├── 4-Coding/
│   ├── main-app/
│   └── &amp;lt;supporting-app&amp;gt;/
├── 5-Testing/
└── 6-Deployment/
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Two root files
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;ai-instructions.md&lt;/code&gt;&lt;/strong&gt; is a tool-agnostic contract: where things belong, how sessions start and end, and the rules (don't skip gates, ask instead of assuming, no secrets, no destructive actions).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;project-health.md&lt;/code&gt;&lt;/strong&gt; is the single source of truth: current phase, gate approvals, risks, decisions and a session log, newest first.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Six numbered folders
&lt;/h3&gt;

&lt;p&gt;The numbers encode the order of work &lt;em&gt;and&lt;/em&gt; keep the folders sorted identically in every IDE and in every AI's context. All application code lives in &lt;code&gt;4-Coding/&lt;/code&gt;. &lt;code&gt;main-app/&lt;/code&gt; is always the thing you launch, and every supporting app gets its own folder.&lt;/p&gt;

&lt;h3&gt;
  
  
  Three rituals
&lt;/h3&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Ritual&lt;/th&gt;
&lt;th&gt;What happens&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;Hexaphase Session Start&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;The AI reads the rules, the health file and the current phase, then states the plan before acting&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;Hexaphase Session End&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;The AI logs what changed, what's next and open questions&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Phase Gate&lt;/td&gt;
&lt;td&gt;A human approves the phase deliverables&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Why this works
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Files outlive sessions.&lt;/strong&gt; Context windows reset; &lt;code&gt;project-health.md&lt;/code&gt; doesn't.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Gates restore the thinking step.&lt;/strong&gt; The AI can draft a design in seconds. The gate just makes sure someone looked at it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Traceability for free.&lt;/strong&gt; Requirement IDs (&lt;code&gt;US-03&lt;/code&gt;) flow from planning to design, code commits and test cases.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Tool independence.&lt;/strong&gt; It's just Markdown and folders. Switch from Claude Code to Gemini CLI tomorrow and nothing breaks.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Tested, not just proposed
&lt;/h2&gt;

&lt;p&gt;Before release I ran the same script in a fresh session of each supported tool: &lt;code&gt;Hexaphase Session Start&lt;/code&gt; → "write scope.md" → &lt;code&gt;Hexaphase Session End&lt;/code&gt;.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Tool&lt;/th&gt;
&lt;th&gt;Result&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Claude Code&lt;/td&gt;
&lt;td&gt;✅ 9/9 checks (55 s): read the rules unprompted, stated the phase, waited for approval, logged the session, never self-approved a gate&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Gemini CLI&lt;/td&gt;
&lt;td&gt;✅ 9/9 checks (40 s, &lt;code&gt;gemini-3-flash-preview&lt;/code&gt;)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Other tools (Cursor, Copilot, Codex, ChatGPT) should work, since it's all Markdown, but they're not verified yet. The guide explains how to try them.&lt;/p&gt;

&lt;h2&gt;
  
  
  A real example, built in public
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://github.com/divyekksoni/hexaphase-sample-spendcli" rel="noopener noreferrer"&gt;SpendCLI&lt;/a&gt; is a small expense-tracking CLI I'm building with Hexaphase Lite right now. It's in progress, and you can follow along live: each phase lands in the repo as it's done (planning docs, design notes, code in &lt;code&gt;4-Coding/main-app/&lt;/code&gt;, the test checklist, the deployment), and &lt;code&gt;project-health.md&lt;/code&gt; shows the current phase, which gates are approved, and the full Session Log.&lt;/p&gt;

&lt;h2&gt;
  
  
  It's not waterfall
&lt;/h2&gt;

&lt;p&gt;Going back is expected. A failing test can reopen the design; the change is logged in the Decisions Log, and work moves on. For bigger products, run the six phases per feature inside your sprints.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Get the template: &lt;code&gt;npx degit divyekksoni/hexaphase/template my-app&lt;/code&gt; (or download the repo ZIP and copy the &lt;code&gt;template/&lt;/code&gt; folder).&lt;/li&gt;
&lt;li&gt;Fill in the project overview in &lt;code&gt;ai-instructions.md&lt;/code&gt;, or ask the AI to interview you and fill it in.&lt;/li&gt;
&lt;li&gt;Open the project in Claude Code or Gemini CLI and type &lt;strong&gt;&lt;code&gt;Hexaphase Session Start&lt;/code&gt;&lt;/strong&gt;. End with &lt;strong&gt;&lt;code&gt;Hexaphase Session End&lt;/code&gt;&lt;/strong&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;New to coding? The README has a &lt;a href="https://github.com/divyekksoni/hexaphase#if-youre-new-to-coding" rel="noopener noreferrer"&gt;step-by-step Quick Start&lt;/a&gt; that assumes no programming experience.&lt;/p&gt;

&lt;p&gt;👉 &lt;strong&gt;github.com/divyekksoni/hexaphase&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Early-adopter study:&lt;/strong&gt; use Hexaphase on a real project for 4 weeks and share honest feedback. It will shape v1.1 and a research paper. Sign up: &lt;a href="https://forms.gle/gQLAMtDLiK3H16xe9" rel="noopener noreferrer"&gt;https://forms.gle/gQLAMtDLiK3H16xe9&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Case studies are welcome too, both successes and failures. Open an issue with the &lt;code&gt;case-study&lt;/code&gt; label.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Hexaphase™ is created by Divyek Soni and released under CC BY 4.0 (docs) and MIT (template). Cite it: &lt;a href="https://doi.org/10.5281/zenodo.24029073" rel="noopener noreferrer"&gt;10.5281/zenodo.24029073&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>architecture</category>
      <category>development</category>
      <category>softwareengineering</category>
    </item>
  </channel>
</rss>
