<?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: Toprak</title>
    <description>The latest articles on DEV Community by Toprak (@toprak_a).</description>
    <link>https://dev.to/toprak_a</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%2F4165340%2Feeb07fdb-11b3-4ece-b1cb-40b288615410.png</url>
      <title>DEV Community: Toprak</title>
      <link>https://dev.to/toprak_a</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/toprak_a"/>
    <language>en</language>
    <item>
      <title>I Built T-Zero: A Free, Local MCP Server for Smaller AI Coding Contexts</title>
      <dc:creator>Toprak</dc:creator>
      <pubDate>Thu, 26 Nov 2026 15:04:18 +0000</pubDate>
      <link>https://dev.to/toprak_a/i-built-t-zero-a-free-local-mcp-server-for-smaller-ai-coding-contexts-2f8i</link>
      <guid>https://dev.to/toprak_a/i-built-t-zero-a-free-local-mcp-server-for-smaller-ai-coding-contexts-2f8i</guid>
      <description>&lt;p&gt;AI coding assistants can be helpful, but working with a large codebase often means sending more context than the task actually needs.&lt;/p&gt;

&lt;p&gt;I built &lt;strong&gt;T-Zero&lt;/strong&gt; to explore a different approach: give coding assistants a compact view of the surrounding code while keeping the relevant context available.&lt;/p&gt;

&lt;p&gt;T-Zero is a free, open-source, local code context engine and MCP server.&lt;/p&gt;

&lt;h2&gt;
  
  
  What does it do?
&lt;/h2&gt;

&lt;p&gt;T-Zero analyzes a codebase and creates a structured context representation. Depending on the language and context mode, it can preserve information such as classes, functions, types, and signatures while reducing implementation detail.&lt;/p&gt;

&lt;p&gt;It also includes local tools for exploring code dependencies, checking references, and identifying possible secrets.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why build it?
&lt;/h2&gt;

&lt;p&gt;When an assistant needs to change one part of a project, sending entire files or repositories can fill the context window quickly. A more focused representation may help reduce unnecessary tokens and make the project structure easier to navigate.&lt;/p&gt;

&lt;p&gt;In one whole-repository benchmark, T-Zero reduced the measured context representation by &lt;strong&gt;94.5%&lt;/strong&gt;. Actual savings depend on the project, task, and what you would otherwise send to the assistant.&lt;/p&gt;

&lt;h2&gt;
  
  
  Features
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;AST-based code context compression&lt;/li&gt;
&lt;li&gt;Symbol and dependency mapping&lt;/li&gt;
&lt;li&gt;Focus-aware context generation&lt;/li&gt;
&lt;li&gt;MCP integration for compatible coding tools&lt;/li&gt;
&lt;li&gt;Local checks for code references&lt;/li&gt;
&lt;li&gt;Local scanning for possible hardcoded secrets&lt;/li&gt;
&lt;li&gt;No external API key required for the core tools&lt;/li&gt;
&lt;li&gt;Open source under AGPL-3.0&lt;/li&gt;
&lt;/ul&gt;

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

&lt;p&gt;Install the Python package:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pip install tzero-mcp
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Or explore the project first:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;GitHub: &lt;a href="https://github.com/toprakahmetaydogmus/TZeroAlgorithm" rel="noopener noreferrer"&gt;https://github.com/toprakahmetaydogmus/TZeroAlgorithm&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Interactive demo: &lt;a href="https://huggingface.co/spaces/toprakke4/tzero-token-reducer" rel="noopener noreferrer"&gt;https://huggingface.co/spaces/toprakke4/tzero-token-reducer&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;npm: &lt;a href="https://www.npmjs.com/package/tzero-mcp" rel="noopener noreferrer"&gt;https://www.npmjs.com/package/tzero-mcp&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;PyPI: &lt;a href="https://pypi.org/project/tzero-mcp/" rel="noopener noreferrer"&gt;https://pypi.org/project/tzero-mcp/&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I’d love feedback from developers who work with large repositories or build MCP tools.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What information would you want an AI assistant to see before it starts changing your code?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;If you find T-Zero useful, a GitHub star would help others discover the project. ⭐&lt;/p&gt;

