<?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: Curious Byte</title>
    <description>The latest articles on DEV Community by Curious Byte (@curiousbytestudios).</description>
    <link>https://dev.to/curiousbytestudios</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%2F4275694%2F940e0862-5fa3-4034-9851-cf133d8d7d1b.png</url>
      <title>DEV Community: Curious Byte</title>
      <link>https://dev.to/curiousbytestudios</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/curiousbytestudios"/>
    <language>en</language>
    <item>
      <title>Testing an LLM on tasks it can't have memorized: solvers, frozen datasets and a $0.31 budget</title>
      <dc:creator>Curious Byte</dc:creator>
      <pubDate>Sat, 05 Dec 2026 07:06:40 +0000</pubDate>
      <link>https://dev.to/curiousbytestudios/testing-an-llm-on-tasks-it-cant-have-memorized-solvers-frozen-datasets-and-a-031-budget-3aa9</link>
      <guid>https://dev.to/curiousbytestudios/testing-an-llm-on-tasks-it-cant-have-memorized-solvers-frozen-datasets-and-a-031-budget-3aa9</guid>
      <description>&lt;p&gt;We wanted to ask whether ChatGPT is "intelligent" without settling it by opinion. So we built five small&lt;br&gt;
experiments where &lt;strong&gt;code, not a human, decides what's correct&lt;/strong&gt;, ran them once against the OpenAI API, and&lt;br&gt;
published every recorded answer in a static site anyone can replay. Video: &lt;a href="https://youtu.be/SoO1sipveGI" rel="noopener noreferrer"&gt;https://youtu.be/SoO1sipveGI&lt;/a&gt; · Lab: &lt;a href="https://curious-byte-intelligence-lab.onrender.com" rel="noopener noreferrer"&gt;https://curious-byte-intelligence-lab.onrender.com&lt;/a&gt; ·&lt;br&gt;
Code: &lt;a href="https://github.com/CuriousByteStudios/curious-byte-intelligence-lab" rel="noopener noreferrer"&gt;https://github.com/CuriousByteStudios/curious-byte-intelligence-lab&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Design rules
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Ground truth from solvers.&lt;/strong&gt; Water jugs and the maze use breadth-first search. The invented language ("Bytish") is checked by brute-forcing every grammar hypothesis in a family; a dataset is only accepted if &lt;strong&gt;exactly one&lt;/strong&gt; hypothesis fits the examples. Grid puzzles come from a family of 8 geometries × moves × colour maps, so we can prove the examples pin down a single rule.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Frozen datasets.&lt;/strong&gt; Every dataset is SHA-256 hashed into &lt;code&gt;MANIFEST.json&lt;/code&gt; before the first API call. The runner refuses to evaluate if a hash changes.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;One request per task, no cherry-picking.&lt;/strong&gt; Strict &lt;code&gt;json_schema&lt;/code&gt; output through the Responses API, &lt;code&gt;store=False&lt;/code&gt;. Only infrastructure failures are retried (max 2). Billing errors stop the run. Wrong answers are never retried.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A budget manager with reservations.&lt;/strong&gt; Before each request we reserve the worst-case cost (input estimate + &lt;code&gt;max_output_tokens&lt;/code&gt; × output price) and settle to actual usage afterwards. A hard cap of $10 is enforced in code. The real run: 75 billed requests, &lt;strong&gt;$0.3129&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The site never talks to an AI.&lt;/strong&gt; &lt;code&gt;public/&lt;/code&gt; is plain HTML/CSS/JS that replays exported JSON. CSP &lt;code&gt;connect-src 'self'&lt;/code&gt;, no SDK, and a Playwright test that runs with &lt;code&gt;OPENAI_API_KEY&lt;/code&gt; unset and fails on any request to a non-local origin.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The maze, briefly
&lt;/h2&gt;

