<?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: TryHackMyAI</title>
    <description>The latest articles on DEV Community by TryHackMyAI (@thmai).</description>
    <link>https://dev.to/thmai</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%2F1283740%2Fd31adba3-0f42-4067-bf33-9136796c4689.png</url>
      <title>DEV Community: TryHackMyAI</title>
      <link>https://dev.to/thmai</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/thmai"/>
    <language>en</language>
    <item>
      <title>I Built AgentSpend: A Rust CLI That Automatically Tracks AI Agent Usage and Finds Wasted Tokens</title>
      <dc:creator>TryHackMyAI</dc:creator>
      <pubDate>Thu, 22 Oct 2026 13:53:05 +0000</pubDate>
      <link>https://dev.to/thmai/i-built-agentspend-a-rust-cli-that-automatically-tracks-ai-agent-usage-and-finds-wasted-tokens-1ac8</link>
      <guid>https://dev.to/thmai/i-built-agentspend-a-rust-cli-that-automatically-tracks-ai-agent-usage-and-finds-wasted-tokens-1ac8</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for the &lt;a href="https://dev.to/challenges/hacktoberfest-week3-2026-10-19"&gt;Hacktoberfest Open-Source AI Challenge Week 3: Slow and Steady&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What I Built
&lt;/h2&gt;

&lt;p&gt;AgentSpend is a local-first Rust CLI that scans local Codex session files for token usage and saves deduplicated totals to a local SQLite database.&lt;/p&gt;

&lt;p&gt;Digging through agent log files to figure out your usage is annoying and tedious. I built this to make collecting that data automatic and private—everything stays on your machine.&lt;/p&gt;

&lt;p&gt;Note: This is an early MVP. Cost calculations, waste detection and AI recommendations aren't built yet.&lt;/p&gt;

&lt;h2&gt;
  
  
  Demo
&lt;/h2&gt;

