<?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: Josiah Mbao</title>
    <description>The latest articles on DEV Community by Josiah Mbao (@afrodev_).</description>
    <link>https://dev.to/afrodev_</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%2F2102534%2Fa8c409ab-418f-4d60-ac38-5fb6c428c48b.png</url>
      <title>DEV Community: Josiah Mbao</title>
      <link>https://dev.to/afrodev_</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/afrodev_"/>
    <language>en</language>
    <item>
      <title>How a 2GB Flash Drive Led Me to Rust, Linux Internals and eBPF</title>
      <dc:creator>Josiah Mbao</dc:creator>
      <pubDate>Wed, 09 Sep 2026 14:54:52 +0000</pubDate>
      <link>https://dev.to/afrodev_/how-a-2gb-flash-drive-led-me-to-rust-linux-internals-and-ebpf-1d4p</link>
      <guid>https://dev.to/afrodev_/how-a-2gb-flash-drive-led-me-to-rust-linux-internals-and-ebpf-1d4p</guid>
      <description>&lt;p&gt;A few months ago, my dad gave me his old work laptop.&lt;/p&gt;

&lt;p&gt;I was excited. A new machine to call my own.&lt;/p&gt;

&lt;p&gt;So naturally, I factory-reset the thing.&lt;/p&gt;

&lt;p&gt;Then I did something slightly more drastic: I got rid of Windows.&lt;/p&gt;

&lt;p&gt;There was just one problem.&lt;/p&gt;

&lt;p&gt;The only flash drive I had was around &lt;strong&gt;2 GB&lt;/strong&gt;, which wasn't going to be enough to put Windows back on the machine.&lt;/p&gt;

&lt;p&gt;So I started wondering:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;What operating system is small enough to fit on a 2 GB flash drive?&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Enter &lt;strong&gt;Arch Linux&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Falling down the Arch Linux rabbit hole
&lt;/h2&gt;

&lt;p&gt;Getting Arch Linux running was not exactly a one-click installation.&lt;/p&gt;

&lt;p&gt;It took me about two days to get the ISO, boot from it, partition the disk, install the system, configure everything, and eventually get to something usable.&lt;/p&gt;

&lt;p&gt;And by "usable," I mean a purely terminal-based environment.&lt;/p&gt;

&lt;p&gt;No desktop environment.&lt;/p&gt;

&lt;p&gt;No polished GUI.&lt;/p&gt;

&lt;p&gt;Just a shell and a Linux system that I was now responsible for figuring out.&lt;/p&gt;

&lt;p&gt;A week later, a friend who had been using Arch longer than I had introduced me to &lt;strong&gt;Hyprland&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;That opened another rabbit hole.&lt;/p&gt;

&lt;p&gt;I started customizing my desktop, configuring the terminal, installing tools, tweaking things, and generally enjoying how much control Linux gave me over my own machine.&lt;/p&gt;

&lt;p&gt;Eventually, I wanted to know how the machine itself was doing.&lt;/p&gt;

&lt;p&gt;How much CPU was being used?&lt;/p&gt;

&lt;p&gt;How much memory?&lt;/p&gt;

&lt;p&gt;What processes were running?&lt;/p&gt;

&lt;p&gt;So I reached for the obvious tools:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;top
htop
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;They did exactly what I needed.&lt;/p&gt;

&lt;p&gt;But then I had another thought:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;If Linux is this customizable, could I build my own tool to answer the question of how my machine is doing?&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;That question eventually became &lt;strong&gt;Pulse&lt;/strong&gt;.&lt;/p&gt;
&lt;h2&gt;
  
  
  What is Pulse?
&lt;/h2&gt;

&lt;p&gt;Pulse is a &lt;strong&gt;Linux observability TUI written in Rust&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;It started as a small experiment to learn more about Linux internals and terminal applications.&lt;/p&gt;

&lt;p&gt;Instead of simply using existing monitoring tools, I wanted to understand where the information they displayed actually came from.&lt;/p&gt;

&lt;p&gt;That led me to &lt;code&gt;/proc&lt;/code&gt;.&lt;/p&gt;
&lt;h3&gt;
  
  
  &lt;code&gt;/proc&lt;/code&gt;: My first look under the hood
&lt;/h3&gt;

&lt;p&gt;Linux exposes a huge amount of information about the running system through the proc filesystem.&lt;/p&gt;

&lt;p&gt;For example:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;/proc/
├── stat
├── meminfo
├── loadavg
└── &amp;lt;pid&amp;gt;/
    ├── stat
    ├── status
    └── ...
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Pulse reads information from these interfaces and turns the raw data into metrics that can be displayed in the terminal.&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%2Fycsru8e3zuo7m7y66top.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%2Fycsru8e3zuo7m7y66top.png" alt="Pulse v0.1 - Initial demo" width="800" height="805"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;[Pulse v0.1 - Early version]&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;This was the first point where the project became more interesting than simply building another TUI.&lt;/p&gt;

