<?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: Ryan</title>
    <description>The latest articles on DEV Community by Ryan (@rhaeyyan).</description>
    <link>https://dev.to/rhaeyyan</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.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3920331%2Fbbc9ad76-c74b-44c2-8f22-00e1d69b4ef8.jpeg</url>
      <title>DEV Community: Ryan</title>
      <link>https://dev.to/rhaeyyan</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/rhaeyyan"/>
    <language>en</language>
    <item>
      <title>dwriter: An AI-powered terminal tool that helps you record and reflect.</title>
      <dc:creator>Ryan</dc:creator>
      <pubDate>Fri, 08 May 2026 18:59:48 +0000</pubDate>
      <link>https://dev.to/rhaeyyan/gemma-4-challenge-submission-dwriter-36pn</link>
      <guid>https://dev.to/rhaeyyan/gemma-4-challenge-submission-dwriter-36pn</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for the &lt;a href="https://dev.to/challenges/google-gemma-2026-05-06"&gt;Gemma 4 Challenge: Build with Gemma 4&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

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

&lt;p&gt;&lt;strong&gt;dwriter&lt;/strong&gt; is a minimalist, terminal-first productivity tool designed to solve "logging friction"—the gap between having a thought and capturing it. By combining a zero-latency capture system with a rich, AI-augmented reflection layer, it transforms a standard developer journal into a living, private knowledge base. Jot down your thoughts, accomplishments, observations, and tasks, and have dwriter (powered by Gemma 4) help you not only recall, but reflect.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;em&gt;Designed for the a diverse workflow&lt;/em&gt;: dwriter lives where you work. It features an interactive Terminal User Interface (TUI) and a "headless" mode that grantees a zero-friction capture system that allows for instant logging without leaving the command line.&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;The Closed Learning Loop&lt;/em&gt;: Unlike passive journals, dwriter proactively learns from you. It automatically extracts durable facts (preferences, recurring goals, and hard constraints) to build a persistent graph of your professional life.&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;Local-First Engineering&lt;/em&gt;: Privacy is a core feature, not an afterthought. Using a Git-backed sync engine with Lamport clocks for conflict resolution and Obsidian integration, dwriter ensures your data remains yours,available offline, and seamlessly portable.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://github.com/rhaeyyan/dwriter/blob/dwriter-ai/documentation/use-cases.md" rel="noopener noreferrer"&gt;Explore 21 Creative Use Cases for dwriter&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Screenshots
&lt;/h2&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%2Fphv57753d1jytvweuetf.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%2Fphv57753d1jytvweuetf.png" alt="2nd-Brain's Insight Hub" width="800" height="807"&gt;&lt;/a&gt;&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%2Fq9r9ixoo5unx38kfems0.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%2Fq9r9ixoo5unx38kfems0.png" alt="Follow-Up Screen" width="800" height="811"&gt;&lt;/a&gt;&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%2Fg5emdvvcg72um41l5nj2.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%2Fg5emdvvcg72um41l5nj2.png" alt="Timer" width="800" height="805"&gt;&lt;/a&gt;&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%2F8gvr64u5jknokujf4dd6.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%2F8gvr64u5jknokujf4dd6.png" alt="Reports Screen" width="800" height="795"&gt;&lt;/a&gt;&lt;/p&gt;

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

&lt;p&gt;&lt;a href="https://github.com/rhaeyyan/dwriter/tree/dwriter-ai" rel="noopener noreferrer"&gt;dwriter (AI-Edition)&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  How I Used Gemma 4
&lt;/h2&gt;

&lt;p&gt;To achieve the perfect balance between reasoning depth and terminal-speed  performance, I implemented a Dual-Model AI Pipeline using the Gemma 4 family. This architecture is critical because it prevents the "intelligence latency" that typically plagues local LLM integrations. By decoupling interactive reasoning from background processing, dwriter remains responsive while building a deeply indexed personal knowledge base.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Gemma 4 E4B (4B Dense) — The "Main Brain"&lt;/strong&gt;&lt;br&gt;
The Main Brain is responsible for high-stakes reasoning and interactive synthesis. It powers the "2nd-Brain" chat and generates complex analytical reports like Weekly Retrospectives and Burnout Assessments.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;em&gt;The Agentic ReAct Loop&lt;/em&gt;: Instead of simple text completion, the E4B model operates via a Reason + Act (ReAct) pipeline. When you ask a question, it reasons about your intent, selects the appropriate tool (e.g., &lt;code&gt;run_cypher&lt;/code&gt;, &lt;code&gt;fetch_recent_commits&lt;/code&gt;, or &lt;code&gt;search_facts&lt;/code&gt;), and synthesizes the raw data into a grounded, professional response. &lt;/li&gt;
&lt;li&gt;
&lt;em&gt;Context Synthesis&lt;/em&gt;: Its higher reasoning density allows it to merge multiple streams of context—your journal, git history, and tasks—to identify subtle trends and provide data-driven advice.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Gemma 4 E2B (2B Dense) — The "Daemon"&lt;/strong&gt;&lt;br&gt;
The Daemon handles the high-frequency, structured extraction tasks that happen silently in the background. In a terminal environment, speed is a dealbreaker; the E2B model is optimized for near-instant execution.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;em&gt;The Closed Learning Loop&lt;/em&gt;: Every time you save an entry, the Daemon performs Fact Extraction and Semantic Auto-Tagging. It identifies "Durable Facts"—preferences, long-term goals, and recurring constraints—and projects them into the graph index. &lt;/li&gt;
&lt;li&gt;
&lt;em&gt;Recursive Summarization&lt;/em&gt;: It works in the background to summarize long-term history, ensuring that your "2nd Brain" maintains a compressed yet accurate map of your progress without causing UI stutters or interrupting your flow.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;To learn more, visit: &lt;a href="https://github.com/rhaeyyan/dwriter/blob/dwriter-ai/documentation/2ND-BRAIN-GUIDE.md" rel="noopener noreferrer"&gt;The 2nd-Brain Guide&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Technical Depth: Graph-Backed Intelligence
&lt;/h2&gt;

&lt;p&gt;The true technical power of dwriter lies in how it manages data. Under the hood, the tool employs a sophisticated hybrid storage engine:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;em&gt;Hybrid Indexing&lt;/em&gt;: We use SQLite for relational data alongside LadybugDB (a property-graph index). This allows the Gemma 4 models to perform complex Cypher queries to find hidden relationships between seemingly unrelated thoughts.&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;Agentic Agency&lt;/em&gt;: The ReAct pipeline is not just a wrapper; it is a secure execution environment where the AI can query your local Git history and task list to provide answers grounded in reality, not hallucinations.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Local-First Privacy&lt;/strong&gt;: By running this entire pipeline locally, dwriter ensures that your most sensitive thoughts never leave your machine. It is a "2nd Brain" that gains intelligence with every entry you write, while remaining 100% private and persistent.&lt;/p&gt;

&lt;h3&gt;
  
  
  Project author: Rhaeyyan
&lt;/h3&gt;

</description>
      <category>devchallenge</category>
      <category>gemmachallenge</category>
      <category>gemma</category>
      <category>textual</category>
    </item>
  </channel>
</rss>
