<?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: Jaeil Woo</title>
    <description>The latest articles on DEV Community by Jaeil Woo (@jiwoomap).</description>
    <link>https://dev.to/jiwoomap</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%2F3705060%2Ff85c9e90-0fa5-43d0-b655-25e88d4137ec.png</url>
      <title>DEV Community: Jaeil Woo</title>
      <link>https://dev.to/jiwoomap</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/jiwoomap"/>
    <language>en</language>
    <item>
      <title>What was my coding agent actually doing? (And why a cheaper model was often enough)</title>
      <dc:creator>Jaeil Woo</dc:creator>
      <pubDate>Sun, 06 Dec 2026 08:36:29 +0000</pubDate>
      <link>https://dev.to/jiwoomap/what-was-my-coding-agent-actually-doing-and-why-a-cheaper-model-was-often-enough-249o</link>
      <guid>https://dev.to/jiwoomap/what-was-my-coding-agent-actually-doing-and-why-a-cheaper-model-was-often-enough-249o</guid>
      <description>&lt;p&gt;Long coding-agent sessions are a black box. You come back after twenty minutes and the task is done (or not), but you don't really know which files the agent read, which commands it ran, or why that session cost three times more than yesterday's.&lt;/p&gt;

&lt;p&gt;I started asking this when I switched between models. The same kind of task cost very different amounts depending on the model, and I couldn't tell where the difference came from. Was the expensive model doing better work, or just more work?&lt;/p&gt;

&lt;p&gt;So I built &lt;strong&gt;TreeRing&lt;/strong&gt;, a small local CLI that records every tool call a coding agent makes. Here are the design decisions behind it and what I learned.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Hook in, don't proxy
&lt;/h2&gt;

&lt;p&gt;Claude Code (and opencode, Grok Build) expose hooks around tool calls. TreeRing attaches to those instead of sitting in front of the model as a proxy. That means:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;no network interception, nothing leaves your machine&lt;/li&gt;
&lt;li&gt;it sees the actual tool calls, not just tokens&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;treering init&lt;/code&gt; attaches it, &lt;code&gt;treering init --remove&lt;/code&gt; detaches it&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  2. Make the log tamper-evident
&lt;/h2&gt;

&lt;p&gt;An audit log the agent can quietly edit isn't worth much. Each entry is hash-chained to the previous one, with optional forward-secure seals and external anchors. If anything is edited or the history is truncated, &lt;code&gt;treering verify&lt;/code&gt; shows it.&lt;/p&gt;

&lt;p&gt;One rule I settled on: &lt;strong&gt;sealing is run by you, not the agent.&lt;/strong&gt; The thing being audited shouldn't hold the pen.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. No LLM in the decision
&lt;/h2&gt;

&lt;p&gt;Risky actions (reading &lt;code&gt;.env&lt;/code&gt;, credentials or SSH keys, &lt;code&gt;curl | bash&lt;/code&gt;, force-push) are flagged by deterministic rules. I didn't want a second model judging the first, because a prompt injection that can steer the agent could also argue with an LLM judge. Rules are boring, but they can't be talked out of anything.&lt;/p&gt;

&lt;p&gt;It's log-only by default. &lt;code&gt;--enforce&lt;/code&gt; turns flags into blocks.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Waste is mostly a few patterns
&lt;/h2&gt;

&lt;p&gt;When I looked at the logs, most wasted tokens came from a few patterns, and simple heuristics catch them:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Failure loops:&lt;/strong&gt; 3+ failed calls in a row&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Repeated reads&lt;/strong&gt; of the same file&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Large outputs:&lt;/strong&gt; 50KB+ dumped into context&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Slow calls&lt;/strong&gt; (1 min+) and requests with 40+ tool calls&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fv7eof9h1shxajypzphe4.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fv7eof9h1shxajypzphe4.gif" alt="TreeRing insights view in VS Code flagging failure loops, repeated reads and large outputs" width="680" height="1400"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F17t6pnyt7pk1ef8oaqmm.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F17t6pnyt7pk1ef8oaqmm.gif" alt="TreeRing graph view in VS Code showing the agent's tool calls" width="680" height="1360"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fsih6gzzrxo2z1iwhqz3o.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fsih6gzzrxo2z1iwhqz3o.png" alt="Output of treering insights in the terminal" width="799" height="310"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Cheaper models were often enough
&lt;/h2&gt;

&lt;p&gt;The biggest surprise was how much performance varied by model, and how often a cheaper model was good enough. On many tasks the expensive model didn't produce better results. It just made more calls, read more files, and dumped more output into context.&lt;/p&gt;