&lt;p&gt;I started realizing that a metric like CPU utilization isn't necessarily something you can just ask Linux for.&lt;/p&gt;

&lt;p&gt;You might instead get raw counters, understand what those counters represent, take measurements over time, and calculate the value you actually want.&lt;/p&gt;

&lt;p&gt;For example, &lt;code&gt;/proc/stat&lt;/code&gt; exposes CPU time counters:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;cpu  1234 56 789 10234 12 0 34 0 0 0
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Pulse can use this information to derive useful metrics about CPU activity.&lt;/p&gt;

&lt;p&gt;That meant I wasn't just displaying system information.&lt;/p&gt;

&lt;p&gt;I was learning how the system exposes that information in the first place.&lt;/p&gt;
&lt;h2&gt;
  
  
  Why Rust?
&lt;/h2&gt;

&lt;p&gt;I'll admit something:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;I love Rust and will find any excuse to use it.&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;But in this case, I actually had a pretty good excuse.&lt;/p&gt;

&lt;p&gt;Pulse is a Linux observability tool, which puts it fairly close to the systems programming domain.&lt;/p&gt;

&lt;p&gt;And guess what else works well in systems programming?&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Rust.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I wanted Pulse to teach me more than just Linux. I also wanted to become significantly more comfortable writing Rust, particularly when dealing with lower-level concepts, concurrency, processes, memory, and long-running applications.&lt;/p&gt;

&lt;p&gt;Rust's memory-safety guarantees were especially attractive for a tool interacting with a constantly changing system.&lt;/p&gt;

&lt;p&gt;Processes can start and disappear.&lt;/p&gt;

&lt;p&gt;Files can change between reads.&lt;/p&gt;

&lt;p&gt;System state can change while you're rendering it.&lt;/p&gt;

&lt;p&gt;The application itself is continuously collecting data and updating the UI.&lt;/p&gt;

&lt;p&gt;Rust gives me strong guarantees around memory safety while still allowing me to work fairly close to the system.&lt;/p&gt;

&lt;p&gt;More importantly, Rust forced me to think differently about how I structure programs.&lt;/p&gt;

&lt;p&gt;Pulse became one of my excuses to go deeper into the language.&lt;/p&gt;
&lt;h2&gt;
  
  
  From &lt;code&gt;/proc&lt;/code&gt; to observability
&lt;/h2&gt;

&lt;p&gt;Once Pulse could render system metrics from &lt;code&gt;/proc&lt;/code&gt;, I started asking another question:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;What else can I monitor?&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;And then:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Can I do it faster?&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The more I looked into Linux internals, the more I realized that there was a much bigger world underneath what tools like &lt;code&gt;top&lt;/code&gt; and &lt;code&gt;htop&lt;/code&gt; expose.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;/proc&lt;/code&gt; is incredibly useful for understanding &lt;strong&gt;system state&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;But I wanted Pulse to eventually understand &lt;strong&gt;events happening inside the system&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Processes being created.&lt;/p&gt;

&lt;p&gt;System calls being made.&lt;/p&gt;

&lt;p&gt;Network activity.&lt;/p&gt;

&lt;p&gt;Kernel functions being executed.&lt;/p&gt;

&lt;p&gt;And potentially much more.&lt;/p&gt;

&lt;p&gt;That's when I stumbled into &lt;strong&gt;eBPF&lt;/strong&gt;.&lt;/p&gt;
&lt;h2&gt;
  
  
  Enter eBPF
&lt;/h2&gt;

&lt;p&gt;eBPF opened up an entirely different side of Linux observability for me.&lt;/p&gt;

&lt;p&gt;At a high level, &lt;strong&gt;eBPF lets you run small programs in the Linux kernel to observe and respond to events happening inside the system, without having to modify the kernel's source code.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;That means you can attach programs to things like system calls, network events, tracepoints, and other kernel activity, collect information about what's happening, and send that data right back to a user-space application.&lt;/p&gt;

&lt;p&gt;Instead of only asking the system:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;"What is happening right now?"&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;I could start asking:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;"What just happened, and why?"&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Conceptually, Pulse started evolving from something like this:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;        Linux
          │
        /proc
          │
      Collect data
          │
        Pulse
          │
         TUI
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;towards:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;                  Linux Kernel
                       │
              ┌────────┴────────┐
              │                 │
            /proc              eBPF
              │                 │
              └────────┬────────┘
                       │
                   Collectors
                       │
                   Pulse Core
                       │
                      TUI
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;I'm currently only using eBPF for a small subset of Pulse's functionality, but getting those first pieces working changed how I thought about the project.&lt;/p&gt;

&lt;p&gt;Pulse wasn't just a system monitor anymore.&lt;/p&gt;

&lt;p&gt;It was becoming a playground for learning &lt;strong&gt;Linux observability&lt;/strong&gt;.&lt;/p&gt;
&lt;h2&gt;
  
  
  What I've learned building Pulse
