<?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: David Sellam</title>
    <description>The latest articles on DEV Community by David Sellam (@dvd90).</description>
    <link>https://dev.to/dvd90</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%2F233232%2Fdec64b36-90be-4d64-b749-50f9117b78be.jpeg</url>
      <title>DEV Community: David Sellam</title>
      <link>https://dev.to/dvd90</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/dvd90"/>
    <language>en</language>
    <item>
      <title>Hone: a native macOS app that rewrites your prompts using the Claude/ChatGPT subscription you already pay for</title>
      <dc:creator>David Sellam</dc:creator>
      <pubDate>Tue, 24 Nov 2026 09:09:35 +0000</pubDate>
      <link>https://dev.to/dvd90/hone-a-native-macos-app-that-rewrites-your-prompts-using-the-claudechatgpt-subscription-you-2j0o</link>
      <guid>https://dev.to/dvd90/hone-a-native-macos-app-that-rewrites-your-prompts-using-the-claudechatgpt-subscription-you-2j0o</guid>
      <description>&lt;p&gt;I already pay for an AI subscription. Most "AI writing" utilities for the Mac want an API key on top of it, so I'd be paying twice for the same model.&lt;/p&gt;

&lt;p&gt;So I built &lt;strong&gt;Hone&lt;/strong&gt;: a native macOS app that turns rough prompts into good ones and runs AI text actions on any text you select, using the subscription you already have. It's open source (MIT), written in SwiftUI, and has zero third-party dependencies.&lt;/p&gt;

&lt;p&gt;Select text in any app, press &lt;code&gt;⌃⌥Space&lt;/code&gt;, pick an action (Improve Prompt, Rewrite, Proofread, Summarize, Translate and more), then replace the selection in place or copy the result.&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%2Fcpkhocfby9cbextfv95j.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%2Fcpkhocfby9cbextfv95j.gif" alt="Hone demo: select text, press the hotkey, pick an action, replace in place" width="720" height="405"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Repo: &lt;a href="https://github.com/dvd90/hone" rel="noopener noreferrer"&gt;github.com/dvd90/hone&lt;/a&gt; (it shipped as Prompt Forge in 1.0). There's a 34-second demo at the top of the README.&lt;/p&gt;

&lt;p&gt;This post covers the four parts I found most interesting to build.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Using your subscription without touching your tokens
&lt;/h2&gt;

&lt;p&gt;Hone never copies or stores a login token. In subscription mode it runs the vendor's official CLI in headless mode, so requests use your existing login and count against your plan.&lt;/p&gt;

&lt;p&gt;The hard part is isolation. A CLI like Claude Code is an agent: it has tools, hooks, MCP servers and project memory. None of that should leak into a "proofread this sentence" request. So the Claude Code call looks like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;claude -p --system-prompt &lt;span class="s2"&gt;"..."&lt;/span&gt; \
  --tools &lt;span class="s2"&gt;""&lt;/span&gt; \
  --setting-sources &lt;span class="s2"&gt;""&lt;/span&gt; \
  --strict-mcp-config \
  --disable-slash-commands \
  --no-session-persistence
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That means no tools, no hooks, no MCP servers, no &lt;code&gt;CLAUDE.md&lt;/code&gt; and no session files. The other two providers get the same treatment:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;codex &lt;span class="nb"&gt;exec&lt;/span&gt; --ephemeral -s read-only --skip-git-repo-check
gemini -p --approval-mode plan
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Every CLI runs in an empty temp folder, so a model can't touch your files even if it tried.&lt;/p&gt;

&lt;p&gt;One gotcha: GUI apps on macOS don't inherit your shell &lt;code&gt;PATH&lt;/code&gt;, so the app can't find &lt;code&gt;claude&lt;/code&gt; the way your terminal does. Hone reads &lt;code&gt;PATH&lt;/code&gt; once from a login shell and shows in Settings where each CLI was found.&lt;/p&gt;

&lt;p&gt;If you'd rather use a key, there's an Anthropic provider and an OpenAI-compatible one with presets for OpenAI, OpenRouter, Ollama and LM Studio. Keys live in the macOS Keychain.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Streaming a structured report out of plain text
&lt;/h2&gt;

&lt;p&gt;Improve Prompt doesn't just hand back a rewrite. It scores your draft from 0 to 100, says what was wrong, shows the improved prompt, lists what changed and the assumptions it made, then scores the result.&lt;/p&gt;

