<?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.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>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="500"&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="1038"&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="760" height="506"&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="464"&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="491"&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>