&lt;/h2&gt;

&lt;p&gt;The biggest lesson hasn't actually been Rust.&lt;/p&gt;

&lt;p&gt;It's been realizing how much abstraction exists between what I see on my screen and what the operating system is actually doing.&lt;/p&gt;

&lt;p&gt;Before Pulse, I could run:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;htop
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;and see CPU utilization, memory usage, processes, and other information.&lt;/p&gt;

&lt;p&gt;Now I have a much better appreciation for the chain of things happening underneath those numbers.&lt;/p&gt;

&lt;p&gt;Linux exposes information through interfaces like &lt;code&gt;/proc&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Applications interpret that information.&lt;/p&gt;

&lt;p&gt;Metrics often have to be calculated from raw counters.&lt;/p&gt;

&lt;p&gt;And with eBPF, you can go even deeper and observe activity directly within the kernel.&lt;/p&gt;

&lt;p&gt;Building Pulse has basically been an excuse to keep peeling away those layers.&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%2Fb89bgngniau1895th04n.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%2Fb89bgngniau1895th04n.png" alt="Trace Lens - eBPF in action!" width="800" height="750"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;[Trace Lens - eBPF in action]&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Every time I think I've reached the bottom, I find another layer underneath.&lt;/p&gt;
&lt;h2&gt;
  
  
  What surprised me
&lt;/h2&gt;

&lt;p&gt;One of the things I didn't expect when I started Pulse was how quickly a seemingly simple project could lead into completely different areas of computer science.&lt;/p&gt;

&lt;p&gt;I started with:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;"How much CPU am I using?"&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;That led to:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;/proc
  ↓
Linux internals
  ↓
Systems programming
  ↓
Rust
  ↓
Observability
  ↓
eBPF
  ↓
Kernel instrumentation
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;And that's probably my favorite thing about software engineering.&lt;/p&gt;

&lt;p&gt;You can start with a small question and keep digging until you find an entirely different layer underneath.&lt;/p&gt;
&lt;h2&gt;
  
  
  What's next?
&lt;/h2&gt;

&lt;p&gt;Pulse is still very much a work in progress.&lt;/p&gt;

&lt;p&gt;I'm particularly interested in expanding its eBPF instrumentation.&lt;/p&gt;

&lt;p&gt;Right now I'm only tracking a couple of things through eBPF, but I'm learning that there's a &lt;strong&gt;lot&lt;/strong&gt; more that can be observed.&lt;/p&gt;

&lt;p&gt;Networking is one area I'm particularly interested in exploring.&lt;/p&gt;

&lt;p&gt;There are also plenty of other kernel-level events and subsystems that could eventually become part of Pulse.&lt;/p&gt;

&lt;p&gt;I don't have a final definition of what Pulse is supposed to become yet.&lt;/p&gt;

&lt;p&gt;And honestly, I like that.&lt;/p&gt;

&lt;p&gt;The project started because I wanted to answer a simple question:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;How is my machine doing?&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;It has gradually turned into a much more interesting question:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;What's actually happening inside my machine?&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;That's the question I want to keep exploring.&lt;/p&gt;
&lt;h2&gt;
  
  
  Final thoughts
&lt;/h2&gt;

&lt;p&gt;Pulse started as a small &lt;code&gt;/proc&lt;/code&gt;-based system monitor I was building to learn more about Linux internals and terminal applications.&lt;/p&gt;

&lt;p&gt;It has since become my playground for learning:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Linux systems programming&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Rust&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;observability&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;eBPF&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;kernel instrumentation&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;terminal UI development&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;And I'm nowhere near done.&lt;/p&gt;

&lt;p&gt;The project is open source, and I'll keep building it as I learn more about what's happening underneath the abstractions we normally take for granted.&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%2Fyxsvt0e4a88x8qzrgtut.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%2Fyxsvt0e4a88x8qzrgtut.gif" alt="Pulse v0.8 - Latest Pulse demo" width="599" height="319"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;[Pulse v0.8 - Latest version]&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;If you're interested in Linux internals, Rust, or observability, the project is here:&lt;/p&gt;


&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://assets.dev.to/assets/github-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/josiah-mbao" rel="noopener noreferrer"&gt;
        josiah-mbao
      &lt;/a&gt; / &lt;a href="https://github.com/josiah-mbao/pulse" rel="noopener noreferrer"&gt;
        pulse
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      Linux observability TUI built in Rust, combining /proc telemetry with real-time eBPF kernel tracing
    &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;Pulse&lt;/h1&gt;
&lt;/div&gt;

