<?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>Constellation Blog</title>
        <link>https://blog.constellationdev.io/</link>
        <description>Insights on AI coding agents, codebase intelligence, and developer workflows</description>
        <lastBuildDate>Thu, 06 Aug 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>
        <copyright>Copyright © 2026 ShiftinBits Inc.</copyright>
        <item>
            <title><![CDATA[One Plugin, Every Agent: Why the Agent Plugins Spec Matters]]></title>
            <link>https://blog.constellationdev.io/2026/08/06/agent-plugins-spec</link>
            <guid>https://blog.constellationdev.io/2026/08/06/agent-plugins-spec</guid>
            <pubDate>Thu, 06 Aug 2026 00:00:00 GMT</pubDate>
            <description><![CDATA[The Agent Plugins specification 1.0.0 is here, an open, vendor-neutral standard for packaging skills and MCP servers into portable plugins. We maintain six bespoke client plugins, so we have opinions. Mostly gratitude.]]></description>
            <content:encoded><![CDATA[<p><em>Six plugins. One feature. That math never made sense.</em></p>
<p>Constellation ships a plugin for Claude Code. And one for Codex. And Copilot, Cursor, Antigravity, and OpenCode. Every one of them delivers the same thing: our MCP server plus a handful of skills that teach the agent when to reach for code intelligence. Six repositories, six manifest formats, six sets of installation docs, six release pipelines. The content is identical. The packaging never was.</p>
<p>So when the <a href="https://agent-plugins.org/" target="_blank" rel="noopener noreferrer" class="">Agent Plugins specification</a> hit 1.0.0, an open, vendor-neutral standard for packaging exactly this kind of thing, we didn't just take notice. We celebrated. This post is about why the spec matters, what it actually standardizes, where it still has gaps, and what we built with it.</p>
<!-- -->
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="the-fragmentation-tax">The Fragmentation Tax<a href="https://blog.constellationdev.io/2026/08/06/agent-plugins-spec#the-fragmentation-tax" class="hash-link" aria-label="Direct link to The Fragmentation Tax" title="Direct link to The Fragmentation Tax" translate="no">​</a></h2>
<p>Back in April we <a class="" href="https://blog.constellationdev.io/2026/04/20/ai-tool-plugins">broke down the extension primitives</a> that AI coding tools expose: instructions, skills, rules, commands, and hooks, and how plugins bundle them into shareable packages. We closed that post with an observation: the concepts were converging across the ecosystem, but the terminology and file layouts were not. Every client had invented its own dialect.</p>
<p>That divergence is not an abstract concern for us. It's a line item.</p>
<p>A skill is a markdown file with frontmatter. It is the most portable artifact imaginable. And yet, to deliver the <em>same markdown file</em> to six agent clients, we maintained six repositories with six different directory conventions, six manifest schemas, and six answers to the question "where does the MCP server config go?" When we improved a skill, we propagated the change six times. When a client changed its plugin format, we chased it.</p>
<p>We were not alone. Every team publishing agent extensions paid the same tax, and every client that launched a plugin system added a new column to the spreadsheet. The ecosystem was rediscovering a very old lesson: <strong>when every platform invents its own package format, authors become porters.</strong></p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="what-the-spec-actually-standardizes">What the Spec Actually Standardizes<a href="https://blog.constellationdev.io/2026/08/06/agent-plugins-spec#what-the-spec-actually-standardizes" class="hash-link" aria-label="Direct link to What the Spec Actually Standardizes" title="Direct link to What the Spec Actually Standardizes" translate="no">​</a></h2>
<p>The Agent Plugins specification takes a refreshingly modest approach. In its own words, it defines "a small interoperability floor for the parts that can be portable across clients." It does not try to standardize how clients surface plugins to users, how they're distributed or installed, or how permissions work. Those stay under each client's control, where they belong.</p>
<p>What it does standardize is the package itself:</p>
<ul>
<li class=""><strong><code>plugin.json</code></strong>, a manifest at the plugin root that identifies the plugin and the spec version it targets. The schema is deliberately closed: a name, optional metadata like version, description, author, and license, and nothing else.</li>
<li class=""><strong><code>skills/</code></strong>, a directory where each child folder containing a <code>SKILL.md</code> is one skill. The skill format itself is governed by the Agent Skills specification, which the plugin spec simply points at rather than reinventing.</li>
<li class=""><strong><code>mcp.json</code></strong>, a configuration file for Model Context Protocol servers, supporting stdio, streamable HTTP, and legacy SSE transports, with plugin-relative paths and placeholders like <code>${PLUGIN_ROOT}</code> so packages stay relocatable.</li>
<li class=""><strong>Reverse-domain extension namespaces</strong>, an escape hatch for client-specific data. A client can stash its own configuration under a key like <code>com.example.client</code> without breaking portability, and every other client just ignores it.</li>
</ul>
<p>That's the whole surface. Two component types, one manifest, one predictable directory structure. A conformant client can walk any conformant plugin and know exactly what it will find:</p>
<!-- -->
<p>The portable core (blue) is what every client reads the same way. The extension namespaces (dashed) carry client-specific data without breaking the package for anyone else.</p>
<p>If that sounds small, that's the point. The history of successful interoperability standards is a history of small, boring cores with room to grow. The spec resisted the temptation to boil the ocean, and the result is something every client can actually implement.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="why-the-governance-gives-us-hope">Why the Governance Gives Us Hope<a href="https://blog.constellationdev.io/2026/08/06/agent-plugins-spec#why-the-governance-gives-us-hope" class="hash-link" aria-label="Direct link to Why the Governance Gives Us Hope" title="Direct link to Why the Governance Gives Us Hope" translate="no">​</a></h2>
<p>A specification is only as good as the coalition behind it, and this is where we went from interested to genuinely optimistic.</p>
<p>The Technical Steering Committee includes core maintainers from <strong>Amazon, Cursor, Microsoft, OpenAI, and Vercel</strong>. Read that list again. These are competing platforms, several of which built the very bespoke plugin systems this spec consolidates, agreeing on a common package format. Feature proposals start in public GitHub Discussions, portability requirements get debated in the open, and the spec only adopts what implementers actually commit to. The whole thing is <a href="https://github.com/agentplugins/agent-plugins-spec" target="_blank" rel="noopener noreferrer" class="">openly licensed and developed in public</a>.</p>
<p>We want to say this plainly, because it's the reason this post exists: <strong>thank you.</strong> Standardization work is thankless, slow, and full of meetings. Nobody ships a flashy demo of a JSON schema. The maintainers who sat down, set aside their own formats' quirks, and negotiated a common floor did the unglamorous work that ecosystems are built on. Package authors everywhere are the beneficiaries.</p>
<p>We've seen this movie before, and it ends well. LSP meant language tooling authors stopped writing one integration per editor. MCP meant tool builders stopped writing one integration per agent. Agent Plugins extends the same logic to the knowledge layer: write your skills once, configure your server once, and let any conformant client load the result.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="what-the-spec-leaves-out-for-now">What the Spec Leaves Out (For Now)<a href="https://blog.constellationdev.io/2026/08/06/agent-plugins-spec#what-the-spec-leaves-out-for-now" class="hash-link" aria-label="Direct link to What the Spec Leaves Out (For Now)" title="Direct link to What the Spec Leaves Out (For Now)" translate="no">​</a></h2>
<p>Celebration doesn't require pretending the floor is a ceiling. Version 1.0.0 is explicit about its limits: "Agent Plugins v1 defines exactly two component types: skills and MCP servers. Other component types are outside the v1 format."</p>
<p>Measured against the <a class="" href="https://blog.constellationdev.io/2026/04/20/ai-tool-plugins">full set of primitives</a> the richest clients support today, that leaves real gaps:</p>
<ul>
<li class=""><strong>Hooks.</strong> Claude Code plugins can ship event-driven scripts that run before or after tool calls, the system-level immune system we wrote about in April. The spec has no portable equivalent, and hooks are arguably the hardest primitive to standardize: they execute arbitrary code at privileged moments, so a portable format needs a permission story first.</li>
<li class=""><strong>Commands.</strong> Slash-command workflows, the <code>/work-ticket</code> style orchestration that encodes how work gets done on a team, remain client-specific.</li>
<li class=""><strong>Rules and agents.</strong> Scoped guardrails and custom subagent definitions have no portable home either.</li>
</ul>
<p>Today, all of these live in the reverse-domain extension namespaces, which is an honest way of saying "not portable yet." A plugin that leans on hooks or commands is still, in practice, a plugin for one client.</p>
<p>The roadmap suggests the gaps are understood. The project's future-considerations document sketches permission declarations, signature verification, secrets handling, and enterprise policy controls, exactly the trust infrastructure that riskier primitives like hooks would need before they could ever be portable. Skills and MCP servers went first because they're declarative and safe to load anywhere. The sharper tools will take longer, and given the stakes, they should.</p>
<p>We'd rather have a small spec that's actually implemented than a sprawling one that isn't. But we'll be in the Discussions advocating for the rest of the primitives, hooks especially, because the fragmentation tax on them is still being collected.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="our-first-agent-plugin">Our First Agent Plugin<a href="https://blog.constellationdev.io/2026/08/06/agent-plugins-spec#our-first-agent-plugin" class="hash-link" aria-label="Direct link to Our First Agent Plugin" title="Direct link to Our First Agent Plugin" translate="no">​</a></h2>
<p>We didn't just want to applaud from the audience. <a href="https://github.com/ShiftinBits/constellation-agent-plugin" target="_blank" rel="noopener noreferrer" class="">constellation-agent-plugin</a> is Constellation packaged as a spec-conformant Agent Plugin, targeting version 1.0.0: our MCP server exposing the <code>code_intel</code> tool, plus six skills covering impact analysis, dependency analysis, dead code detection, architecture overviews, health checks, and troubleshooting.</p>
<p>One repository. One manifest. One <code>skills/</code> directory. Any client that implements the specification can load it, including clients that don't exist yet. Our six bespoke plugins aren't going anywhere while the ecosystem transitions, but every skill improvement now has a canonical home, and the portable package is the one we'll grow first.</p>
<p>One friendly note before you install anything: <strong>if we ship a native plugin for your tool, use that one.</strong> The gaps we described above are exactly why. Our <a href="https://github.com/ShiftinBits/constellation-claude" target="_blank" rel="noopener noreferrer" class="">Claude Code</a>, <a href="https://github.com/ShiftinBits/constellation-codex" target="_blank" rel="noopener noreferrer" class="">Codex</a>, <a href="https://github.com/ShiftinBits/constellation-copilot" target="_blank" rel="noopener noreferrer" class="">Copilot</a>, <a href="https://github.com/ShiftinBits/constellation-cursor" target="_blank" rel="noopener noreferrer" class="">Cursor</a>, <a href="https://github.com/ShiftinBits/constellation-antigravity" target="_blank" rel="noopener noreferrer" class="">Antigravity</a>, and <a href="https://github.com/ShiftinBits/constellation-opencode" target="_blank" rel="noopener noreferrer" class="">OpenCode</a> plugins take full advantage of each client's bespoke capabilities, the hooks, commands, and rules the portable format can't carry yet, and that adds up to a noticeably better Constellation experience. The Agent Plugin is the right choice when your client has no native plugin, and it's where everything converges once the spec reaches parity. Until then, native first.</p>
<p>That's the quiet promise of a good standard: the seventh client costs us nothing.</p>
<p>Six formats going on one. We'll take that math.</p>
<hr>
<p>At <a href="https://shiftinbits.com/" target="_blank" rel="noopener noreferrer" class="">ShiftinBits</a> we're building <a href="https://constellationdev.io/" target="_blank" rel="noopener noreferrer" class="">Constellation</a>, the shared code intelligence layer for AI coding agents. Constellation maintains a team-wide knowledge graph of your codebase and exposes it to tools like Claude Code, Cursor, GitHub Copilot, and Windsurf via the <strong>Model Context Protocol (MCP)</strong>, giving them structural understanding of your code with symbol-level search, dependency graphs, impact analysis, and more.</p>
<p>If you're building with AI coding tools and want to see what your agents can do with <em>real</em> code intelligence, <a href="https://constellationdev.io/" target="_blank" rel="noopener noreferrer" class="">check out Constellation</a>. For a limited time, we're giving early adopters 50% off with the promo code <code style="cursor:pointer;white-space:nowrap" title="Click to copy" role="button" aria-label="Copy to clipboard">ROOTNODE50<span style="margin-left:0.4em;opacity:0.5;transition:opacity 0.15s"><svg xmlns="http://www.w3.org/2000/svg" width="0.85em" height="0.85em" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="vertical-align:-0.1em"><rect width="14" height="14" x="8" y="8" rx="2" ry="2"></rect><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"></path></svg></span></code>.</p>]]></content:encoded>
            <category>agent plugins</category>
            <category>plugins</category>
            <category>open standards</category>
            <category>mcp</category>
            <category>ai coding agents</category>
            <category>interoperability</category>
            <category>developer tools</category>
        </item>
        <item>
            <title><![CDATA[Benchmark Results: Measuring the Real Cost of Code Intelligence]]></title>
            <link>https://blog.constellationdev.io/2026/05/27/q2-benchmark</link>
            <guid>https://blog.constellationdev.io/2026/05/27/q2-benchmark</guid>
            <pubDate>Wed, 27 May 2026 00:00:00 GMT</pubDate>
            <description><![CDATA[We benchmarked nine code intelligence operations with and without Constellation's MCP tools. Same model, same tasks, same codebase. Here's what the numbers say.]]></description>
            <content:encoded><![CDATA[<p><em>Same model. Same tasks. Same codebase. One tool that already knows the structure.</em></p>
<p>We've written about <a class="" href="https://blog.constellationdev.io/2026/04/10/context-engineering">why structural code intelligence matters</a>, how <a class="" href="https://blog.constellationdev.io/2026/04/15/code-mode">Code Mode makes MCP queries more efficient</a>, and the case for <a class="" href="https://blog.constellationdev.io/2026/04/26/shared-code-intelligence">a shared code intelligence layer across your team</a>. What we hadn't published yet was the metrics. The actual difference, in tokens and dollars, between an AI agent navigating a codebase with Constellation versus without it.</p>
<p>That changes today. Our Q2 2026 benchmark results are out, and the data is cleaner than we expected.</p>
<!-- -->
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="the-setup">The Setup<a href="https://blog.constellationdev.io/2026/05/27/q2-benchmark#the-setup" class="hash-link" aria-label="Direct link to The Setup" title="Direct link to The Setup" translate="no">​</a></h2>
<p>The benchmark is straightforward: two arms, tightly controlled.</p>
<ul>
<li class=""><strong>Baseline</strong>: Claude Code (Sonnet 4.6) with no Constellation MCP server attached — answering code intelligence questions the conventional way with file reads, grep, and import chasing.</li>
<li class=""><strong>Constellation</strong>: The same assistant, same model, same prompt, with the Constellation MCP server attached and permitted to query the code graph.</li>
</ul>
<p>Both arms start from an identical, empty conversational context. Project-specific guidance files, persistent memory, and any prior session state are zeroed out before each run. The only variable is whether Constellation is available.</p>
<p>Nine operations. Three iterations each. 54 total runs.</p>
<p>Full methodology details are available on the <a href="https://docs.constellationdev.io/benchmarking" target="_blank" rel="noopener noreferrer" class="">Benchmarking Methodology</a> page if you want to dig in.</p>
<p><img decoding="async" loading="lazy" alt="Two Arms" src="https://blog.constellationdev.io/assets/images/benchmark-setup-79f321020f124b37b7de14f2ff86b838.jpg" width="1600" height="893" class="img_ev3q"></p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="the-numbers">The Numbers<a href="https://blog.constellationdev.io/2026/05/27/q2-benchmark#the-numbers" class="hash-link" aria-label="Direct link to The Numbers" title="Direct link to The Numbers" translate="no">​</a></h2>
<p><strong>10.7M tokens</strong> to run all nine operations on the baseline.<br>
<strong>2.6M tokens</strong> on Constellation.<br>
A <strong>75% reduction in total token spend</strong>.</p>
<p>Cost tells a similar story: <strong>$5.43</strong> for the full baseline suite, <strong>$1.52</strong> with Constellation. A <strong>72% reduction</strong>.</p>
<p>One thing worth knowing before diving into the per-tool numbers: token count and cost don't track each other perfectly. Token pricing is split across input, output, and cached tokens, each priced differently. A 75% drop in total tokens doesn't automatically produce a 75% drop in cost, and the data reflects that. We break it down in the <a href="https://constellationdev.io/benchmarks/2026/Q2" target="_blank" rel="noopener noreferrer" class="">full report</a>.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="where-the-gap-is-biggest">Where the Gap Is Biggest<a href="https://blog.constellationdev.io/2026/05/27/q2-benchmark#where-the-gap-is-biggest" class="hash-link" aria-label="Direct link to Where the Gap Is Biggest" title="Direct link to Where the Gap Is Biggest" translate="no">​</a></h2>
<p>Three operations drive most of the difference:</p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="finding-orphaned-code">Finding Orphaned Code<a href="https://blog.constellationdev.io/2026/05/27/q2-benchmark#finding-orphaned-code" class="hash-link" aria-label="Direct link to Finding Orphaned Code" title="Direct link to Finding Orphaned Code" translate="no">​</a></h3>
<p>Orphaned code detection is the starkest result in the benchmark.</p>
<p>Baseline: <strong>5.13M tokens</strong>.<br>
Constellation: <strong>318K</strong>.<br>
That's a <strong>16× reduction</strong>.</p>
<p>Without Constellation, the model has to navigate the entire dependency tree manually to determine what's referenced and what isn't. With Constellation, that context is already in the index.</p>
<p>Cost drops from <strong>$2.13 to $0.12</strong>.</p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="change-impact-analysis">Change Impact Analysis<a href="https://blog.constellationdev.io/2026/05/27/q2-benchmark#change-impact-analysis" class="hash-link" aria-label="Direct link to Change Impact Analysis" title="Direct link to Change Impact Analysis" translate="no">​</a></h3>
<p>Impact analysis asks: <em>if I change this, what breaks?</em> On baseline, the model chases every reference — reading files, following imports, working outward from the symbol in question. The process is thorough but slow and expensive.</p>
<p>With Constellation, the impact graph is pre-computed. One query, structured result, done.</p>
<p>Baseline: <strong>2.32M tokens, $0.79</strong>.<br>
Constellation: <strong>230K tokens, $0.13</strong>.<br>
A <strong>10× token reduction</strong> and <strong>83% cost savings</strong>.</p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="finding-circular-dependencies">Finding Circular Dependencies<a href="https://blog.constellationdev.io/2026/05/27/q2-benchmark#finding-circular-dependencies" class="hash-link" aria-label="Direct link to Finding Circular Dependencies" title="Direct link to Finding Circular Dependencies" translate="no">​</a></h3>
<p>Cycle detection is a graph problem, and the baseline is trying to solve it without a graph. The model reads files, builds a partial model, checks for loops, and expands from there. This is the kind of analysis that compounds — every discovered dependency leads to more file reads.</p>
<p>The graph already has the edges. Constellation answers in a fraction of the tokens. Baseline: <strong>1.44M tokens, $0.83</strong>. Constellation: <strong>197K tokens, $0.07</strong>. <strong>7× fewer tokens, 92% cost savings.</strong></p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="the-middle-ground">The Middle Ground<a href="https://blog.constellationdev.io/2026/05/27/q2-benchmark#the-middle-ground" class="hash-link" aria-label="Direct link to The Middle Ground" title="Direct link to The Middle Ground" translate="no">​</a></h2>
<p>Not every result is dramatic. A few operations fall somewhere between "roughly a wash on tokens" and "moderate savings":</p>
<ul>
<li class=""><strong><code>getDependents</code></strong>: Constellation uses <strong>2.8× fewer tokens</strong> and cuts cost by <strong>84%</strong>. A solid win, though smaller in absolute terms.</li>
<li class=""><strong><code>getCallGraph</code></strong>: Token counts are nearly identical (baseline: 572K, Constellation: 592K). Cost drops <strong>38%</strong> anyway because of how the token types are distributed across the operation.</li>
<li class=""><strong><code>traceSymbolUsage</code></strong> and <strong><code>getDependencies</code></strong>: Constellation uses slightly <em>more</em> tokens on both of these (605K vs 528K and 101K vs 86K, respectively), though cost savings of around 18% persist. These are operations where the overhead of graph queries is close to parity with reading files.</li>
<li class=""><strong><code>searchSymbols</code></strong>: Roughly a wash on both metrics, with a small edge to Constellation. When you're looking for a symbol you can approximately name, both approaches converge quickly.</li>
</ul>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="where-constellation-falls-behind">Where Constellation Falls Behind<a href="https://blog.constellationdev.io/2026/05/27/q2-benchmark#where-constellation-falls-behind" class="hash-link" aria-label="Direct link to Where Constellation Falls Behind" title="Direct link to Where Constellation Falls Behind" translate="no">​</a></h2>
<p>We're publishing all the data, including the one operation where Constellation doesn't dramatically reduce token usage or costs: <strong><code>getSymbolDetails</code></strong>.</p>
<p>Baseline: <strong>58K tokens, $0.025</strong>.<br>
Constellation: <strong>183K tokens, $0.066</strong>.<br>
Constellation is <strong>3.2× more expensive</strong> here.</p>
<p>The reason isn't surprising in hindsight. Getting details about a specific symbol is a lightweight operation for the baseline. Open one file, read a function. Constellation's <a class="" href="https://blog.constellationdev.io/2026/04/15/code-mode">code mode</a> tooling and additional symbol details and metadata add non-trivial overhead to the operation. Constellation enriches symbol detail responses with additional structural context (cyclomatic complexity, export state, and more), which adds value but adds tokens.</p>
<p>This is an honest result, and it points to where the design holds. Constellation wins where analysis is hard. For trivial file reads with a clear target, the advantage goes to the baseline. The further the task is from "read section of this one file," the more the graph earns its place.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="why-the-pattern-holds">Why the Pattern Holds<a href="https://blog.constellationdev.io/2026/05/27/q2-benchmark#why-the-pattern-holds" class="hash-link" aria-label="Direct link to Why the Pattern Holds" title="Direct link to Why the Pattern Holds" translate="no">​</a></h2>
<p>The results across all nine operations follow the same underlying logic: Constellation wins in proportion to how much work the baseline has to do to reconstruct information that the graph already has.</p>
<p>Orphaned code detection requires understanding the entire dependency structure. Impact analysis requires tracing every consumer of a symbol, transitively. Circular dependency detection requires holding the full import graph in memory. All three require the model to <em>discover</em> structural information that, with Constellation, is already indexed and queryable.</p>
<p>Simple symbol lookups don't have that overhead gap. The graph query cost meets or exceeds the cost of just reading a file. The benchmark data shows this clearly, and we'd rather put it in the report than paper over it.</p>
<p><img decoding="async" loading="lazy" alt="Complexity Gradient" src="https://blog.constellationdev.io/assets/images/benchmark-spectrum-35b900937b4d1ebb865c35c7f5cf609c.jpg" width="1600" height="893" class="img_ev3q"></p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="the-full-report">The Full Report<a href="https://blog.constellationdev.io/2026/05/27/q2-benchmark#the-full-report" class="hash-link" aria-label="Direct link to The Full Report" title="Direct link to The Full Report" translate="no">​</a></h2>
<p>Per-tool breakdowns, token comparison charts, methodology details, and the cost analysis are all available in the <a href="https://constellationdev.io/benchmarks/2026/Q2" target="_blank" rel="noopener noreferrer" class="">Q2 2026 Benchmark Report</a>.</p>
<p>We'll be running these calibrations periodically and publishing updated results as tooling and models evolve. The numbers will shift over time; the methodology will stay consistent.</p>
<hr>
<p>At <a href="https://shiftinbits.com/" target="_blank" rel="noopener noreferrer" class="">ShiftinBits</a> we're building <a href="https://constellationdev.io/" target="_blank" rel="noopener noreferrer" class="">Constellation</a>, the shared code intelligence layer for AI coding agents. Constellation maintains a team-wide knowledge graph of your codebase and exposes it to tools like Claude Code, Cursor, GitHub Copilot, and Windsurf via the <strong>Model Context Protocol (MCP)</strong>, giving them structural understanding of your code with symbol-level search, dependency graphs, impact analysis, and more.</p>
<p>If you're building with AI coding tools and want to see what your agents can do with <em>real</em> code intelligence, <a href="https://constellationdev.io/" target="_blank" rel="noopener noreferrer" class="">check out Constellation</a>. For a limited time, we're giving early adopters 50% off with the promo code <code style="cursor:pointer;white-space:nowrap" title="Click to copy" role="button" aria-label="Copy to clipboard">ROOTNODE50<span style="margin-left:0.4em;opacity:0.5;transition:opacity 0.15s"><svg xmlns="http://www.w3.org/2000/svg" width="0.85em" height="0.85em" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="vertical-align:-0.1em"><rect width="14" height="14" x="8" y="8" rx="2" ry="2"></rect><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"></path></svg></span></code>.</p>]]></content:encoded>
            <category>benchmarking</category>
            <category>code intelligence</category>
            <category>token optimization</category>
            <category>mcp</category>
            <category>ai agents</category>
            <category>developer tools</category>
            <category>performance</category>
        </item>
        <item>
            <title><![CDATA[One Index: The Case for Shared Code Intelligence]]></title>
            <link>https://blog.constellationdev.io/2026/04/26/shared-code-intelligence</link>
            <guid>https://blog.constellationdev.io/2026/04/26/shared-code-intelligence</guid>
            <pubDate>Sun, 26 Apr 2026 00:00:00 GMT</pubDate>
            <description><![CDATA[Most AI coding setups give every developer their own private index of the codebase. Here's why a shared, team-wide code intelligence layer is a fundamentally better model.]]></description>
            <content:encoded><![CDATA[<p><em>Your codebase has one architecture. Why does every developer's AI agent build its own private mental model of it?</em></p>
<p>The last few posts in this series have focused on what goes <em>into</em> an AI agent's context window: <a class="" href="https://blog.constellationdev.io/2026/04/10/context-engineering">why structural code intelligence beats text search</a>, <a class="" href="https://blog.constellationdev.io/2026/04/15/code-mode">how Code Mode collapses multi-step queries into a single efficient round-trip</a>, and <a class="" href="https://blog.constellationdev.io/2026/04/20/ai-tool-plugins">how plugins encode team knowledge as reusable primitives</a>. But most AI coding tooling shares a quiet assumption: code intelligence is a per-developer artifact. Every engineer builds their own snapshot of the codebase and queries it alone.</p>
<p>That model made sense when AI coding tools were still finding their footing. For teams working on serious codebases, it's starting to show its limits.</p>
<!-- -->
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="the-problem-with-stateless-intelligence">The Problem with Stateless Intelligence<a href="https://blog.constellationdev.io/2026/04/26/shared-code-intelligence#the-problem-with-stateless-intelligence" class="hash-link" aria-label="Direct link to The Problem with Stateless Intelligence" title="Direct link to The Problem with Stateless Intelligence" translate="no">​</a></h2>
<p>Without a dedicated code intelligence layer, AI agents understand your codebase the same way a developer would on their first day: by reading files. They grep for keywords, open whatever looks relevant, and build a working picture from whatever fits in context. Some tools supplement this with embeddings or editor-maintained indexes for smarter file retrieval, but the fundamental model is the same: each session starts cold, re-derives what it needs, and discards it when done.</p>
<p>For a solo developer on a small repo, this is workable. But scale it up to a real team on a real codebase, and a few problems compound.</p>
<p><img decoding="async" loading="lazy" alt="Isolated Model" src="https://blog.constellationdev.io/assets/images/isolated-model-3fefa5d16146ec3a0380b55613dfc12c.jpg" width="1376" height="768" class="img_ev3q"></p>
<p><strong>Every session starts from scratch.</strong> There's no persistent structural understanding that carries over between sessions or between teammates. An agent that traced a dependency chain yesterday has no memory of it today. A teammate's agent that answered the same question an hour ago did the same work independently and produced its own answer, which may or may not match.</p>
<p><strong>Answers drift between teammates.</strong> When agents derive understanding on demand from whatever files they happen to read, two agents asking the same structural question can reach different conclusions depending on which files they opened, which branch they're on, and how much context they had room to work with. That drift is invisible until it surfaces in a code review, a pairing session, or a debate about whether a refactor is safe.</p>
<p><strong>Onboarding gets no head start.</strong> A new engineer's agent arrives knowing nothing about the codebase and has to discover everything from file reads and whatever instruction documents the team maintains. The team's accumulated understanding of the system (which modules are load-bearing, which dependencies are fragile, where the hot spots are) lives in people's heads, not anywhere an agent can query.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="what-a-shared-layer-actually-looks-like">What a Shared Layer Actually Looks Like<a href="https://blog.constellationdev.io/2026/04/26/shared-code-intelligence#what-a-shared-layer-actually-looks-like" class="hash-link" aria-label="Direct link to What a Shared Layer Actually Looks Like" title="Direct link to What a Shared Layer Actually Looks Like" translate="no">​</a></h2>
<p>The alternative is simple: <strong>one code intelligence layer, maintained centrally, queried by everyone.</strong></p>
<p>In practice:</p>
<ul>
<li class="">A single canonical knowledge graph for the codebase, kept up to date as code lands on trunk.</li>
<li class="">Every consumer (Claude Code, Cursor, Copilot, Windsurf, a CI pipeline) queries the <em>same</em> graph through a standard protocol.</li>
<li class="">No individual responsibility for maintaining the index. That job belongs to CI pipelines.</li>
</ul>
<p><img decoding="async" loading="lazy" alt="Shared Index" src="https://blog.constellationdev.io/assets/images/shared-index-0eddeb56942df736ced2bf97144742a0.jpg" width="1376" height="768" class="img_ev3q"></p>
<p>This is the architecture Constellation is built around. Each project is configured with a trunk branch name. The CLI extracts structural metadata locally and uploads it on push or merge to that branch. Constellation maintains the knowledge graph server-side, and every MCP-compatible tool on the team queries that one graph.</p>
<p>A few design constraints make this work:</p>
<ul>
<li class=""><strong>Privacy first:</strong> The CLI extracts only structural metadata (symbol names, relationships, complexity metrics, file paths) and never raw source. A shared layer that requires uploading source code is a non-starter for most teams.</li>
<li class=""><strong>Trunk-scoped:</strong> The graph reflects the team's trunk branch and only that branch. Code earns its way into the shared brain by merging. Until then, in-flight work lives on the developer's local branch where it belongs. A graph polluted by every developer's half-finished feature branch quickly loses its value as a source of truth.</li>
<li class=""><strong>Open protocol:</strong> Access goes through MCP, so any compatible tool works, not just one vendor's tooling.</li>
</ul>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="what-changes-for-the-team">What Changes for the Team<a href="https://blog.constellationdev.io/2026/04/26/shared-code-intelligence#what-changes-for-the-team" class="hash-link" aria-label="Direct link to What Changes for the Team" title="Direct link to What Changes for the Team" translate="no">​</a></h2>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="day-zero-fluency-for-new-hires">Day-zero fluency for new hires<a href="https://blog.constellationdev.io/2026/04/26/shared-code-intelligence#day-zero-fluency-for-new-hires" class="hash-link" aria-label="Direct link to Day-zero fluency for new hires" title="Direct link to Day-zero fluency for new hires" translate="no">​</a></h3>
<p>A new engineer on day one authenticates to Constellation and their agent is immediately working from the same graph as the most senior person on the team. Symbol search, dependency analysis, impact analysis, architecture overview: all of it on day zero.</p>
<p>The human still has to ramp up on the team's domain, conventions, and history. But the tooling doesn't. It inherits the team's accumulated understanding of the codebase the moment it connects, because the graph was already there.</p>
<p>On large codebases where building a mental model is the slow part of onboarding, that matters.</p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="consistent-answers-across-the-team">Consistent answers across the team<a href="https://blog.constellationdev.io/2026/04/26/shared-code-intelligence#consistent-answers-across-the-team" class="hash-link" aria-label="Direct link to Consistent answers across the team" title="Direct link to Consistent answers across the team" translate="no">​</a></h3>
<p>When every agent queries the same graph, every agent gives the same shape of answer. The reviewer's "what depends on this?" matches the author's. A pair-programming session converges on a shared picture instead of two divergent ones. The debate about whether a refactor is safe gets settled with a single query everyone trusts, because everyone is looking at the same thing.</p>
<p><img decoding="async" loading="lazy" alt="Mismatched vs Consistent" src="https://blog.constellationdev.io/assets/images/mismatched-vs-consistent-b141562b62c3e65e1771882e4d3bcf04.jpg" width="1376" height="768" class="img_ev3q"></p>
<p>It removes a category of friction that's easy to ignore: the <em>"Patrick's AI says X, but Bobby's says Y, which is right?"</em> moments that crop up in code reviews, pairing sessions, and architectural discussions when everyone's intelligence layer is slightly out of sync.</p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="ci-becomes-a-first-class-participant">CI becomes a first-class participant<a href="https://blog.constellationdev.io/2026/04/26/shared-code-intelligence#ci-becomes-a-first-class-participant" class="hash-link" aria-label="Direct link to CI becomes a first-class participant" title="Direct link to CI becomes a first-class participant" translate="no">​</a></h3>
<p>Once code intelligence is centralized, CI can use it too, and not just to update the index. A pre-merge job can query the graph for the impact of a PR's changes and post a structured comment: <em>"this change touches a function with 14 transitive dependents across 6 files, including 3 test files."</em> A nightly job can surface newly orphaned code introduced by recent merges. A migration script can verify that every reference to a deprecated symbol has actually been removed before running.</p>
<p>None of this requires CI to re-implement code analysis. It queries the same graph the developers' editors do. The intelligence layer becomes a shared platform for humans, agents, dashboards, and pipelines, not a feature locked inside any one IDE.</p>
<p><img decoding="async" loading="lazy" alt="CI Graph Query" src="https://blog.constellationdev.io/assets/images/ci-graph-query-8365e447771a057fbfebbb908cab05fb.jpg" width="1376" height="768" class="img_ev3q"></p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="the-bottom-line">The Bottom Line<a href="https://blog.constellationdev.io/2026/04/26/shared-code-intelligence#the-bottom-line" class="hash-link" aria-label="Direct link to The Bottom Line" title="Direct link to The Bottom Line" translate="no">​</a></h2>
<p>The first wave of AI coding tools optimized for the individual developer: better autocomplete, smarter chat, faster edits. That was the right place to start, and it's still where most of the visible polish lives.</p>
<p>But codebases are shared artifacts, and the intelligence that helps teams navigate them should be too. When code intelligence is centralized, indexed by CI on every trunk merge, and accessible to every tool through an open protocol, onboarding compresses, drift disappears, and CI gets capabilities that were previously out of reach.</p>
<p>One brain, many developers. Small shift, large blast radius.</p>
<hr>
<p>At <a href="https://shiftinbits.com/" target="_blank" rel="noopener noreferrer" class="">ShiftinBits</a> we're building <a href="https://constellationdev.io/" target="_blank" rel="noopener noreferrer" class="">Constellation</a>, the shared code intelligence layer for AI coding agents. Constellation maintains a team-wide knowledge graph of your codebase and exposes it to tools like Claude Code, Cursor, GitHub Copilot, and Windsurf via the <strong>Model Context Protocol (MCP)</strong>, giving them structural understanding of your code with symbol-level search, dependency graphs, impact analysis, and more.</p>
<p>If you're building with AI coding tools and want to see what your agents can do with <em>real</em> code intelligence, <a href="https://constellationdev.io/" target="_blank" rel="noopener noreferrer" class="">check out Constellation</a>. For a limited time, we're giving early adopters 50% off with the promo code <code style="cursor:pointer;white-space:nowrap" title="Click to copy" role="button" aria-label="Copy to clipboard">ROOTNODE50<span style="margin-left:0.4em;opacity:0.5;transition:opacity 0.15s"><svg xmlns="http://www.w3.org/2000/svg" width="0.85em" height="0.85em" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="vertical-align:-0.1em"><rect width="14" height="14" x="8" y="8" rx="2" ry="2"></rect><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"></path></svg></span></code>.</p>]]></content:encoded>
            <category>ai-driven development</category>
            <category>code intelligence</category>
            <category>context engineering</category>
            <category>developer tools</category>
            <category>ai coding agents</category>
            <category>team workflows</category>
            <category>model context protocol</category>
            <category>software engineering</category>
        </item>
        <item>
            <title><![CDATA[Extending AI Tools with Plugins]]></title>
            <link>https://blog.constellationdev.io/2026/04/20/ai-tool-plugins</link>
            <guid>https://blog.constellationdev.io/2026/04/20/ai-tool-plugins</guid>
            <pubDate>Mon, 20 Apr 2026 00:00:00 GMT</pubDate>
            <description><![CDATA[Learn how to extend AI coding assistants like Claude Code, Cursor, and Copilot with instructions, skills, rules, commands, and hooks, and how plugins bundle them into shareable, team-wide configurations.]]></description>
            <content:encoded><![CDATA[<p><em>Your AI coding assistant doesn't know your team's naming conventions, your deploy process, or that one module nobody should touch without running the integration tests. Here's how to teach it.</em></p>
<p>In our <a class="" href="https://blog.constellationdev.io/2026/04/10/context-engineering">previous posts</a>, we explored why context engineering is the most important skill for developers working with AI tools, and <a class="" href="https://blog.constellationdev.io/2026/04/15/code-mode">how Code Mode</a> delivers structural code intelligence efficiently at the protocol level. But there's another side to context engineering that we haven't covered yet: the context <em>you</em> bring.</p>
<p>MCP servers give your AI agent better tools. But tools are only half the equation. The other half is <strong>knowledge</strong>: your team's conventions, your project's architecture, your workflows, your guardrails. The AI tools you use every day have a growing set of extension points designed to inject exactly this kind of knowledge: <strong>instructions</strong>, <strong>skills</strong>, <strong>rules</strong>, <strong>commands</strong>, and <strong>hooks</strong>.</p>
<p>In this post, we'll break down each of these primitives, show practical examples of each, and explain how <strong>plugins</strong> bundle them into shareable packages that give every engineer on your team the same supercharged AI experience.</p>
<!-- -->
<p><img decoding="async" loading="lazy" alt="Plugin Primitives" src="https://blog.constellationdev.io/assets/images/plugins-6b1b35ee8c435d22523740399373369b.jpg" width="1376" height="768" class="img_ev3q"></p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="instructions-the-foundation">Instructions: The Foundation<a href="https://blog.constellationdev.io/2026/04/20/ai-tool-plugins#instructions-the-foundation" class="hash-link" aria-label="Direct link to Instructions: The Foundation" title="Direct link to Instructions: The Foundation" translate="no">​</a></h2>
<p>Every AI coding tool supports some form of project-level instructions, a file that's loaded into the LLM's context at the start of every session. In Claude Code it's <code>CLAUDE.md</code>. In Cursor it's <code>.cursorrules</code>. GitHub Copilot and OpenCode use <code>AGENTS.md</code>. The name varies, but the purpose is identical: <strong>tell the agent what it needs to know about this project before it does anything.</strong></p>
<p>Think of instructions as the onboarding doc you'd hand a new developer on their first day. Architecture overview, key conventions, important gotchas, tool policies. Everything the agent needs to be productive without asking you to repeat yourself every session.</p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="what-makes-good-instructions">What makes good instructions<a href="https://blog.constellationdev.io/2026/04/20/ai-tool-plugins#what-makes-good-instructions" class="hash-link" aria-label="Direct link to What makes good instructions" title="Direct link to What makes good instructions" translate="no">​</a></h3>
<p>The best instruction files are <strong>concise and specific</strong>. They focus on what the LLM <em>can't discover on its own</em>. Here's the key insight: anything the agent can figure out by reading files or running commands doesn't belong in your instructions. It's wasted context.</p>
<p><strong>Don't do this:</strong></p>
<div class="language-markdown codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-markdown codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token title important punctuation" style="color:rgb(248, 248, 242)">##</span><span class="token title important"> Project Structure</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token list punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain"> src/</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token list punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain"> components/</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    </span><span class="token list punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain"> Button.tsx</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    </span><span class="token list punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain"> Modal.tsx</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    </span><span class="token list punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain"> Header.tsx</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token list punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain"> services/</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    </span><span class="token list punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain"> auth.service.ts</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    </span><span class="token list punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain"> payment.service.ts</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token list punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain"> utils/</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    </span><span class="token list punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain"> format.ts</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    </span><span class="token list punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain"> validate.ts</span><br></div></code></pre></div></div>
<p>Your agent can run <code>ls</code>. Listing your file tree verbatim burns tokens on information that's one command away and goes stale the moment someone adds a file.</p>
<p><strong>Do this instead:</strong></p>
<div class="language-markdown codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-markdown codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token title important punctuation" style="color:rgb(248, 248, 242)">##</span><span class="token title important"> Architecture</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">Next.js 15 App Router with Prisma on Postgres. Clerk for auth,</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">Stripe for billing, Trigger.dev for background jobs. All API</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">route handlers return a standard { data, error } envelope.</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain" style="display:inline-block"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token title important punctuation" style="color:rgb(248, 248, 242)">##</span><span class="token title important"> Conventions</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token list punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain"> Strict TypeScript, no </span><span class="token code-snippet code keyword" style="color:rgb(189, 147, 249);font-style:italic">`any`</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token list punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain"> Zod validation on all route inputs</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token list punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain"> Server Components by default — 'use client' only when a</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  component needs hooks or browser APIs</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token list punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain"> Tests colocate under </span><span class="token bold punctuation" style="color:rgb(248, 248, 242)">__</span><span class="token bold content">tests</span><span class="token bold punctuation" style="color:rgb(248, 248, 242)">__</span><span class="token plain">/ next to the file under test</span><br></div></code></pre></div></div>
<p>This tells the agent things it would otherwise have to piece together from reading dozens of files: the overall shape of the system, the patterns that aren't obvious from a single file, the conventions that matter. Dense, high-signal context.</p>
<p><img decoding="async" loading="lazy" alt="High Signal vs Low Signal Instructions" src="https://blog.constellationdev.io/assets/images/instructions-signal-019168e5a70f7447b7e885f97214b12b.jpg" width="1376" height="768" class="img_ev3q"></p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="keep-instructions-focused">Keep instructions focused<a href="https://blog.constellationdev.io/2026/04/20/ai-tool-plugins#keep-instructions-focused" class="hash-link" aria-label="Direct link to Keep instructions focused" title="Direct link to Keep instructions focused" translate="no">​</a></h3>
<p>Resist the urge to stuff everything into your instruction file. Detailed restrictions belong in <strong>rules</strong>. Complex workflows belong in <strong>commands</strong>. Domain-specific knowledge belongs in <strong>skills</strong>. Your instruction file is the foundation, not the entire building. Use it to orient the agent, and let the other primitives carry the specialized weight.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="skills-on-demand-knowledge">Skills: On-Demand Knowledge<a href="https://blog.constellationdev.io/2026/04/20/ai-tool-plugins#skills-on-demand-knowledge" class="hash-link" aria-label="Direct link to Skills: On-Demand Knowledge" title="Direct link to Skills: On-Demand Knowledge" translate="no">​</a></h2>
<p>Instructions are always-on. Every token in your instruction file enters the context window for <em>every</em> session, whether it's relevant or not. Skills solve this by loading specialized knowledge <strong>only when it's needed</strong>.</p>
<p>A skill is a chunk of bespoke knowledge or workflow guidance that's triggered either by keywords in the conversation or by explicit invocation. The agent loads the skill's content into context when it's relevant and ignores it otherwise. This is context engineering in practice: the right information at the right time, not all the information all the time.</p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="example-branding-guidelines">Example: Branding guidelines<a href="https://blog.constellationdev.io/2026/04/20/ai-tool-plugins#example-branding-guidelines" class="hash-link" aria-label="Direct link to Example: Branding guidelines" title="Direct link to Example: Branding guidelines" translate="no">​</a></h3>
<p>Here's a universal example that applies to any team with a design system. Say your company has specific brand colors, typography, spacing rules, and component patterns. Without a skill, every developer either pastes the brand guide into their prompt, hopes the agent remembers from a previous session (it won't), or just lets the AI pick whatever looks good and fixes it later.</p>
<p>With a skill, you encode it once:</p>
<div class="language-markdown codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-markdown codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token front-matter-block punctuation" style="color:rgb(248, 248, 242)">---</span><span class="token front-matter-block"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token front-matter-block"></span><span class="token front-matter-block front-matter yaml language-yaml key atrule">name</span><span class="token front-matter-block front-matter yaml language-yaml punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token front-matter-block front-matter yaml language-yaml"> branding</span><span class="token front-matter-block front-matter yaml language-yaml punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token front-matter-block front-matter yaml language-yaml">guidelines</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token front-matter-block front-matter yaml language-yaml"></span><span class="token front-matter-block front-matter yaml language-yaml key atrule">description</span><span class="token front-matter-block front-matter yaml language-yaml punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token front-matter-block front-matter yaml language-yaml"> </span><span class="token front-matter-block front-matter yaml language-yaml punctuation" style="color:rgb(248, 248, 242)">&gt;</span><span class="token front-matter-block front-matter yaml language-yaml scalar string" style="color:rgb(255, 121, 198)"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token front-matter-block front-matter yaml language-yaml scalar string" style="color:rgb(255, 121, 198)">  Use when creating or modifying UI components, pages, or styling.</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token front-matter-block front-matter yaml language-yaml scalar string" style="color:rgb(255, 121, 198)">  Ensures consistent brand identity across all interfaces.</span><span class="token front-matter-block"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token front-matter-block"></span><span class="token front-matter-block punctuation" style="color:rgb(248, 248, 242)">---</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain" style="display:inline-block"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token title important punctuation" style="color:rgb(248, 248, 242)">##</span><span class="token title important"> Brand Colors</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token list punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain"> Primary: #6366F1 (Indigo 500)</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token list punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain"> Surface: #1E1B2E (Dark purple-gray)</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token list punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain"> Text: #E2E8F0 (Slate 200)</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token list punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain"> Accent: #22D3EE (Cyan 400)</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain" style="display:inline-block"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token title important punctuation" style="color:rgb(248, 248, 242)">##</span><span class="token title important"> Typography</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token list punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain"> Headings: Space Grotesk, 600 weight</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token list punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain"> Body: Inter, 400 weight</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token list punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain"> Code: JetBrains Mono</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain" style="display:inline-block"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token title important punctuation" style="color:rgb(248, 248, 242)">##</span><span class="token title important"> Component Patterns</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token list punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain"> Cards: 1px border with rgba(255,255,255,0.06), rounded-xl</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token list punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain"> Buttons: Primary uses gradient from Indigo 500 to Indigo 600</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token list punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain"> All interactive elements need hover and focus states</span><br></div></code></pre></div></div>
<p>The <code>description</code> field is the trigger. When the agent detects it's working on UI or styling, it loads this skill automatically. A developer can also invoke it explicitly: <em>"use the branding-guidelines skill for this component."</em></p>
<p>The result: consistent brand execution across every AI-assisted coding session, without burning tokens on color codes during a database migration.</p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="why-not-just-put-this-in-instructions">Why not just put this in instructions?<a href="https://blog.constellationdev.io/2026/04/20/ai-tool-plugins#why-not-just-put-this-in-instructions" class="hash-link" aria-label="Direct link to Why not just put this in instructions?" title="Direct link to Why not just put this in instructions?" translate="no">​</a></h3>
<p>Because most of your sessions don't involve UI work. If your branding guide is 200 tokens and you run 50 sessions a week, that's 10,000 tokens spent on color definitions during backend refactors, infrastructure changes, and test writing where they're completely irrelevant. Skills let you skip that tax.</p>
<p><img decoding="async" loading="lazy" alt="On-Demand Skill Loading" src="https://blog.constellationdev.io/assets/images/skills-on-demand-1dd1c38b5d96613a4c0c83916c65d5b1.jpg" width="1376" height="768" class="img_ev3q"></p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="rules-scoped-guardrails">Rules: Scoped Guardrails<a href="https://blog.constellationdev.io/2026/04/20/ai-tool-plugins#rules-scoped-guardrails" class="hash-link" aria-label="Direct link to Rules: Scoped Guardrails" title="Direct link to Rules: Scoped Guardrails" translate="no">​</a></h2>
<p>Rules define constraints that the AI agent must follow. Where instructions are guidance ("here's how we do things"), rules are guardrails ("you must do this" or "never do that"). And critically, rules can be <strong>scoped</strong>: applied broadly to the entire project, or granularly to specific paths, file extensions, or individual files.</p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="broad-rules">Broad rules<a href="https://blog.constellationdev.io/2026/04/20/ai-tool-plugins#broad-rules" class="hash-link" aria-label="Direct link to Broad rules" title="Direct link to Broad rules" translate="no">​</a></h3>
<p>A project-wide rule might enforce your team's commit conventions or testing requirements:</p>
<div class="language-markdown codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-markdown codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token front-matter-block punctuation" style="color:rgb(248, 248, 242)">---</span><span class="token front-matter-block"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token front-matter-block"></span><span class="token front-matter-block front-matter yaml language-yaml key atrule">description</span><span class="token front-matter-block front-matter yaml language-yaml punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token front-matter-block front-matter yaml language-yaml"> Enforced across the entire project</span><span class="token front-matter-block"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token front-matter-block"></span><span class="token front-matter-block punctuation" style="color:rgb(248, 248, 242)">---</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain" style="display:inline-block"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">All new service methods must have corresponding unit tests.</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">Never commit directly to the main branch.</span><br></div></code></pre></div></div>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="scoped-rules">Scoped rules<a href="https://blog.constellationdev.io/2026/04/20/ai-tool-plugins#scoped-rules" class="hash-link" aria-label="Direct link to Scoped rules" title="Direct link to Scoped rules" translate="no">​</a></h3>
<p>This is where rules get powerful. A rule with a <code>globs</code> pattern applies only to matching files:</p>
<div class="language-markdown codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-markdown codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token front-matter-block punctuation" style="color:rgb(248, 248, 242)">---</span><span class="token front-matter-block"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token front-matter-block"></span><span class="token front-matter-block front-matter yaml language-yaml key atrule">description</span><span class="token front-matter-block front-matter yaml language-yaml punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token front-matter-block front-matter yaml language-yaml"> Authorization enforcement for API route handlers</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token front-matter-block front-matter yaml language-yaml"></span><span class="token front-matter-block front-matter yaml language-yaml key atrule">globs</span><span class="token front-matter-block front-matter yaml language-yaml punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token front-matter-block front-matter yaml language-yaml"> app/api/</span><span class="token front-matter-block front-matter yaml language-yaml important">**/route.ts</span><span class="token front-matter-block"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token front-matter-block"></span><span class="token front-matter-block punctuation" style="color:rgb(248, 248, 242)">---</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain" style="display:inline-block"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">Every route handler must call requireRole() from lib/auth/rbac.ts</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">before returning data. Use the permission constants exported from</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">that file. No unguarded endpoints in the API surface.</span><br></div></code></pre></div></div>
<p>This rule activates only when the agent is working on route handlers in the API directory. It doesn't clutter context when the agent is editing a React component or a utility function. And because it's a rule, not a suggestion in a general instruction file, the agent treats it as a hard constraint.</p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="rules-vs-instructions">Rules vs. instructions<a href="https://blog.constellationdev.io/2026/04/20/ai-tool-plugins#rules-vs-instructions" class="hash-link" aria-label="Direct link to Rules vs. instructions" title="Direct link to Rules vs. instructions" translate="no">​</a></h3>
<p>The distinction matters for how the LLM interprets them. Instructions say <em>"here's how things work around here."</em> Rules say <em>"you must do this or you must not do that."</em> The former provides context; the latter sets boundaries. Both are important, but conflating them dilutes the signal of each.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="commands-workflow-orchestration">Commands: Workflow Orchestration<a href="https://blog.constellationdev.io/2026/04/20/ai-tool-plugins#commands-workflow-orchestration" class="hash-link" aria-label="Direct link to Commands: Workflow Orchestration" title="Direct link to Commands: Workflow Orchestration" translate="no">​</a></h2>
<p>Commands are custom slash-command triggers that kick off defined processes or workflows. If instructions are what the agent <em>knows</em>, and rules are what the agent <em>must follow</em>, commands are what the agent <em>can do</em>.</p>
<p>The simplest commands are shortcuts for common tasks. A <code>/review</code> command might trigger a structured code review workflow. A <code>/commit</code> command might enforce your team's commit message format and run pre-commit checks. These save time, but the real power shows up in multi-stage orchestrated workflows.</p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="building-complex-workflows">Building complex workflows<a href="https://blog.constellationdev.io/2026/04/20/ai-tool-plugins#building-complex-workflows" class="hash-link" aria-label="Direct link to Building complex workflows" title="Direct link to Building complex workflows" translate="no">​</a></h3>
<p>Consider the challenge of working a development ticket from start to finish. A developer typically: reads the ticket, creates a branch, writes a plan, updates the ticket status, implements the changes, gets a code review, addresses feedback, runs final verification, creates a PR, and updates the ticket status again.</p>
<p>Each of those steps is straightforward. Orchestrating all of them in sequence, with the right context flowing between stages, is where the overhead lives. A command can encode this entire workflow:</p>
<div class="language-text codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-text codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token plain">/work-ticket PROJ-1234</span><br></div></code></pre></div></div>
<p>One invocation. The command handles ticket discovery, branch setup, planning, implementation, review coordination, and PR creation. The developer reviews the output and merges the result.</p>
<p>We've been running a workflow like this internally, and we'll do a deep dive on it in a future post. For now, the takeaway is this: <strong>commands let you encode institutional knowledge about <em>how work gets done</em> on your team</strong>, not just what the codebase looks like.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="hooks-the-immune-system">Hooks: The Immune System<a href="https://blog.constellationdev.io/2026/04/20/ai-tool-plugins#hooks-the-immune-system" class="hash-link" aria-label="Direct link to Hooks: The Immune System" title="Direct link to Hooks: The Immune System" translate="no">​</a></h2>
<p>Hooks are event-driven scripts that execute in response to specific actions: before or after a tool call, on session start, or at other trigger points. Where rules tell the agent what it <em>should</em> do, hooks enforce what <em>actually happens</em> at the system level.</p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="safety-hooks">Safety hooks<a href="https://blog.constellationdev.io/2026/04/20/ai-tool-plugins#safety-hooks" class="hash-link" aria-label="Direct link to Safety hooks" title="Direct link to Safety hooks" translate="no">​</a></h3>
<p>A pre-tool-use hook can intercept dangerous operations before they execute:</p>
<div class="language-json codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-json codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token punctuation" style="color:rgb(248, 248, 242)">{</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token property">"hooks"</span><span class="token operator">:</span><span class="token plain"> </span><span class="token punctuation" style="color:rgb(248, 248, 242)">{</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    </span><span class="token property">"PreToolUse"</span><span class="token operator">:</span><span class="token plain"> </span><span class="token punctuation" style="color:rgb(248, 248, 242)">[</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">      </span><span class="token punctuation" style="color:rgb(248, 248, 242)">{</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">        </span><span class="token property">"matcher"</span><span class="token operator">:</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">"Bash"</span><span class="token punctuation" style="color:rgb(248, 248, 242)">,</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">        </span><span class="token property">"hook"</span><span class="token operator">:</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">"scripts/validate-command.sh"</span><span class="token punctuation" style="color:rgb(248, 248, 242)">,</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">        </span><span class="token property">"description"</span><span class="token operator">:</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">"Block destructive operations"</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">      </span><span class="token punctuation" style="color:rgb(248, 248, 242)">}</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    </span><span class="token punctuation" style="color:rgb(248, 248, 242)">]</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token punctuation" style="color:rgb(248, 248, 242)">}</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token punctuation" style="color:rgb(248, 248, 242)">}</span><br></div></code></pre></div></div>
<p>The validation script might block <code>rm -rf</code> on protected directories, prevent <code>git push --force</code> to main, or reject commands that modify production infrastructure. The agent never has to "remember" these restrictions. The hook enforces them at the execution layer regardless of what's in context.</p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="automation-hooks">Automation hooks<a href="https://blog.constellationdev.io/2026/04/20/ai-tool-plugins#automation-hooks" class="hash-link" aria-label="Direct link to Automation hooks" title="Direct link to Automation hooks" translate="no">​</a></h3>
<p>Post-tool-use hooks automate the tedious parts of your workflow:</p>
<div class="language-json codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-json codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token punctuation" style="color:rgb(248, 248, 242)">{</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token property">"hooks"</span><span class="token operator">:</span><span class="token plain"> </span><span class="token punctuation" style="color:rgb(248, 248, 242)">{</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    </span><span class="token property">"PostToolUse"</span><span class="token operator">:</span><span class="token plain"> </span><span class="token punctuation" style="color:rgb(248, 248, 242)">[</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">      </span><span class="token punctuation" style="color:rgb(248, 248, 242)">{</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">        </span><span class="token property">"matcher"</span><span class="token operator">:</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">"Edit"</span><span class="token punctuation" style="color:rgb(248, 248, 242)">,</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">        </span><span class="token property">"hook"</span><span class="token operator">:</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">"scripts/auto-format.sh"</span><span class="token punctuation" style="color:rgb(248, 248, 242)">,</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">        </span><span class="token property">"description"</span><span class="token operator">:</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">"Run formatter after file edits"</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">      </span><span class="token punctuation" style="color:rgb(248, 248, 242)">}</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    </span><span class="token punctuation" style="color:rgb(248, 248, 242)">]</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token punctuation" style="color:rgb(248, 248, 242)">}</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token punctuation" style="color:rgb(248, 248, 242)">}</span><br></div></code></pre></div></div>
<p>Every time the agent edits a file, the formatter runs automatically. No "please run prettier" reminders. No style drift in AI-generated code. The workflow just handles it.</p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="why-hooks-matter">Why hooks matter<a href="https://blog.constellationdev.io/2026/04/20/ai-tool-plugins#why-hooks-matter" class="hash-link" aria-label="Direct link to Why hooks matter" title="Direct link to Why hooks matter" translate="no">​</a></h3>
<p>Instructions, skills, and rules all operate <em>within the LLM's context window</em>. They influence the model's behavior by shaping what it "thinks about." Hooks operate <em>outside the context window</em>, at the system level. This makes them the most reliable enforcement mechanism you have. The agent can't accidentally ignore a hook the way it might miss a rule buried in a long context.</p>
<p>Think of hooks as your AI workflow's immune system: always running, always watching, catching problems before they cause damage.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="plugins-bundling-it-all-together">Plugins: Bundling It All Together<a href="https://blog.constellationdev.io/2026/04/20/ai-tool-plugins#plugins-bundling-it-all-together" class="hash-link" aria-label="Direct link to Plugins: Bundling It All Together" title="Direct link to Plugins: Bundling It All Together" translate="no">​</a></h2>
<p>Each of these primitives (instructions, skills, rules, commands, hooks) is useful on its own. But the real leverage comes from <strong>bundling them into plugins</strong>: distributable packages that give an AI coding tool a complete set of capabilities for a specific domain or workflow.</p>
<p>A plugin for your team's project might include:</p>
<ul>
<li class=""><strong>Instructions</strong> defining your architecture and conventions</li>
<li class=""><strong>Skills</strong> for your design system, API patterns, and deployment procedures</li>
<li class=""><strong>Rules</strong> enforcing security requirements, testing standards, and code style</li>
<li class=""><strong>Commands</strong> for your team's workflows: ticket management, release processes, code review</li>
<li class=""><strong>Hooks</strong> for safety guardrails and automated quality checks</li>
</ul>
<p>Package it once, distribute it to the team, and every engineer's AI assistant operates with the same knowledge, the same guardrails, and the same capabilities. No more "works on my machine" for AI context. It's version-controlled and shared like any other development tool.</p>
<p><img decoding="async" loading="lazy" alt="Plugin Distribution Across a Team" src="https://blog.constellationdev.io/assets/images/plugin-bundle-988441f67f9e97ca1a1f68e1620e7a66.jpg" width="1376" height="768" class="img_ev3q"></p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="the-ecosystem-landscape">The ecosystem landscape<a href="https://blog.constellationdev.io/2026/04/20/ai-tool-plugins#the-ecosystem-landscape" class="hash-link" aria-label="Direct link to The ecosystem landscape" title="Direct link to The ecosystem landscape" translate="no">​</a></h3>
<p>The exciting part is that these concepts are converging across the AI coding tool ecosystem. The terminology differs, but the underlying primitives map cleanly:</p>
<table><thead><tr><th>Concept</th><th>Claude Code</th><th>Cursor</th><th>Copilot</th><th>OpenCode</th></tr></thead><tbody><tr><td>Instructions</td><td><code>CLAUDE.md</code></td><td><code>.cursorrules</code></td><td><code>AGENTS.md</code></td><td><code>AGENTS.md</code></td></tr><tr><td>Skills</td><td><code>skills/</code></td><td>-</td><td>-</td><td><code>skills/</code></td></tr><tr><td>Rules</td><td><code>.claude/rules/</code></td><td><code>.cursor/rules/</code></td><td>-</td><td>-</td></tr><tr><td>Commands</td><td><code>commands/</code></td><td>-</td><td>-</td><td><code>commands/</code></td></tr><tr><td>Hooks</td><td><code>settings.json</code></td><td>-</td><td>-</td><td><code>hooks/</code></td></tr><tr><td>Plugins</td><td><code>.claude/plugins/</code></td><td>Extensions</td><td>Extensions</td><td><code>plugins/</code></td></tr></tbody></table>
<p>Not every tool supports every primitive today. But the trajectory is clear: AI coding tools are evolving from standalone assistants into <strong>extensible platforms</strong>. Instructions came first because they're the simplest primitive. Skills, rules, commands, and hooks add layers of sophistication. Plugins package them for distribution.</p>
<p>The tools that embrace this extensibility model will win, because the teams building on top of them can encode their entire engineering culture into something their AI assistants actually understand and follow.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="the-bottom-line">The Bottom Line<a href="https://blog.constellationdev.io/2026/04/20/ai-tool-plugins#the-bottom-line" class="hash-link" aria-label="Direct link to The Bottom Line" title="Direct link to The Bottom Line" translate="no">​</a></h2>
<p>AI coding tools are powerful out of the box. But "out of the box" means generic. The developers and teams getting the most value from these tools aren't just using them. They're <strong>extending</strong> them.</p>
<p><strong>Instructions</strong> give the agent foundational project knowledge. <strong>Skills</strong> load specialized context on demand. <strong>Rules</strong> enforce guardrails at the right scope. <strong>Commands</strong> orchestrate multi-step workflows. <strong>Hooks</strong> provide system-level safety and automation. And <strong>plugins</strong> bundle all of it into shareable, version-controlled packages.</p>
<p>This is context engineering applied at the team level. Not just managing what goes into the context window for a single session, but systematically encoding your team's knowledge, conventions, and workflows so that every AI-assisted session starts from a position of understanding rather than ignorance.</p>
<p>The AI assistant that knows your codebase is useful. The one that knows your codebase <em>and</em> your team's way of working? That's the one that changes how fast you ship.</p>
<hr>
<p>At <a href="https://shiftinbits.com/" target="_blank" rel="noopener noreferrer" class="">ShiftinBits</a> we're building <a href="https://constellationdev.io/" target="_blank" rel="noopener noreferrer" class="">Constellation</a>, the shared code intelligence layer for AI coding agents. Constellation maintains a team-wide knowledge graph of your codebase and exposes it to tools like Claude Code, Cursor, GitHub Copilot, and Windsurf via the <strong>Model Context Protocol (MCP)</strong>, giving them structural understanding of your code with symbol-level search, dependency graphs, impact analysis, and more.</p>
<p>If you're building with AI coding tools and want to see what your agents can do with <em>real</em> code intelligence, <a href="https://constellationdev.io/" target="_blank" rel="noopener noreferrer" class="">check out Constellation</a>. For a limited time, we're giving early adopters 50% off with the promo code <code style="cursor:pointer;white-space:nowrap" title="Click to copy" role="button" aria-label="Copy to clipboard">ROOTNODE50<span style="margin-left:0.4em;opacity:0.5;transition:opacity 0.15s"><svg xmlns="http://www.w3.org/2000/svg" width="0.85em" height="0.85em" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="vertical-align:-0.1em"><rect width="14" height="14" x="8" y="8" rx="2" ry="2"></rect><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"></path></svg></span></code>.</p>]]></content:encoded>
            <category>ai-driven development</category>
            <category>context engineering</category>
            <category>plugins</category>
            <category>developer tools</category>
            <category>ai coding agents</category>
            <category>claude code</category>
            <category>cursor</category>
            <category>copilot</category>
            <category>software engineering</category>
        </item>
        <item>
            <title><![CDATA[Code Mode: Rethinking MCP]]></title>
            <link>https://blog.constellationdev.io/2026/04/15/code-mode</link>
            <guid>https://blog.constellationdev.io/2026/04/15/code-mode</guid>
            <pubDate>Wed, 15 Apr 2026 00:00:00 GMT</pubDate>
            <description><![CDATA[Traditional MCP tool calling doesn't scale. Learn how Code Mode lets AI agents compose queries as code, cutting token overhead and unlocking dynamic multi-step analysis in a single invocation.]]></description>
            <content:encoded><![CDATA[<p><em>What if, instead of giving your AI agent a menu of tools to pick from, you gave it an SDK and let it write code?</em></p>
<p>In our <a class="" href="https://blog.constellationdev.io/2026/04/10/context-engineering">last post on context engineering</a>, we talked about why every token in an LLM's context window needs to earn its spot. We explored how structural code intelligence beats text search, and how purpose-built MCP tools give AI agents a real understanding of your codebase instead of a pile of grep results.</p>
<p>But we glossed over something important: <em>how</em> those MCP tools are delivered to the agent matters just as much as what they do. And the standard approach to MCP tool calling has some fundamental scaling problems.</p>
<p>This post is about how we solved them. It's about <strong>Code Mode</strong>, a pattern that replaces traditional MCP tool calling with something far more powerful, and why we adopted it as the foundation of Constellation's MCP server.</p>
<!-- -->
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="how-traditional-mcp-tool-calling-works">How Traditional MCP Tool Calling Works<a href="https://blog.constellationdev.io/2026/04/15/code-mode#how-traditional-mcp-tool-calling-works" class="hash-link" aria-label="Direct link to How Traditional MCP Tool Calling Works" title="Direct link to How Traditional MCP Tool Calling Works" translate="no">​</a></h2>
<p>Let's start with the standard model. When an MCP server exposes tools to an AI agent, each tool gets a full definition: a name, a description, a JSON schema for its parameters, and type information for its response. The agent sees all of these definitions in its system prompt, picks the right tool for the job, fills in the parameters, and gets back a result.</p>
<p>For simple use cases, this works great. One tool, one call, one result. Clean and predictable.</p>
<p>But Constellation isn't a simple use case.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="what-breaks-at-scale">What Breaks at Scale<a href="https://blog.constellationdev.io/2026/04/15/code-mode#what-breaks-at-scale" class="hash-link" aria-label="Direct link to What Breaks at Scale" title="Direct link to What Breaks at Scale" translate="no">​</a></h2>
<p>Constellation's code intelligence API has, today, 11 distinct operations: symbol search, symbol details, dependency analysis, dependents lookup, circular dependency detection, symbol usage tracing, call graph traversal, impact analysis, orphaned code detection, architecture overview, and a health check. Each one serves a different purpose. Each one has its own parameters and response shape.</p>
<p>In a traditional MCP setup, that means 11 separate tool definitions sitting in the system prompt. Every single conversation starts with the LLM processing all of those schemas, their descriptions, their parameter types, their response formats. That's a significant chunk of tokens consumed before the developer even asks a question.</p>
<p>But the token cost of <em>definitions</em> is just the beginning. The real problem shows up during multi-step analysis.</p>
<p><img decoding="async" loading="lazy" alt="Traditional vs Code Mode" src="https://blog.constellationdev.io/assets/images/trad-vs-codemode-4b8a0d5c1bc3a40ee356a645d98fbf41.jpg" width="1376" height="768" class="img_ev3q"></p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="the-round-trip-tax">The Round-Trip Tax<a href="https://blog.constellationdev.io/2026/04/15/code-mode#the-round-trip-tax" class="hash-link" aria-label="Direct link to The Round-Trip Tax" title="Direct link to The Round-Trip Tax" translate="no">​</a></h3>
<p>Say an AI agent needs to answer a common question: <em>"Is it safe to refactor the AuthService class?"</em></p>
<p>With traditional tool calling, here's what happens:</p>
<ol>
<li class=""><strong>Call <code>searchSymbols</code></strong> with query "AuthService". The full response comes back into context, every matching symbol with all of its metadata.</li>
<li class="">The LLM reads the response, identifies the right symbol, and <strong>calls <code>getDependents</code></strong>. Another full response lands in context.</li>
<li class="">The LLM reads <em>that</em> response and <strong>calls <code>impactAnalysis</code></strong>. Yet another full response.</li>
<li class="">Finally, the LLM synthesizes everything and answers the question.</li>
</ol>
<p>Three round-trips. Three full response payloads dumped into the context window. The LLM had to process each intermediate result in its entirety just to extract the few fields it actually needed for the next step. All of that intermediate data is still sitting in the context window, taking up space, adding noise, and pushing the model further from the signal that matters.</p>
<p><img decoding="async" loading="lazy" alt="Round Trip Tax" src="https://blog.constellationdev.io/assets/images/tool-calls-4c77a6e8a867d17a694c3104b369fa26.jpg" width="1376" height="768" class="img_ev3q"></p>
<p>This is the <strong>round-trip tax</strong>, and it compounds quickly for any non-trivial analysis.</p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="the-wrong-muscle">The Wrong Muscle<a href="https://blog.constellationdev.io/2026/04/15/code-mode#the-wrong-muscle" class="hash-link" aria-label="Direct link to The Wrong Muscle" title="Direct link to The Wrong Muscle" translate="no">​</a></h3>
<p>There's a deeper issue here too, and <a href="https://blog.cloudflare.com/code-mode/" target="_blank" rel="noopener noreferrer" class="">Cloudflare's engineering team</a> articulated it perfectly: the special tokens used in tool calls are things LLMs have rarely seen in training data. LLMs learn from millions of real-world code examples, but they only encounter synthetic, contrived examples of tool-call formatting.</p>
<p>As Cloudflare put it, asking an LLM to work through tool calling is like putting Shakespeare through a crash course in Mandarin and then asking him to write a play in it. He'd manage, but it wouldn't be his best work.</p>
<p>You know what LLMs <em>have</em> trained on extensively? Code. Real, production JavaScript and TypeScript, with function calls, variable assignments, conditionals, and <code>Promise.all()</code>. Billions of examples.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="what-is-code-mode">What Is Code Mode?<a href="https://blog.constellationdev.io/2026/04/15/code-mode#what-is-code-mode" class="hash-link" aria-label="Direct link to What Is Code Mode?" title="Direct link to What Is Code Mode?" translate="no">​</a></h2>
<p>Code Mode flips the model. Instead of exposing 11 separate tools, Constellation's MCP server exposes <strong>one tool</strong> called <code>code_intel</code>. That tool accepts a single parameter: JavaScript code.</p>
<p>The LLM writes code that calls an API object with methods like <code>searchSymbols()</code>, <code>getDependents()</code>, and <code>impactAnalysis()</code>. The code runs in a secure sandbox, executes against Constellation's code intelligence backend, and returns whatever the LLM's code constructs as its final expression.</p>
<p>That's it. One tool definition in the system prompt. One invocation per task. The LLM does what it does best: write code.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="why-constellation-chose-code-mode">Why Constellation Chose Code Mode<a href="https://blog.constellationdev.io/2026/04/15/code-mode#why-constellation-chose-code-mode" class="hash-link" aria-label="Direct link to Why Constellation Chose Code Mode" title="Direct link to Why Constellation Chose Code Mode" translate="no">​</a></h2>
<p>We adopted Code Mode for two primary reasons, and both come back to the same principle we talked about in our context engineering post: making every token count.</p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="1-dynamic-composition">1. Dynamic Composition<a href="https://blog.constellationdev.io/2026/04/15/code-mode#1-dynamic-composition" class="hash-link" aria-label="Direct link to 1. Dynamic Composition" title="Direct link to 1. Dynamic Composition" translate="no">​</a></h3>
<p>This is the big one. With Code Mode, the LLM isn't limited to pre-defined request/response patterns. It can compose arbitrarily complex queries by chaining API calls, using the results of one call to drive the next, running independent calls in parallel, and constructing a custom response object that contains <em>only</em> the data it needs.</p>
<p>Remember that "is it safe to refactor AuthService?" scenario? Here's what it looks like with Code Mode:</p>
<div class="language-javascript codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-javascript codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token comment" style="color:rgb(98, 114, 164)">// Single code_intel invocation — one tool call, not three</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token keyword" style="color:rgb(189, 147, 249);font-style:italic">const</span><span class="token plain"> </span><span class="token punctuation" style="color:rgb(248, 248, 242)">{</span><span class="token plain"> symbols </span><span class="token punctuation" style="color:rgb(248, 248, 242)">}</span><span class="token plain"> </span><span class="token operator">=</span><span class="token plain"> </span><span class="token keyword control-flow" style="color:rgb(189, 147, 249);font-style:italic">await</span><span class="token plain"> api</span><span class="token punctuation" style="color:rgb(248, 248, 242)">.</span><span class="token method function property-access" style="color:rgb(80, 250, 123)">searchSymbols</span><span class="token punctuation" style="color:rgb(248, 248, 242)">(</span><span class="token punctuation" style="color:rgb(248, 248, 242)">{</span><span class="token plain"> </span><span class="token literal-property property">query</span><span class="token operator">:</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">"AuthService"</span><span class="token plain"> </span><span class="token punctuation" style="color:rgb(248, 248, 242)">}</span><span class="token punctuation" style="color:rgb(248, 248, 242)">)</span><span class="token punctuation" style="color:rgb(248, 248, 242)">;</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token keyword" style="color:rgb(189, 147, 249);font-style:italic">const</span><span class="token plain"> target </span><span class="token operator">=</span><span class="token plain"> symbols</span><span class="token punctuation" style="color:rgb(248, 248, 242)">[</span><span class="token number">0</span><span class="token punctuation" style="color:rgb(248, 248, 242)">]</span><span class="token punctuation" style="color:rgb(248, 248, 242)">;</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain" style="display:inline-block"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token comment" style="color:rgb(98, 114, 164)">// Parallel execution — both calls run simultaneously</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token keyword" style="color:rgb(189, 147, 249);font-style:italic">const</span><span class="token plain"> </span><span class="token punctuation" style="color:rgb(248, 248, 242)">[</span><span class="token plain">dependents</span><span class="token punctuation" style="color:rgb(248, 248, 242)">,</span><span class="token plain"> impact</span><span class="token punctuation" style="color:rgb(248, 248, 242)">]</span><span class="token plain"> </span><span class="token operator">=</span><span class="token plain"> </span><span class="token keyword control-flow" style="color:rgb(189, 147, 249);font-style:italic">await</span><span class="token plain"> </span><span class="token known-class-name class-name">Promise</span><span class="token punctuation" style="color:rgb(248, 248, 242)">.</span><span class="token method function property-access" style="color:rgb(80, 250, 123)">all</span><span class="token punctuation" style="color:rgb(248, 248, 242)">(</span><span class="token punctuation" style="color:rgb(248, 248, 242)">[</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  api</span><span class="token punctuation" style="color:rgb(248, 248, 242)">.</span><span class="token method function property-access" style="color:rgb(80, 250, 123)">getDependents</span><span class="token punctuation" style="color:rgb(248, 248, 242)">(</span><span class="token punctuation" style="color:rgb(248, 248, 242)">{</span><span class="token plain"> </span><span class="token literal-property property">filePath</span><span class="token operator">:</span><span class="token plain"> target</span><span class="token punctuation" style="color:rgb(248, 248, 242)">.</span><span class="token property-access">filePath</span><span class="token plain"> </span><span class="token punctuation" style="color:rgb(248, 248, 242)">}</span><span class="token punctuation" style="color:rgb(248, 248, 242)">)</span><span class="token punctuation" style="color:rgb(248, 248, 242)">,</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  api</span><span class="token punctuation" style="color:rgb(248, 248, 242)">.</span><span class="token method function property-access" style="color:rgb(80, 250, 123)">impactAnalysis</span><span class="token punctuation" style="color:rgb(248, 248, 242)">(</span><span class="token punctuation" style="color:rgb(248, 248, 242)">{</span><span class="token plain"> </span><span class="token literal-property property">symbolId</span><span class="token operator">:</span><span class="token plain"> target</span><span class="token punctuation" style="color:rgb(248, 248, 242)">.</span><span class="token property-access">id</span><span class="token plain"> </span><span class="token punctuation" style="color:rgb(248, 248, 242)">}</span><span class="token punctuation" style="color:rgb(248, 248, 242)">)</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token punctuation" style="color:rgb(248, 248, 242)">]</span><span class="token punctuation" style="color:rgb(248, 248, 242)">)</span><span class="token punctuation" style="color:rgb(248, 248, 242)">;</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain" style="display:inline-block"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token comment" style="color:rgb(98, 114, 164)">// Custom response — only the fields the LLM actually needs</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token keyword control-flow" style="color:rgb(189, 147, 249);font-style:italic">return</span><span class="token plain"> </span><span class="token punctuation" style="color:rgb(248, 248, 242)">{</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token literal-property property">symbol</span><span class="token operator">:</span><span class="token plain"> target</span><span class="token punctuation" style="color:rgb(248, 248, 242)">.</span><span class="token property-access">name</span><span class="token punctuation" style="color:rgb(248, 248, 242)">,</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token literal-property property">kind</span><span class="token operator">:</span><span class="token plain"> target</span><span class="token punctuation" style="color:rgb(248, 248, 242)">.</span><span class="token property-access">kind</span><span class="token punctuation" style="color:rgb(248, 248, 242)">,</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token literal-property property">file</span><span class="token operator">:</span><span class="token plain"> target</span><span class="token punctuation" style="color:rgb(248, 248, 242)">.</span><span class="token property-access">filePath</span><span class="token punctuation" style="color:rgb(248, 248, 242)">,</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token literal-property property">directDependentCount</span><span class="token operator">:</span><span class="token plain"> dependents</span><span class="token punctuation" style="color:rgb(248, 248, 242)">.</span><span class="token property-access">directDependents</span><span class="token punctuation" style="color:rgb(248, 248, 242)">.</span><span class="token property-access">length</span><span class="token punctuation" style="color:rgb(248, 248, 242)">,</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token literal-property property">risk</span><span class="token operator">:</span><span class="token plain"> impact</span><span class="token punctuation" style="color:rgb(248, 248, 242)">.</span><span class="token property-access">breakingChangeRisk</span><span class="token punctuation" style="color:rgb(248, 248, 242)">,</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token literal-property property">affectedFiles</span><span class="token operator">:</span><span class="token plain"> impact</span><span class="token punctuation" style="color:rgb(248, 248, 242)">.</span><span class="token property-access">affectedFiles</span><span class="token punctuation" style="color:rgb(248, 248, 242)">.</span><span class="token method function property-access" style="color:rgb(80, 250, 123)">map</span><span class="token punctuation" style="color:rgb(248, 248, 242)">(</span><span class="token parameter">f</span><span class="token plain"> </span><span class="token arrow operator">=&gt;</span><span class="token plain"> f</span><span class="token punctuation" style="color:rgb(248, 248, 242)">.</span><span class="token property-access">filePath</span><span class="token punctuation" style="color:rgb(248, 248, 242)">)</span><span class="token punctuation" style="color:rgb(248, 248, 242)">,</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token literal-property property">testFilesAffected</span><span class="token operator">:</span><span class="token plain"> impact</span><span class="token punctuation" style="color:rgb(248, 248, 242)">.</span><span class="token property-access">affectedFiles</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    </span><span class="token punctuation" style="color:rgb(248, 248, 242)">.</span><span class="token method function property-access" style="color:rgb(80, 250, 123)">filter</span><span class="token punctuation" style="color:rgb(248, 248, 242)">(</span><span class="token parameter">f</span><span class="token plain"> </span><span class="token arrow operator">=&gt;</span><span class="token plain"> f</span><span class="token punctuation" style="color:rgb(248, 248, 242)">.</span><span class="token property-access">filePath</span><span class="token punctuation" style="color:rgb(248, 248, 242)">.</span><span class="token method function property-access" style="color:rgb(80, 250, 123)">includes</span><span class="token punctuation" style="color:rgb(248, 248, 242)">(</span><span class="token string" style="color:rgb(255, 121, 198)">'.spec.'</span><span class="token punctuation" style="color:rgb(248, 248, 242)">)</span><span class="token punctuation" style="color:rgb(248, 248, 242)">)</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    </span><span class="token punctuation" style="color:rgb(248, 248, 242)">.</span><span class="token method function property-access" style="color:rgb(80, 250, 123)">map</span><span class="token punctuation" style="color:rgb(248, 248, 242)">(</span><span class="token parameter">f</span><span class="token plain"> </span><span class="token arrow operator">=&gt;</span><span class="token plain"> f</span><span class="token punctuation" style="color:rgb(248, 248, 242)">.</span><span class="token property-access">filePath</span><span class="token punctuation" style="color:rgb(248, 248, 242)">)</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token punctuation" style="color:rgb(248, 248, 242)">}</span><span class="token punctuation" style="color:rgb(248, 248, 242)">;</span><br></div></code></pre></div></div>
<p>One tool call. One round-trip. The search result feeds directly into the parallel queries, and the final <code>return</code> statement shapes the response to include exactly what's needed for the refactoring assessment. No intermediate payloads bloating the context. No wasted tokens on fields the LLM doesn't care about.</p>
<p><img decoding="async" loading="lazy" alt="Dynamic Composition" src="https://blog.constellationdev.io/assets/images/dynamic-composition-fc7abec2b9c21d7b4fc83bd0bbb737f7.jpg" width="1376" height="768" class="img_ev3q"></p>
<p>And this is a relatively simple example. In practice, agents compose much more sophisticated queries. Need to find all implementations of an interface, check each one for circular dependencies, and return only the problematic ones with their dependency chains? That's a single Code Mode invocation.</p>
<div class="language-javascript codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-javascript codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token keyword" style="color:rgb(189, 147, 249);font-style:italic">const</span><span class="token plain"> </span><span class="token punctuation" style="color:rgb(248, 248, 242)">{</span><span class="token plain"> symbols </span><span class="token punctuation" style="color:rgb(248, 248, 242)">}</span><span class="token plain"> </span><span class="token operator">=</span><span class="token plain"> </span><span class="token keyword control-flow" style="color:rgb(189, 147, 249);font-style:italic">await</span><span class="token plain"> api</span><span class="token punctuation" style="color:rgb(248, 248, 242)">.</span><span class="token method function property-access" style="color:rgb(80, 250, 123)">searchSymbols</span><span class="token punctuation" style="color:rgb(248, 248, 242)">(</span><span class="token punctuation" style="color:rgb(248, 248, 242)">{</span><span class="token plain"> </span><span class="token literal-property property">query</span><span class="token operator">:</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">"PaymentProvider"</span><span class="token plain"> </span><span class="token punctuation" style="color:rgb(248, 248, 242)">}</span><span class="token punctuation" style="color:rgb(248, 248, 242)">)</span><span class="token punctuation" style="color:rgb(248, 248, 242)">;</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token keyword" style="color:rgb(189, 147, 249);font-style:italic">const</span><span class="token plain"> implementations </span><span class="token operator">=</span><span class="token plain"> symbols</span><span class="token punctuation" style="color:rgb(248, 248, 242)">.</span><span class="token method function property-access" style="color:rgb(80, 250, 123)">filter</span><span class="token punctuation" style="color:rgb(248, 248, 242)">(</span><span class="token parameter">s</span><span class="token plain"> </span><span class="token arrow operator">=&gt;</span><span class="token plain"> s</span><span class="token punctuation" style="color:rgb(248, 248, 242)">.</span><span class="token property-access">kind</span><span class="token plain"> </span><span class="token operator">===</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">"class"</span><span class="token punctuation" style="color:rgb(248, 248, 242)">)</span><span class="token punctuation" style="color:rgb(248, 248, 242)">;</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain" style="display:inline-block"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token keyword" style="color:rgb(189, 147, 249);font-style:italic">const</span><span class="token plain"> results </span><span class="token operator">=</span><span class="token plain"> </span><span class="token keyword control-flow" style="color:rgb(189, 147, 249);font-style:italic">await</span><span class="token plain"> </span><span class="token known-class-name class-name">Promise</span><span class="token punctuation" style="color:rgb(248, 248, 242)">.</span><span class="token method function property-access" style="color:rgb(80, 250, 123)">all</span><span class="token punctuation" style="color:rgb(248, 248, 242)">(</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  implementations</span><span class="token punctuation" style="color:rgb(248, 248, 242)">.</span><span class="token method function property-access" style="color:rgb(80, 250, 123)">map</span><span class="token punctuation" style="color:rgb(248, 248, 242)">(</span><span class="token keyword" style="color:rgb(189, 147, 249);font-style:italic">async</span><span class="token plain"> </span><span class="token punctuation" style="color:rgb(248, 248, 242)">(</span><span class="token parameter">impl</span><span class="token punctuation" style="color:rgb(248, 248, 242)">)</span><span class="token plain"> </span><span class="token arrow operator">=&gt;</span><span class="token plain"> </span><span class="token punctuation" style="color:rgb(248, 248, 242)">{</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    </span><span class="token keyword" style="color:rgb(189, 147, 249);font-style:italic">const</span><span class="token plain"> cycles </span><span class="token operator">=</span><span class="token plain"> </span><span class="token keyword control-flow" style="color:rgb(189, 147, 249);font-style:italic">await</span><span class="token plain"> api</span><span class="token punctuation" style="color:rgb(248, 248, 242)">.</span><span class="token method function property-access" style="color:rgb(80, 250, 123)">findCircularDependencies</span><span class="token punctuation" style="color:rgb(248, 248, 242)">(</span><span class="token punctuation" style="color:rgb(248, 248, 242)">{</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">      </span><span class="token literal-property property">filePath</span><span class="token operator">:</span><span class="token plain"> impl</span><span class="token punctuation" style="color:rgb(248, 248, 242)">.</span><span class="token property-access">filePath</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    </span><span class="token punctuation" style="color:rgb(248, 248, 242)">}</span><span class="token punctuation" style="color:rgb(248, 248, 242)">)</span><span class="token punctuation" style="color:rgb(248, 248, 242)">;</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    </span><span class="token keyword control-flow" style="color:rgb(189, 147, 249);font-style:italic">return</span><span class="token plain"> </span><span class="token punctuation" style="color:rgb(248, 248, 242)">{</span><span class="token plain"> </span><span class="token literal-property property">name</span><span class="token operator">:</span><span class="token plain"> impl</span><span class="token punctuation" style="color:rgb(248, 248, 242)">.</span><span class="token property-access">name</span><span class="token punctuation" style="color:rgb(248, 248, 242)">,</span><span class="token plain"> </span><span class="token literal-property property">file</span><span class="token operator">:</span><span class="token plain"> impl</span><span class="token punctuation" style="color:rgb(248, 248, 242)">.</span><span class="token property-access">filePath</span><span class="token punctuation" style="color:rgb(248, 248, 242)">,</span><span class="token plain"> </span><span class="token literal-property property">cycles</span><span class="token operator">:</span><span class="token plain"> cycles</span><span class="token punctuation" style="color:rgb(248, 248, 242)">.</span><span class="token property-access">cycles</span><span class="token plain"> </span><span class="token punctuation" style="color:rgb(248, 248, 242)">}</span><span class="token punctuation" style="color:rgb(248, 248, 242)">;</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token punctuation" style="color:rgb(248, 248, 242)">}</span><span class="token punctuation" style="color:rgb(248, 248, 242)">)</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token punctuation" style="color:rgb(248, 248, 242)">)</span><span class="token punctuation" style="color:rgb(248, 248, 242)">;</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain" style="display:inline-block"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token comment" style="color:rgb(98, 114, 164)">// Only return the ones with actual circular dependencies</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token keyword control-flow" style="color:rgb(189, 147, 249);font-style:italic">return</span><span class="token plain"> results</span><span class="token punctuation" style="color:rgb(248, 248, 242)">.</span><span class="token method function property-access" style="color:rgb(80, 250, 123)">filter</span><span class="token punctuation" style="color:rgb(248, 248, 242)">(</span><span class="token parameter">r</span><span class="token plain"> </span><span class="token arrow operator">=&gt;</span><span class="token plain"> r</span><span class="token punctuation" style="color:rgb(248, 248, 242)">.</span><span class="token property-access">cycles</span><span class="token punctuation" style="color:rgb(248, 248, 242)">.</span><span class="token property-access">length</span><span class="token plain"> </span><span class="token operator">&gt;</span><span class="token plain"> </span><span class="token number">0</span><span class="token punctuation" style="color:rgb(248, 248, 242)">)</span><span class="token punctuation" style="color:rgb(248, 248, 242)">;</span><br></div></code></pre></div></div>
<p>The LLM is doing <em>programming</em>. It's filtering, mapping, awaiting, and composing. This is square in its wheelhouse.</p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="2-token-economics">2. Token Economics<a href="https://blog.constellationdev.io/2026/04/15/code-mode#2-token-economics" class="hash-link" aria-label="Direct link to 2. Token Economics" title="Direct link to 2. Token Economics" translate="no">​</a></h3>
<p>The second reason is pure arithmetic.</p>
<p><strong>Definition overhead</strong>: Traditional MCP would put 11 tool schemas in the system prompt. With Code Mode, there's one tool definition plus a concise API reference describing the available methods. The savings scale linearly with the number of operations your server supports, and Constellation's operation count will only grow over time.</p>
<p><strong>Response overhead</strong>: In a traditional multi-step flow, every intermediate response enters the context window in full. The LLM reads it, extracts what it needs, and moves on, but the full payload stays in context for the remainder of the conversation. With Code Mode, the sandbox processes those intermediate results internally. Only the final, LLM-curated response makes it back into the context window.</p>
<p><strong>Cumulative savings</strong>: Over the course of a coding session with dozens of code intelligence queries, the token savings compound significantly. Cleaner context means the model stays sharper longer, hits compaction less frequently, and produces more accurate results. It's exactly the kind of context engineering we advocated for in our previous post, applied at the protocol level.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="what-this-means-for-developers">What This Means for Developers<a href="https://blog.constellationdev.io/2026/04/15/code-mode#what-this-means-for-developers" class="hash-link" aria-label="Direct link to What This Means for Developers" title="Direct link to What This Means for Developers" translate="no">​</a></h2>
<p>If you're using Constellation with Claude Code, Cursor, Windsurf, or any MCP-compatible tool, you don't need to think about any of this. Code Mode is invisible to you. Your AI agent simply has access to a <code>code_intel</code> tool and uses it to understand your codebase.</p>
<p>But what you <em>will</em> notice is that your agent handles complex questions more fluidly. It answers "what depends on this?" and "what would break if I changed that?" in a single step instead of fumbling through multiple rounds of tool calls. It stays coherent further into long sessions because its context window isn't clogged with intermediate query results.</p>
<p>The agent writes better queries because it's writing code, the thing it was trained to do, instead of wrestling with structured tool-call syntax. And it returns tighter, more relevant answers because it controls the shape of every response.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="the-bigger-picture">The Bigger Picture<a href="https://blog.constellationdev.io/2026/04/15/code-mode#the-bigger-picture" class="hash-link" aria-label="Direct link to The Bigger Picture" title="Direct link to The Bigger Picture" translate="no">​</a></h2>
<p>Code Mode isn't a Constellation invention. The pattern was pioneered by <a href="https://blog.cloudflare.com/code-mode/" target="_blank" rel="noopener noreferrer" class="">Cloudflare's Agents SDK team</a>, and we expect it to gain traction across the MCP ecosystem as server developers hit the same scaling walls we did. The MCP standard provides the connectivity, authorization, and discoverability layer. Code Mode provides a better execution model on top of it.</p>
<p>For us, adopting Code Mode was a natural extension of the context engineering principles we've been building around. Constellation exists to give AI agents structural understanding of code without dumping raw source files into the context window. Code Mode extends that philosophy to the protocol layer itself: don't just deliver better <em>answers</em>, deliver them more <em>efficiently</em>.</p>
<p>As MCP servers grow more capable, as they expose more operations with richer response types, the traditional one-tool-per-operation model will strain under its own weight. Code Mode offers a path that scales, and does so by leaning into what LLMs already do well.</p>
<hr>
<p>At <a href="https://shiftinbits.com/" target="_blank" rel="noopener noreferrer" class="">ShiftinBits</a> we're building <a href="https://constellationdev.io/" target="_blank" rel="noopener noreferrer" class="">Constellation</a>, the shared code intelligence layer for AI coding agents. Constellation maintains a team-wide knowledge graph of your codebase and exposes it to tools like Claude Code, Cursor, GitHub Copilot, and Windsurf via the <strong>Model Context Protocol (MCP)</strong>, giving them structural understanding of your code with symbol-level search, dependency graphs, impact analysis, and more.</p>
<p>If you're building with AI coding tools and want to see what your agents can do with <em>real</em> code intelligence, <a href="https://constellationdev.io/" target="_blank" rel="noopener noreferrer" class="">check out Constellation</a>. For a limited time, we're giving early adopters 50% off with the promo code <code style="cursor:pointer;white-space:nowrap" title="Click to copy" role="button" aria-label="Copy to clipboard">ROOTNODE50<span style="margin-left:0.4em;opacity:0.5;transition:opacity 0.15s"><svg xmlns="http://www.w3.org/2000/svg" width="0.85em" height="0.85em" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="vertical-align:-0.1em"><rect width="14" height="14" x="8" y="8" rx="2" ry="2"></rect><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"></path></svg></span></code>.</p>]]></content:encoded>
            <category>model context protocol</category>
            <category>code mode</category>
            <category>mcp</category>
            <category>ai agents</category>
            <category>token optimization</category>
            <category>code intelligence</category>
            <category>context engineering</category>
            <category>developer tools</category>
        </item>
        <item>
            <title><![CDATA[Context Engineering in AI-Driven Software Development]]></title>
            <link>https://blog.constellationdev.io/2026/04/10/context-engineering</link>
            <guid>https://blog.constellationdev.io/2026/04/10/context-engineering</guid>
            <pubDate>Fri, 10 Apr 2026 00:00:00 GMT</pubDate>
            <description><![CDATA[Learn how context engineering transforms AI-driven development. Discover why grep-based code navigation wastes tokens and how structural code intelligence via MCP gives tools like Claude Code and Cursor an accurate understanding of your codebase.]]></description>
            <content:encoded><![CDATA[<p><em>Your AI coding assistant is only as good as the context you give it. Here's how to stop wasting tokens on grep and start engineering context like a pro.</em></p>
<p>Every developer who's spent time with an AI coding assistant has hit that wall. You're deep into a refactoring session with Claude Code, Cursor, GitHub Copilot, Windsurf, whatever your tool of choice, and it's humming along. Then suddenly it starts hallucinating function signatures, suggesting imports that don't exist, or confidently pointing you to code that was deleted three sprints ago.</p>
<p>The problem isn't the model. It's the context.</p>
<p><strong>Context engineering</strong> is quickly becoming one of the most important skills for developers working with AI tools, and nowhere is it more critical than when navigating source code. In this post I'll break down what context engineering actually means here, why it matters so much for code, and how purpose-built tooling can transform your AI agent from a glorified grep machine into something that actually <em>understands</em> your codebase.</p>
<!-- -->
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="what-is-context-engineering">What Is Context Engineering?<a href="https://blog.constellationdev.io/2026/04/10/context-engineering#what-is-context-engineering" class="hash-link" aria-label="Direct link to What Is Context Engineering?" title="Direct link to What Is Context Engineering?" translate="no">​</a></h2>
<p>Before we talk about code, let's ground ourselves in how LLMs work. At least enough to make the rest of this post click.</p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="tokens-the-currency-of-ai">Tokens: The Currency of AI<a href="https://blog.constellationdev.io/2026/04/10/context-engineering#tokens-the-currency-of-ai" class="hash-link" aria-label="Direct link to Tokens: The Currency of AI" title="Direct link to Tokens: The Currency of AI" translate="no">​</a></h3>
<p>LLMs don't read text the way you and I do. They process <strong>tokens</strong>, chunks of text that are roughly ¾ of a word on average. Every word you send, every line of code the model reads, every character of its response, it all costs tokens.</p>
<p>This matters because tokens aren't just a billing unit. They're a sort of <strong>finite resource</strong> that directly determines what the model can "think about" at any given moment.</p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="the-context-window">The Context Window<a href="https://blog.constellationdev.io/2026/04/10/context-engineering#the-context-window" class="hash-link" aria-label="Direct link to The Context Window" title="Direct link to The Context Window" translate="no">​</a></h3>
<p>The context window is the model's working memory, the total number of tokens it can hold at once. This includes the system prompt, your conversation history, any files or tool results, <em>and</em> the model's own responses. Modern models offer context windows ranging from 128K to 1M+ tokens, which sounds enormous until you start feeding them source code.</p>
<p>Most developers just don't realize that <strong>a bigger context window doesn't mean a better experience.</strong> As the window fills up, models are more likely to:</p>
<ul>
<li class="">Miss instructions buried in the middle of the context</li>
<li class="">Hallucinate details that blend information from unrelated parts of the window</li>
<li class="">Lose track of what's actually relevant versus what's simply <em>present</em></li>
</ul>
<p><img decoding="async" loading="lazy" alt="Context Visualization" src="https://blog.constellationdev.io/assets/images/context-desks-f74a5f457d25edc34695f05c87b0bd46.jpg" width="1200" height="669" class="img_ev3q"></p>
<p>Think of it like a desk. A bigger desk lets you spread out more papers, but it doesn't help you find the one you need faster. At some point, the clutter actively hurts.</p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="context-compaction">Context Compaction<a href="https://blog.constellationdev.io/2026/04/10/context-engineering#context-compaction" class="hash-link" aria-label="Direct link to Context Compaction" title="Direct link to Context Compaction" translate="no">​</a></h3>
<p>This is where "context compaction" comes in, the practice of summarizing or pruning older conversation history to free up space in the context window. Tools like Claude Code and Cursor will do this automatically when context gets long, condensing earlier exchanges into summaries so the model has room to keep working.</p>
<p>Compaction helps, but mostly as a band-aid to allow for longer-running conversations. The real question is: <strong>how do we avoid filling the context window with low-value information in the first place?</strong></p>
<p>That's context engineering.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="context-engineering-in-software-development">Context Engineering in Software Development<a href="https://blog.constellationdev.io/2026/04/10/context-engineering#context-engineering-in-software-development" class="hash-link" aria-label="Direct link to Context Engineering in Software Development" title="Direct link to Context Engineering in Software Development" translate="no">​</a></h2>
<p>Context engineering is the discipline of deliberately controlling what information enters an LLM's context window, when it enters, and in what form. In software development, this takes two primary shapes.</p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="1-manual-context-management">1. Manual Context Management<a href="https://blog.constellationdev.io/2026/04/10/context-engineering#1-manual-context-management" class="hash-link" aria-label="Direct link to 1. Manual Context Management" title="Direct link to 1. Manual Context Management" translate="no">​</a></h3>
<p>When you're driving the session, chatting directly with an AI agent, asking questions, and providing references, you're managing context directly. Experienced developers build intuition for this:</p>
<ul>
<li class=""><strong>Starting fresh sessions</strong> (or clearing the current context) for new tasks instead of dragging in stale context from a previous conversation.</li>
<li class=""><strong>Triggering compaction</strong> (optionally with compaction instructions) when a session gets long, or manually summarizing where things stand before continuing.</li>
<li class=""><strong>Being selective</strong> about what code to share: pasting the relevant function rather than letting the LLM read the entire file.</li>
</ul>
<p>This is table stakes. If you're using AI coding tools daily, you've probably already developed habits like these.</p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="2-context-engineering-in-agents-and-workflows">2. Context Engineering in Agents and Workflows<a href="https://blog.constellationdev.io/2026/04/10/context-engineering#2-context-engineering-in-agents-and-workflows" class="hash-link" aria-label="Direct link to 2. Context Engineering in Agents and Workflows" title="Direct link to 2. Context Engineering in Agents and Workflows" translate="no">​</a></h3>
<p>Things get more interesting and consequential when AI agents operate with greater autonomy. Think of agents that plan multi-step tasks, coding workflows that chain tool calls together, or CI pipelines that invoke AI for code reviews.</p>
<p>In these scenarios, context engineering becomes an architectural concern:</p>
<ul>
<li class=""><strong>On-demand resource loading</strong>: Rather than stuffing the context window with every possible piece of reference material upfront, well-designed agents load skills, documentation, or examples only when the current task requires them.</li>
<li class=""><strong>Agent segmentation</strong>: Complex tasks get broken down across specialized sub-agents, each with its own focused context. A sub-agent that gathers information about your test suite doesn't need to also hold the full API schema in memory. It does its job and reports back a concise result.</li>
<li class=""><strong>Delegation over accumulation</strong>: Instead of one agent reading 40 files to understand a dependency chain, a well-architected system delegates the lookup to a purpose-built tool that returns a structured answer. The primary agent gets the result without the overhead of the discovery process. This is exactly the design philosophy behind the <strong><a href="https://modelcontextprotocol.io/" target="_blank" rel="noopener noreferrer" class="">Model Context Protocol (MCP)</a></strong>, a standard that lets LLMs call external tools and receive structured results, keeping the heavy lifting outside the context window.</li>
</ul>
<p><img decoding="async" loading="lazy" alt="Context Engineering" src="https://blog.constellationdev.io/assets/images/context-eng-53294f28fabe9105b4df524ecea38062.jpg" width="1200" height="669" class="img_ev3q"></p>
<p>The principle is the same in both cases: <strong>every token in the context window should earn its spot.</strong></p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="how-llms-traditionally-navigate-source-code">How LLMs Traditionally Navigate Source Code<a href="https://blog.constellationdev.io/2026/04/10/context-engineering#how-llms-traditionally-navigate-source-code" class="hash-link" aria-label="Direct link to How LLMs Traditionally Navigate Source Code" title="Direct link to How LLMs Traditionally Navigate Source Code" translate="no">​</a></h2>
<p>Here's where things get uncomfortable. Strip away the polished UX of your favorite AI coding tool, and look at what actually happens when an LLM tries to understand a codebase. The default toolkit is remarkably primitive:</p>
<ol>
<li class=""><strong>Search for keywords</strong>: grep, ripgrep, or file search for strings that seem relevant.</li>
<li class=""><strong>Read files</strong>: open matching files and pull them (partially or fully) into context.</li>
<li class=""><strong>Hope for the best</strong>: try to synthesize understanding from what amounts to a keyword-matched pile of text.</li>
</ol>
<p>This works <em>okay</em> for small projects or simple questions, but it falls apart fast. Here's why:</p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="grep-doesnt-understand-code">Grep doesn't understand code<a href="https://blog.constellationdev.io/2026/04/10/context-engineering#grep-doesnt-understand-code" class="hash-link" aria-label="Direct link to Grep doesn't understand code" title="Direct link to Grep doesn't understand code" translate="no">​</a></h3>
<p>When you search for <code>processPayment</code>, grep happily returns the function definition, the test file, the comment that says "TODO: refactor processPayment," the changelog entry, and the string literal in an error message. It treats source code like plain text because, to grep, that's exactly what it is.</p>
<p>The AI agent then has to spend tokens reading each result, figuring out which ones are actually relevant, and trying to build a mental model of the code's structure from these scattered fragments. It's like trying to understand the architecture of a building by reading random pages from the blueprint. You might piece it together eventually, but you'll waste a lot of time and probably get some things wrong.</p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="the-cost-compounds">The cost compounds<a href="https://blog.constellationdev.io/2026/04/10/context-engineering#the-cost-compounds" class="hash-link" aria-label="Direct link to The cost compounds" title="Direct link to The cost compounds" translate="no">​</a></h3>
<p>Every irrelevant grep result that enters the context window is a token tax, it takes up space, adds noise, and pushes the model further from the signal it needs. Multiply this across a multi-step task where the agent needs to understand dependencies, trace call chains, and assess impact, and you're burning through context window capacity at an alarming rate.</p>
<p>This is the fundamental mismatch: <strong>we're asking structural questions and getting text-search answers.</strong></p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="helping-llms-actually-understand-source-code">Helping LLMs Actually Understand Source Code<a href="https://blog.constellationdev.io/2026/04/10/context-engineering#helping-llms-actually-understand-source-code" class="hash-link" aria-label="Direct link to Helping LLMs Actually Understand Source Code" title="Direct link to Helping LLMs Actually Understand Source Code" translate="no">​</a></h2>
<p>What if, instead of treating code as text to be searched, we gave AI agents tools that understand code <em>as code</em>?</p>
<p>This is the shift from text search to <strong>code intelligence</strong>, and it changes everything about how context engineering works for coding sessions.</p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="searching-symbols-not-strings">Searching Symbols, Not Strings<a href="https://blog.constellationdev.io/2026/04/10/context-engineering#searching-symbols-not-strings" class="hash-link" aria-label="Direct link to Searching Symbols, Not Strings" title="Direct link to Searching Symbols, Not Strings" translate="no">​</a></h3>
<p>Consider the difference between searching for the string <code>"UserService"</code> across your codebase versus asking: <em>"Find the class named UserService and tell me its visibility and its inheritance hierarchy."</em></p>
<p>The first approach returns every file containing that string... imports, comments, variable names, test mocks, documentation. The second returns precisely the structural information a developer (or an AI agent) needs to understand that class.</p>
<p><img decoding="async" loading="lazy" alt="Grep vs. Symbol Search" src="https://blog.constellationdev.io/assets/images/symbol-search-5fa16ab2efa1541916295a212fa94960.jpg" width="1200" height="669" class="img_ev3q"></p>
<p>With tools like Constellation's <strong>search symbols</strong> and <strong>symbol details</strong> MCP tools, an AI agent can locate a specific function, class, or type and immediately get metadata that matters: what kind of symbol it is, its cyclomatic complexity, its access modifiers, whether it's exported, what parameters it takes. No file scanning required. No wasted tokens on irrelevant matches.</p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="navigating-code-like-a-programmer">Navigating Code Like a Programmer<a href="https://blog.constellationdev.io/2026/04/10/context-engineering#navigating-code-like-a-programmer" class="hash-link" aria-label="Direct link to Navigating Code Like a Programmer" title="Direct link to Navigating Code Like a Programmer" translate="no">​</a></h3>
<p>Here's the thing... human programmers don't work the way typical AI tooling does. When you need to understand a function's role in the system, you don't text search for its name and read every result. You right-click it and hit <strong>"Find All References."</strong> You jump to the definition. You trace the call stack.</p>
<p>These are purpose-built navigation tools, and they exist because <em>decades of developer tooling evolution</em> proved that string search isn't enough for understanding code.</p>
<p>So why are we asking AI agents to work without them?</p>
<p><strong>Finding all dependents of a specific symbol</strong>, the equivalent of "Find All References", lets an AI agent quickly understand the significance and utilization of that symbol, and subsequently blast radius of a change. With Constellation's <strong>getDependents</strong> tool, the model gets a structured dependency graph: here are the 14 files that import this function, here are the 6 functions that call it, here's the class that extends it. No scanning. No guessing. Pure signal.</p>
<p><strong>Finding dependencies of a specific symbol</strong> works in the other direction. Need to understand what a function reaches into? The <strong>getDependencies</strong> tool returns the imports, the called functions, the extended classes... a complete picture of downstream dependencies delivered as structured data rather than raw file contents.</p>
<p>The difference in token efficiency is dramatic. Instead of reading 20 files to discover 8 relevant relationships, the AI agent gets exactly those 8 relationships in a compact, structured response. The context window stays clean, and the model can spend its tokens on <em>reasoning</em> about the code instead of <em>discovering</em> it.</p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="what-becomes-possible">What Becomes Possible<a href="https://blog.constellationdev.io/2026/04/10/context-engineering#what-becomes-possible" class="hash-link" aria-label="Direct link to What Becomes Possible" title="Direct link to What Becomes Possible" translate="no">​</a></h3>
<p>When you change the fundamental mechanism through which an LLM navigates code (from text search to structural intelligence) some powerful capabilities emerge organically.</p>
<p><img decoding="async" loading="lazy" alt="Impact Analysis Blast Radius" src="https://blog.constellationdev.io/assets/images/blast-radius-f859be3ccd4d9d657502e8414a6d1dd4.jpg" width="1200" height="669" class="img_ev3q"></p>
<p><strong>Impact analysis</strong> becomes fast and accurate. Want to know what breaks if you refactor <code>PaymentProcessor</code>? Instead of the model grepping for the class name, reading every match, and trying to reason about which references matter, it gets a structured impact graph: direct dependents, transitive consumers, affected test files, and a risk assessment. What could take minutes of scanning and reasoning becomes a single tool call returning exactly the right information.</p>
<p><strong>Dead code detection</strong> becomes reliable. Finding unreferenced symbols is trivial when you have a dependency graph, but distinguishing genuinely dead code from entry points, event handlers, and test utilities requires structural understanding that grep simply cannot provide. An AI agent with access to code intelligence can identify orphaned symbols <em>and</em> explain why they appear unused, taking into account export status, framework conventions, and test coverage.</p>
<p><strong>Architecture analysis</strong> goes from a multi-file scanning marathon to a rapid, structured overview. Frameworks, patterns, module boundaries, and dependency hot spots all derivable from pre-computed structural metadata without reading a single source file into context.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="the-bottom-line">The Bottom Line<a href="https://blog.constellationdev.io/2026/04/10/context-engineering#the-bottom-line" class="hash-link" aria-label="Direct link to The Bottom Line" title="Direct link to The Bottom Line" translate="no">​</a></h2>
<p>Context engineering is the discipline of making every token count. In coding sessions, the highest-leverage thing you can do is <strong>upgrade the tools your AI agent uses to understand code.</strong></p>
<p>Grep and file search got us this far. But as AI-assisted development matures, as we ask these tools to handle larger tasks across bigger codebases with more autonomy, the text-search foundation buckles under its own weight. The context window fills with noise, the model loses the plot, and developers lose trust.</p>
<p>The answer isn't a bigger context window. It's better context.</p>
<hr>
<p>At <a href="https://shiftinbits.com/" target="_blank" rel="noopener noreferrer" class="">ShiftinBits</a> we're building <a href="https://constellationdev.io/" target="_blank" rel="noopener noreferrer" class="">Constellation</a>, the shared code intelligence layer for AI coding agents. Constellation maintains a team-wide knowledge graph of your codebase and exposes it to tools like Claude Code, Cursor, GitHub Copilot, and Windsurf via the <strong>Model Context Protocol (MCP)</strong>, giving them structural understanding of your code with symbol-level search, dependency graphs, impact analysis, and more.</p>
<p>You wouldn't expect a human to efficiently code in a plain text editor with no other tools than <kbd>CTRL</kbd>+<kbd>F</kbd>, give your AI coding agents the same courtesy!</p>
<p>If you're building with AI coding tools and want to see what your agents can do with <em>real</em> code intelligence, <a href="https://constellationdev.io/" target="_blank" rel="noopener noreferrer" class="">check out Constellation</a>. For a limited time, we're giving early adopters 50% off with the promo code <code style="cursor:pointer;white-space:nowrap" title="Click to copy" role="button" aria-label="Copy to clipboard">ROOTNODE50<span style="margin-left:0.4em;opacity:0.5;transition:opacity 0.15s"><svg xmlns="http://www.w3.org/2000/svg" width="0.85em" height="0.85em" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="vertical-align:-0.1em"><rect width="14" height="14" x="8" y="8" rx="2" ry="2"></rect><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"></path></svg></span></code>.</p>]]></content:encoded>
            <category>ai-driven development</category>
            <category>context engineering</category>
            <category>code intelligence</category>
            <category>code navigation</category>
            <category>context window</category>
            <category>developer tools</category>
            <category>model context protocol</category>
            <category>software engineering</category>
            <category>token optimization</category>
        </item>
        <item>
            <title><![CDATA[Hello, Constellation Blog]]></title>
            <link>https://blog.constellationdev.io/2026/04/08/hello-constellation</link>
            <guid>https://blog.constellationdev.io/2026/04/08/hello-constellation</guid>
            <pubDate>Wed, 08 Apr 2026 00:00:00 GMT</pubDate>
            <description><![CDATA[Welcome to the Constellation Blog — insights on AI coding agents, codebase intelligence, and developer workflow optimization.]]></description>
            <content:encoded><![CDATA[<p>Welcome to the Constellation Blog.</p>
<p>This is where we'll share insights on AI coding agents, codebase analysis and understanding, and developer workflow optimization.</p>
<!-- -->
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="what-to-expect">What to Expect<a href="https://blog.constellationdev.io/2026/04/08/hello-constellation#what-to-expect" class="hash-link" aria-label="Direct link to What to Expect" title="Direct link to What to Expect" translate="no">​</a></h2>
<p>We'll be covering topics like:</p>
<ul>
<li class=""><strong>AI Coding Agents</strong> — How AI assistants understand and navigate codebases</li>
<li class=""><strong>Code Intelligence</strong> — Building and querying knowledge graphs from source code</li>
<li class=""><strong>Developer Workflows</strong> — Optimizing how teams work with AI-powered tools</li>
<li class=""><strong>Engineering Practices</strong> — Lessons learned building developer tools at scale</li>
</ul>
<p>Stay tuned for our first real posts. In the meantime, check out our <a href="https://docs.constellationdev.io/" target="_blank" rel="noopener noreferrer" class="">documentation</a> to learn more about Constellation.</p>]]></content:encoded>
            <category>announcements</category>
        </item>
    </channel>
</rss>