</description>
      <category>ai</category>
      <category>programming</category>
      <category>agents</category>
      <category>opensource</category>
    </item>
    <item>
      <title>T-Zero: Compressing AI coding context with local AST interfaces</title>
      <dc:creator>Toprak</dc:creator>
      <pubDate>Sun, 22 Nov 2026 14:51:12 +0000</pubDate>
      <link>https://dev.to/toprak_a/t-zero-compressing-ai-coding-context-with-local-ast-interfaces-46pn</link>
      <guid>https://dev.to/toprak_a/t-zero-compressing-ai-coding-context-with-local-ast-interfaces-46pn</guid>
      <description>&lt;p&gt;AI coding assistants need context, but passing entire repositories can be expensive. I built T-Zero, an open-source local MCP server that turns code into compact interfaces and helps validate references against the codebase.&lt;/p&gt;

&lt;p&gt;The repository reports a 94.5% token reduction on its full-repository benchmark; smaller task examples show 14.8–25.8%, so savings depend on the context. Python uses native AST; other languages include heuristic extraction. T-Zero also includes a local entropy-based secret scanner, which helps identify potential leaks but cannot guarantee detection of every secret.&lt;/p&gt;

&lt;p&gt;GitHub: &lt;a href="https://github.com/toprakahmetaydogmus/TZeroAlgorithm" rel="noopener noreferrer"&gt;https://github.com/toprakahmetaydogmus/TZeroAlgorithm&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Quick start: &lt;code&gt;npx -y tzero-mcp@latest&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;I have a presentation and an explanation video to share. I would love feedback on the approach, benchmark methodology, and where this could fit into your workflow.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>opensource</category>
      <category>programming</category>
      <category>mcp</category>
    </item>
    <item>
      <title>How I Cut AI Coding Token Usage by 90% Using Local AST Pruning</title>
      <dc:creator>Toprak</dc:creator>
      <pubDate>Fri, 20 Nov 2026 23:42:42 +0000</pubDate>
      <link>https://dev.to/toprak_a/how-i-cut-ai-coding-token-usage-by-90-using-local-ast-pruning-4lkh</link>
      <guid>https://dev.to/toprak_a/how-i-cut-ai-coding-token-usage-by-90-using-local-ast-pruning-4lkh</guid>
      <description>&lt;p&gt;I'm Toprak, a 15-year-old software engineer from Turkey building open-source developer tooling at Siber Akademi.&lt;/p&gt;

&lt;p&gt;Like many developers using AI coding assistants like Cursor, Claude Desktop, and Windsurf, I constantly hit a major wall on large codebases: Context Window Bloat.&lt;/p&gt;

&lt;p&gt;The Core Problem: Implementation vs. Interface&lt;br&gt;
When you @ tag directories in Cursor Composer, 85-90% of the ingested tokens are function execution bodies (loops, SQL queries, helper transforms) that the AI doesn't need to read just to understand your architecture.&lt;/p&gt;

&lt;p&gt;The Solution: AST Skeletonization (T-Zero)&lt;br&gt;
I spent the last several months engineering T-Zero (v11.11), an open-source local Model Context Protocol (MCP) server that prunes multi-language code down to typed AST interface skeletons.&lt;/p&gt;

&lt;p&gt;📊 Real Benchmark on 481-File Repository:&lt;br&gt;
Raw Codebase Context: 10,998,573 tokens ($32.99 per single Claude 3.5 prompt fill)&lt;br&gt;
T-Zero 4-Tier AST Skeletons: 1,319,828 tokens (-88.0% reduction)&lt;br&gt;
Focus File Skeleton: -94.6% reduction&lt;br&gt;
Local Latency: &amp;lt;400ms (pure local CPU, 0 cloud telemetry)&lt;br&gt;
Security: In-memory Shannon entropy scanner (H &amp;gt;= 4.75) detects and redacts hardcoded API keys locally.&lt;br&gt;
⚡ 30-Second Setup in Cursor or Claude Desktop:&lt;br&gt;
Add this to your Cursor MCP settings (~/.cursor/mcp.json):&lt;/p&gt;

&lt;p&gt;{&lt;br&gt;
  "mcpServers": {&lt;br&gt;
    "tzero": {&lt;br&gt;
      "command": "npx",&lt;br&gt;
      "args": ["-y", "tzero-mcp@latest"]&lt;br&gt;
    }&lt;br&gt;
  }&lt;br&gt;
}&lt;br&gt;
(Or install via pip: pip install tzero-mcp)&lt;/p&gt;