&lt;p&gt;
  &lt;a rel="noopener noreferrer" href="https://private-user-images.githubusercontent.com/79065770/625123102-f719d3aa-7d57-404f-b31b-0aa4e6c32e94.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3ODg5NjU5OTEsIm5iZiI6MTc4ODk2NTY5MSwicGF0aCI6Ii83OTA2NTc3MC82MjUxMjMxMDItZjcxOWQzYWEtN2Q1Ny00MDRmLWIzMWItMGFhNGU2YzMyZTk0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjA5MDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwOTA5VDE0NTQ1MVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTg0ZWZiMzhjMTFiNzY0ZDJmMzQ1NDZlOWM5YjgyMzg5NDY4YjBkYjA2OWYxNmQyOWUzODk3NGQyYWQ4MTI2MmUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JnJlc3BvbnNlLWNvbnRlbnQtdHlwZT1pbWFnZSUyRnBuZyJ9.6zUU_zeeZ_CDQLXyS2-W6G4lwDEdOi8hDgKJTYHr0_o"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fprivate-user-images.githubusercontent.com%2F79065770%2F625123102-f719d3aa-7d57-404f-b31b-0aa4e6c32e94.png%3Fjwt%3DeyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3ODg5NjU5OTEsIm5iZiI6MTc4ODk2NTY5MSwicGF0aCI6Ii83OTA2NTc3MC82MjUxMjMxMDItZjcxOWQzYWEtN2Q1Ny00MDRmLWIzMWItMGFhNGU2YzMyZTk0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjA5MDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwOTA5VDE0NTQ1MVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTg0ZWZiMzhjMTFiNzY0ZDJmMzQ1NDZlOWM5YjgyMzg5NDY4YjBkYjA2OWYxNmQyOWUzODk3NGQyYWQ4MTI2MmUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JnJlc3BvbnNlLWNvbnRlbnQtdHlwZT1pbWFnZSUyRnBuZyJ9.6zUU_zeeZ_CDQLXyS2-W6G4lwDEdOi8hDgKJTYHr0_o" alt="Pulse mascot" width="260"&gt;&lt;/a&gt;
&lt;/p&gt;

&lt;p&gt;
  &lt;strong&gt;An open-source Linux observability TUI built with Rust.&lt;/strong&gt;&lt;br&gt;
  Combining low-overhead &lt;code&gt;/proc&lt;/code&gt; telemetry with real-time eBPF kernel lifecycle tracing.&lt;br&gt;&lt;br&gt;
  &lt;a href="https://josiah-mbao.github.io/pulse/" rel="nofollow noopener noreferrer"&gt;&lt;strong&gt;🌐 Live Website &amp;amp; Documentation&lt;/strong&gt;&lt;/a&gt;
&lt;/p&gt;

&lt;p&gt;
  &lt;a rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/d04497a93a41167ec0276cc04d2cd40b7248075c8fa5ca66572a99f15cd24a57/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6a6f736961682d6d62616f2f70756c73652f63692e796d6c3f7374796c653d666c61742d737175617265"&gt;&lt;img src="https://camo.githubusercontent.com/d04497a93a41167ec0276cc04d2cd40b7248075c8fa5ca66572a99f15cd24a57/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6a6f736961682d6d62616f2f70756c73652f63692e796d6c3f7374796c653d666c61742d737175617265" alt="CI Status"&gt;&lt;/a&gt;
  &lt;a rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/c599d7d084cd3998cc95f1fc603ca46305f80a01889d82243a00abdb9ef3dcad/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6a6f736961682d6d62616f2f70756c73653f7374796c653d666c61742d737175617265"&gt;&lt;img src="https://camo.githubusercontent.com/c599d7d084cd3998cc95f1fc603ca46305f80a01889d82243a00abdb9ef3dcad/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6a6f736961682d6d62616f2f70756c73653f7374796c653d666c61742d737175617265" alt="License"&gt;&lt;/a&gt;
  &lt;a rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/b30d5249f46f02e4f1ba69ffbb37e274a216a14e03a27400683c34efab7087d3/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c696e75782d654250462d6f72616e67653f7374796c653d666c61742d737175617265"&gt;&lt;img src="https://camo.githubusercontent.com/b30d5249f46f02e4f1ba69ffbb37e274a216a14e03a27400683c34efab7087d3/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c696e75782d654250462d6f72616e67653f7374796c653d666c61742d737175617265" alt="Linux eBPF"&gt;&lt;/a&gt;
&lt;/p&gt;




&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;🎭 Visual Evolution&lt;/h2&gt;
&lt;/div&gt;

&lt;div class="markdown-heading"&gt;
&lt;h3 class="heading-element"&gt;Latest — v0.8 "Kernel Trace"&lt;/h3&gt;
&lt;/div&gt;

&lt;p&gt;&lt;a rel="noopener noreferrer" href="https://github.com/josiah-mbao/pulse/docs/pulse-demo-v080.gif"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fraw.githubusercontent.com%2Fjosiah-mbao%2Fpulse%2FHEAD%2Fdocs%2Fpulse-demo-v080.gif" alt="Latest Demo"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;div class="markdown-heading"&gt;
&lt;h3 class="heading-element"&gt;Original — v0.1&lt;/h3&gt;