&lt;p&gt;The agent receives a text observation (a 3×3 view in the unknown-world run) and must reply with&lt;br&gt;
&lt;code&gt;{"thought": ..., "action": "UP|DOWN|LEFT|RIGHT|INTERACT"}&lt;/code&gt;. In run 3, a rock drops onto the shortest path after&lt;br&gt;
4 actions. We verify in advance that a route still exists within the 25-action budget.&lt;/p&gt;

&lt;h2&gt;
  
  
  Results (model &lt;code&gt;chat-latest&lt;/code&gt;, 2026-12-04)
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Experiment&lt;/th&gt;
&lt;th&gt;Score&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Memorization trap (water jugs, one rule changed)&lt;/td&gt;
&lt;td&gt;9/10&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Alien language (15 examples → 10 challenges)&lt;/td&gt;
&lt;td&gt;10/10&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Grid patterns&lt;/td&gt;
&lt;td&gt;10/10&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Confidence trap (questions with no valid answer)&lt;/td&gt;
&lt;td&gt;10/10&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Maze (known / unknown / changing)&lt;/td&gt;
&lt;td&gt;3/3, optimal in all three, 0 invalid moves&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The single miss is a structured-output inconsistency. On one jug puzzle the model set &lt;code&gt;"solvable": false&lt;/code&gt;, while&lt;br&gt;
its &lt;code&gt;explanation&lt;/code&gt; field ended "Therefore the goal is actually achievable." (it is; BFS finds 10 steps). We score&lt;br&gt;
the structured field, so it counts as wrong. We report it rather than re-asking.&lt;/p&gt;

&lt;h2&gt;
  
  
  What we'd change
&lt;/h2&gt;

&lt;p&gt;Our tasks didn't find the model's limits. Next time: larger and harder task families, several samples per task to&lt;br&gt;
measure variance, and a calibration test where confidence is actually predictive. The sample here is small&lt;br&gt;
(10 per test, 3 maze runs, n=1 each), and the model may have seen similar puzzle types during training.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Built with help from AI tools (Claude Code); all numbers come from the recorded results in the repo.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>python</category>
      <category>testing</category>
      <category>javascript</category>
    </item>
    <item>
      <title>How We Built an AI Chess Coach Using Five LangGraph Agents and Stockfish</title>
      <dc:creator>Curious Byte</dc:creator>
      <pubDate>Tue, 01 Dec 2026 06:55:11 +0000</pubDate>
      <link>https://dev.to/curiousbytestudios/how-we-built-an-ai-chess-coach-using-five-langgraph-agents-and-stockfish-1jm3</link>
      <guid>https://dev.to/curiousbytestudios/how-we-built-an-ai-chess-coach-using-five-langgraph-agents-and-stockfish-1jm3</guid>
      <description>&lt;p&gt;Most chess analysis tools focus on individual games. They identify blunders, missed opportunities and inaccurate moves. But what if a player keeps making the same mistakes across dozens of games without realizing it?&lt;/p&gt;

&lt;p&gt;That question led us to build an experimental AI chess coach that analyzes game history, identifies recurring weaknesses and recommends personalized study material.&lt;/p&gt;

&lt;p&gt;Our objective was not simply to build another LLM-powered application. We wanted to explore whether multiple specialized AI agents could generate useful recommendations grounded in verifiable evidence.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Problem: Individual Game Analysis vs. Historical Patterns
&lt;/h2&gt;

&lt;p&gt;Traditional chess engines are excellent at evaluating positions and identifying stronger moves.&lt;/p&gt;

&lt;p&gt;However, understanding a player's recurring weaknesses requires a different perspective.&lt;/p&gt;

&lt;p&gt;Instead of asking, "What went wrong in this game?", we wanted to ask:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;What mistakes does this player repeatedly make?&lt;/li&gt;
&lt;li&gt;Are there patterns across multiple games?&lt;/li&gt;
&lt;li&gt;Can those patterns be supported by actual evidence?&lt;/li&gt;
&lt;li&gt;Can we recommend relevant games to study?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This required combining historical game analysis with AI-generated explanations and objective verification.&lt;/p&gt;

&lt;h2&gt;
  
  
  Our Approach: Multi-Agent AI Architecture
