DEV Community

hassanismailtech
hassanismailtech

Posted on

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

GitHub Copilot CLI Challenge Submission

This is a submission for the GitHub Copilot CLI Challenge

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:

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

This isn't just a script; it's a prototype for a Closed-Loop Health Ecosystem intended to reduce drug "leakage" and improve patient outcomes in rural Nigeria.

Demo

Here is the entire development lifecycle, from empty folder to production-ready MVP, captured in real-time.

1. The Planning Phase (The "Architect")

I didn't start by writing code. I started by telling the Agent my vision. I asked for a 3-module system for Triage, Validation, and Logistics.
Showing the

2. The Execution (The "Builder")

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

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.
Showing

4. The Result (32 Minutes Later)

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

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. This ensured my 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.

Top comments (0)