&lt;/div&gt;

&lt;p&gt;&lt;a rel="noopener noreferrer" href="https://github.com/josiah-mbao/pulse/docs/demo.gif"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fraw.githubusercontent.com%2Fjosiah-mbao%2Fpulse%2FHEAD%2Fdocs%2Fdemo.gif" alt="Original Demo"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Live terminal recordings generated with &lt;a href="https://asciinema.org" rel="nofollow noopener noreferrer"&gt;asciinema&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;




&lt;div class="markdown-heading"&gt;
&lt;h1 class="heading-element"&gt;🌱 The Origin Story&lt;/h1&gt;

&lt;/div&gt;

&lt;p&gt;Pulse started on a whim and a hand-me-down laptop.&lt;/p&gt;

&lt;p&gt;After reviving an old machine with Arch Linux and building a custom Hyprland desktop, I found myself constantly reaching for &lt;code&gt;top&lt;/code&gt; and &lt;code&gt;htop&lt;/code&gt; whenever something felt slow.&lt;/p&gt;

&lt;p&gt;Watching thousands of values update in real time sparked a question:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;How can these tools continuously observe an entire Linux system without becoming the bottleneck themselves?&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Arch Linux encourages understanding your system from the ground up, so I decided to extend that philosophy to application development.&lt;/p&gt;

&lt;p&gt;Rather than treating Linux as a black box, I wanted to understand how observability works from the kernel upward—how processes are born…&lt;/p&gt;&lt;/div&gt;


&lt;/div&gt;
&lt;br&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/josiah-mbao/pulse" 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;&lt;em&gt;Built because I wanted to know what my machine was actually doing.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>rust</category>
      <category>linux</category>
      <category>opensource</category>
      <category>showdev</category>
    </item>
    <item>
      <title>Building Terminal GPT: How Plugins Turned a Chatbot into an AI Agent</title>
      <dc:creator>Josiah Mbao</dc:creator>
      <pubDate>Sat, 24 Jan 2026 18:25:55 +0000</pubDate>
      <link>https://dev.to/afrodev_/building-terminal-gpt-how-plugins-turned-a-chatbot-into-an-ai-agent-2ebc</link>
      <guid>https://dev.to/afrodev_/building-terminal-gpt-how-plugins-turned-a-chatbot-into-an-ai-agent-2ebc</guid>
      <description>&lt;h2&gt;
  
  
  From Simple CLI Chat to the Real Insight: Plugins as the Boundary Between Reasoning and Action
&lt;/h2&gt;

&lt;p&gt;When I first started building Terminal GPT, I envisioned a simple CLI chat interface with an LLM backend. But as I iterated through the architecture, something unexpected happened - the &lt;strong&gt;plugin system&lt;/strong&gt; I built to extend functionality became the most fascinating and powerful part of the entire project.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The key insight&lt;/strong&gt;: plugins aren't just features - they're the essential boundary between AI reasoning and real-world action. This architectural pattern fundamentally changed how I think about building AI systems.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Plugin Architecture Matters
&lt;/h2&gt;

&lt;p&gt;What started as a way to add basic file operations and calculations evolved into a formalized plugin architecture that fundamentally changed how my AI assistant interacts with the world. Instead of being limited to text-based responses, my AI can now:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Read and write files&lt;/li&gt;
&lt;li&gt;Perform complex calculations&lt;/li&gt;
&lt;li&gt;Access live sports data&lt;/li&gt;
&lt;li&gt;Execute system operations&lt;/li&gt;
&lt;li&gt;And much more through extensible plugins&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The Architecture That Made It Click
&lt;/h2&gt;

&lt;p&gt;The real learning moment came when I realized that plugins aren't just features - they're a fundamental architectural pattern for building AI systems that can actually &lt;em&gt;do&lt;/em&gt; things.&lt;/p&gt;

&lt;h3&gt;
  
  
  Key Design Decisions:
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;1. Formal Plugin Contracts&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;Plugin&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ABC&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;str&lt;/span&gt;
    &lt;span class="n"&gt;description&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;str&lt;/span&gt;
    &lt;span class="n"&gt;input_model&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;Type&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;BaseModel&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="n"&gt;output_model&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;Type&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;BaseModel&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;

    &lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;run&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;input&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;BaseModel&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;BaseModel&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="bp"&gt;...&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;2. Automatic Registration&lt;/strong&gt;&lt;br&gt;
