<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: AmanullaShaikh</title>
    <description>The latest articles on DEV Community by AmanullaShaikh (@shaikhamanulla).</description>
    <link>https://dev.to/shaikhamanulla</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4243246%2F87c4bed5-45bd-4088-b310-f0ed10314f45.jpg</url>
      <title>DEV Community: AmanullaShaikh</title>
      <link>https://dev.to/shaikhamanulla</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/shaikhamanulla"/>
    <language>en</language>
    <item>
      <title>I built a CLI harness that strips JS/TS function bodies with Babel AST to save 80% context tokens</title>
      <dc:creator>AmanullaShaikh</dc:creator>
      <pubDate>Fri, 13 Nov 2026 16:12:38 +0000</pubDate>
      <link>https://dev.to/shaikhamanulla/i-built-a-cli-harness-that-strips-jsts-function-bodies-with-babel-ast-to-save-80-context-tokens-1dak</link>
      <guid>https://dev.to/shaikhamanulla/i-built-a-cli-harness-that-strips-jsts-function-bodies-with-babel-ast-to-save-80-context-tokens-1dak</guid>
      <description>&lt;p&gt;While working on large Next.js and TypeScript repositories, I noticed AI coding agents (Cursor, Claude Code) constantly burning through context limits. They were reading 500-line implementation files when all they really needed were the types, interfaces, and exported signatures.&lt;/p&gt;

&lt;p&gt;To solve this mechanically, I engineered and open-sourced Apex Agents.&lt;/p&gt;

&lt;p&gt;How It Works:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Babel AST Compactor (&lt;code&gt;npx apex-agents compact&lt;/code&gt;):&lt;br&gt;
Parses TypeScript, JSX, and JavaScript using &lt;code&gt;@babel/parser&lt;/code&gt; and replaces function bodies with &lt;code&gt;{}&lt;/code&gt; while preserving all types, generics, parameters, and exports. In our tests, an ~13k token codebase compacted down to ~1.4k tokens (88.5% reduction) into an &lt;code&gt;APEX_CONTEXT.md&lt;/code&gt; file.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Pre-Commit Anti-Cheat &amp;amp; Secret Guard (&lt;code&gt;.git/hooks/pre-commit&lt;/code&gt;):&lt;br&gt;
Diff auditor physically prevents AI agents from modifying or skipping tests to fake a "pass", and halts any accidental commit containing high-entropy API keys.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;38 Specialist Personas (&lt;code&gt;.cursor/rules&lt;/code&gt;):&lt;br&gt;
Injects domain-specific engineering rules directly into &lt;code&gt;.cursor/rules&lt;/code&gt; for database performance, React 19 architecture, and Lighthouse optimization.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Native MCP Server:&lt;br&gt;
Built-in JSON-RPC stdio server ready to plug into Claude Desktop or Cursor MCP settings.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Try it in any repo:&lt;/p&gt;

&lt;p&gt;bash:&lt;br&gt;
npx apex-agents init&lt;/p&gt;

&lt;p&gt;GitHub: &lt;a href="https://github.com/AmanullaShaikh/apex-agents" rel="noopener noreferrer"&gt;github.com/AmanullaShaikh/apex-agents&lt;/a&gt;&lt;br&gt;
NPM: &lt;a href="https://www.npmjs.com/package/apex-agents" rel="noopener noreferrer"&gt;npmjs.com/package/apex-agents&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Feedback and pull requests are welcome!&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>typescript</category>
      <category>webdev</category>
      <category>ai</category>
    </item>
  </channel>
</rss>
