<?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: Kestrel DevTools</title>
    <description>The latest articles on DEV Community by Kestrel DevTools (@kestreldevtools).</description>
    <link>https://dev.to/kestreldevtools</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%2F4271925%2F7a85612c-328a-4e1d-ba9c-a9ff60cc42dd.png</url>
      <title>DEV Community: Kestrel DevTools</title>
      <link>https://dev.to/kestreldevtools</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/kestreldevtools"/>
    <language>en</language>
    <item>
      <title>Structure and Proof in Algorithms: Typesetting a 2,315-Page Bilingual Monograph from Matroids to an SSA Compiler</title>
      <dc:creator>Kestrel DevTools</dc:creator>
      <pubDate>Sun, 29 Nov 2026 08:59:19 +0000</pubDate>
      <link>https://dev.to/kestreldevtools/structure-and-proof-in-algorithms-typesetting-a-2315-page-bilingual-monograph-from-matroids-to-an-3oed</link>
      <guid>https://dev.to/kestreldevtools/structure-and-proof-in-algorithms-typesetting-a-2315-page-bilingual-monograph-from-matroids-to-an-3oed</guid>
      <description>&lt;p&gt;When studying advanced algorithm design, formal languages, or compiler optimizations, a recurring frustration is hitting &lt;em&gt;"left as an exercise"&lt;/em&gt; right where a subtle invariant or boundary counterexample actually matters.&lt;/p&gt;

&lt;p&gt;Over a multi-stage drafting and verification pipeline, we assembled &lt;strong&gt;Structure and Proof in Algorithms (&lt;code&gt;《算法的结构与证明》&lt;/code&gt;)&lt;/strong&gt; — a &lt;strong&gt;2,315-page&lt;/strong&gt; English–Chinese bilingual monograph spanning &lt;strong&gt;56 self-contained units&lt;/strong&gt; and &lt;strong&gt;846 fully solved exercises&lt;/strong&gt; typeset in XeLaTeX.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Transparency &amp;amp; Independence Notice&lt;/strong&gt;: This is an unofficial, independently written study monograph organized around publicly announced computer science topics. It was &lt;strong&gt;not&lt;/strong&gt; written, reviewed, or endorsed by Donald E. Knuth or Addison-Wesley, and previously published topics (§7.2.2.3, §7.2.2.4, §7.2.2.8) are referenced externally without reproduction. Drafting combined AI assistance with multi-pass mathematical proof verification, notation consistency checks, and counterexample audits.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  What the 4 Editorial Volumes Cover
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Volume 1 — Combinatorial Search, Graphs &amp;amp; Optimization (32 units, 1,471 pages)&lt;/strong&gt;: Bron–Kerbosch clique enumeration &amp;amp; pivoting proofs, exact cover, search-tree cost estimation, DSU amortized bounds, chordal/planar/expander graphs, max-flow &amp;amp; min-cost flow, general weighted matching &amp;amp; odd-set certificates, matroid intersection/partition, discrete DP, branch-and-bound relaxations, NP-completeness, and approximation schemes.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Volume 2 — Strings, Compression &amp;amp; Syntactic Parsing (8 units, 689 pages)&lt;/strong&gt;: Finite automata, scanner construction, multi-pattern dictionary matching, suffix indexes, Shannon entropy &amp;amp; arithmetic coding, top-down and bottom-up LR parsing.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Volume 3 — Context-Free Language Theory (7 units, 642 pages)&lt;/strong&gt;: Grammar normal forms, ambiguity proofs, pumping lemmas, pushdown automata equivalence, DCFLs, and undecidability reductions.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Volume 4 — Compiler Construction &amp;amp; Program Execution (9 units, 745 pages)&lt;/strong&gt;: IR &amp;amp; dataflow fixed-point optimization, instruction selection, GC, lexical scope &amp;amp; type checking, dominance trees &amp;amp; &lt;strong&gt;SSA optimization soundness proofs&lt;/strong&gt;, closures/stack frames, graph-coloring register allocation with spilling, and an end-to-end complete compiler.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Download the Free 62-Page Sample PDF (Zero Signup)
&lt;/h3&gt;

&lt;p&gt;To make it easy to inspect the bilingual layout, vector diagrams, and proof density directly, we published a searchable 56-unit syllabus and a &lt;strong&gt;free 62-page sample PDF&lt;/strong&gt; (including the full TOC plus the complete 38-page unit &lt;strong&gt;§7.2.2.5 Clique Enumeration and Maximum Cliques&lt;/strong&gt; with all exercises and step-by-step solutions):&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Interactive 56-Unit Syllabus &amp;amp; Free 62-Page Sample PDF&lt;/strong&gt;: &lt;a href="https://augustfu-droid.github.io/structure-and-proof-in-algorithms-sample/" rel="noopener noreferrer"&gt;https://augustfu-droid.github.io/structure-and-proof-in-algorithms-sample/&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Sample GitHub Repository&lt;/strong&gt;: &lt;a href="https://github.com/augustfu-droid/structure-and-proof-in-algorithms-sample" rel="noopener noreferrer"&gt;https://github.com/augustfu-droid/structure-and-proof-in-algorithms-sample&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Complete 4-Volume DRM-Free Edition &amp;amp; More Kestrel DevTools&lt;/strong&gt;: &lt;a href="https://kestreldevtools.site/" rel="noopener noreferrer"&gt;https://kestreldevtools.site/&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Feedback on proof clarity, notation choices, or exercise solutions in the sample unit is very welcome!&lt;/p&gt;

