BioSecure CLI: Building a Medical Command Center in 32 Minutes with GitHub Copilot Agents

Published: (February 16, 2026 at 02:16 AM EST)
2 min read
Source: Dev.to

Source: Dev.to

What I Built

I built BioSecure CLI, a terminal‑based “Medical Command Center” designed to solve three critical failures in the Nigerian primary healthcare supply chain:

  • Messy Patient Data: A validator that automatically cleans and formats Nigerian phone numbers (e.g., converting 080… to +234…) using Regex.
  • Slow Triage: A clinical decision‑support tool that calculates BMI and flags hypertensive crises based on vitals.
  • Drug Stockouts: A logistics engine that tracks vaccine inventory and triggers “Critical Low” alerts to prevent expiry and shortages.

This prototype is a step toward a Closed‑Loop Health Ecosystem aimed at reducing drug “leakage” and improving patient outcomes in rural Nigeria.

Demo

1. The Planning Phase (The “Architect”)

I started by telling the Agent my vision: a 3‑module system for Triage, Validation, and Logistics.

Planning Phase

2. The Execution (The “Builder”)

The CLI Agent autonomously created the project structure, set up a Python virtual environment, and installed dependencies (rich, pytest). I didn’t type a single mkdir command.

Execution Phase

3. The Logic Generation

I tasked the agent with complex logic, such as a “Phone Number Validator” for Nigerian formats. It wrote the code and the tests simultaneously.

Logic Generation

4. The Result (32 Minutes Later)

In exactly 32 minutes and 47 seconds, the Agent delivered a fully tested, documented, and operational CLI tool.

Result

Link to Source Code on GitHub

My Experience with GitHub Copilot CLI

As a medical student, I usually find terminal environments intimidating. My experience with the new Agentic Copilot CLI was transformative because it shifted my role from “Coder” to “Director.”

  • Autonomy: I didn’t have to look up syntax for the rich library or pytest. The agent knew what to install and how to use it.
  • Test‑Driven Development (TDD): The agent automatically wrote tests for every module (Triage, Logistics, Validator) before I even asked, ensuring the medical logic was safe for patient use.
  • Documentation: It auto‑generated a README.md and QUICKSTART.md at the end, saving me hours of writing.

This tool didn’t just help me write code; it helped me build a product before my morning lectures even started.

Next Steps

This MVP is the foundation for a larger “BioSecure” ecosystem, including:

  • Phase 6: Database persistence (SQLite), which the Agent already planned for me.
  • Hardware Integration: Connecting the Logistics module to IoT smart shelves for real‑time vaccine tracking.
0 views
Back to Blog

Related posts

Read more »

Preface

Motivation I wanted to record my studies to have consistency. Since I don't directly learn building projects from my CS program, I want to be an expert in my a...