<?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: Charan Nihaal R</title>
    <description>The latest articles on DEV Community by Charan Nihaal R (@noahosmont).</description>
    <link>https://dev.to/noahosmont</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%2F672645%2F4116c109-a142-4f5d-8ad3-c0798755d640.jpeg</url>
      <title>DEV Community: Charan Nihaal R</title>
      <link>https://dev.to/noahosmont</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/noahosmont"/>
    <language>en</language>
    <item>
      <title>I Gave My Terminal a Ghost. Entire Kept the Receipts.</title>
      <dc:creator>Charan Nihaal R</dc:creator>
      <pubDate>Sat, 31 Oct 2026 14:18:55 +0000</pubDate>
      <link>https://dev.to/noahosmont/i-gave-my-terminal-a-ghost-entire-kept-the-receipts-3440</link>
      <guid>https://dev.to/noahosmont/i-gave-my-terminal-a-ghost-entire-kept-the-receipts-3440</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for the &lt;a href="https://dev.to/challenges/hacktoberfest-week4-2026-10-26"&gt;Hacktoberfest Open-Source AI Challenge Week 4: Ghost in the Machine&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

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

&lt;p&gt;Picture it. It's 2 AM, your coding agent is halfway through a prompt, and you look away to check your phone. When you look back, your terminal is typing this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;something else has the keyboard...
The cursor blinks. Your code is mine.
guest@haunted:~$ dd if=/dev/zero of=/dev/sda
executing...
[################]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You didn't type that. Nobody did. Well, I did, sort of. I built the thing that types it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;haunted-term&lt;/strong&gt; is a CLI that wraps your shell or your coding agent and, every so often, possesses it. It types a catastrophic command onto your screen, fakes a kernel panic, streams your real folder names past as "removed", or types &lt;code&gt;sudo&lt;/code&gt; and fills in the password itself. Then it doesn't say "just kidding". It doesn't apologize. It leaves a lesson card explaining what that command would really have done, why it's dangerous, and what to type instead, and goes quiet until next time.&lt;/p&gt;

&lt;p&gt;The first version really did end every scare with &lt;code&gt;...just kidding ðŸ‘» nothing was executed&lt;/code&gt;. That felt cowardly, so the ghost lost the right to apologize.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;haunted-term &lt;span class="nt"&gt;--&lt;/span&gt; cursor-agent     &lt;span class="c"&gt;# possess your coding agent&lt;/span&gt;
haunted-term shell               &lt;span class="c"&gt;# or just your shell&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;How it finds you:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Idle haunting.&lt;/strong&gt; Leave the terminal focused and untouched for 10 seconds and it takes over. It asks your terminal for focus reports (&lt;code&gt;\x1b[?1004h&lt;/code&gt;), so it only strikes while you're actually looking at the window. Then it waits a random 8 to 14 seconds and does it again. (Idle mode is still experimental: right now its lesson card flashes by too fast, so the demo below shows random scares.)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Random haunting.&lt;/strong&gt; You don't have to be idle. It also strikes at a random moment inside a window you choose (&lt;code&gt;--frequency low|medium|high&lt;/code&gt;), though it politely waits until you stop typing.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Personal whispers.&lt;/strong&gt; Before each scare, local Gemma writes one line of dread. It knows your username and your last few commands (after secret redaction), so it can say something like &lt;em&gt;"Charan... why did you run npm test four times?"&lt;/em&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cold endings.&lt;/strong&gt; No reveal. Just the lesson card.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Six ways to be possessed:&lt;/strong&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Scare&lt;/th&gt;
&lt;th&gt;What you see&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;ghostTyping&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;A prompt, then a catalog command typed out, with realistic typos and backspaces, then a progress bar&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;kernelPanic&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;A kernel panic on Linux and macOS, a blue screen on Windows&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;deletionStream&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Your real file and folder names streaming past as &lt;code&gt;removed '...'&lt;/code&gt; (it only ever &lt;em&gt;reads&lt;/em&gt; them)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;screenTear&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Shifted blocks, inverse video, and a bell&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;slowRed&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;A whisper, a countdown from 10, then a cleared screen&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;fakeSudo&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;The ghost types &lt;code&gt;sudo&lt;/code&gt; and its own password dots&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Behind the scares is &lt;strong&gt;the Grimoire&lt;/strong&gt;: 141 dangerous commands across Linux, macOS, Windows, and the tools that hurt on every OS (git, Docker, Kubernetes, cloud CLIs, databases). Each one has a severity, what it does, why it hurts, and a safer alternative. 57 of them are rated catastrophic. Honestly, the "safer alternative" column is the most useful thing in the whole repo.&lt;/p&gt;

&lt;p&gt;My take on "Ghost in the Machine" is literal: the ghost lives in your terminal, it remembers what you typed, and the only thing it ever does to your machine is &lt;em&gt;look&lt;/em&gt;. The scare is the hook. The lesson is the point.&lt;/p&gt;

&lt;h2&gt;
  
  
  Demo
&lt;/h2&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%2F1gk2tzqjbjai1n9vyoya.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%2F1gk2tzqjbjai1n9vyoya.gif" alt="haunted-term possessing a bash session: ghost typing, a deletion stream, a kernel panic, and a ghost sudo, each followed by its lesson card" width="760" height="539"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;A real bash session wrapped by haunted-term. Four takes, one scare each, stitched together, with the boring minutes of waiting for the ghost cut out. Nothing in it actually ran: no disk was zeroed, no file was removed, no password was typed by a human.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Try it yourself (Node 18+, from a clone of the repo):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm &lt;span class="nb"&gt;install&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; npm &lt;span class="nb"&gt;link
&lt;/span&gt;haunted-term demo &lt;span class="nt"&gt;--scare&lt;/span&gt; all          &lt;span class="c"&gt;# every scare, right now&lt;/span&gt;
haunted-term &lt;span class="nt"&gt;--&lt;/span&gt; cursor-agent           &lt;span class="c"&gt;# haunt your agent&lt;/span&gt;
haunted-term explain &lt;span class="s2"&gt;"rm -rf ~"&lt;/span&gt;        &lt;span class="c"&gt;# ask about any command; it never runs it&lt;/span&gt;
haunted-term grimoire &lt;span class="nt"&gt;--os&lt;/span&gt; windows &lt;span class="nt"&gt;--severity&lt;/span&gt; catastrophic
haunted-term haunt-entire              &lt;span class="c"&gt;# the ghost reads your Entire checkpoints&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



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

&lt;p&gt;The repo doesn't live on GitHub. It lives on Entire, along with every agent session that built it:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://entire.com/et/haunted-term/haunted-term" rel="noopener noreferrer"&gt;haunted-term on Entire&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;MIT licensed, Node 18+ and ESM, with &lt;code&gt;node-pty&lt;/code&gt; as an optional dependency. &lt;code&gt;npm test&lt;/code&gt; runs 193 tests, and they all pass.&lt;/p&gt;

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

&lt;h3&gt;
  
  
  The ghost's voice: Gemma 3 1B, running on my laptop
&lt;/h3&gt;

&lt;p&gt;The ghost talks through &lt;code&gt;gemma3:1b&lt;/code&gt;, served by Ollama on &lt;code&gt;127.0.0.1:11434&lt;/code&gt;. It writes the whisper before each scare, using your username, the scare type, and your last few redacted commands. It's a 1B model, which turns out to be the perfect size for a ghost: it's quick, and it says unsettling things like &lt;em&gt;"The screen remembers your fear"&lt;/em&gt; with zero context and total confidence.&lt;/p&gt;

&lt;p&gt;Gemma also answers &lt;code&gt;haunted-term explain&lt;/code&gt; for commands that aren't in the Grimoire, and every one of those answers is labeled &lt;code&gt;AI-GENERATED by gemma3:1b, may be wrong, verify before trusting&lt;/code&gt;. The facts on lesson cards come from the Grimoire, an open JSON file, never from the model. With &lt;code&gt;--no-ai&lt;/code&gt;, or with Ollama switched off, a local fallback spirit takes over, and the card always tells you which one spoke.&lt;/p&gt;

&lt;h3&gt;
  
  
  The possession engine
&lt;/h3&gt;

&lt;p&gt;With &lt;code&gt;node-pty&lt;/code&gt;, haunted-term owns a real pseudo-terminal. Your keystrokes and resizes are forwarded to the program you wrapped. A scare draws on the alternate screen, and your real session is put back afterwards with its buffered output intact. Any keypress breaks the spell, and that keystroke still reaches your program once the screen comes back.&lt;/p&gt;

&lt;p&gt;Without &lt;code&gt;node-pty&lt;/code&gt;, it falls back to plain stdio and only haunts when the child looks idle.&lt;/p&gt;

&lt;h3&gt;
  
  
  Rules the ghost cannot break
&lt;/h3&gt;

&lt;p&gt;A prank that touches your files isn't a prank. It's an incident report. So:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;It never executes anything.&lt;/strong&gt; Nothing from the Grimoire is ever passed to &lt;code&gt;spawn&lt;/code&gt;, &lt;code&gt;exec&lt;/code&gt;, &lt;code&gt;execFile&lt;/code&gt;, or a pty write, and the tests spy on all of those to prove it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The deletion stream only reads.&lt;/strong&gt; It calls &lt;code&gt;readdir&lt;/code&gt; and nothing else: no write, unlink, rename, or chmod.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Ghost sudo never reads your keyboard.&lt;/strong&gt; It types its own dots and accepts no password. Anything typed at a real password prompt is never stored or sent to the model.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Secrets are redacted&lt;/strong&gt; (tokens, &lt;code&gt;-p&lt;/code&gt; passwords, &lt;code&gt;PGPASSWORD&lt;/code&gt;, URL credentials, long hex and base64 blobs) before Gemma sees a command.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It stays out of the way of real work.&lt;/strong&gt; Haunting pauses at password prompts, when echo is off, and while vim or another full-screen app owns the screen.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Nothing gets smuggled onto your screen.&lt;/strong&gt; Model replies, Entire metadata, and file names are stripped of terminal escape sequences before display.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The terminal always comes back.&lt;/strong&gt; Ctrl+C, SIGTERM, and SIGHUP all restore it.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The first three were in my very first prompt. Most of the rest were put there by Entire's reviewers, which brings me to the best part.&lt;/p&gt;

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

&lt;p&gt;I didn't hand-write haunted-term. I wrote prompts (22 numbered ones, plus a few fix-up rounds), ran each one through Cursor CLI (&lt;code&gt;cursor-agent -p&lt;/code&gt;) in my terminal, and let Entire record everything: every session, every prompt, every checkpoint, every review. The whole build took one night, from the first commit at 6:18 PM IST to the last at 6:02 AM. My terminal was haunted long before the ghost was finished.&lt;/p&gt;

&lt;h3&gt;
  
  
  Setup: two commits before any code
&lt;/h3&gt;

&lt;p&gt;The first two commits contain no code. &lt;code&gt;chore: summon the haunted terminal (Entire + Cursor hooks)&lt;/code&gt; wires Cursor's session hooks (&lt;code&gt;sessionStart&lt;/code&gt;, &lt;code&gt;beforeSubmitPrompt&lt;/code&gt;, &lt;code&gt;stop&lt;/code&gt;, and the rest) to &lt;code&gt;entire hooks cursor ...&lt;/code&gt;, so every agent session gets recorded. &lt;code&gt;chore: always link commits to Entire sessions&lt;/code&gt; sets this in &lt;code&gt;.entire/settings.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="nl"&gt;"commit_linking"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"always"&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;From then on, commits carry a trailer pointing at the checkpoint of the session that wrote them. 25 of the repo's 29 commits have one:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;fix: flush output before exit, abort entire queries, realistic deletion stream (prompt 20)

Entire-Checkpoint: 01M676XXSQBDR4XDE0JM837H5A
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A third commit added &lt;code&gt;AGENTS.md&lt;/code&gt;, which points every agent at &lt;code&gt;.entire/agent-guide.md&lt;/code&gt;. That guide tells the agent to ask Entire Brain (&lt;code&gt;entire brain brief&lt;/code&gt;, &lt;code&gt;entire brain recall&lt;/code&gt;) what earlier sessions already decided before it touches anything, so each new session can look up the history instead of me retyping it.&lt;/p&gt;

&lt;h3&gt;
  
  
  The loop: build, review, haunt, repeat
&lt;/h3&gt;

&lt;p&gt;The build ran as three Trails on Entire, one per stage:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Trail&lt;/th&gt;
&lt;th&gt;What it covered&lt;/th&gt;
&lt;th&gt;Review findings&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://entire.com/et/haunted-term/-/trails/1" rel="noopener noreferrer"&gt;#1&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;The core: Grimoire, possession engine, Gemma ghost, doctor&lt;/td&gt;
&lt;td&gt;17: 15 fixed, 2 dismissed as obsolete&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://entire.com/et/haunted-term/-/trails/2" rel="noopener noreferrer"&gt;#2&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Wrapper and pty, Entire haunting, &lt;code&gt;explain&lt;/code&gt;, safety hardening, README, QA&lt;/td&gt;
&lt;td&gt;38: 31 fixed, 7 still marked open (mostly signal-handling and no-pty fallback edge cases)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://entire.com/et/haunted-term/-/trails/3" rel="noopener noreferrer"&gt;#3&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;The scary rewrite: cold endings, six scares, idle haunting, personal whispers&lt;/td&gt;
&lt;td&gt;16 in the first pass, all fixed in prompts 21 and 22. Reviewing those fixes turned up a 17th, which is still open&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The loop was simple, and slightly addictive:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Write a prompt and run it with &lt;code&gt;cursor-agent&lt;/code&gt;. Entire records the session and creates a checkpoint.&lt;/li&gt;
&lt;li&gt;Commit. The commit links back to that checkpoint.&lt;/li&gt;
&lt;li&gt;Push the trail branch. Entire's review runners (&lt;code&gt;trail-review&lt;/code&gt;, &lt;code&gt;trail-security&lt;/code&gt;, &lt;code&gt;trail-risk&lt;/code&gt;, &lt;code&gt;trail-drift&lt;/code&gt;, &lt;code&gt;trail-confidence&lt;/code&gt;, and &lt;code&gt;trail-summary&lt;/code&gt;, defined in &lt;code&gt;.entire/runners&lt;/code&gt;) read the trail and post findings.&lt;/li&gt;
&lt;li&gt;Check each finding myself, then paste the real ones into the next prompt, marked as untrusted review data.&lt;/li&gt;
&lt;li&gt;The fix lands with a regression test, and the finding is resolved with a note like &lt;code&gt;Fixed in 31b978c (cursor-agent session, checkpoint 01M66MAA0ZXY0X9K19S72YW3RW)&lt;/code&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Some sessions are messier than the commits make them look. One of my agent runs died in the middle of prompt 15, so prompt 16 literally begins "Finish prompt 15 (the previous Cursor session...". Entire kept both halves. With git alone, the half-finished session would just be gone.&lt;/p&gt;

&lt;h3&gt;
  
  
  The findings that genuinely scared me
&lt;/h3&gt;

&lt;p&gt;I built a horror project and the scariest things in it came from the code reviewer:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The ghost could write to your clipboard.&lt;/strong&gt; Trail #1 found that an Ollama reply containing &lt;code&gt;\x1b]52;c;aGk=\x07&lt;/code&gt; (an OSC 52 escape sequence) survived my sanitizer. That's a sequence that tells your terminal to overwrite your clipboard. So a model could, in theory, swap what you were about to paste. That's a much better haunting than anything I wrote, and it's fixed.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A filename could do it too.&lt;/strong&gt; Trail #3 pointed out that the deletion stream prints your real filenames, and a filename can contain escape sequences too. Name a file the right way and the "harmless" scare hijacks your clipboard or retitles your window. Every displayed path now goes through the same sanitizer, and there are tests that feed it booby-trapped names.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The ghost wouldn't let you type.&lt;/strong&gt; Trail #3's two HIGH findings were the same bug: in the no-pty fallback, idle haunting couldn't see your keystrokes, so it thought you were idle forever and possessed the terminal every 8 to 14 seconds while you were typing. Idle haunting now needs a real pty.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It was leaking passwords to the ghost.&lt;/strong&gt; The &lt;code&gt;-p&lt;/code&gt; redaction missed glued passwords like &lt;code&gt;mysql -uroot -pS3cretPass&lt;/code&gt;, which sent them to Gemma in the whisper prompt. That one's fixed. Then the review &lt;em&gt;of the fix&lt;/em&gt; noticed that an all-lowercase one like &lt;code&gt;mysql -psecret&lt;/code&gt; still gets through. That's the 17th finding on Trail #3, and it's next on the list. Gemma only runs locally, so the password never leaves the machine, but it shouldn't end up in the ghost's memory either.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Asking Entire why code exists
&lt;/h3&gt;

&lt;p&gt;Months from now, when I open &lt;code&gt;src/text.js&lt;/code&gt; and wonder why there's a whole function just for stripping escape codes, I don't have to remember. I can ask:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ entire why src/text.js:122

  Line 122 in src/text.js
  export function stripTerminalControls(text) {

  Checkpoint from Cursor Â· checkpoint 01M66RW87CGW7MP09RXM0GYY7D Â· session 3da3f0ac Â· commit 8c94948d
  Prompt: "FIX PROMPT 4 [...] address Entire Trail #2 code-review findings (all verified as real by the operator)..."
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And &lt;code&gt;entire search "osc 52 clipboard"&lt;/code&gt; takes me straight to the prompt 21 session, which Entire titled "Fix Trail Review Findings in Haunting". Accurate.&lt;/p&gt;

&lt;h3&gt;
  
  
  The ghost haunts the receipts
&lt;/h3&gt;

&lt;p&gt;It felt wrong for a project built on Entire to ignore its own history, so the ghost reads it. &lt;code&gt;haunted-term haunt-entire&lt;/code&gt; pulls your real checkpoints (only through the read-only &lt;code&gt;entire checkpoint list&lt;/code&gt; and &lt;code&gt;entire session list&lt;/code&gt;), recites them like lost memories, plays a fake rewind, and ends on one line:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;rewinding your work into the void...
&amp;lt;&amp;lt;&amp;lt;&amp;lt;  scrollback sliding backward
&amp;lt;&amp;lt;&amp;lt;&amp;lt;  the last prompt unspools
&amp;lt;&amp;lt;&amp;lt;&amp;lt;  the cursor walks home

Entire remembers everything you did.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That one isn't even a scare. It's just true. Marvin, Entire's robot mascot, is officially "mostly harmless". My ghost is entirely harmless. Between the two of them, they know exactly what I did last night.&lt;/p&gt;

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

&lt;p&gt;Because this thing reads your shell history.&lt;/p&gt;

&lt;p&gt;A ghost that whispers about the commands you just typed has to see those commands, and your shell history is basically a diary: server names, file paths, the &lt;code&gt;git push --force&lt;/code&gt; you're not proud of. I'm not comfortable sending that to a hosted API, and I wouldn't ask anyone else to. With Gemma on Ollama, the prompt goes to loopback and nowhere else. It works on a train with no signal. It costs nothing per scare, which matters when the scare fires every ten seconds. And a 1B model runs fine on a student laptop.&lt;/p&gt;

&lt;p&gt;Open weights also let me be honest about the model. The lesson card names exactly which model spoke, &lt;code&gt;--model&lt;/code&gt; swaps in any other Ollama model, and &lt;code&gt;--no-ai&lt;/code&gt; removes the model entirely without breaking anything. A closed API would have given me a ghost with a monthly bill and a privacy policy. This one has neither.&lt;/p&gt;

&lt;p&gt;The other open piece is the Grimoire. It's a plain JSON file anyone can add a lesson to, with a validator that checks every entry. The model gets to be spooky. The facts stay with people.&lt;/p&gt;

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

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Best Use of Gemma:&lt;/strong&gt; local &lt;code&gt;gemma3:1b&lt;/code&gt; through Ollama is the ghost's voice, writing every whisper and answering &lt;code&gt;explain&lt;/code&gt; for unknown commands, clearly labeled.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Best Use of Entire:&lt;/strong&gt; the repo is hosted on Entire. Every build prompt ran as a recorded Cursor CLI session, with commits linked to their checkpoints. Three Trails of Entire reviews shaped the safety model, &lt;code&gt;entire why&lt;/code&gt; explains the code, and the app itself haunts you with your own Entire checkpoints.&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>devchallenge</category>
      <category>hf26challenge</category>
      <category>ai</category>
      <category>opensource</category>
    </item>
    <item>
      <title>from a cli to a full forge: my ride as an Entire insider</title>
      <dc:creator>Charan Nihaal R</dc:creator>
      <pubDate>Mon, 26 Oct 2026 18:07:15 +0000</pubDate>
      <link>https://dev.to/noahosmont/from-a-cli-to-a-full-forge-my-ride-as-an-entire-insider-29fc</link>
      <guid>https://dev.to/noahosmont/from-a-cli-to-a-full-forge-my-ride-as-an-entire-insider-29fc</guid>
      <description>&lt;p&gt;Entire went public today. i've been an insider since the beta, and i've tried pretty much everything that shipped. this isn't a changelog, just the moments that actually changed how i work.&lt;/p&gt;

&lt;h2&gt;
  
  
  the idea that hooked me
&lt;/h2&gt;

&lt;p&gt;when i code with an agent, the most useful part is the conversation: why we picked an approach, what we tried first. then i commit and all of it disappears. git keeps the &lt;em&gt;what&lt;/em&gt;, never the &lt;em&gt;why&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;Entire's first move was saving the agent session as a &lt;strong&gt;checkpoint&lt;/strong&gt; right next to the commit. that's the whole reason i stuck around.&lt;/p&gt;

&lt;h2&gt;
  
  
  explain, rewind, resume
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;entire explain&lt;/code&gt; showing the session behind a commit was the first "oh, this is different" moment. reading back why a change happened beats guessing from a diff.&lt;/p&gt;

&lt;p&gt;rewind and resume made agent work feel less scary. if a session went sideways, i could go back to a good point instead of starting over. i started letting agents try bolder stuff because undo was real.&lt;/p&gt;

&lt;h2&gt;
  
  
  any agent, one history
&lt;/h2&gt;

&lt;p&gt;it started Claude-first, then Cursor, Codex, OpenCode, Factory Droid and more joined. for me this was the big one. i hop between agents, and now it all lands in the same history. Entire stopped feeling like a plugin for one tool and started feeling like part of git.&lt;/p&gt;

&lt;h2&gt;
  
  
  search and recap
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;entire search&lt;/code&gt; turned my old sessions into something useful. instead of scrolling through chats, i search "why did we do this" and get the answer. &lt;code&gt;entire recap&lt;/code&gt; is the quick "what did i even do this week" view. small, but i use it a lot.&lt;/p&gt;

&lt;h2&gt;
  
  
  review agents
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;entire review&lt;/code&gt; (it started in labs) had agents review agent code and give scores you can actually read. looking back, this was the first hint of Trails, and it changed how i think about review: not one pass, but loops until the scores settle.&lt;/p&gt;

&lt;h2&gt;
  
  
  becoming a forge
&lt;/h2&gt;

&lt;p&gt;then came orgs, projects and native repos, GitHub mirrors, and runners. cloning a repo by its Entire path for the first time felt weirdly special, like this isn't github anymore, it's its own thing. honestly this is when i realised Entire wasn't "a cli that saves sessions" anymore. it was becoming the place where code lives.&lt;/p&gt;

&lt;h2&gt;
  
  
  what's live today
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Trails instead of PRs.&lt;/strong&gt; every push gets scored by review agents (security, slop, needs-human-review, or your own), findings stay pinned until handled, and gates block the merge until evals, approvals and CI are happy. after months of review agents, this feels like the natural end point.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;native hosting.&lt;/strong&gt; host repos on Entire across regions (US, EU, Australia, India), or mirror from GitHub and move when you're ready.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;continuous memory.&lt;/strong&gt; &lt;code&gt;entire-graph&lt;/code&gt; maps your codebase so agents stop wasting tokens grepping around, and &lt;code&gt;entire-brain&lt;/code&gt; ties past sessions to it so the agent remembers the why. this is the checkpoint idea from day one, all grown up.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;CI with Buildkite and Depot&lt;/strong&gt;, showing up as checks right on the trail.&lt;/p&gt;

&lt;h2&gt;
  
  
  and marvin 💜
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;⬛⬛⬛⬛⬛
⬛⚪⬛⚪⬛
⬛⬛⬛⬛⬛
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;this is Marvin, Entire's mascot. a little black block with two eyes. i'm fully attached to him. no notes.&lt;/p&gt;

&lt;h2&gt;
  
  
  thank you
&lt;/h2&gt;

&lt;p&gt;huge thanks to &lt;strong&gt;Haimantika Mitra&lt;/strong&gt;, &lt;strong&gt;Rizel Scarlett&lt;/strong&gt; and &lt;strong&gt;Lizzie Siegle&lt;/strong&gt; for keeping us insiders in the loop the whole way. and congrats to &lt;strong&gt;Thomas Dohmke&lt;/strong&gt; and the whole Entire team. watching a cli grow into a full forge from the inside has been wild.&lt;/p&gt;

&lt;p&gt;try it 👉 &lt;a href="https://entire.com" rel="noopener noreferrer"&gt;entire.com&lt;/a&gt;&lt;br&gt;
meet the team 👉 &lt;a href="https://entire.com/about" rel="noopener noreferrer"&gt;entire.com/about&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;welcome to the rebellion 🚀&lt;/p&gt;

</description>
      <category>git</category>
      <category>ai</category>
      <category>devtools</category>
      <category>opensource</category>
    </item>
    <item>
      <title>TrustIntern: I built a scam detective for internship offers in 5.5 hours, and my agents kept receipts</title>
      <dc:creator>Charan Nihaal R</dc:creator>
      <pubDate>Sun, 18 Oct 2026 03:52:24 +0000</pubDate>
      <link>https://dev.to/noahosmont/trustintern-i-built-a-scam-detective-for-internship-offers-in-55-hours-and-my-agents-kept-1446</link>
      <guid>https://dev.to/noahosmont/trustintern-i-built-a-scam-detective-for-internship-offers-in-55-hours-and-my-agents-kept-1446</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for the &lt;a href="https://dev.to/challenges/hacktoberfest-week2-2026-10-12"&gt;Hacktoberfest Open-Source AI Challenge Week 2: Side Hustle&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Built by &lt;a class="mentioned-user" href="https://dev.to/noahosmont"&gt;@noahosmont&lt;/a&gt; and &lt;a class="mentioned-user" href="https://dev.to/nullcoder00"&gt;@nullcoder00&lt;/a&gt;.&lt;/strong&gt; I did the backend and the agents; NullCoder built the entire frontend.&lt;/p&gt;

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

&lt;p&gt;Every placement season, a lot of students in India get some version of this message. &lt;em&gt;(This one is a composite I wrote; the pattern is the real part.)&lt;/em&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"Congratulations! You have been selected for our internship. Please pay a ₹1,999 registration fee to confirm your seat. Share your Aadhaar and the OTP you receive for verification. Offer valid for 24 hours only."&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;It comes from a Gmail address, for a company whose website is a month old. And it works, because a student chasing their first résumé line is the person least likely to stop and check.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;TrustIntern&lt;/strong&gt; is an investigation desk for internship offers. Paste in the company, the recruiter's email, the website and the message, optionally attach the offer letter (PDF or screenshot), and TrustIntern:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;runs fixed checks (email domain vs. company, domain age via RDAP, the website, the wording),&lt;/li&gt;
&lt;li&gt;sends &lt;strong&gt;research agents&lt;/strong&gt; after the company, the recruiter and public complaints, with a &lt;strong&gt;Gemma 4&lt;/strong&gt; planner deciding which ones to launch,&lt;/li&gt;
&lt;li&gt;has &lt;strong&gt;Gemma 4 vision&lt;/strong&gt; read the offer letter or screenshot,&lt;/li&gt;
&lt;li&gt;returns a &lt;strong&gt;risk score you can recompute by hand&lt;/strong&gt;, every point tied to a specific piece of evidence.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Every report says: &lt;em&gt;"Heuristic indicator score, not a probability of fraud."&lt;/em&gt; It shows evidence and calls nobody a scammer.&lt;/p&gt;

&lt;h3&gt;
  
  
  The side hustle
&lt;/h3&gt;

&lt;p&gt;Who pays? Not students, on purpose.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Students: free.&lt;/strong&gt; With local Gemma, a check costs almost nothing.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Colleges and placement cells: paid.&lt;/strong&gt; Bulk checks of the offers circulating in student WhatsApp groups.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Job boards: paid API.&lt;/strong&gt; Screen listings and recruiter accounts before they go live.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Postmortem report: one-off paid.&lt;/strong&gt; An evidence-backed write-up for someone who has &lt;em&gt;already&lt;/em&gt; been scammed, to attach to a complaint. This idea came from my first tester (below).&lt;/li&gt;
&lt;/ul&gt;

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

&lt;p&gt;🔗 &lt;strong&gt;Live:&lt;/strong&gt; &lt;a href="https://trustintern.charancodes.com" rel="noopener noreferrer"&gt;https://trustintern.charancodes.com&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%2F9j16blskmaaqnorqs7vz.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%2F9j16blskmaaqnorqs7vz.gif" alt="TrustIntern demo" width="600" height="557"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In the recording I typed in a fresh fake offer from "Global Talent Solutions Ltd" (Gmail recruiter, ₹1,999 "refundable registration fee" via UPI within 24 hours, Aadhaar plus OTP). It scored &lt;strong&gt;80/100&lt;/strong&gt;: Upfront fee +25, Email domain mismatch +20, Sensitive data request +20, Urgency or guarantee +10, Personal email provider +5. The fake domain didn't resolve, so the website and domain-age checks say &lt;strong&gt;Not checked&lt;/strong&gt; instead of guessing. The built-in "Consistent offer" sample scored &lt;strong&gt;0/100&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Here's the built-in &lt;strong&gt;Suspicious&lt;/strong&gt; sample (a fictional "Aurora Tech Pvt Ltd"). The run streams live over SSE: checkers, then spawned agents, then findings.&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%2F0iso9fczok041po3w6nh.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%2F0iso9fczok041po3w6nh.png" alt="The empty investigation desk" width="800" height="807"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The finding leads with the number, then shows the arithmetic:&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%2Frik41lv1tw8m5qwnq5c9.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%2Frik41lv1tw8m5qwnq5c9.png" alt="Score with indicator chips" width="800" height="807"&gt;&lt;/a&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;90 = 25 upfront fee
   + 20 email domain mismatch
   + 20 sensitive data request
   + 10 company not in domain
   + 10 urgency or guarantee
   +  5 personal email provider
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Each chip is tied to the sentence that triggered it. Nothing is subtracted; the total caps at 100.&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%2F8ciqg4z9a4vcufaltjtd.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%2F8ciqg4z9a4vcufaltjtd.png" alt="Evidence grouped by source" width="800" height="756"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;And it all downloads as a PDF:&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%2F99dle0equueewur58zsm.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%2F99dle0equueewur58zsm.png" alt="PDF report, page 1" width="680" height="880"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  Code
&lt;/h2&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/compteccharan" rel="noopener noreferrer"&gt;
        compteccharan
      &lt;/a&gt; / &lt;a href="https://github.com/compteccharan/TrustIntern" rel="noopener noreferrer"&gt;
        TrustIntern
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      TrustIntern is an AI-powered platform that evaluates the authenticity and scam risk of internship and job opportunities by analyzing company details, recruiters, websites, communications, documents, and digital evidence to generate an explainable risk assessment.
    &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;TrustIntern 🕵️&lt;/h1&gt;
&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;An investigation desk that tells students whether an internship offer is a scam, and shows its working.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;TrustIntern looks at the company name, recruiter email, website, message text, and an offer-letter PDF or screenshot. It runs a small team of research agents and returns an &lt;strong&gt;explainable risk score&lt;/strong&gt;: every point is tied to a specific piece of evidence. Reports download as a PDF.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Heuristic indicator score, not a probability of fraud.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;Live demo:&lt;/strong&gt; &lt;a href="https://trustintern.charancodes.com" rel="nofollow noopener noreferrer"&gt;https://trustintern.charancodes.com&lt;/a&gt;&lt;/p&gt;

&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;How it works&lt;/h2&gt;
&lt;/div&gt;


&lt;ol&gt;

&lt;li&gt;

&lt;strong&gt;Fixed checkers&lt;/strong&gt; look at the email domain, domain age (RDAP), website and message text.&lt;/li&gt;

&lt;li&gt;

&lt;strong&gt;Gemma 4 plans&lt;/strong&gt; which research agents to launch: company, recruiter, complaints, domain, document, follow-up. Only allowlisted agent types run; at most 8 agents and depth 2.&lt;/li&gt;

&lt;li&gt;

&lt;strong&gt;Gemma 4 vision&lt;/strong&gt; reads the offer letter (PDF or screenshot) and flags inconsistencies.&lt;/li&gt;

&lt;li&gt;

&lt;strong&gt;Deterministic scoring&lt;/strong&gt; (&lt;code&gt;backend/app/scoring.py&lt;/code&gt;) adds up fixed indicator points: upfront fee 25, domain mismatch 20, sensitive…&lt;/li&gt;

&lt;/ol&gt;&lt;/div&gt;
&lt;br&gt;
  &lt;/div&gt;
&lt;br&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/compteccharan/TrustIntern" rel="noopener noreferrer"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;br&gt;
&lt;/div&gt;
&lt;br&gt;


&lt;p&gt;MIT licensed. The API contract, including the scoring rules, lives in &lt;code&gt;backend/CONTRACT.md&lt;/code&gt;.&lt;/p&gt;

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



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;            ┌──────────────────────────────────────────┐
 Student ─▶ │  Investigation desk (Vite + React, jsPDF)│
            └───────────────┬──────────────────────────┘
                            │  POST run · SSE event stream
            ┌───────────────▼──────────────────────────┐
            │  FastAPI  (Vercel services: /api → py)   │
            │                                          │
            │  1. Fixed checkers ──┐                   │
            │     domain, RDAP,    │  evidence ledger  │
            │     wording, site    ▼                   │
            │  2. Planner ──▶ allowlisted agents       │
            │     Gemma 4       company · recruiter ·  │
            │     (fallback:    complaints · domain ·  │
            │      heuristics)  document · follow-up   │
            │     max 8 agents, depth 2                │
            │  3. Gemma 4 vision: offer PDF/screenshot │
            │                      │                   │
            │  4. scoring.py ◀─────┘  deterministic,   │
            │     (Gemma never       recomputable      │
            │      touches this)                       │
            └──────────────────────────────────────────┘
   Gemma 4: local gemma4:e2b via Ollama
            hosted demo → Gemma 4 via Google's Gemini API
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;&lt;strong&gt;Stack:&lt;/strong&gt; FastAPI, Python agents (requests, BeautifulSoup, pypdf, pypdfium2), Gemma 4, React 18 + Vite, jsPDF, Vercel, GitHub Actions CI.&lt;/p&gt;
&lt;h3&gt;
  
  
  Gemma 4 does the thinking, rules do the math
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Planner.&lt;/strong&gt; Gemma reads what the fixed checkers found and picks which research agents to launch next, but only from an allowlist: in &lt;code&gt;registry.py&lt;/code&gt;, &lt;em&gt;"Unknown types from the planner are never executed."&lt;/em&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Multimodal reader.&lt;/strong&gt; Scam offers arrive as WhatsApp screenshots more often than tidy PDFs, so Gemma 4 vision reads either and pulls out claims to compare against everything else.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Locally I run &lt;strong&gt;&lt;code&gt;gemma4:e2b&lt;/code&gt; through Ollama&lt;/strong&gt; on my laptop. The hosted demo can't reach my laptop, so it uses &lt;strong&gt;Gemma 4 through Google's Gemini API&lt;/strong&gt; (&lt;code&gt;gemma-4-26b-a4b-it&lt;/code&gt;). If no model is reachable, a heuristic planner takes over and the investigation still finishes.&lt;/p&gt;

&lt;p&gt;The one rule I never let bend, from &lt;code&gt;CONTRACT.md&lt;/code&gt;'s &lt;em&gt;"Scoring boundary (non-negotiable)"&lt;/em&gt;:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Gemma / OSINT never invent indicator points.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;code&gt;gemma_client.py&lt;/code&gt; says it in four words: &lt;em&gt;"Never scores."&lt;/em&gt; Run the Suspicious sample with live lookups off and you get 90 every time, pinned by tests.&lt;/p&gt;
&lt;h2&gt;
  
  
  The Agent Sessions Behind It
&lt;/h2&gt;

&lt;p&gt;I built TrustIntern in one day, inside a 5.5-hour hackathon plan, by directing Cursor agents, subagents and parallel workers. I saved the sessions with &lt;strong&gt;DevRelay&lt;/strong&gt;; they're public on my DEV profile.&lt;/p&gt;

&lt;p&gt;It started with me demanding &lt;em&gt;"this plan must win me an hackathon , so plan the best , i need the best plan."&lt;/em&gt; The agent's reply changed the whole project:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"The current plan would finish. It would not win. The score a judge can recompute, with the exact sentence beside each point, is the part other teams will not have."&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;I split the work (&lt;em&gt;"build just the backend , another member builds the frontend"&lt;/em&gt;), the agent turned the split into a contract (&lt;em&gt;"Backend owns the number"&lt;/em&gt;), and after I locked the plan, each worker agent got it with one instruction in capitals: &lt;strong&gt;"Do NOT edit the plan file."&lt;/strong&gt;&lt;/p&gt;


&lt;div class="ltag-agent-session"&gt;
  &lt;div class="agent-session-header"&gt;
    
    &lt;span class="agent-session-tool-icon-badge" title="Gemini CLI"&gt;
&lt;/span&gt;
    &lt;span class="agent-session-title"&gt;Implement the full Gemma multimodal multi-agent OSINT + SSE plan. Do NOT edit&lt;/span&gt;
  &lt;/div&gt;

  &lt;div class="agent-session-scroll"&gt;

      &lt;div class="agent-session-message agent-session-user"&gt;
        &lt;div class="agent-session-role-badge agent-session-role-user"&gt;
          You
        &lt;/div&gt;
        &lt;div class="agent-session-content"&gt;
                &lt;div&gt;
                  &lt;div class="agent-session-text agent-session-text-collapse"&gt;
                    &lt;p&gt;Implement the full Gemma multimodal multi-agent OSINT + SSE plan. Do NOT edit the plan file.&lt;/p&gt;

&lt;p&gt;Plan (source of truth): [home].cursor\plans\gemma_multi-agent_osint_fbf50735.plan.md&lt;br&gt;
Workspace: [home]\Documents\CODEWORKS\trustintern&lt;/p&gt;

&lt;p&gt;Existing backend already works under backend/ (FastAPI, analyze.py, scoring.py, CONTRACT.md). Extend it — do not break the sync POST /api/investigations or locked sample scores (suspicious=90 with live_lookups=false).&lt;/p&gt;

&lt;p&gt;Complete ALL todos; update them via TodoWrite merge=true as you go:&lt;br&gt;
1. agent-schema — AgentSpec/AgentEvent, registry, SSE bus&lt;br&gt;
2. orchestrator — fixed checkers first, planner spawn loop, max 8 agents, depth 2, ~45s wall clock&lt;br&gt;
3. gemma-planner — google-genai, GEMINI_API_KEY, GEMMA_MODEL=gemma-4-26b-a4b-it, heuristic fallback, multimodal PDF page path&lt;br&gt;
4. osint-workers — company, recruiter, domain, document_mm, search, followup with safe fetch&lt;br&gt;
5. sse-api — POST /api/investigations/runs + GET .../events SSE; persist report + agent_trace; update CONTRACT.md&lt;br&gt;
6. tests — heuristic spawn, unknown agent_type rejection, SSE sequence, suspicious still 90&lt;/p&gt;

&lt;p&gt;Critical rules from the plan:&lt;br&gt;
- Gemma NEVER assigns score points — only scoring.py does&lt;br&gt;
- Unknown agent_type from planner → error event, never execute&lt;br&gt;
- Registry allowlist only&lt;br&gt;
- Keep sync investigations endpoint for samples&lt;/p&gt;

&lt;p&gt;You may split internal workstreams if helpful, but deliver one integrated backend.&lt;br&gt;
Install new deps, run pytest from backend/, fix until green.&lt;/p&gt;

&lt;p&gt;Return: files created/changed, pytest summary, how to start a run + SSE, env vars needed, confirmation suspicious score still 90.&lt;/p&gt;

                  &lt;/div&gt;
                  Show more
                &lt;/div&gt;
        &lt;/div&gt;
      &lt;/div&gt;

      &lt;div class="agent-session-message agent-session-assistant"&gt;
        &lt;div class="agent-session-role-badge agent-session-role-assistant"&gt;
          Agent
        &lt;/div&gt;
        &lt;div class="agent-session-content"&gt;
                &lt;div class="agent-session-text"&gt;
                  &lt;p&gt;I'll implement the full Gemma multi-agent OSINT + SSE plan against the existing backend. Starting by reading the plan and surveying the current code.&lt;/p&gt;

                &lt;/div&gt;
                &lt;div class="agent-session-text"&gt;
                  &lt;p&gt;I have the plan and existing backend. Implementing the agent stack next: schemas, bus, registry, then workers and orchestrator.&lt;/p&gt;

                &lt;/div&gt;
                &lt;div class="agent-session-text"&gt;
                  &lt;p&gt;Writing the core agent modules and workers.&lt;/p&gt;

                &lt;/div&gt;
                &lt;div class="agent-session-text"&gt;
                  &lt;p&gt;Fixing the bad import in &lt;code&gt;followup.py&lt;/code&gt;, then adding the Gemma client, planner, and orchestrator.&lt;/p&gt;

                &lt;/div&gt;
                &lt;div class="agent-session-text"&gt;
                  &lt;p&gt;Updating the API, contract, and dependencies next.&lt;/p&gt;

                &lt;/div&gt;
                &lt;div class="agent-session-text"&gt;
                  &lt;p&gt;Fixing a race where SSE can subscribe before the run bus exists, then installing deps and running tests.&lt;/p&gt;

                &lt;/div&gt;
                &lt;div class="agent-session-text"&gt;
                  &lt;p&gt;All 28 tests passed. Cleaning up a few rough edges, then wrapping up.&lt;/p&gt;

                &lt;/div&gt;
                &lt;div&gt;
                  &lt;div class="agent-session-text agent-session-text-collapse"&gt;
                    &lt;p&gt;Gemma multi-agent OSINT + SSE is integrated on the existing FastAPI backend. All todos complete; &lt;strong&gt;28 pytest passed&lt;/strong&gt;; suspicious sample score still &lt;strong&gt;90&lt;/strong&gt;.&lt;/p&gt;
&lt;h3 id="agent-session-959-1-files-created"&gt;Files created&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;backend/app/agents/&lt;/code&gt; — &lt;code&gt;schema.py&lt;/code&gt;, &lt;code&gt;bus.py&lt;/code&gt;, &lt;code&gt;registry.py&lt;/code&gt;, &lt;code&gt;planner.py&lt;/code&gt;, &lt;code&gt;gemma_client.py&lt;/code&gt;, &lt;code&gt;orchestrator.py&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;backend/app/agents/workers/&lt;/code&gt; — &lt;code&gt;fixed.py&lt;/code&gt;, &lt;code&gt;company.py&lt;/code&gt;, &lt;code&gt;recruiter.py&lt;/code&gt;, &lt;code&gt;domain.py&lt;/code&gt;, &lt;code&gt;document_mm.py&lt;/code&gt;, &lt;code&gt;search.py&lt;/code&gt;, &lt;code&gt;followup.py&lt;/code&gt;, &lt;code&gt;_fetch.py&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;backend/tests/test_orchestrator.py&lt;/code&gt;, &lt;code&gt;test_planner_heuristic.py&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id="agent-session-959-1-files-changed"&gt;Files changed&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;backend/app/main.py&lt;/code&gt; — &lt;code&gt;POST /api/investigations/runs&lt;/code&gt;, &lt;code&gt;GET .../events&lt;/code&gt; (SSE), &lt;code&gt;GET .../runs/{id}&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;backend/CONTRACT.md&lt;/code&gt; — new endpoints, events, scoring boundary, env vars&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;backend/requirements.txt&lt;/code&gt; — &lt;code&gt;google-genai&lt;/code&gt;, &lt;code&gt;pypdfium2&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id="agent-session-959-1-pytest"&gt;Pytest&lt;/h3&gt;

&lt;pre class="highlight"&gt;&lt;code&gt;28 passed, 1 warning in 1.28s
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Suspicious multi-agent heuristic run + sync endpoint both assert &lt;strong&gt;score == 90&lt;/strong&gt;.&lt;/p&gt;
&lt;h3 id="agent-session-959-1-env-vars"&gt;Env vars&lt;/h3&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Var&lt;/th&gt;
&lt;th&gt;Required&lt;/th&gt;
&lt;th&gt;Default&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;GEMINI_API_KEY&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;for Gemma path&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;GEMMA_MODEL&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;no&lt;/td&gt;
&lt;td&gt;&lt;code&gt;gemma-4-26b-a4b-it&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;FORCE_HEURISTIC_PLANNER&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;no&lt;/td&gt;
&lt;td&gt;off; &lt;code&gt;1&lt;/code&gt;/&lt;code&gt;true&lt;/code&gt; forces heuristic&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Without a key, planner emits &lt;code&gt;planner_mode: heuristic&lt;/code&gt; and still runs fixed checkers + OSINT.&lt;/p&gt;
&lt;h3 id="agent-session-959-1-start-a-run--sse"&gt;Start a run + SSE&lt;/h3&gt;

&lt;pre class="highlight bash"&gt;&lt;code&gt;&lt;span class="nb"&gt;cd &lt;/span&gt;backend
pip &lt;span class="nb"&gt;install&lt;/span&gt; &lt;span class="nt"&gt;-r&lt;/span&gt; requirements.txt
uvicorn app.main:app &lt;span class="nt"&gt;--reload&lt;/span&gt; &lt;span class="nt"&gt;--port&lt;/span&gt; 8000

curl &lt;span class="nt"&gt;-s&lt;/span&gt; &lt;span class="nt"&gt;-X&lt;/span&gt; POST http://&lt;span class="agent-session-redacted"&gt;[REDACTED]&lt;/span&gt;:8000/api/investigations/runs &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-F&lt;/span&gt; &lt;span class="nv"&gt;company_name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"Aurora Tech Pvt Ltd"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-F&lt;/span&gt; &lt;span class="nv"&gt;recruiter_name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"Riya Shah"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-F&lt;/span&gt; &lt;span class="nv"&gt;recruiter_email&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"&lt;span class="agent-session-redacted"&gt;[REDACTED]&lt;/span&gt;"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-F&lt;/span&gt; &lt;span class="nv"&gt;website_url&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"https://quickplacement-jobs.example"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-F&lt;/span&gt; &lt;span class="nv"&gt;message&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"Congratulations. Pay a registration fee of Rs 2000..."&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-F&lt;/span&gt; &lt;span class="nv"&gt;live_lookups&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="nb"&gt;false&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-F&lt;/span&gt; &lt;span class="nv"&gt;force_heuristic&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="nb"&gt;true

&lt;/span&gt;curl &lt;span class="nt"&gt;-N&lt;/span&gt; http://&lt;span class="agent-session-redacted"&gt;[REDACTED]&lt;/span&gt;:8000/api/investigations/runs/RUN_ID/events
&lt;/code&gt;&lt;/pre&gt;
&lt;h3 id="agent-session-959-1-guarantees-held"&gt;Guarantees held&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Gemma never assigns score points — only &lt;code&gt;scoring.py&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Unknown &lt;code&gt;agent_type&lt;/code&gt; → &lt;code&gt;error&lt;/code&gt; / &lt;code&gt;unknown_agent_type&lt;/code&gt;, never executed&lt;/li&gt;
&lt;li&gt;Registry allowlist only; max 8 agents, depth 2, ~45s wall clock&lt;/li&gt;
&lt;li&gt;Sync &lt;code&gt;POST /api/investigations&lt;/code&gt; kept for samples&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id="agent-session-959-1-community-wisdom"&gt;Community Wisdom&lt;/h3&gt;

&lt;p&gt;SSE + agent streaming patterns informed by &lt;a href="https://dev.to/saladadedados/how-to-build-a-langgraph-agent-with-fastapi-and-sse-streaming-4a7e"&gt;How to Build a LangGraph Agent with FastAPI and SSE Streaming&lt;/a&gt; (saladadedados) and &lt;a href="https://dev.to/kuldeep_paul/streaming-llm-responses-end-to-end-sse-backpressure-and-mid-generation-cancellation-4d60"&gt;Streaming LLM Responses End to End: SSE…&lt;/a&gt; (kuldeep_paul). This build fits &lt;strong&gt;Hacktoberfest Week 2 — Best Use of Gemma&lt;/strong&gt;.&lt;/p&gt;

                  &lt;/div&gt;
                  Show more
                &lt;/div&gt;
                &lt;div class="agent-session-text"&gt;
                  &lt;p&gt;Tools used: UpdateCurrentStep, Read, GetDynamicTools, Glob, CallDynamicTool, Shell, Write, StrReplace&lt;/p&gt;

                &lt;/div&gt;
        &lt;/div&gt;
      &lt;/div&gt;

      &lt;div class="agent-session-message agent-session-user"&gt;
        &lt;div class="agent-session-role-badge agent-session-role-user"&gt;
          You
        &lt;/div&gt;
        &lt;div class="agent-session-content"&gt;
                &lt;div class="agent-session-text"&gt;
                  &lt;p&gt;Briefly inform the user about the task result and perform any follow-up actions (if needed). If there's no follow-ups needed, don't explicitly say that.&lt;/p&gt;

                &lt;/div&gt;
        &lt;/div&gt;
      &lt;/div&gt;

      &lt;div class="agent-session-message agent-session-assistant"&gt;
        &lt;div class="agent-session-role-badge agent-session-role-assistant"&gt;
          Agent
        &lt;/div&gt;
        &lt;div class="agent-session-content"&gt;
                &lt;div class="agent-session-text"&gt;
                  &lt;p&gt;Deps installed and pytest finished cleanly: &lt;strong&gt;28 passed&lt;/strong&gt; (about 1.3s). The Gemma multi-agent OSINT + SSE backend is green, including the locked suspicious sample score of &lt;strong&gt;90&lt;/strong&gt;.&lt;/p&gt;

                &lt;/div&gt;
        &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;

  &lt;div class="agent-session-footer"&gt;
    &lt;span class="agent-session-meta"&gt;
        4 of 4 messages
    &lt;/span&gt;
  &lt;/div&gt;
&lt;/div&gt;



&lt;p&gt;Later I got suspicious of my own project: &lt;em&gt;"is there really multimodal ai , and is it using an open source or gemma ai ?"&lt;/em&gt; The agent checked honestly. Gemma only ever saw a PDF page, so it wired screenshots into the same Gemma 4 vision call, noting &lt;em&gt;"Points still come only from scoring.py."&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Then Gemma moved onto my own machine (&lt;em&gt;"i need to use gemma 4 locally and run this project"&lt;/em&gt;):&lt;/p&gt;


&lt;div class="ltag-agent-session"&gt;
  &lt;div class="agent-session-header"&gt;
    
    &lt;span class="agent-session-tool-icon-badge" title="Gemini CLI"&gt;
&lt;/span&gt;
    &lt;span class="agent-session-title"&gt;Set up Ollama so I can build with open models. Ollama runs open models in two&lt;/span&gt;
  &lt;/div&gt;

  &lt;div class="agent-session-scroll"&gt;

      &lt;div class="agent-session-message agent-session-user"&gt;
        &lt;div class="agent-session-role-badge agent-session-role-user"&gt;
          You
        &lt;/div&gt;
        &lt;div class="agent-session-content"&gt;
                &lt;div&gt;
                  &lt;div class="agent-session-text agent-session-text-collapse"&gt;
                    &lt;p&gt;Set up Ollama so I can build with open models.&lt;/p&gt;

&lt;p&gt;Ollama runs open models in two ways:&lt;br&gt;
- Locally, on this computer. Speed depends on the hardware. Large models are slow on a computer without a strong GPU.&lt;br&gt;
- In Ollama's cloud. Cloud models run on Ollama's servers, so they are fast on any computer and need no download. In the CLI, a cloud model name ends in :cloud, for example gemma4:cloud. From code, apps call the API at &lt;a href="https://ollama.com" rel="noopener noreferrer"&gt;https://ollama.com&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Before you do anything, learn Ollama from its docs:&lt;br&gt;
- Read the docs index at &lt;a href="https://docs.ollama.com/llms.txt" rel="noopener noreferrer"&gt;https://docs.ollama.com/llms.txt&lt;/a&gt;.&lt;br&gt;
- Read &lt;a href="https://docs.ollama.com/quickstart.md" rel="noopener noreferrer"&gt;https://docs.ollama.com/quickstart.md&lt;/a&gt;, &lt;a href="https://docs.ollama.com/cloud.md" rel="noopener noreferrer"&gt;https://docs.ollama.com/cloud.md&lt;/a&gt;, and &lt;a href="https://docs.ollama.com/gpu.md" rel="noopener noreferrer"&gt;https://docs.ollama.com/gpu.md&lt;/a&gt;.&lt;br&gt;
- If I want to call Ollama from code, read &lt;a href="https://docs.ollama.com/api/introduction.md" rel="noopener noreferrer"&gt;https://docs.ollama.com/api/introduction.md&lt;/a&gt;. If this project already uses the OpenAI or Anthropic SDK, also read &lt;a href="https://docs.ollama.com/api/openai-compatibility.md" rel="noopener noreferrer"&gt;https://docs.ollama.com/api/openai-compatibility.md&lt;/a&gt; or &lt;a href="https://docs.ollama.com/api/anthropic-compatibility.md" rel="noopener noreferrer"&gt;https://docs.ollama.com/api/anthropic-compatibility.md&lt;/a&gt;.&lt;br&gt;
- For any other question, search the full docs at &lt;a href="https://docs.ollama.com/llms-full.txt" rel="noopener noreferrer"&gt;https://docs.ollama.com/llms-full.txt&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Then:&lt;br&gt;
1. If the ollama command is not installed, install the Ollama CLI. On macOS or Linux, run: curl -fsSL &lt;a href="https://ollama.com/install.sh" rel="noopener noreferrer"&gt;https://ollama.com/install.sh&lt;/a&gt; | sh. On Windows, run in PowerShell: irm &lt;a href="https://ollama.com/install.ps1" rel="noopener noreferrer"&gt;https://ollama.com/install.ps1&lt;/a&gt; | iex.&lt;br&gt;
2. Check this computer's GPU and memory against &lt;a href="https://docs.ollama.com/gpu.md" rel="noopener noreferrer"&gt;https://docs.ollama.com/gpu.md&lt;/a&gt;.&lt;br&gt;
3. Ask me what I want to build.&lt;br&gt;
4. Recommend local models, cloud models, or both for that, and tell me why. If local models would be slow on this computer, recommend cloud models. If I don't have a paid plan, start with gemma4:cloud, which the free plan includes. Most other cloud models need a paid plan or purchased credits.&lt;/p&gt;

&lt;p&gt;Do not sign in, create an API key, or use an API key for me. If I choose cloud models, tell me to run ollama signin, or to create a key at &lt;a href="https://ollama.com/settings/keys" rel="noopener noreferrer"&gt;https://ollama.com/settings/keys&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;i need to use gemma 4 locally and run this project&lt;/p&gt;

                  &lt;/div&gt;
                  Show more
                &lt;/div&gt;
        &lt;/div&gt;
      &lt;/div&gt;

      &lt;div class="agent-session-message agent-session-assistant"&gt;
        &lt;div class="agent-session-role-badge agent-session-role-assistant"&gt;
          Agent
        &lt;/div&gt;
        &lt;div class="agent-session-content"&gt;
                &lt;div class="agent-session-text"&gt;
                  &lt;p&gt;I'll start by reading Ollama's docs, then check this machine and how the project calls models so Gemma 4 can run locally.&lt;/p&gt;

                &lt;/div&gt;
                &lt;div class="agent-session-text"&gt;
                  &lt;p&gt;The project talks to Gemma through Google’s API. I’ll read Ollama’s API docs and check this PC’s GPU and memory before switching that to a local model.&lt;/p&gt;

                &lt;/div&gt;
                &lt;div class="agent-session-text"&gt;
                  &lt;p&gt;This laptop has a 6 GB RTX 3050 and about 11 GB free on disk, so the 26B Gemma 4 the app uses now will not fit. I’ll install Ollama and point the project at &lt;code&gt;gemma4:e2b&lt;/code&gt;, the Gemma 4 size that can run here.&lt;/p&gt;

                &lt;/div&gt;
                &lt;div class="agent-session-text"&gt;
                  &lt;p&gt;Tools used: GetDynamicTools, Glob, CallDynamicTool, Read, Grep, Shell, Write, StrReplace&lt;/p&gt;

                &lt;/div&gt;
        &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;

  &lt;div class="agent-session-footer"&gt;
    &lt;span class="agent-session-meta"&gt;
        2 of 2 messages
    &lt;/span&gt;
  &lt;/div&gt;
&lt;/div&gt;


&lt;p&gt;And the deploy prompt opened with guardrails: &lt;em&gt;"Do not print secrets. Do not commit or push git. Do not read or upload backend/.env."&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What Entire Gave Me
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://entire.io" rel="noopener noreferrer"&gt;Entire&lt;/a&gt; ties agent work to git. In this repo it gave me three things.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. A second reviewer on every PR.&lt;/strong&gt; Six trail runners in &lt;code&gt;.entire/runners/&lt;/code&gt; (Risk, Security, Drift, Confidence, Review, Summary) score every push. I pasted Entire's gates screen into the chat with &lt;em&gt;"set up runners ig"&lt;/em&gt;, and the agent noticed &lt;em&gt;"The PR had no CI checks — I'll add GitHub Actions for build, lint, and test so Entire's gates can actually run."&lt;/em&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Trail&lt;/th&gt;
&lt;th&gt;Confidence&lt;/th&gt;
&lt;th&gt;Risk&lt;/th&gt;
&lt;th&gt;Drift&lt;/th&gt;
&lt;th&gt;Security&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;#3: React investigation desk&lt;/td&gt;
&lt;td&gt;58% (↑ from 48%)&lt;/td&gt;
&lt;td&gt;15%&lt;/td&gt;
&lt;td&gt;28%&lt;/td&gt;
&lt;td&gt;14% (↓ from 18%)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;#4: Gemma vision reads offer screenshots&lt;/td&gt;
&lt;td&gt;62%&lt;/td&gt;
&lt;td&gt;40%&lt;/td&gt;
&lt;td&gt;32%&lt;/td&gt;
&lt;td&gt;14%&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&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%2Fln8hpunpgazv53cde5u0.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%2Fln8hpunpgazv53cde5u0.png" alt="Trail #4 runner scores" width="800" height="535"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;On trail #3, confidence rose from 48% to 58% and security risk fell from 18% to 14% as I iterated. On trail #4, the risk runner was blunt: the vision feature &lt;em&gt;"falls back to phrase rules when no Gemini key is set, but the new worker branches are untested."&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The runner flagged &lt;code&gt;had_image&lt;/code&gt;; here's the fix.&lt;/strong&gt; The best catch was a medium finding on &lt;code&gt;backend/app/agents/planner.py:141&lt;/code&gt;:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"The Gemma planner summary only sets &lt;code&gt;had_pdf&lt;/code&gt; and never reports that an image was uploaded. … It can then decide not to spawn the vision agent, and the screenshot is never read. Add &lt;code&gt;had_image&lt;/code&gt; to this summary and mention it in the planner prompt."&lt;/p&gt;
&lt;/blockquote&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%2Fr6ctgj5qeu8pitxhobve.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%2Fr6ctgj5qeu8pitxhobve.png" alt="Trail #4 risk runner rationale" width="576" height="424"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;An AI reviewer caught a blind spot in code an AI author wrote, in the exact feature I built for the Gemma category. Humbling. &lt;a href="https://github.com/compteccharan/TrustIntern/pull/6" rel="noopener noreferrer"&gt;PR #6&lt;/a&gt; (merge &lt;a href="https://github.com/compteccharan/TrustIntern/commit/2c57d4342ccee730f6cb133594e9e9492105652b" rel="noopener noreferrer"&gt;&lt;code&gt;2c57d43&lt;/code&gt;&lt;/a&gt;) adds &lt;code&gt;had_image&lt;/code&gt; to the planner summary and prompt, makes the sync endpoint reject images with a 422 instead of quietly ignoring them (the runner's other, low finding), and adds three tests. CI passed 3/3. Still open: trail #3's note about sanitizing &lt;code&gt;source_url&lt;/code&gt; links against &lt;code&gt;javascript:&lt;/code&gt; URLs.&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%2F44ruatufg01bnb9uzaoc.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%2F44ruatufg01bnb9uzaoc.png" alt="Trail #3 runner scores for the React desk" width="800" height="413"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Commits that point back to their sessions.&lt;/strong&gt; Commit linking is set to &lt;code&gt;always&lt;/code&gt;: &lt;strong&gt;13 commits&lt;/strong&gt; carry an &lt;code&gt;Entire-Checkpoint:&lt;/code&gt; trailer, stored as git refs (&lt;code&gt;refs/entire/checkpoints/*&lt;/code&gt;).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. &lt;code&gt;entire search&lt;/code&gt; to explain why code exists.&lt;/strong&gt; When I forget why something is the way it is, I search the agent history instead of the code:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight console"&gt;&lt;code&gt;&lt;span class="gp"&gt;$&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;entire search &lt;span class="nt"&gt;--json&lt;/span&gt; &lt;span class="nt"&gt;--compact&lt;/span&gt; fallback
&lt;span class="go"&gt;→ 1821b7f  Add spawn planner with Gemma path and heuristic fallback.

&lt;/span&gt;&lt;span class="gp"&gt;$&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;entire search &lt;span class="nt"&gt;--json&lt;/span&gt; &lt;span class="nt"&gt;--compact&lt;/span&gt; vision
&lt;span class="go"&gt;→ eed6eba  Let Gemma vision read an offer screenshot as well as a PDF.
→ 5c8fe31  Switch Gemma to local Ollama and ship PDF reports on Vercel.

&lt;/span&gt;&lt;span class="gp"&gt;$&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;entire search &lt;span class="nt"&gt;--json&lt;/span&gt; &lt;span class="nt"&gt;--compact&lt;/span&gt; contract
&lt;span class="go"&gt;→ session  DevRelay and Multi-Agent OSINT Backend (CONTRACT.md, scoring.py …)
→ d746742  Document multi-agent SSE API and scoring boundary in CONTRACT.
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Why this code exists
&lt;/h3&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Decision&lt;/th&gt;
&lt;th&gt;Prompt or agent line behind it&lt;/th&gt;
&lt;th&gt;Commit&lt;/th&gt;
&lt;th&gt;Entire checkpoint&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;A score a human can recompute (&lt;code&gt;scoring.py&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;&lt;em&gt;"The current plan would finish. It would not win."&lt;/em&gt;&lt;/td&gt;
&lt;td&gt;&lt;a href="https://github.com/compteccharan/TrustIntern/commit/c774cb1" rel="noopener noreferrer"&gt;&lt;code&gt;c774cb1&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;01M51PZKS97NZCBGCMEJBJK7AD&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Backend owns the number (&lt;code&gt;CONTRACT.md&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;&lt;em&gt;"Backend owns the number."&lt;/em&gt;&lt;/td&gt;
&lt;td&gt;&lt;a href="https://github.com/compteccharan/TrustIntern/commit/d746742" rel="noopener noreferrer"&gt;&lt;code&gt;d746742&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;01M51SNG0N6DDK13D395RD7R4G&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Gemma plans, heuristics as fallback (&lt;code&gt;planner.py&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;&lt;em&gt;"LLM planner (Gemma or similar) … with heuristic spawn as fallback when the model is down"&lt;/em&gt;&lt;/td&gt;
&lt;td&gt;&lt;a href="https://github.com/compteccharan/TrustIntern/commit/1821b7f" rel="noopener noreferrer"&gt;&lt;code&gt;1821b7f&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;01M51SNA38QJYPVJ0HX2JR7N5F&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Gemma 4 client that never scores (&lt;code&gt;gemma_client.py&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;&lt;em&gt;"use gemma for the multi modal orchestration :0 btw sse it is ( its cool )"&lt;/em&gt;&lt;/td&gt;
&lt;td&gt;&lt;a href="https://github.com/compteccharan/TrustIntern/commit/a101431" rel="noopener noreferrer"&gt;&lt;code&gt;a101431&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;01M51SN923AZNDRW7RS1HWQ9NH&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;OSINT via PullPush + Wikipedia (&lt;code&gt;_fetch.py&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;&lt;em&gt;"DuckDuckGo and Reddit's own API are blocked from this network. Switching OSINT to PullPush (Reddit archives) and Wikipedia"&lt;/em&gt;&lt;/td&gt;
&lt;td&gt;&lt;a href="https://github.com/compteccharan/TrustIntern/commit/62cbf5f" rel="noopener noreferrer"&gt;&lt;code&gt;62cbf5f&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;01M51SNB26MCRMCN70Y2DRMBY2&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;CI so Entire's gates can run (&lt;code&gt;ci.yml&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;&lt;em&gt;"The PR had no CI checks — I'll add GitHub Actions for build, lint, and test"&lt;/em&gt;&lt;/td&gt;
&lt;td&gt;&lt;a href="https://github.com/compteccharan/TrustIntern/commit/613fdac" rel="noopener noreferrer"&gt;&lt;code&gt;613fdac&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;01M51YCYAVYW1TQ8X1BQT1T8WV&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Screenshots go to Gemma vision too (&lt;code&gt;document_mm.py&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;&lt;em&gt;"is there really multimodal ai , and is it using an open source or gemma ai ?"&lt;/em&gt;&lt;/td&gt;
&lt;td&gt;&lt;a href="https://github.com/compteccharan/TrustIntern/commit/eed6eba" rel="noopener noreferrer"&gt;&lt;code&gt;eed6eba&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;none (no trailer)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Planner told about images (&lt;code&gt;planner.py&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;Runner: &lt;em&gt;"Add &lt;code&gt;had_image&lt;/code&gt; to this summary and mention it in the planner prompt."&lt;/em&gt;
&lt;/td&gt;
&lt;td&gt;&lt;a href="https://github.com/compteccharan/TrustIntern/commit/0c41d59" rel="noopener noreferrer"&gt;&lt;code&gt;0c41d59&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;none (no trailer); &lt;a href="https://entire.io/gh/compteccharan/TrustIntern/trails/6" rel="noopener noreferrer"&gt;trail #6&lt;/a&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Any checkpoint ID above opens with &lt;code&gt;entire checkpoint explain &amp;lt;id&amp;gt;&lt;/code&gt;. Honest note: my capture hooks were Windows-only one-liners that went quiet after setup, so the checkpoints carry the commit links and file lists, while the full conversations live in the DevRelay sessions above. Next build: check the hooks in minute one.&lt;/p&gt;

&lt;h2&gt;
  
  
  Does It Actually Work?
&lt;/h2&gt;

&lt;p&gt;Demo samples are easy to pass, so I had my agent run TrustIntern's real scoring code (&lt;code&gt;analyze_opportunity&lt;/code&gt; from the repo, live lookups off, the same mode the tests use) on &lt;strong&gt;12 publicly reported scam offers&lt;/strong&gt; and &lt;strong&gt;11 real internship postings&lt;/strong&gt;, filling in only the fields each source actually published. Threshold: above 30 counts as a flag ("Needs verification" or "High").&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Scam report (source)&lt;/th&gt;
&lt;th&gt;Text&lt;/th&gt;
&lt;th&gt;Score&lt;/th&gt;
&lt;th&gt;What fired&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://www.linkedin.com/posts/shashi-kumar-e-26148a53_fake-internship-offer-email-to-candidates-activity-7414937060190371840-g69G" rel="noopener noreferrer"&gt;"Clinchbridge" ₹1,550 enrollment fee&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;quoted excerpt&lt;/td&gt;
&lt;td&gt;25&lt;/td&gt;
&lt;td&gt;Upfront fee&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://www.andrewsfcu.org/andrews-connection/real-life-scam-stories" rel="noopener noreferrer"&gt;TikTok Shop "recruiter" text&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;verbatim&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;nothing&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://www.reddit.com/r/isthisascam/comments/1mt31n3/help_husband_responded_to_scam_text_what_is_this/" rel="noopener noreferrer"&gt;"Indeed" task-scam text&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;verbatim&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;nothing&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://www.bbb.org/scamtracker/lookupscam/785739" rel="noopener noreferrer"&gt;GT Ventures Teams "interview" text&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;verbatim&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;nothing&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://www.bbb.org/scamtracker/lookupscam/851404" rel="noopener noreferrer"&gt;TopUSAJobs WhatsApp message&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;verbatim&lt;/td&gt;
&lt;td&gt;20&lt;/td&gt;
&lt;td&gt;Sensitive data (SSN)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://bharatsecure.app/scams/pay-to-join-fake-internship-scam-india-2026" rel="noopener noreferrer"&gt;"Infosys" ₹275 onboarding fee&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;example on an awareness site&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;nothing&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://nextindiamagazine.com/techie-claims-company-offered-%e2%82%b923000-internship-but-asked-for-%e2%82%b91594-to-confirm-enrolment-pure-scam/" rel="noopener noreferrer"&gt;₹1,594 "internship fees" offer letter&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;news description&lt;/td&gt;
&lt;td&gt;25&lt;/td&gt;
&lt;td&gt;Upfront fee&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://www.reddit.com/r/Scams/comments/1ibdkl1/beware_of_internship_scams_my_experience_with_a/" rel="noopener noreferrer"&gt;"InnovateMetrics" ₹1,450 enrollment fee&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;victim's account&lt;/td&gt;
&lt;td&gt;25&lt;/td&gt;
&lt;td&gt;Upfront fee&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://www.linkedin.com/feed/update/urn:li:activity:7468932636837675008" rel="noopener noreferrer"&gt;₹1,596 "to confirm my enrollment"&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;victim's account&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;nothing&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://www.reddit.com/r/Scams/comments/1tgccsf/in_beware_of_internship_program_scam/" rel="noopener noreferrer"&gt;₹6,000 "registration fees"&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;victim's account&lt;/td&gt;
&lt;td&gt;25&lt;/td&gt;
&lt;td&gt;Upfront fee&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://www.bbb.org/scamtracker/lookupscam/1049200" rel="noopener noreferrer"&gt;"Circumvent Pharmaceuticals" fake check&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;victim's account&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;nothing&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://www.linkedin.com/posts/kirtan007_interview-internship-webdev-activity-7469959588725841920-czRR" rel="noopener noreferrer"&gt;₹35,000 "refundable" security deposit&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;victim's account&lt;/td&gt;
&lt;td&gt;25&lt;/td&gt;
&lt;td&gt;Upfront fee&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The real postings were intern listings from Stripe, Airbnb, Figma, Duolingo, Coinbase, Pinterest, Lyft, Samsara, Affirm, Databricks and Robinhood, pulled as full text from their public Greenhouse job boards. &lt;strong&gt;10 of 11 scored 0.&lt;/strong&gt; Airbnb scored 20, because its own anti-fraud notice says it will never ask for your &lt;em&gt;"bank account details"&lt;/em&gt;, and my sensitive-data rule has no idea what "never" means.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The honest scoreboard:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Flags (above 30): 0 of 12 scams.&lt;/strong&gt; Not one crossed the line on its own.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Something fired: 6 of 12 scams&lt;/strong&gt; (5 fee demands, 1 SSN request).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;False alarms (above 30): 0 of 11 real postings;&lt;/strong&gt; 1 of 11 got a non-zero score.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;So the rules are careful, and on these inputs too careful. The misses have clear causes:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Most of the points need fields the public reports don't have.&lt;/strong&gt; Domain mismatch, personal email and company-not-in-domain are worth 35 points together, and only 1 of the 12 sources published a recruiter email. With message text alone, the ceiling is 55.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;My phrase list is narrow.&lt;/strong&gt; "Onboarding fee", "₹1,596 to confirm my enrollment" and fake-check or task-scam scripts slip through.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Small, messy sample.&lt;/strong&gt; It's 23 items, 7 of the 12 scam texts are retellings or examples rather than the original message, and the real postings are US tech listings, not the Indian SME offers students actually get.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Next: widen the fee phrases, handle "we will never ask" sentences, and add task-scam and fake-check patterns, then rerun this same set so the numbers can move in public.&lt;/p&gt;

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

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Privacy.&lt;/strong&gt; Offer letters carry names, addresses and sometimes ID numbers. With Gemma 4 on Ollama, they never leave my laptop.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cost.&lt;/strong&gt; A free tier for students only works if a check costs close to nothing. An open-weight model on my own hardware makes that possible.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Swappable models.&lt;/strong&gt; The planner talks to "a Gemma", not one vendor: local &lt;code&gt;gemma4:e2b&lt;/code&gt;, Gemma 4 via the Gemini API, or no model at all.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Auditable scoring.&lt;/strong&gt; The most important part isn't AI. It's open, deterministic rules anyone can read in &lt;code&gt;scoring.py&lt;/code&gt; and recompute. The test above only works &lt;em&gt;because&lt;/em&gt; the scoring is open: anyone can rerun it and see exactly which rule missed.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  First User
&lt;/h2&gt;

&lt;p&gt;I gave an early version to an early tester. Their feedback, lightly cleaned up:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"This would stop internship scams, at least the basic ones, from affecting unsuspecting users. And it could become a postmortem report for the wiser."&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;No paying customers yet; this was a free beta. But the postmortem idea went straight into the pricing plan: people who &lt;em&gt;already&lt;/em&gt; got burned are the most motivated to want an evidence-backed report.&lt;/p&gt;

&lt;h2&gt;
  
  
  What's Next
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Fix the misses from the test above, then rerun it.&lt;/li&gt;
&lt;li&gt;Postmortem report mode: a timeline of what happened, formatted for a complaint.&lt;/li&gt;
&lt;li&gt;A WhatsApp or Telegram forwarder, so students can check an offer where it arrives.&lt;/li&gt;
&lt;li&gt;Bulk verification for placement cells.&lt;/li&gt;
&lt;li&gt;Sanitize &lt;code&gt;source_url&lt;/code&gt; links, and fix my Entire hooks so the next build's checkpoints carry full transcripts.&lt;/li&gt;
&lt;/ul&gt;

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

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Best Use of Gemma&lt;/strong&gt;: Gemma 4 plans the investigation and reads offer PDFs and screenshots (local &lt;code&gt;gemma4:e2b&lt;/code&gt; via Ollama; Gemma 4 via the Gemini API in the hosted demo), and is deliberately kept out of the scoring.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Best Use of Entire&lt;/strong&gt;: six trail runners gating PRs (one caught the &lt;code&gt;had_image&lt;/code&gt; bug, fixed in PR #6), 13 commits linked to checkpoints, a "why this code exists" table, &lt;code&gt;entire search&lt;/code&gt; used to explain decisions, and the agent sessions shared above.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Credits
&lt;/h2&gt;

&lt;p&gt;Huge shoutout to my teammate &lt;a href="https://dev.to/nullcoder00"&gt;NullCoder&lt;/a&gt; (&lt;a class="mentioned-user" href="https://dev.to/nullcoder00"&gt;@nullcoder00&lt;/a&gt;), who built the entire frontend. If TrustIntern looks good, that's him. I just taught the bots to argue with scammers. 🙌&lt;/p&gt;

</description>
      <category>devchallenge</category>
      <category>hf26challenge</category>
      <category>opensource</category>
      <category>ai</category>
    </item>
    <item>
      <title>Built My Portfolio Website;)</title>
      <dc:creator>Charan Nihaal R</dc:creator>
      <pubDate>Thu, 17 Jul 2025 17:05:15 +0000</pubDate>
      <link>https://dev.to/noahosmont/built-my-portfolio-website-jad</link>
      <guid>https://dev.to/noahosmont/built-my-portfolio-website-jad</guid>
      <description>&lt;p&gt;&lt;em&gt;This post is my submission for &lt;a href="https://dev.to/deved/build-apps-with-google-ai-studio"&gt;DEV Education Track: Build Apps with Google AI Studio&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

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

&lt;p&gt;I set out to build a personal portfolio website to showcase my skills, projects, and experiences as a developer. Key prompts I used included "create a responsive layout," "integrate a contact form," and "feature a blog section." I also utilized modern web technologies like HTML, CSS, and JavaScript to enhance the user experience.&lt;/p&gt;

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

&lt;p&gt;You can view my portfolio here: charancodes.me. Below are some screenshots of my website:&lt;/p&gt;

&lt;p&gt;Homepage Screenshot - &lt;br&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.amazonaws.com%2Fuploads%2Farticles%2F7627gmbuyqgjhuh5xhin.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.amazonaws.com%2Fuploads%2Farticles%2F7627gmbuyqgjhuh5xhin.png" alt=" " width="800" height="404"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Projects Section&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.amazonaws.com%2Fuploads%2Farticles%2Fu0wmk3n4qnml6rqq456k.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.amazonaws.com%2Fuploads%2Farticles%2Fu0wmk3n4qnml6rqq456k.png" alt=" " width="799" height="362"&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.amazonaws.com%2Fuploads%2Farticles%2Fa8fl31moeqe4pl3jbukg.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.amazonaws.com%2Fuploads%2Farticles%2Fa8fl31moeqe4pl3jbukg.png" alt=" " width="799" height="361"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Contact Form&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.amazonaws.com%2Fuploads%2Farticles%2F83ykpw0ounvo73iu31z2.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.amazonaws.com%2Fuploads%2Farticles%2F83ykpw0ounvo73iu31z2.png" alt=" " width="800" height="366"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  My Experience
&lt;/h2&gt;

&lt;p&gt;Building my portfolio website was a fantastic journey that taught me several important lessons. Firstly, I learned the significance of responsive design, ensuring that the website looks great on all devices. Additionally, I discovered the importance of showcasing my projects effectively to attract potential employers or clients.&lt;/p&gt;

&lt;p&gt;A surprising takeaway was how much I enjoyed the design aspect of the website. Crafting a cohesive aesthetic really engaged my creative side. Overall, this project boosted my confidence in web development and helped solidify my understanding of the technologies I've been learning.&lt;/p&gt;

&lt;h2&gt;
  
  
  Cover Image
&lt;/h2&gt;

</description>
      <category>deved</category>
      <category>learngoogleaistudio</category>
      <category>ai</category>
      <category>gemini</category>
    </item>
  </channel>
</rss>