&lt;p&gt;Everything is 100% free and open-source under the MIT License!&lt;/p&gt;

&lt;p&gt;I'm currently on a mission to hit my first 100 GitHub Stars ⭐ — if this saves your AI context budget, dropping a star would mean the world to an independent 15-year-old engineer:&lt;/p&gt;

&lt;p&gt;👉 GitHub Repo (MIT): &lt;a href="https://github.com/toprakahmetaydogmus/TZeroAlgorithm" rel="noopener noreferrer"&gt;https://github.com/toprakahmetaydogmus/TZeroAlgorithm&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;👉 Interactive Web Playground: &lt;a href="https://tzero-indol.vercel.app" rel="noopener noreferrer"&gt;https://tzero-indol.vercel.app&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>python</category>
      <category>mcp</category>
      <category>security</category>
    </item>
    <item>
      <title>How I Cut AI Coding Token Usage by 90% Using Local AST Pruning (At Age 15)</title>
      <dc:creator>Toprak</dc:creator>
      <pubDate>Sat, 14 Nov 2026 23:19:07 +0000</pubDate>
      <link>https://dev.to/toprak_a/how-i-cut-ai-coding-token-usage-by-90-using-local-ast-pruning-at-age-15-fh2</link>
      <guid>https://dev.to/toprak_a/how-i-cut-ai-coding-token-usage-by-90-using-local-ast-pruning-at-age-15-fh2</guid>
      <description>&lt;p&gt;Hey developers! 👋&lt;/p&gt;

&lt;p&gt;I'm Toprak, a 15-year-old software engineer from Turkey building open-source developer tooling at Siber Akademi.&lt;/p&gt;

&lt;p&gt;Like many developers using AI coding assistants like &lt;strong&gt;Cursor, Claude Desktop, and Windsurf&lt;/strong&gt;, I constantly hit a major wall on large codebases: &lt;strong&gt;Context Window Bloat&lt;/strong&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  The Core Problem: Implementation vs. Interface
&lt;/h3&gt;

&lt;p&gt;When you @ tag directories in Cursor Composer, 85-90% of the ingested tokens are function execution bodies (loops, SQL queries, helper transforms) that the AI doesn't need to read just to understand your architecture.&lt;/p&gt;

&lt;h3&gt;
  
  
  The Solution: AST Skeletonization (T-Zero)
&lt;/h3&gt;

&lt;p&gt;I spent the last several months engineering &lt;strong&gt;T-Zero&lt;/strong&gt; (v11.11), an open-source local Model Context Protocol (MCP) server that prunes multi-language code down to typed AST interface skeletons.&lt;/p&gt;

&lt;h3&gt;
  
  
  📊 Real Benchmark on 481-File Repository:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Raw Codebase Context:&lt;/strong&gt; 10,998,573 tokens ($32.99 per single Claude 3.5 prompt fill)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;T-Zero 4-Tier AST Skeletons:&lt;/strong&gt; 1,319,828 tokens (&lt;strong&gt;-88.0% reduction&lt;/strong&gt;)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Focus File Skeleton:&lt;/strong&gt; &lt;strong&gt;-94.6% reduction&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Local Latency:&lt;/strong&gt; &amp;lt;400ms (pure local CPU, 0 cloud telemetry)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Security:&lt;/strong&gt; In-memory Shannon entropy scanner (H &amp;gt;= 4.75) detects and redacts hardcoded API keys locally.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  ⚡ 30-Second Setup in Cursor or Claude Desktop:
&lt;/h3&gt;

&lt;p&gt;Add this to your Cursor MCP settings (&lt;code&gt;~/.cursor/mcp.json&lt;/code&gt;):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"mcpServers"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"tzero"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nl"&gt;"command"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"npx"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"args"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"-y"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"tzero-mcp@latest"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;em&gt;(Or install via pip: &lt;code&gt;pip install tzero-mcp&lt;/code&gt;)&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Everything is 100% free and open-source under the MIT License!&lt;/p&gt;