&lt;p&gt;If you have Codex session records on your machine, you can run:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;agentspend doctor&lt;br&gt;
agentspend scan&lt;br&gt;
agentspend status&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;(I haven't attached a video or terminal recording yet since I still need to verify the build and run live CLI tests.)&lt;/p&gt;

&lt;h2&gt;
  
  
  Code
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Repository: &lt;a href="https://github.com/aunjum/AgentSpend" rel="noopener noreferrer"&gt;https://github.com/aunjum/AgentSpend&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Installation: Run &lt;code&gt;cargo install --path&lt;/code&gt; . in the root directory.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  How I Built It
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Rust &amp;amp; Clap: For building a fast, lightweight native CLI.&lt;/li&gt;
&lt;li&gt;Serde: To parse event metadata from session logs.&lt;/li&gt;
&lt;li&gt;SQLite: To store usage totals locally without duplicates.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The log connector uses turn-level counters so it doesn't double-count cumulative thread totals. To keep things secure, prompt and response text are ignored entirely and local API credentials are never touched.&lt;/p&gt;

&lt;p&gt;Note on Gemma: I plan to integrate Gemma down the road, but since it’s not working yet I'm not submitting this for the Gemma prize category.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Does Open Innovation Matter?
&lt;/h2&gt;

&lt;p&gt;Local, open-source dev tools give you complete control over your data. You can inspect exactly how log collection works, adapt connectors to your own workflow and ensure your usage data never leaves your hardware.&lt;/p&gt;

&lt;h2&gt;
  
  
  My Agent Session
&lt;/h2&gt;

&lt;p&gt;Omitted—I haven't collected structured metrics on the agent session used to build this yet.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Lazy Payoff
&lt;/h2&gt;

&lt;p&gt;No more grepping through log folders or manually tallying up session files. The scanner runs in seconds and handles the tracking for you.&lt;/p&gt;

&lt;h2&gt;
  
  
  Prize Categories
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Primary: Overall Hacktoberfest Challenge&lt;/li&gt;
&lt;li&gt;Gemma Category: Skipped for now (waiting until integration is functional).&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Limitations and testing
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Imports: Claude and Gemini log parsing aren't implemented yet.&lt;/li&gt;
&lt;li&gt;Features: Cost tracking, real-time TUI and Ollama/Gemma log analysis are still on the roadmap.&lt;/li&gt;
&lt;li&gt;Testing: Needs broader testing across different real-world session setups.&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>devchallenge</category>
      <category>hf26challenge</category>
    </item>
    <item>
      <title>Six Months From Now AI Security Will Feel Obvious. Today, You Can Be Early.</title>
      <dc:creator>TryHackMyAI</dc:creator>
      <pubDate>Wed, 21 Oct 2026 18:56:49 +0000</pubDate>
      <link>https://dev.to/thmai/six-months-from-now-ai-security-will-feel-obvious-today-you-can-be-early-530f</link>
      <guid>https://dev.to/thmai/six-months-from-now-ai-security-will-feel-obvious-today-you-can-be-early-530f</guid>
      <description>&lt;p&gt;&lt;a href="https://tryhackmyai.com" rel="noopener noreferrer"&gt;tryhackmyai.com&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Everyone learns to build AI but almost nobody learns to break it&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A world where chatbots, agents and AI tools run everything and no one knows how to defend them.&lt;/p&gt;

&lt;p&gt;So instead of just worrying about it, let's built something together.&lt;/p&gt;

&lt;p&gt;A community. A lab. A playground for the curious.&lt;/p&gt;

&lt;p&gt;First learn. Then attack. Then defend.&lt;/p&gt;

&lt;p&gt;That's &lt;strong&gt;TryHackMyAI&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;You can start completely free.&lt;/p&gt;

&lt;p&gt;Try the &lt;strong&gt;Launch&lt;/strong&gt; offer today.&lt;/p&gt;

&lt;p&gt;No giant commitment. No complicated choices.&lt;/p&gt;

&lt;p&gt;Just one small step before deciding if this is worth going deeper into.&lt;/p&gt;

&lt;p&gt;🔐 Break AI.&lt;br&gt;
🧠 Understand why it broke.&lt;br&gt;
🛡️ Learn to defend it.&lt;/p&gt;

&lt;p&gt;Happy AI Hacking!&lt;/p&gt;

</description>
      <category>ai</category>
      <category>security</category>
      <category>cybersecurity</category>
      <category>tryhackmyai</category>
    </item>
    <item>
      <title>AI Can Be Hacked. I Built TryHackMyAI So You Can Learn How to Defend It.</title>
      <dc:creator>TryHackMyAI</dc:creator>
      <pubDate>Wed, 21 Oct 2026 06:06:55 +0000</pubDate>
      <link>https://dev.to/thmai/ai-can-be-hacked-i-built-tryhackmyai-so-you-can-learn-how-to-defend-it-2db0</link>
      <guid>https://dev.to/thmai/ai-can-be-hacked-i-built-tryhackmyai-so-you-can-learn-how-to-defend-it-2db0</guid>
      <description>&lt;p&gt;&lt;strong&gt;Break AI. Understand AI. Secure AI.&lt;/strong&gt;&lt;br&gt;
👉 &lt;strong&gt;Try free lessons and labs here: &lt;a href="https://tryhackmyai.com" rel="noopener noreferrer"&gt;https://tryhackmyai.com&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;AI is everywhere. Most people learn to build it. Few learn to break it and secure it.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;That’s the problem I’m trying to fix.&lt;/p&gt;

&lt;p&gt;I built &lt;strong&gt;TryHackMyAI&lt;/strong&gt; : a hands-on platform where you learn AI security by trying to break controlled AI apps then understanding how to defend them.&lt;/p&gt;

&lt;p&gt;Instead of hours of theory you get practical labs.&lt;/p&gt;

&lt;p&gt;You might try to:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Trick a chatbot&lt;/li&gt;
&lt;li&gt;Leak hidden data&lt;/li&gt;
&lt;li&gt;Misuse an AI tool&lt;/li&gt;
&lt;li&gt;Find a weakness in an AI app&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Then you learn &lt;strong&gt;why&lt;/strong&gt; it worked and how to prevent it.&lt;/p&gt;

&lt;p&gt;It’s for developers, students, security folks, AI builders, curious hackers and complete beginners.&lt;/p&gt;

&lt;p&gt;You don’t need to be an AI expert.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Try it for free:&lt;/strong&gt; &lt;a href="https://tryhackmyai.com" rel="noopener noreferrer"&gt;https://tryhackmyai.com&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I’m looking for early users to explore, break things and tell me what to improve.&lt;/p&gt;

</description>
      <category>machinelearning</category>
      <category>security</category>
      <category>cybersecurity</category>
      <category>ai</category>
    </item>
  </channel>
</rss>