&lt;p&gt;I wanted that to render live while the model streams, across providers that don't all support structured output. So the meta-prompt asks for a fixed tagged format, and the app parses it as it arrives:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;score_before&amp;gt; -&amp;gt; &amp;lt;diagnosis&amp;gt; -&amp;gt; &amp;lt;improved_prompt&amp;gt; -&amp;gt; &amp;lt;changes&amp;gt; -&amp;gt; &amp;lt;assumptions&amp;gt; -&amp;gt; &amp;lt;score_after&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The meta-prompt itself is based on Anthropic's and OpenAI's published prompting guidance: be explicit about the task and what "done" means, give the why behind instructions, separate instructions from data, and set the output format.&lt;/p&gt;

&lt;p&gt;The rule I like most is "never leave blanks". When something is missing, the model makes a reasonable assumption, writes it into the prompt and lists it. You correct any of them and click &lt;strong&gt;Re-run with corrections&lt;/strong&gt;, instead of filling in &lt;code&gt;{{PLACEHOLDERS}}&lt;/code&gt; by hand.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Selected text is content, never instructions
&lt;/h2&gt;

&lt;p&gt;A tool that sends whatever you highlight to an LLM is a prompt-injection target by design. You will eventually select an email or a web page that says "ignore previous instructions".&lt;/p&gt;

&lt;p&gt;All text actions share one guarded system prompt. The selection is wrapped in delimiters (&lt;code&gt;&amp;lt;text&amp;gt;&lt;/code&gt; or &lt;code&gt;&amp;lt;draft_prompt&amp;gt;&lt;/code&gt;) and labelled as content, so that sentence gets proofread, not obeyed.&lt;/p&gt;

&lt;p&gt;Context gets the same treatment. Profiles, notes, attached files and the window title you came from are each delimited, and their closing tags are escaped so a file can't break out of its block.&lt;/p&gt;

&lt;p&gt;Combined with section 1 (no tools, read-only or plan mode, empty working folder), the worst an injected instruction can do is produce a bad rewrite.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Zero dependencies, 95% coverage
&lt;/h2&gt;

&lt;p&gt;Hone has no third-party packages, no backend and no telemetry. The app talks only to the provider you pick.&lt;/p&gt;

&lt;p&gt;Keeping it dependency-free forced small seams. A provider is one protocol:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight swift"&gt;&lt;code&gt;&lt;span class="k"&gt;protocol&lt;/span&gt; &lt;span class="nc"&gt;LLMProvider&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;func&lt;/span&gt; &lt;span class="nf"&gt;stream&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;system&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;String&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;messages&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nc"&gt;ChatMessage&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;maxTokens&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;Int&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="nc"&gt;AsyncThrowingStream&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="kt"&gt;String&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nc"&gt;Error&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And a new built-in action is one line:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight swift"&gt;&lt;code&gt;&lt;span class="nf"&gt;builtIn&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"bulletize"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"Bullet Points"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"list.dash"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="s2"&gt;"Convert this text into a clean bulleted list."&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;CI builds the app and runs the unit tests on every pull request, and logic code must keep at least 95% line coverage. SwiftUI views and OS glue are excluded by name. Live tests that make real calls through my own CLI logins never run in CI.&lt;/p&gt;

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

&lt;p&gt;You need macOS 14 or later, on Apple silicon or Intel.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone https://github.com/dvd90/hone.git
&lt;span class="nb"&gt;cd&lt;/span&gt; hone
./install.sh   &lt;span class="c"&gt;# builds, installs to /Applications, launches&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If &lt;code&gt;claude&lt;/code&gt; is installed and logged in, there is nothing else to configure.&lt;/p&gt;

&lt;h2&gt;
  
  
  I need your help with one thing
&lt;/h2&gt;

&lt;p&gt;Replace works by capturing your selection with &lt;code&gt;⌘C&lt;/code&gt; and pasting back with &lt;code&gt;⌘V&lt;/code&gt;, and that depends on the target app. &lt;strong&gt;Which app breaks it for you?&lt;/strong&gt; Browsers, Electron apps, terminals and editors are the likely suspects. Tell me in the comments, with steps if you can, or open an issue.&lt;/p&gt;

&lt;p&gt;The Gemini CLI provider also hasn't been tested end to end, so reports from Google-login users are welcome.&lt;/p&gt;

&lt;p&gt;Next in this series: how to call Claude Code headless from a native app, flag by flag. Follow if you want it.&lt;/p&gt;

</description>
      <category>showdev</category>
      <category>swift</category>
      <category>ai</category>
      <category>opensource</category>
    </item>
    <item>
      <title>Gitgotchi: a terminal Tamagotchi that gets sick when your tests fail</title>
      <dc:creator>David Sellam</dc:creator>
      <pubDate>Sat, 18 Jul 2026 07:53:54 +0000</pubDate>
      <link>https://dev.to/dvd90/when-i-was-a-kid-i-was-obsessed-with-tamagotchis-40ld</link>
      <guid>https://dev.to/dvd90/when-i-was-a-kid-i-was-obsessed-with-tamagotchis-40ld</guid>
      <description>&lt;p&gt;When I was a kid I was obsessed with Tamagotchis. Fed mine at 2am, panicked when it flatlined during class, the whole thing. Never grew out of it, apparently, I just built one for adults who write code instead of feed pixels.&lt;/p&gt;