&lt;p&gt;I'm currently on a mission to hit my first &lt;strong&gt;100 GitHub Stars&lt;/strong&gt; ⭐ — if this saves your AI context budget, dropping a star would mean the world to an independent 15-year-old engineer:&lt;/p&gt;

&lt;p&gt;👉 &lt;strong&gt;GitHub Repo (MIT):&lt;/strong&gt; &lt;a href="https://github.com/toprakahmetaydogmus/TZeroAlgorithm" rel="noopener noreferrer"&gt;https://github.com/toprakahmetaydogmus/TZeroAlgorithm&lt;/a&gt;&lt;br&gt;&lt;br&gt;
👉 &lt;strong&gt;Interactive Web Playground:&lt;/strong&gt; &lt;a href="https://tzero-indol.vercel.app" rel="noopener noreferrer"&gt;https://tzero-indol.vercel.app&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>security</category>
      <category>mcp</category>
      <category>tokenreducer</category>
    </item>
    <item>
      <title>I built T-Zero V3, an open-source MCP Server that cures LLM hallucinations and cuts token context costs by up to 95% 🚀</title>
      <dc:creator>Toprak</dc:creator>
      <pubDate>Tue, 06 Oct 2026 04:37:37 +0000</pubDate>
      <link>https://dev.to/toprak_a/i-built-t-zero-v3-an-open-source-mcp-server-that-cures-llm-hallucinations-and-cuts-token-context-4d0o</link>
      <guid>https://dev.to/toprak_a/i-built-t-zero-v3-an-open-source-mcp-server-that-cures-llm-hallucinations-and-cuts-token-context-4d0o</guid>
      <description>&lt;p&gt;Hey everyone 👋,&lt;/p&gt;

&lt;p&gt;If you are using AI coding agents (Cursor, Claude, Copilot) on large codebases, you probably face two massive problems:&lt;/p&gt;

&lt;p&gt;Token Exhaustion: Sending your entire workspace into the context window drains your API budget instantly.&lt;br&gt;
LLM Hallucinations: When AI gets overwhelmed with thousands of lines of irrelevant implementation logic, it loses focus, hallucinates, and breaks your architectural boundaries.&lt;br&gt;
To solve this, I built and open-sourced T-Zero Context Architect V3.&lt;/p&gt;

&lt;p&gt;How it crushes hallucinations &amp;amp; token costs: T-Zero doesn't just blindly read files. It uses an AST-based static analyzer to strip out all the "fat" (long function implementations) while keeping the absolute "skeleton" (class/method signatures, docstrings, decorators, and imports).&lt;/p&gt;

&lt;p&gt;This allows you to map your entire enterprise-grade project into the LLM's context window, reducing token usage by up to 95% while maintaining 100% semantic fidelity. The AI sees exactly how your app works without getting distracted by the inner logic of irrelevant functions.&lt;/p&gt;

&lt;p&gt;🤖 Native MCP Server Embedded: T-Zero V3 natively embeds a Model Context Protocol (MCP) server. By simply adding a 1-line JSON config to Cursor, Claude Desktop, or Antigravity IDE, you give your AI agent access to 13 autonomous tools.&lt;/p&gt;

&lt;p&gt;Before writing a single line of code, your AI can now autonomously:&lt;/p&gt;

&lt;p&gt;Generate a T-Zero context tree of your workspace.&lt;br&gt;
Query cross-module dependency graphs.&lt;br&gt;
Audit for "Code Smells" and duplicities.&lt;br&gt;
Enforce strict "Zero-Leak" architecture boundaries.&lt;br&gt;
🔒 100% Zero-Leak Security: It uses OS-level keyring encryption. No API keys are ever stored in plain text. It also fully supports local LLMs (like Ollama) for a $0 cost, 100% offline dry-run context generation.&lt;/p&gt;

&lt;p&gt;I would love for the community to test it, try breaking it, and tell me what you think. It's completely free and MIT-licensed.&lt;/p&gt;

&lt;p&gt;🔗 GitHub Repo: &lt;a href="https://github.com/toprakahmetaydogmus/TZeroAlgorithm" rel="noopener noreferrer"&gt;https://github.com/toprakahmetaydogmus/TZeroAlgorithm&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Feedback and PRs are highly appreciated! Let's cure LLM hallucinations together. 💻✨&lt;/p&gt;

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