BioSecure CLI: Building a Medical Command Center in 32 Minutes with GitHub Copilot Agents
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.
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.
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.
4. The Result (32 Minutes Later)
In exactly 32 minutes and 47 seconds, the Agent delivered a fully tested, documented, and operational CLI tool.
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
richlibrary orpytest. 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.mdandQUICKSTART.mdat 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.