&lt;p&gt;Once I could see where the tokens went, the fix was usually not "use a bigger model" but tuning the setup to the work: giving the agent the right skills for the task, cutting what it didn't need to read, and setting the effort level to match the job. With that, a cheaper model handled a lot of my day-to-day work, and the savings came from the setup, not from compromising on results.&lt;/p&gt;

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



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;uv tool install treering &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; treering init
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Or as a Claude Code plugin:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;/plugin marketplace add jiwoomap/treering
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Then &lt;code&gt;treering insights&lt;/code&gt;, &lt;code&gt;treering summary&lt;/code&gt;, or &lt;code&gt;treering ui&lt;/code&gt;.&lt;/p&gt;
&lt;h2&gt;
  
  
  Honest limits
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Early prototype (v0.0.10)&lt;/li&gt;
&lt;li&gt;It's an audit tool, not a sandbox: it runs as your user&lt;/li&gt;
&lt;li&gt;Cost numbers are exact for opencode, estimates for Claude Code / Grok Build&lt;/li&gt;
&lt;li&gt;macOS / Linux only for now&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;
  
  
  What's next
&lt;/h2&gt;

&lt;p&gt;I'd like to add detectors for the waste patterns people actually hit. If your agent burns tokens in a way that isn't listed above, or you've found setups where a cheaper model does the job, tell me in the comments.&lt;/p&gt;

&lt;p&gt;Repo (Apache-2.0): Docs: &lt;a href="https://jiwoomap.github.io/treering/" rel="noopener noreferrer"&gt;https://jiwoomap.github.io/treering/&lt;/a&gt;&lt;/p&gt;


&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://assets.dev.to/assets/github-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/jiwoomap" rel="noopener noreferrer"&gt;
        jiwoomap
      &lt;/a&gt; / &lt;a href="https://github.com/jiwoomap/treering" rel="noopener noreferrer"&gt;
        treering
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      Least-knowledge security layer for LLM agents: prompt-injection isolation (privileged planner never sees untrusted data), provenance-tagged values, human-in-the-loop approval, and a tamper-evident hash-chained audit log. Inspired by tree rings.
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;&lt;div class="markdown-heading"&gt;
&lt;h1 class="heading-element"&gt;TreeRing — least-knowledge security layer for LLM agents&lt;/h1&gt;
&lt;/div&gt;

&lt;p&gt;&lt;a href="https://github.com/jiwoomap/treering/actions/workflows/ci.yml" rel="noopener noreferrer"&gt;&lt;img src="https://github.com/jiwoomap/treering/actions/workflows/ci.yml/badge.svg" alt="CI"&gt;&lt;/a&gt;
&lt;a href="https://github.com/jiwoomap/treering/LICENSE" rel="noopener noreferrer"&gt;&lt;img src="https://camo.githubusercontent.com/5cf23f14b1cc3f28b64138ffc13f2ec76a5770721a0e523c1489f69c16795a7a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4170616368652d2d322e302d626c75652e737667" alt="License: Apache-2.0"&gt;&lt;/a&gt;
&lt;a href="https://github.com/jiwoomap/treering/pyproject.toml" rel="noopener noreferrer"&gt;&lt;img src="https://camo.githubusercontent.com/bd16ca745c15925373564d2d72fceb88717133f32bed83f07df90d11b6145c47/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f707974686f6e2d332e31312532422d626c75652e737667" alt="Python 3.11+"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;TreeRing&lt;/strong&gt; is an open-source (Apache-2.0) Python security layer for LLM agents that defends against &lt;strong&gt;prompt injection&lt;/strong&gt; by &lt;em&gt;isolation&lt;/em&gt; rather than detection: the privileged planner never sees untrusted data, quarantined readers have no tools, values carry &lt;strong&gt;provenance tags&lt;/strong&gt;, and every decision is written to a &lt;strong&gt;tamper-evident, hash-chained audit log&lt;/strong&gt; with &lt;strong&gt;human-in-the-loop approval&lt;/strong&gt; where it matters. The design borrows from dendrochronology — tree rings (나이테) record the conditions of each year without the tree ever being asked.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;A tree does not grow in order to keep records. Growing &lt;em&gt;is&lt;/em&gt; the record
If we can build AI agents the same way, we can cut them open later and read what happened.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;&lt;strong&gt;Status&lt;/strong&gt;: early prototype (v0.0.10, 2026-12) · &lt;strong&gt;License&lt;/strong&gt;: &lt;a href="https://github.com/jiwoomap/treering/LICENSE" rel="noopener noreferrer"&gt;Apache-2.0&lt;/a&gt; · &lt;strong&gt;Keywords&lt;/strong&gt;: AI agent security, LLM security, prompt injection defense, information flow control, capability-based security, provenance, audit log, AI safety, MCP&lt;/p&gt;
&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;Reverse-engineer&lt;/h2&gt;…&lt;/div&gt;&lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/jiwoomap/treering" rel="noopener noreferrer"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;


