<?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: Mario Costa</title>
    <description>The latest articles on DEV Community by Mario Costa (@drumas).</description>
    <link>https://dev.to/drumas</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.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3858242%2Fb1464898-3d8d-4371-9c93-29966355d06f.jpg</url>
      <title>DEV Community: Mario Costa</title>
      <link>https://dev.to/drumas</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/drumas"/>
    <language>en</language>
    <item>
      <title>Stop Losing AI Context: A Cross-AI Workflow for Copilot, Claude, and Codex</title>
      <dc:creator>Mario Costa</dc:creator>
      <pubDate>Thu, 02 Apr 2026 19:29:02 +0000</pubDate>
      <link>https://dev.to/drumas/stop-losing-ai-context-a-cross-ai-workflow-for-copilot-claude-and-codex-28l3</link>
      <guid>https://dev.to/drumas/stop-losing-ai-context-a-cross-ai-workflow-for-copilot-claude-and-codex-28l3</guid>
      <description>&lt;h2&gt;
  
  
  The Problem: AI Amnesia
&lt;/h2&gt;

&lt;p&gt;You know the drill.&lt;/p&gt;

&lt;p&gt;Monday morning, you ask Copilot to help refactor an authentication module. You spend 45 minutes in chat, get a solid plan, implement half of it. Then you get interrupted by a meeting.&lt;/p&gt;

&lt;p&gt;Tuesday afternoon, you come back. Copilot has no memory of Monday. Claude doesn't know what Copilot suggested. You're starting from scratch.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Your context died in chat history.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;This isn't a tool problem. It's a &lt;strong&gt;workflow problem&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Solution: Artifact-Driven Development
&lt;/h2&gt;

&lt;p&gt;What if your AI assistants shared a single source of truth? What if state lived in your repository—not in ephemeral chat windows?&lt;/p&gt;

&lt;p&gt;Enter &lt;strong&gt;&lt;a href="https://github.com/mlucascosta/ia_boilerplate" rel="noopener noreferrer"&gt;IA Boilerplate&lt;/a&gt;&lt;/strong&gt; – a cross-AI workflow bootstrap that standardizes how Copilot, Claude, and Codex interact with your repo through shared artifacts, planning contracts, and execution rules.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;One workflow, any AI. State lives in Git, not chat history.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  How It Works (The 30-Second Version)
&lt;/h2&gt;

&lt;p&gt;Define objective → Plan atomic slice → Execute focused diff&lt;/p&gt;

&lt;p&gt;STATE.md → plans/PLAN.md → code changes&lt;/p&gt;

&lt;p&gt;↓ ↓ ↓&lt;/p&gt;

&lt;p&gt;ROADMAP.md → verification steps → TSDoc/PHPDoc&lt;/p&gt;

&lt;p&gt;(phased work) → done criteria → SOLID boundaries&lt;/p&gt;

&lt;p&gt;Every AI follows the same rules from the same source of truth. Planning artifacts are version-controlled. Summaries are capped at 180 words (token efficiency matters).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Trivial fix?&lt;/strong&gt; Edit directly.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Bug fix?&lt;/strong&gt; Short plan + validate.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;New feature or risky refactor?&lt;/strong&gt; Full workflow: map → plan → execute → verify → capture.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why This Matters
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Stop context drift&lt;/strong&gt; – Your state lives in &lt;code&gt;.planning/STATE.md&lt;/code&gt;, not in a chat that disappears overnight.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Built-in quality bar&lt;/strong&gt; – Complete in-code documentation (TSDoc/PHPDoc) and SOLID architecture are non-negotiable defaults. Not suggestions. Requirements.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Token-efficient by design&lt;/strong&gt; – Atomic loops, compact handoffs, and explicit scope boundaries reduce waste across every phase.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Auditable&lt;/strong&gt; – Every planning decision, every verification step, every summary is committed. You can see &lt;em&gt;why&lt;/em&gt; something was built six months later.&lt;/p&gt;