Plugins automatically register themselves with the LLM, creating a dynamic tool ecosystem.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Structured Input/Output&lt;/strong&gt;&lt;br&gt;
Pydantic models ensure type safety and clear contracts between the AI and tools.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. Isolated Execution&lt;/strong&gt;&lt;br&gt;
Each plugin runs in its own validated environment with error boundaries, ensuring failures are contained and don't crash the entire system.&lt;/p&gt;
&lt;h2&gt;
  
  
  The Technical Stack
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Backend&lt;/strong&gt;: Python with FastAPI for the REST API&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CLI&lt;/strong&gt;: Rich terminal interface with beautiful formatting&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;LLM Integration&lt;/strong&gt;: OpenRouter for flexible model access&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Plugin System&lt;/strong&gt;: Pydantic for contracts, async/await for execution&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Architecture&lt;/strong&gt;: Clean separation with domain-driven design&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;
  
  
  What I Learned
&lt;/h2&gt;

&lt;p&gt;The plugin architecture taught me that building AI systems isn't just about the model - it's about creating a framework where the AI can leverage external capabilities. This pattern:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Makes the system &lt;strong&gt;infinitely extensible&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Provides clear boundaries between concerns&lt;/li&gt;
&lt;li&gt;Enables graceful failure handling&lt;/li&gt;
&lt;li&gt;Creates opportunities for community contributions&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;
  
  
  Personal Touch: Building My Own AI Agent
&lt;/h3&gt;

&lt;p&gt;What makes this project especially cool for me is that I'm essentially building an AI agent from scratch. As a Houston Rockets and Manchester United fan, &lt;strong&gt;I've added sports tools&lt;/strong&gt; so my AI can answer all my stat-head questions. I've also &lt;strong&gt;given the AI some personality&lt;/strong&gt; - it's got a laid-back, slightly whimsical character that makes our conversations more engaging. It's like having a coding buddy who's also into sports and can actually &lt;em&gt;do&lt;/em&gt; things, not just chat!&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%2Fcud0qm6u1gm4glilywa6.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%2Fcud0qm6u1gm4glilywa6.png" alt="AI Agent answering sports questions" width="800" height="501"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  The Star of the Show
&lt;/h2&gt;

&lt;p&gt;What began as a simple file reader plugin is now a sophisticated system where the AI can reason about which tools to use, chain multiple operations together, and provide structured results back to the conversation.&lt;/p&gt;
&lt;h2&gt;
  
  
  What's Next?
&lt;/h2&gt;

&lt;p&gt;I'm curious to hear your thoughts on what tools would be valuable in an AI assistant like this. I'm thinking about:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Git operations (status, commits, branches)&lt;/li&gt;
&lt;li&gt;Code analysis and refactoring suggestions&lt;/li&gt;
&lt;li&gt;System monitoring and diagnostics&lt;/li&gt;
&lt;li&gt;Package management (pip, npm, cargo)&lt;/li&gt;
&lt;li&gt;API testing and documentation generation&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;What would you add to make this more useful in your daily development workflow?&lt;/p&gt;


&lt;h2&gt;
  
  
  Media Assets
&lt;/h2&gt;
&lt;h3&gt;
  
  
  Screenshot 1: Terminal Interface
&lt;/h3&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%2Fnp62kvpr1og5tjpru3lm.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%2Fnp62kvpr1og5tjpru3lm.png" alt="Terminal interface showing a conversation with tool execution results" width="800" height="510"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Show the CLI interface with a conversation where the AI has just executed a plugin, displaying the structured results.&lt;/em&gt;&lt;/p&gt;
&lt;h3&gt;
  
  
  Screenshot 2: Plugin Architecture Diagram
&lt;/h3&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%2Fsu4nh9dvmys5xf3wm91l.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%2Fsu4nh9dvmys5xf3wm91l.png" alt="Plugin architecture diagram" width="800" height="1039"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;The mental model: AI reasons about what to do, then hands off to specialized plugins that safely perform actions and return structured results.&lt;/em&gt;&lt;/p&gt;
&lt;h3&gt;
  
  
  Code Snippet: Simple Plugin Implementation
&lt;/h3&gt;

&lt;p&gt;Here's a clean example of how easy it is to add new capabilities to the system:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="n"&gt;pydantic&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;BaseModel&lt;/span&gt;
&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="n"&gt;terminal_gpt.domain.plugins&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;Plugin&lt;/span&gt;

&lt;span class="k"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;ReadFileInput&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;BaseModel&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;str&lt;/span&gt;

&lt;span class="k"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;ReadFileOutput&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;BaseModel&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="n"&gt;content&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;str&lt;/span&gt;

&lt;span class="k"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;ReadFilePlugin&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;Plugin&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="n"&gt;name&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;read_file&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;
    &lt;span class="n"&gt;description&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Reads a text file from disk&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;
    &lt;span class="n"&gt;input_model&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;ReadFileInput&lt;/span&gt;
    &lt;span class="n"&gt;output_model&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;ReadFileOutput&lt;/span&gt;

    &lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;run&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;input&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;ReadFileInput&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;ReadFileOutput&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;content&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;Path&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;input&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nf"&gt;read_text&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nc"&gt;ReadFileOutput&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;content&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;content&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;p&gt;I'd love to hear your thoughts on plugin architectures in AI projects. What patterns have you found useful, and what would you add to make systems like this even more powerful?&lt;/p&gt;