</description>
      <category>agents</category>
      <category>ai</category>
      <category>cli</category>
      <category>llm</category>
    </item>
    <item>
      <title>Building a "Remembering" AI Trading Agent with Python, LangGraph, and Obsidian</title>
      <dc:creator>Jaeil Woo</dc:creator>
      <pubDate>Sun, 11 Jan 2026 09:52:16 +0000</pubDate>
      <link>https://dev.to/jiwoomap/building-a-remembering-ai-trading-agent-with-python-langgraph-and-obsidian-30hn</link>
      <guid>https://dev.to/jiwoomap/building-a-remembering-ai-trading-agent-with-python-langgraph-and-obsidian-30hn</guid>
      <description>&lt;p&gt;Hello DEV community!&lt;/p&gt;

&lt;p&gt;I'm excited to share an open-source project I've been working on: &lt;strong&gt;TradingAgents-Dashboard&lt;/strong&gt;.&lt;br&gt;
It's a Dockerized AI trading assistant that not only analyzes the market but &lt;strong&gt;remembers your insights forever&lt;/strong&gt; using a local knowledge base (RAG).&lt;/p&gt;

&lt;h2&gt;
  
  
  The Problem: "Stateless" AI
&lt;/h2&gt;

&lt;p&gt;Most AI trading bots today are "stateless". They run an analysis, give you a result, and then &lt;strong&gt;forget everything&lt;/strong&gt; the moment you close the terminal.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  "Wait, didn't we decide last week that inflation correlates with this stock?"&lt;/li&gt;
&lt;li&gt;  "Where is that news link I saw yesterday?"&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;As a developer and trader, I wanted an agent that &lt;strong&gt;grows smarter&lt;/strong&gt; over time, just like a human analyst.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Solution: AI + Obsidian (RAG)
&lt;/h2&gt;

&lt;p&gt;I built a dashboard wrapping the &lt;a href="https://github.com/TauricResearch/TradingAgents" rel="noopener noreferrer"&gt;TradingAgents&lt;/a&gt; framework, adding a persistent memory layer using &lt;strong&gt;Obsidian&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Github Repo:&lt;/strong&gt; &lt;a href="https://github.com/jiwoomap/TradingAgents-Dashboard" rel="noopener noreferrer"&gt;jiwoomap/TradingAgents-Dashboard&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  How it works:
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt; &lt;strong&gt;Analyze:&lt;/strong&gt; Agents (Bull, Bear, Risk Manager) debate market conditions using LangGraph.&lt;/li&gt;
&lt;li&gt; &lt;strong&gt;Persist:&lt;/strong&gt; All insights and debates are auto-saved to your local &lt;strong&gt;&lt;a href="https://obsidian.md" rel="noopener noreferrer"&gt;Obsidian Vault&lt;/a&gt;&lt;/strong&gt; as Markdown files.&lt;/li&gt;
&lt;li&gt; &lt;strong&gt;Recall (RAG):&lt;/strong&gt; Before making a new decision, the agents search your vault (via ChromaDB) to retrieve past lessons and context.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Foe2imql6s1bubc1if40u.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Foe2imql6s1bubc1if40u.gif" alt="Demo Animation" width="600" height="324"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Tech Stack
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;strong&gt;Framework:&lt;/strong&gt; LangChain / LangGraph (Multi-Agent Orchestration)&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;UI:&lt;/strong&gt; Streamlit (Web Dashboard)&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Database:&lt;/strong&gt; ChromaDB (Vector Store for RAG)&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Memory:&lt;/strong&gt; Obsidian (Markdown-based Knowledge Base)&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Infrastructure:&lt;/strong&gt; Docker &amp;amp; Docker Compose&lt;/li&gt;
&lt;/ul&gt;

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

&lt;ul&gt;
&lt;li&gt;  &lt;strong&gt;Interactive Debate UI:&lt;/strong&gt; Watch the "Bull" and "Bear" agents fight it out in real-time.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Fact Checker:&lt;/strong&gt; Prevents hallucinations by validating news URLs (200 OK checks).&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Dockerized:&lt;/strong&gt; Get started in 1 minute with &lt;code&gt;docker-compose up&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Data Sovereignty:&lt;/strong&gt; Your financial data and strategies live on &lt;strong&gt;your disk&lt;/strong&gt;, not in a cloud database.&lt;/li&gt;
&lt;/ul&gt;

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

&lt;p&gt;I'd love to get your feedback. If you're interested in AI Agents or FinTech, give it a spin!&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt; Clone the repo:
git clone &lt;a href="https://github.com/jiwoomap/TradingAgents-Dashboard.git" rel="noopener noreferrer"&gt;https://github.com/jiwoomap/TradingAgents-Dashboard.git&lt;/a&gt;
&lt;/li&gt;
&lt;/ol&gt;

</description>
      <category>opensource</category>
      <category>python</category>
      <category>machinelearning</category>
      <category>ai</category>
    </item>
  </channel>
</rss>