&lt;h2&gt;
  
  
  What's Inside v1.0.0
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Canonical workflow and artifact contracts (&lt;code&gt;docs/ai/WORKFLOW.md&lt;/code&gt;, &lt;code&gt;docs/ai/ARTIFACTS.md&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;Runtime adapters for Copilot, Claude, and Codex&lt;/li&gt;
&lt;li&gt;Bootstrap script to personalize the template for your project&lt;/li&gt;
&lt;li&gt;Conformance validation script (&lt;code&gt;scripts/validate-workflow.sh&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;Integration tests for the bootstrap process&lt;/li&gt;
&lt;li&gt;End-to-end usage example&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Multi-stack Todo API examples&lt;/strong&gt; (Node, Python, Go, Rust, PHP)&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Quick Start
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Clone and bootstrap&lt;/span&gt;
git clone https://github.com/mlucascosta/ia_boilerplate.git my-project
&lt;span class="nb"&gt;cd &lt;/span&gt;my-project
./scripts/bootstrap-template.sh &lt;span class="nt"&gt;--project-name&lt;/span&gt; &lt;span class="s2"&gt;"My Project"&lt;/span&gt;

&lt;span class="c"&gt;# Validate everything is wired correctly&lt;/span&gt;
bash scripts/validate-workflow.sh

&lt;span class="c"&gt;# Open the workflow and start&lt;/span&gt;
&lt;span class="c"&gt;# docs/ai/WORKFLOW.md   — execution contract&lt;/span&gt;
&lt;span class="c"&gt;# .planning/STATE.md    — set your current objective here&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Prerequisites:&lt;/strong&gt; &lt;code&gt;git&lt;/code&gt;, &lt;code&gt;node&lt;/code&gt;, &lt;code&gt;npx&lt;/code&gt; (comes with Node.js).&lt;/p&gt;

&lt;h2&gt;
  
  
  Real-World Example
&lt;/h2&gt;

&lt;p&gt;Let's say you need to add a rate-limiting feature to your API.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Without this workflow:&lt;/strong&gt; You explain the requirement to Copilot. It suggests a plan. You implement. Two days later, Claude has no context. You re-explain. Someone asks why you chose Redis over in-memory store. You don't remember.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;With this workflow:&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;You write the objective in &lt;code&gt;.planning/STATE.md&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;AI generates &lt;code&gt;plans/PLAN.md&lt;/code&gt; with verification steps&lt;/li&gt;
&lt;li&gt;You review the plan (it's committed – everyone sees it)&lt;/li&gt;
&lt;li&gt;AI executes, following SOLID + documentation rules&lt;/li&gt;
&lt;li&gt;Results logged to &lt;code&gt;verification/&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Next state step captured in &lt;code&gt;STATE.md&lt;/code&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Every AI sees the same artifacts. The rationale is documented. Your future self (and your team) will thank you.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Philosophy
&lt;/h2&gt;

&lt;p&gt;This isn't about replacing developers. It's about making AI-assisted delivery &lt;strong&gt;predictable, portable, and auditable&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Treat documentation as operational memory. Make planning and execution artifact-driven instead of chat-history-driven. Keep workflow expectations explicit, reviewable, and durable.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Influences:&lt;/strong&gt; This setup combines ideas from &lt;code&gt;J-Pster/Psters_AI_Workflow&lt;/code&gt; and &lt;code&gt;gsd-build/get-shit-done&lt;/code&gt; – credited in the README. Evolution, not plagiarism.&lt;/p&gt;

&lt;h2&gt;
  
  
  Current Status
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;v1.0.0&lt;/strong&gt; – The workflow contract, tooling, and examples are in place. Tests exist. Multi-stack examples are done.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What's coming:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Cross-platform install docs (Linux, WSL, Windows)&lt;/li&gt;
&lt;li&gt;Migration tooling for future v1.x → v2.x upgrades&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Who Is This For?
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Solo developers&lt;/strong&gt; who use multiple AI tools (Copilot at work, Claude/Codex for side projects)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Teams&lt;/strong&gt; that want consistent, auditable AI-assisted development&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Anyone tired of repeating themselves&lt;/strong&gt; across AI sessions&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Try It Today
&lt;/h2&gt;

&lt;p&gt;GitHub: &lt;strong&gt;&lt;a href="https://github.com/mlucascosta/ia_boilerplate" rel="noopener noreferrer"&gt;github.com/mlucascosta/ia_boilerplate&lt;/a&gt;&lt;/strong&gt; ⭐ Star if you find it useful – it helps others discover the project.&lt;/p&gt;

&lt;p&gt;MIT Licensed. Contributions welcome.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Stop losing context. Start shipping.&lt;/em&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  Appendix: Quick Commands Reference
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Bootstrap a new project&lt;/span&gt;
./scripts/bootstrap-template.sh &lt;span class="nt"&gt;--project-name&lt;/span&gt; &lt;span class="s2"&gt;"Your Project"&lt;/span&gt;

&lt;span class="c"&gt;# Validate workflow conformance&lt;/span&gt;
bash scripts/validate-workflow.sh

&lt;span class="c"&gt;# Run integration tests&lt;/span&gt;
bash tests/test-bootstrap.sh
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;p&gt;&lt;strong&gt;Did this resonate?&lt;/strong&gt; Drop a comment below or open an issue on GitHub. I'd love to hear how you're solving the AI context problem in your workflow.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>programming</category>
      <category>productivity</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