</description>
      <category>ai</category>
      <category>python</category>
      <category>architecture</category>
      <category>opensource</category>
    </item>
    <item>
      <title>Shipping CoinPeek: Building a Real-Time Crypto Monitor in Rust</title>
      <dc:creator>Josiah Mbao</dc:creator>
      <pubDate>Fri, 09 Jan 2026 21:36:52 +0000</pubDate>
      <link>https://dev.to/afrodev_/shipping-coinpeek-building-a-real-time-crypto-monitor-in-rust-45o0</link>
      <guid>https://dev.to/afrodev_/shipping-coinpeek-building-a-real-time-crypto-monitor-in-rust-45o0</guid>
      <description>&lt;h2&gt;
  
  
  Shipping CoinPeek
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;A 572KB WASM binary. Zero network requests after initial load. Real-time crypto prices in your terminal.&lt;/strong&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  Why I built it
&lt;/h2&gt;

&lt;p&gt;I was tired of tab-switching to check ETH prices. Every context switch cost me 30 seconds of focus. So I built a terminal dashboard in Rust that shows live market data without leaving my IDE/terminal.&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%2F7a0vg231jpsglpzho2so.gif" 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%2F7a0vg231jpsglpzho2so.gif" alt="demo gif of terminal UI" width="720" height="480"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;The core TUI (terminal user interface)&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Performance Benchmarks
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Metric&lt;/th&gt;
&lt;th&gt;Value&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;WASM bundle size&lt;/td&gt;
&lt;td&gt;572 KB&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Memory footprint&lt;/td&gt;
&lt;td&gt;~8 MB (terminal) / ~15 MB (web)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Price update latency&lt;/td&gt;
&lt;td&gt;&amp;lt; 100ms (WebSocket)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;UI render time&lt;/td&gt;
&lt;td&gt;&amp;lt; 16ms (60fps)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Cold start (web)&lt;/td&gt;
&lt;td&gt;~300ms&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Binary size (macOS)&lt;/td&gt;
&lt;td&gt;2.1 MB&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;




&lt;h2&gt;
  
  
  Architecture
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Terminal app&lt;/strong&gt;: Ratatui TUI + SQLite for offline persistence&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Web app&lt;/strong&gt;: Yew + WebAssembly (same core logic)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Data layer&lt;/strong&gt;: WebSocket streaming from Binance (no polling)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Storage&lt;/strong&gt;: tokio-rusqlite with bundled SQLite (works offline)&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fr1q8v7m7d5uy8w0wz82q.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%2Fr1q8v7m7d5uy8w0wz82q.png" alt="web dashboard version" width="800" height="465"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;The same core logic compiled to WebAssembly and rendered in the browser using Yew.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Lessons Learned
&lt;/h2&gt;

&lt;p&gt;Building CoinPeek reinforced that shipping beats perfection. The first version had hardcoded API calls and no error handling. But it worked — and that momentum carried me through polishing, testing, and CI automation.&lt;/p&gt;

&lt;p&gt;What would you add next? A portfolio tracker? Alerts? Sound off in the comments.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Links&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Repo: &lt;a href="https://github.com/josiah-mbao/coinpeek" rel="noopener noreferrer"&gt;https://github.com/josiah-mbao/coinpeek&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Live web: &lt;a href="https://josiah-mbao.github.io/coinpeek/" rel="noopener noreferrer"&gt;https://josiah-mbao.github.io/coinpeek/&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>rust</category>
      <category>opensource</category>
      <category>cli</category>
      <category>websockets</category>
    </item>
    <item>
      <title>How I Built a Zero-Config CLI That Generates READMEs in 60 Seconds</title>
      <dc:creator>Josiah Mbao</dc:creator>
      <pubDate>Fri, 02 Jan 2026 10:34:14 +0000</pubDate>
      <link>https://dev.to/afrodev_/how-i-built-a-zero-config-cli-that-generates-readmes-in-60-seconds-1fca</link>
      <guid>https://dev.to/afrodev_/how-i-built-a-zero-config-cli-that-generates-readmes-in-60-seconds-1fca</guid>
      <description>&lt;p&gt;README files are usually the last thing I write.&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%2Fwevq555dd693fue7bfk9.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%2Fwevq555dd693fue7bfk9.png" alt=" " width="800" height="492"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Not because they’re unimportant — but because by the time the code works, I just want to ship. Over time I noticed the same pattern: inconsistent sections, missing install steps, or a README that didn’t reflect the project at all.&lt;/p&gt;

&lt;p&gt;I didn’t want a smarter template. I wanted less friction.&lt;/p&gt;

&lt;p&gt;So I built a small Python CLI that generates a clean, GitHub-ready README with almost no setup.&lt;/p&gt;