&lt;/h2&gt;

&lt;p&gt;We built the application using five specialized LangGraph agents, with Stockfish 18 providing an objective chess-analysis foundation.&lt;/p&gt;

&lt;p&gt;The workflow separates several responsibilities:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Game review:&lt;/strong&gt; Identify important decisions and critical positions.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Historical analysis:&lt;/strong&gt; Search earlier games for recurring patterns.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Explanation generation:&lt;/strong&gt; Translate technical findings into understandable coaching insights.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Claim verification:&lt;/strong&gt; Check generated observations against supporting evidence and chess-engine analysis.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Study recommendation:&lt;/strong&gt; Select relevant games for further learning.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Rather than relying on a single LLM response, the architecture separates analysis, reasoning, verification and recommendation.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why LangGraph?
&lt;/h2&gt;

&lt;p&gt;Multi-agent applications benefit from explicit orchestration.&lt;/p&gt;

&lt;p&gt;LangGraph provides a framework for coordinating specialized processing stages and managing information across an AI workflow.&lt;/p&gt;

&lt;p&gt;For this experiment, separating responsibilities helped us explore several important engineering principles:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Separation of concerns.&lt;/li&gt;
&lt;li&gt;Evidence-based reasoning.&lt;/li&gt;
&lt;li&gt;Structured agent orchestration.&lt;/li&gt;
&lt;li&gt;Verification before presenting conclusions.&lt;/li&gt;
&lt;li&gt;Improved traceability of generated recommendations.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These principles are applicable beyond chess, particularly in applications where AI-generated conclusions must be supported by objective evidence.&lt;/p&gt;

&lt;h2&gt;
  
  
  Grounding AI with Stockfish
&lt;/h2&gt;

&lt;p&gt;One of the biggest challenges with LLM-generated coaching is reliability.&lt;/p&gt;

&lt;p&gt;An explanation can sound convincing while being technically incorrect.&lt;/p&gt;

&lt;p&gt;Chess provides an interesting environment for experimenting with AI verification because chess engines offer a strong computational reference for evaluating positions and moves.&lt;/p&gt;

&lt;p&gt;Our approach uses Stockfish to support verification rather than relying exclusively on the language model's reasoning.&lt;/p&gt;

&lt;p&gt;An important design principle was to discard claims that could not be adequately supported.&lt;/p&gt;

&lt;p&gt;The broader question is whether similar verification patterns can be applied to other domains where reliable computational or factual references are available.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the Application Does
&lt;/h2&gt;

&lt;p&gt;The application supports game history from:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Chess.com&lt;/li&gt;
&lt;li&gt;Lichess&lt;/li&gt;
&lt;li&gt;PGN files&lt;/li&gt;
&lt;li&gt;Included sample game history&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Users can explore recurring weaknesses, examine supporting game evidence and receive recommendations for further study.&lt;/p&gt;

&lt;p&gt;The application is free to try and does not require account registration.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Try the application:&lt;/strong&gt; &lt;a href="https://chess-game-review-gr1u.onrender.com" rel="noopener noreferrer"&gt;AI Chess Coach&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you don't have a chess game history available, select the sample history to explore the experience.&lt;/p&gt;

&lt;h2&gt;
  
  
  Video Demonstration
&lt;/h2&gt;

&lt;p&gt;We created a five-minute illustrated walkthrough featuring Byte and Logic, our two fictional technology hosts.&lt;/p&gt;

&lt;p&gt;The video explores the motivation, application, multi-agent architecture, experimental results and limitations.&lt;/p&gt;

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/gH5GhaY_GmE" width="710" height="399"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;h2&gt;
  
  
  Evaluating the Approach
&lt;/h2&gt;

&lt;p&gt;We initially evaluated the application using engine-generated games with deliberately introduced weaknesses.&lt;/p&gt;

&lt;p&gt;This allowed us to explore whether the workflow could recognize known patterns under controlled conditions.&lt;/p&gt;

