<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
    <channel>
        <title>Platform Documentation Blog</title>
        <link>https://docs.dev.sparq-qd.com/blog</link>
        <description>Platform Documentation Blog</description>
        <lastBuildDate>Wed, 17 Jun 2026 00:00:00 GMT</lastBuildDate>
        <docs>https://validator.w3.org/feed/docs/rss2.html</docs>
        <generator>https://github.com/jpmonette/feed</generator>
        <language>en</language>
        <item>
            <title><![CDATA[AI-Assisted Development on the Cogrion Platform]]></title>
            <link>https://docs.dev.sparq-qd.com/blog/ai-assisted-development</link>
            <guid>https://docs.dev.sparq-qd.com/blog/ai-assisted-development</guid>
            <pubDate>Wed, 17 Jun 2026 00:00:00 GMT</pubDate>
            <description><![CDATA[Walk the engineering floor and you'll see three different workflows. Some engineers work fully manually — reading code, checking logs, navigating repos the old-fashioned way. Others alt-tab between their editor and a browser, copy-pasting context into ChatGPT, Claude, or Gemini to get a second opinion. A few have Claude Code or Cursor set up and are using AI inline.]]></description>
            <content:encoded><![CDATA[<p>Walk the engineering floor and you'll see three different workflows. Some engineers work fully manually — reading code, checking logs, navigating repos the old-fashioned way. Others alt-tab between their editor and a browser, copy-pasting context into ChatGPT, Claude, or Gemini to get a second opinion. A few have Claude Code or Cursor set up and are using AI inline.</p>
<p>All three hit the same wall: the AI has no idea what the platform is.</p>
<!-- -->
<p>Every session starts with re-explaining. What repos exist. What each service does. Where authentication lives. What happens when a stack deploys. Whether you're in a browser tab or an AI-powered editor, you're burning the first five exchanges just getting the assistant up to speed — and then starting over tomorrow.</p>
<p><code>cpa</code> is how we fix that for everyone, regardless of which tool they use.</p>
<hr>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="the-problem-with-cold-ai-sessions">The Problem With Cold AI Sessions<a href="https://docs.dev.sparq-qd.com/blog/ai-assisted-development#the-problem-with-cold-ai-sessions" class="hash-link" aria-label="Direct link to The Problem With Cold AI Sessions" title="Direct link to The Problem With Cold AI Sessions" translate="no">​</a></h2>
<p>AI assistants are stateless by default. Every new session, they know nothing about your platform. They don't know that <code>control-plane</code> handles provisioning, that <code>cluster-agent-python</code> runs inside tenant clusters, or that AWS credentials flow through SSO profiles named after accounts.</p>
<p>So you spend the first few exchanges teaching. Then you ask your actual question. Then the session ends, and tomorrow you do it again.</p>
<p>There's a second problem: every AI tool has its own convention for context files. <code>CLAUDE.md</code> for Claude Code. <code>.github/copilot-instructions.md</code> for Copilot. <code>.cursor/rules/</code> for Cursor. <code>GEMINI.md</code> for Gemini. If you maintain them separately, they drift. They go stale. They start contradicting each other. Pick one to update and the others rot.</p>
<hr>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="introducing-cpa--the-cogrion-platform-agent-cli">Introducing <code>cpa</code> — The Cogrion Platform Agent CLI<a href="https://docs.dev.sparq-qd.com/blog/ai-assisted-development#introducing-cpa--the-cogrion-platform-agent-cli" class="hash-link" aria-label="Direct link to introducing-cpa--the-cogrion-platform-agent-cli" title="Direct link to introducing-cpa--the-cogrion-platform-agent-cli" translate="no">​</a></h2>
<p>We replaced our old bootstrap script with a proper CLI tool: <code>cpa</code>. Same outcome, zero curl-pipe anxiety, and a set of day-two commands that actually make the tool useful beyond the first setup.</p>
<p>Here's how to get from zero to a fully context-aware AI workspace in under two minutes.</p>
<hr>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="step-1--install">Step 1 — Install<a href="https://docs.dev.sparq-qd.com/blog/ai-assisted-development#step-1--install" class="hash-link" aria-label="Direct link to Step 1 — Install" title="Direct link to Step 1 — Install" translate="no">​</a></h2>
<div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#393A34"><span class="token plain">pipx install "git+https://github.com/cogrion/cogrion-platform-agent.git#subdirectory=src/agent-server"</span><br></div><div class="token-line" style="color:#393A34"><span class="token plain">cpa install</span><br></div></code></pre></div></div>
<p><code>cpa install</code> writes a default config to <code>~/.config/cogrion/cogrion.env</code>, auto-detects your git identity and GitHub username, and registers the MCP server with Claude Code — so the platform agent is available as a tool the moment you open your editor.</p>
<hr>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="step-2--create-a-workspace">Step 2 — Create a Workspace<a href="https://docs.dev.sparq-qd.com/blog/ai-assisted-development#step-2--create-a-workspace" class="hash-link" aria-label="Direct link to Step 2 — Create a Workspace" title="Direct link to Step 2 — Create a Workspace" translate="no">​</a></h2>
<blockquote>
<p><strong>Create a dedicated empty folder first.</strong> <code>cpa setup</code> clones repos and generates a VS Code-compatible workspace file at the working directory level — don't run it inside an existing project.</p>
</blockquote>
<div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#393A34"><span class="token plain">mkdir ~/cogrion-workspace &amp;&amp; cd ~/cogrion-workspace</span><br></div><div class="token-line" style="color:#393A34"><span class="token plain">cpa setup</span><br></div></code></pre></div></div>
<p>The setup wizard walks you through three things:</p>
<ol>
<li class=""><strong>Prerequisites check</strong> — confirms Claude Code is installed and your AWS SSO session is active</li>
<li class=""><strong>Persona selection</strong> — are you a CPA Developer, Platform/DevOps, or Fullstack engineer? This determines which skill file gets loaded into your AI context</li>
<li class=""><strong>Workspace generation</strong> — picks up your editor (VS Code, Cursor, or Windsurf) and creates the matching workspace file</li>
</ol>
<p>When it's done, you have:</p>
<ul>
<li class="">A <code>.agents/</code> folder with <code>AGENTS.md</code> (platform context) and your persona's skill file</li>
<li class="">Root symlinks so every AI tool reads the same source: <code>CLAUDE.md</code>, <code>GEMINI.md</code>, <code>.github/copilot-instructions.md</code> — all pointing to one file, no drift</li>
<li class="">A workspace file with <code>.agents/</code> listed first so Claude Code loads context automatically on open</li>
</ul>
<hr>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="step-3--open-and-ask">Step 3 — Open and Ask<a href="https://docs.dev.sparq-qd.com/blog/ai-assisted-development#step-3--open-and-ask" class="hash-link" aria-label="Direct link to Step 3 — Open and Ask" title="Direct link to Step 3 — Open and Ask" translate="no">​</a></h2>
<div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#393A34"><span class="token plain">code ./cogrion-&lt;suffix&gt;.code-workspace</span><br></div></code></pre></div></div>
<p>Then type this in Claude Code:</p>
<div class="language-text codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-text codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#393A34"><span class="token plain">getting started</span><br></div></code></pre></div></div>
<p>That's your trigger phrase. Claude reads your persona, follows the matching skill file, validates your setup, and orients you to the platform based on your role. If anything is missing (AWS profile, GitHub token), it tells you exactly what to do.</p>
<hr>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="what-the-ai-gets">What the AI Gets<a href="https://docs.dev.sparq-qd.com/blog/ai-assisted-development#what-the-ai-gets" class="hash-link" aria-label="Direct link to What the AI Gets" title="Direct link to What the AI Gets" translate="no">​</a></h2>
<p><strong><code>AGENTS.md</code></strong> is the cross-tool standard under the Linux Foundation's AAIF. Every AI tool in your workspace reads it. It gives the assistant:</p>
<ul>
<li class="">What Cogrion is and how the BYOC model works</li>
<li class="">The full repo map with what each service does</li>
<li class="">Where to look for answers — <code>platform-docs</code> for behavior, service repos for implementation</li>
<li class="">Global code conventions, commit rules, and pre-commit checklist</li>
</ul>
<p><strong>Skill files</strong> go deeper per persona. A CPA Developer gets step-by-step validation for the agent server. Platform/DevOps gets cluster registry navigation and EKS tooling. Each skill is a compact, role-specific runbook.</p>
<p><strong>Per-repo <code>AGENTS.md</code> files</strong> handle the rest. The proximity rule means the closest <code>AGENTS.md</code> to the file you're editing wins. When you're in <code>cogrion-platform-agent/</code>, that repo's rules take over — lazy gateway pattern, CPA_ constants prefix, structlog over print, the full context — without you doing anything.</p>
<hr>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="day-two-status-and-upgrades">Day Two: Status and Upgrades<a href="https://docs.dev.sparq-qd.com/blog/ai-assisted-development#day-two-status-and-upgrades" class="hash-link" aria-label="Direct link to Day Two: Status and Upgrades" title="Direct link to Day Two: Status and Upgrades" translate="no">​</a></h2>
<p>Setup is a one-time thing. Here's what you reach for day-to-day:</p>
<p><strong>Check your environment is healthy:</strong></p>
<div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#393A34"><span class="token plain">cpa status</span><br></div></code></pre></div></div>
<p>Runs readiness checks across config, AWS SSO, GitHub auth, and MCP registration. Shows exactly what's broken and how to fix it — no guessing.</p>
<p><strong>Stay current:</strong></p>
<div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#393A34"><span class="token plain">cpa upgrade</span><br></div></code></pre></div></div>
<p>Pulls the latest version via pipx. New rules in <code>AGENTS.md</code>, new skills, new integrations — everything updates in one command. Re-run <code>cpa setup</code> afterward to re-seed the context into your workspace.</p>
<hr>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="the-shift-this-creates">The Shift This Creates<a href="https://docs.dev.sparq-qd.com/blog/ai-assisted-development#the-shift-this-creates" class="hash-link" aria-label="Direct link to The Shift This Creates" title="Direct link to The Shift This Creates" translate="no">​</a></h2>
<p>The goal isn't to make AI faster at answering questions you already know how to answer. It's to make it genuinely useful for questions you'd otherwise have to context-switch to answer yourself — live cluster state, GitHub repo structure, which stack a tenant is running.</p>
<p>When the AI already knows the platform, those questions become cheap. You stop re-explaining. You start getting answers.</p>
<p>The full setup guide lives in <a class="" href="https://docs.dev.sparq-qd.com/developer-setup">Developer Setup</a>.</p>]]></content:encoded>
            <category>tooling</category>
            <category>developer-experience</category>
            <category>ai</category>
        </item>
    </channel>
</rss>