&lt;h2&gt;
  
  
  Design goal: zero configuration
&lt;/h2&gt;

&lt;p&gt;The main constraint I set for myself was:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;A developer should be able to try it in under 60 seconds.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;That ruled out:&lt;br&gt;
    • Config files&lt;br&gt;
    • Manual template selection&lt;br&gt;
    • Long command flags&lt;/p&gt;

&lt;p&gt;If that felt slow or confusing, the tool had failed its goal.&lt;/p&gt;
&lt;h3&gt;
  
  
  Implementation decisions
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Typer for CLI ergonomics&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I chose Typer because:&lt;br&gt;
    • Type hints double as CLI definitions&lt;br&gt;
    • Commands stay readable as the tool grows&lt;br&gt;
    • Help output is clean by default&lt;/p&gt;

&lt;p&gt;This helped keep the surface area small while still being extensible.&lt;/p&gt;

&lt;p&gt;⸻&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Jinja2 templates (tested)&lt;/strong&gt;
Templates are easy to add — but easy to break.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Instead of treating them as static files, I:&lt;br&gt;
    • Versioned templates&lt;br&gt;
    • Added tests to validate output structure&lt;br&gt;
    • Enforced required sections per template&lt;/p&gt;

&lt;p&gt;This avoids generating a README that looks polished but misses critical sections.&lt;/p&gt;

&lt;p&gt;⸻&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Smart defaults over questions. Rather than asking everything, the tool:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;• Infers project name from the directory&lt;br&gt;
• Suggests sections automatically&lt;br&gt;
• Only prompts when needed&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Fewer prompts = faster flow.&lt;/p&gt;

&lt;p&gt;⸻&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Rich for feedback, not decoration&lt;/strong&gt; I used Rich sparingly:&lt;/p&gt;

&lt;p&gt;• Clear success/failure messages&lt;br&gt;
• Human-readable errors&lt;br&gt;
• No unnecessary animations&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;CLI tools should feel calm, not flashy. But also not boring.&lt;/p&gt;

&lt;p&gt;⸻&lt;/p&gt;
&lt;h3&gt;
  
  
  What I learned shipping my first PyPI package
&lt;/h3&gt;

&lt;p&gt;One thing I didn’t expect was how different “working locally” is from “working once published.”&lt;/p&gt;

&lt;p&gt;In my first release, readmegen init ran — but didn’t actually generate a README.&lt;br&gt;
The issue wasn’t the logic. It was packaging.&lt;/p&gt;

&lt;p&gt;I hadn’t bundled my Jinja2 templates in the PyPI distribution, so once installed, the CLI couldn’t find them.&lt;/p&gt;

&lt;p&gt;That forced me to learn:&lt;br&gt;
• How Python packaging actually works&lt;br&gt;
• Why MANIFEST.in matters&lt;br&gt;
• How to include non-code files in a distribution&lt;br&gt;
• Semantic versioning and republishing fixes properly&lt;/p&gt;

&lt;p&gt;It was frustrating — but also satisfying. Shipping something people can install teaches lessons you don’t get from local scripts.&lt;/p&gt;

&lt;p&gt;⸻&lt;/p&gt;
&lt;h3&gt;
  
  
  What I deliberately didn’t add (yet)
&lt;/h3&gt;

&lt;p&gt;There’s currently a placeholder for AI enhancement.&lt;/p&gt;

&lt;p&gt;I could auto-generate descriptions, features, or usage sections — but I’m cautious. &lt;strong&gt;Bad AI-generated docs can be worse than no docs at all&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Before adding it, I wanted to understand how developers actually feel about it.&lt;/p&gt;

&lt;p&gt;⸻&lt;/p&gt;
&lt;h3&gt;
  
  
  Where this could go next
&lt;/h3&gt;

&lt;p&gt;Some ideas I’m considering:&lt;br&gt;
    • AI-assisted rewriting (opt-in)&lt;br&gt;
    • Project structure analysis for smarter sections&lt;br&gt;
    • README linting / suggestions instead of generation&lt;/p&gt;

&lt;p&gt;But I’m trying to keep the core simple.&lt;/p&gt;

&lt;p&gt;Try it (if you want)&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;pip install readmegen-oss
readmegen init
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Repo + docs are here: &lt;a href="https://github.com/josiah-mbao/ReadmeGen" rel="noopener noreferrer"&gt;https://github.com/josiah-mbao/ReadmeGen&lt;/a&gt;&lt;br&gt;
Live site: &lt;a href="https://josiah-mbao.github.io/readmegen-site/" rel="noopener noreferrer"&gt;https://josiah-mbao.github.io/readmegen-site/&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Question for you
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Would you ever let AI write your README files?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I'm genuinely curious before pushing this further.&lt;/p&gt;

</description>
      <category>opensource</category>
      <category>python</category>
      <category>productivity</category>
      <category>cli</category>
    </item>
  </channel>
</rss>