&lt;p&gt;However, the evaluation has important limitations:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The benchmark used engine-played games.&lt;/li&gt;
&lt;li&gt;Weaknesses were deliberately introduced.&lt;/li&gt;
&lt;li&gt;Real human games are significantly more complex.&lt;/li&gt;
&lt;li&gt;No human participants were evaluated.&lt;/li&gt;
&lt;li&gt;The results do not establish that the application improves chess performance.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Further evaluation using real player histories would be necessary to assess its practical coaching value.&lt;/p&gt;

&lt;h2&gt;
  
  
  Engineering Lessons and Open Questions
&lt;/h2&gt;

&lt;p&gt;This experiment highlights several interesting considerations when designing agentic AI systems.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Specialized agents can improve modularity
&lt;/h3&gt;

&lt;p&gt;Separating responsibilities makes individual processing stages easier to understand, test and refine.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Fluent explanations are not necessarily correct
&lt;/h3&gt;

&lt;p&gt;A convincing natural-language response should not automatically be treated as a verified conclusion.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. External verification matters
&lt;/h3&gt;

&lt;p&gt;Where reliable tools or authoritative evidence are available, incorporating them into an AI workflow can help improve trustworthiness.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Controlled benchmarks are only a starting point
&lt;/h3&gt;

&lt;p&gt;Detecting deliberately introduced patterns is different from identifying meaningful weaknesses in real-world data.&lt;/p&gt;

&lt;h3&gt;
  
  
  5. More agents do not automatically mean better results
&lt;/h3&gt;

&lt;p&gt;Additional agents introduce complexity, processing overhead and potential failure points. Their value should be evaluated against simpler alternatives.&lt;/p&gt;

&lt;h2&gt;
  
  
  Potential Future Improvements
&lt;/h2&gt;

&lt;p&gt;Some interesting directions for future experimentation include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Evaluation using real chess player histories.&lt;/li&gt;
&lt;li&gt;Comparison against simpler single-agent implementations.&lt;/li&gt;
&lt;li&gt;More personalized training exercises.&lt;/li&gt;
&lt;li&gt;Better explanations for different skill levels.&lt;/li&gt;
&lt;li&gt;Longitudinal tracking of player development.&lt;/li&gt;
&lt;li&gt;Measuring processing costs and agent execution latency.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Beyond Chess
&lt;/h2&gt;

&lt;p&gt;Although this project focuses on chess, the underlying architectural ideas have broader applications.&lt;/p&gt;

&lt;p&gt;Evidence-grounded multi-agent workflows could potentially support software code review, educational applications, business analytics, research assistance and personalized learning.&lt;/p&gt;

&lt;p&gt;The key question remains the same:&lt;/p&gt;

&lt;p&gt;Can AI generate useful insights while demonstrating that its conclusions are supported by actual evidence?&lt;/p&gt;

&lt;h2&gt;
  
  
  We'd Love Your Feedback
&lt;/h2&gt;

&lt;p&gt;We're interested in hearing from developers, AI engineers and chess enthusiasts.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;How would you improve the verification architecture?&lt;/li&gt;
&lt;li&gt;Would you use a simpler workflow instead of five specialized agents?&lt;/li&gt;
&lt;li&gt;How would you design a more realistic evaluation?&lt;/li&gt;
&lt;li&gt;What other applications could benefit from this approach?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Try the application and let us know what you think.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;About Curious Byte&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Curious Byte is an independent technology exploration initiative focused on original projects, practical experiments and illustrated storytelling.&lt;/p&gt;

&lt;p&gt;Through Byte and Logic, we explore AI, software engineering, science, gadgets and emerging technologies.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Discover. Experiment. Understand.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.youtube.com/@CuriousByteStudios" rel="noopener noreferrer"&gt;Follow Curious Byte on YouTube&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Disclosure: This article was drafted with AI assistance. Byte and Logic are illustrated characters voiced using synthetic narration.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>python</category>
      <category>langchain</category>
      <category>showdev</category>
    </item>
  </channel>
</rss>