</description>
      <category>algorithms</category>
      <category>compsci</category>
      <category>compilers</category>
      <category>books</category>
    </item>
    <item>
      <title>Stop Burning Coding Agent Tokens Blindly: A Zero-Dependency Local Token Budgeter &amp; MCP Server</title>
      <dc:creator>Kestrel DevTools</dc:creator>
      <pubDate>Sun, 29 Nov 2026 08:34:28 +0000</pubDate>
      <link>https://dev.to/kestreldevtools/stop-burning-coding-agent-tokens-blindly-a-zero-dependency-local-token-budgeter-mcp-server-jhf</link>
      <guid>https://dev.to/kestreldevtools/stop-burning-coding-agent-tokens-blindly-a-zero-dependency-local-token-budgeter-mcp-server-jhf</guid>
      <description>&lt;p&gt;When working with Claude Code, Cursor, Windsurf, or custom MCP agents on medium-to-large repositories, two silent failure modes show up constantly:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Context window bloat&lt;/strong&gt;: A handful of generated lockfiles, fixtures, or bundled assets quietly eat 60–80% of your prompt budget.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Accidental secret exposure&lt;/strong&gt;: &lt;code&gt;.env&lt;/code&gt; fragments or API tokens slip into packed context blocks before anyone notices.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;To solve both locally with &lt;strong&gt;zero external runtime dependencies&lt;/strong&gt; and &lt;strong&gt;zero telemetry&lt;/strong&gt;, I built &lt;strong&gt;TokenGuard&lt;/strong&gt; (&lt;code&gt;tokenguard-mcp&lt;/code&gt; + VS Code / Cursor extension):&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;1-command repo audit&lt;/strong&gt;: &lt;code&gt;npx tokenguard-mcp scan .&lt;/code&gt; ranks token hogs and estimates prompt cost across 10 frontier models.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Stdio MCP server (&lt;code&gt;2025-12-11&lt;/code&gt; schema)&lt;/strong&gt;: Gives coding agents native tools (&lt;code&gt;scan_repo&lt;/code&gt;, &lt;code&gt;estimate_cost&lt;/code&gt;, &lt;code&gt;pack_context&lt;/code&gt;, &lt;code&gt;check_secrets&lt;/code&gt;) directly over stdio.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;VS Code / Cursor / Windsurf extension&lt;/strong&gt;: Live status-bar token/USD counter, inline secret-leak diagnostics (redacted locally), and 1-click XML/Markdown context packing.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Links &amp;amp; Open-Source Repos (MIT)
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;GitHub (CLI &amp;amp; MCP Server)&lt;/strong&gt;: &lt;a href="https://github.com/augustfu-droid/tokenguard-mcp" rel="noopener noreferrer"&gt;https://github.com/augustfu-droid/tokenguard-mcp&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;VS Code / Cursor Extension (&lt;code&gt;.vsix&lt;/code&gt; Release)&lt;/strong&gt;: &lt;a href="https://github.com/augustfu-droid/vscode-tokenguard" rel="noopener noreferrer"&gt;https://github.com/augustfu-droid/vscode-tokenguard&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Glama Verified MCP Listing&lt;/strong&gt;: &lt;a href="https://glama.ai/mcp/servers/augustfu-droid/tokenguard-mcp" rel="noopener noreferrer"&gt;https://glama.ai/mcp/servers/augustfu-droid/tokenguard-mcp&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;All Kestrel DevTools &amp;amp; Technical Monographs&lt;/strong&gt;: &lt;a href="https://kestreldevtools.site/" rel="noopener noreferrer"&gt;https://kestreldevtools.site/&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;em&gt;(Side project note for CS/algorithms folks: we also just released a free 62-page sample PDF from our 2,315-page bilingual monograph &lt;strong&gt;Structure and Proof in Algorithms&lt;/strong&gt; covering combinatorial search, matroids, parsing, and SSA compilers: &lt;a href="https://augustfu-droid.github.io/structure-and-proof-in-algorithms-sample/" rel="noopener noreferrer"&gt;https://augustfu-droid.github.io/structure-and-proof-in-algorithms-sample/&lt;/a&gt;)&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Would love feedback from anyone running local MCP servers or context-budgeting workflows!&lt;/p&gt;

</description>
      <category>mcp</category>
      <category>ai</category>
      <category>vscode</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