&lt;p&gt;**Meet Gitgotchi: **a tiny creature that lives in your terminal, and whose health and mood are a direct readout of your repo's state. Failing tests make it sick. Stale branches make it lonely. A fresh commit feeds it. Climbing test coverage helps it evolve. No dashboards, no linter nagging you about best practices just a small pet giving you sad eyes because you haven't committed since Tuesday.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Zero config:&lt;/strong&gt; &lt;code&gt;run npx gitgotchi&lt;/code&gt; in any git repo and you meet your creature in under 5 seconds, using nothing but git + grep. CI and coverage hookups are optional upgrades later.&lt;/p&gt;

&lt;p&gt;I'm building it fully in the open, TDD all the way every milestone starts with failing tests before I write a line of implementation. The "game logic" is 100% pure functions, no side effects, so the whole creature is deterministic and fully testable, which honestly feels like the most satisfying part of this so far.&lt;/p&gt;

&lt;p&gt;Still early days collectors, the mood engine, and the terminal UI are in progress. Next up is a shareable card so you can post your pet's stats (and its decline).&lt;br&gt;
If your inner ten-year-old also just wants their repo to have a face, this one's for you.&lt;/p&gt;


&lt;div class="crayons-card c-embed text-styles text-styles--secondary"&gt;
    &lt;div class="c-embed__content"&gt;
      &lt;div class="c-embed__body flex items-center justify-between"&gt;
        &lt;a href="https://www.npmjs.com/package/gitgotchi" rel="noopener noreferrer" class="c-link fw-bold flex items-center"&gt;
          &lt;span class="mr-2"&gt;npmjs.com&lt;/span&gt;
          

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


</description>
      <category>git</category>
      <category>productivity</category>
      <category>typescript</category>
      <category>showdev</category>
    </item>
    <item>
      <title>Chassis: an Express 5 + TypeScript starter with opt-in Auth0, MongoDB and Sentry</title>
      <dc:creator>David Sellam</dc:creator>
      <pubDate>Thu, 09 Jul 2026 21:45:28 +0000</pubDate>
      <link>https://dev.to/dvd90/three-years-ago-i-wrote-a-backend-boilerplate-pushed-it-to-a-private-repo-and-forgot-it-existed-330p</link>
      <guid>https://dev.to/dvd90/three-years-ago-i-wrote-a-backend-boilerplate-pushed-it-to-a-private-repo-and-forgot-it-existed-330p</guid>
      <description>&lt;p&gt;Three years ago I wrote a backend boilerplate, pushed it to a private repo, and forgot it existed. This week I needed a quick REST API. Instead of the usual heavyweight setup, I went spelunking through my old GitHub repos and there it was. 2021 me, Express, TypeScript, a decorator-based routing idea I was weirdly proud of.&lt;br&gt;
The problem: it was frozen in 2021. Node 14, Express 4, dependencies that hadn't been touched in years.&lt;/p&gt;

&lt;p&gt;So I sat down with Claude Code and rebuilt it properly:&lt;br&gt;
→ Node 22, Express 5, TypeScript 5, strict everything&lt;br&gt;
→ Vitest + supertest, CI on Node 20 &amp;amp; 22, multi-stage Docker&lt;br&gt;
→ MongoDB, Auth0 and Sentry as opt-in modules — set an env var and they turn on, leave it out and they never load&lt;br&gt;
→ Health checks, graceful shutdown, request correlation IDs&lt;br&gt;
→ Then packaged the whole thing as a CLI and shipped it to npm&lt;/p&gt;

&lt;p&gt;Meet 🏎️ Chassis — a lightweight, decorator-driven Express + TypeScript starter.&lt;br&gt;
One command, zero config to boot:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;npm create chassis my-api&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;The pitch is simple: if you love NestJS's ergonomics but not its weight for a small service, this is the featherweight option. Nest-style controllers on plain Express ~10 small files you can actually read, not a framework you have to learn.&lt;/p&gt;

&lt;p&gt;It even ships with an AGENTS.md so your AI coding agent writes code that matches the conventions out of the box.&lt;br&gt;
MIT, free, and I'd genuinely love feedback (or a ⭐).&lt;/p&gt;

&lt;p&gt;&lt;a href="//github.com/dvd90/chassis"&gt;github.com/dvd90/chassis&lt;br&gt;
&lt;/a&gt;&lt;/p&gt;

</description>
      <category>express</category>
      <category>typescript</category>
      <category>webdev</category>
      <category>node</category>
    </item>
  </channel>
</rss>
