cd /news/ai-products/i-built-an-ai-security-coach-for-peoโ€ฆ ยท home โ€บ topics โ€บ ai-products โ€บ article
[ARTICLE ยท art-17403] src=dev.to pub= topic=ai-products verified=true sentiment=โ†‘ positive

I Built an AI Security Coach for People Who Can't Afford to Get Hacked

A developer built CyberBuddy, a gamified Android app that serves as a personal cybersecurity coach for everyday users who cannot afford enterprise-grade security tools. The app, powered by a Gemini A2A agent, guides users through creating a Personal Security Plan covering password health, device security, and two-factor authentication, while tracking daily habits through streaks and badges. CyberBuddy is being presented at GDG Cape Town's Pet Projects: The 2026 Edition showcase on June 30.

read3 min publishedMay 29, 2026

CyberBuddy is a gamified Android app that guides everyday users through personal cybersecurity using a Gemini A2A agent. Here's the full build story.

๐—œ ๐—ฏ๐˜‚๐—ถ๐—น๐˜ ๐˜๐—ต๐—ถ๐˜€ ๐—ฏ๐—ฒ๐—ฐ๐—ฎ๐˜‚๐˜€๐—ฒ ๐˜€๐—ผ๐—บ๐—ฒ๐—ผ๐—ป๐—ฒ ๐—ฎ๐˜€๐—ธ๐—ฒ๐—ฑ ๐—บ๐—ฒ ๐—ฎ ๐—พ๐˜‚๐—ฒ๐˜€๐˜๐—ถ๐—ผ๐—ป ๐—œ ๐—ฐ๐—ผ๐˜‚๐—น๐—ฑ๐—ป'๐˜ ๐—ฎ๐—ป๐˜€๐˜„๐—ฒ๐—ฟ ๐—ถ๐—ป ๐—ฎ ๐—ช๐—ต๐—ฎ๐˜๐˜€๐—”๐—ฝ๐—ฝ ๐—บ๐—ฒ๐˜€๐˜€๐—ฎ๐—ด๐—ฒ.

"How do I know if I am safe online?"

She was a student I mentor through Linfy Academy in Strand, Cape Town. Smart. Motivated. Using the same password for her email, her banking app, and her school portal.

There was no simple answer. So I built one.

CyberBuddy is an Android app that acts as a personal cybersecurity coach.

It guides users through building their own ๐—ฃ๐—ฒ๐—ฟ๐˜€๐—ผ๐—ป๐—ฎ๐—น ๐—ฆ๐—ฒ๐—ฐ๐˜‚๐—ฟ๐—ถ๐˜๐˜† ๐—ฃ๐—น๐—ฎ๐—ป (PSP) - covering password health, device security, and two-factor authentication. It tracks daily security habits through streaks and badges. And it monitors whether your email has appeared in known data breaches.

The AI coaching layer is powered by ๐—š๐—ฒ๐—บ๐—ถ๐—ป๐—ถ via an ๐—”๐Ÿฎ๐—” (๐—”๐—ด๐—ฒ๐—ป๐˜-๐˜๐—ผ-๐—”๐—ด๐—ฒ๐—ป๐˜) ๐—ฎ๐—ฟ๐—ฐ๐—ต๐—ถ๐˜๐—ฒ๐—ฐ๐˜๐˜‚๐—ฟ๐—ฒ. More on that below.

Most cybersecurity tools are built for enterprises with IT departments and budgets.

CyberBuddy is built for three people:

These are the people who get phished. These are the people whose credentials appear in breach databases. These are the people nobody is building for.

Language:       Kotlin
UI:             Jetpack Compose (Material3)
Architecture:   Clean Architecture + MVVM
Database:       Room (offline-first)
DI:             Hilt
AI Layer:       Gemini API via A2A Protocol
Testing:        JUnit5 + Kotest (property-based)
Dev Tools:      Gemini in Android Studio + Claude Code (JetBrains)

The architecture was designed to be offline-first from day one. Room handles all local state. Gemini enhances the experience - it does not gate it.

Instead of calling the Gemini API directly from every screen, I built a ๐—ฆ๐—ฒ๐—ฐ๐˜‚๐—ฟ๐—ถ๐˜๐˜†๐—ข๐—ฟ๐—ฐ๐—ต๐—ฒ๐˜€๐˜๐—ฟ๐—ฎ๐˜๐—ผ๐—ฟ class that acts as the host agent.

It delegates structured tasks to a Gemini-powered coaching agent using Google's A2A protocol.

data class SecurityAgentTask(
    val taskType: String,     // "psp_guidance" | "breach_explain" | "daily_tip"
    val userRole: String,     // "student" | "professional" | "educator"
    val context: Map<String, Any>
)

The benefit: the AI backend is completely decoupled from the Android layer. I can upgrade the Gemini model, swap the agent, or change the coaching logic without touching a single Compose screen.

That is the architectural decision I am most proud of.

๐Ÿญ. ๐—” ๐—ฝ๐—ฟ๐—ผ๐—ฝ๐—ฒ๐—ฟ๐˜๐˜†-๐—ฏ๐—ฎ๐˜€๐—ฒ๐—ฑ ๐˜๐—ฒ๐˜€๐˜ ๐˜๐—ต๐—ฎ๐˜ ๐˜๐—ฎ๐˜‚๐—ด๐—ต๐˜ ๐—บ๐—ฒ ๐—บ๐—ผ๐—ฟ๐—ฒ ๐˜๐—ต๐—ฎ๐—ป ๐—ฎ๐—ป๐˜† ๐—น๐—ถ๐—ป๐˜๐—ฒ๐—ฟ.

I was using Arb.string(minSize = 1, maxSize = 100)

to generate random test inputs for the source

field in breach results. The test asserted breach.source.isNotBlank()

. It kept failing.

Turns out Kotest's string generator happily produces strings made entirely of whitespace. A string of spaces has a length of 1. It is not blank. Except it is.

One line fixed it:

val arbNonEmptyString = Arb.string(minSize = 1, maxSize = 100).filter { it.isNotBlank() }

74 tests passed before that fix. 75 after.

๐Ÿฎ. ๐—”๐—œ ๐—ณ๐—ฒ๐—ฎ๐˜๐˜‚๐—ฟ๐—ฒ๐˜€ ๐˜„๐—ฎ๐—ป๐˜ ๐—ฐ๐—ผ๐—ป๐—ป๐—ฒ๐—ฐ๐˜๐—ถ๐˜ƒ๐—ถ๐˜๐˜†. ๐—ฌ๐—ผ๐˜‚๐—ฟ ๐˜‚๐˜€๐—ฒ๐—ฟ๐˜€ ๐—ฑ๐—ผ๐—ป'๐˜ ๐—ฎ๐—น๐˜„๐—ฎ๐˜†๐˜€ ๐—ต๐—ฎ๐˜ƒ๐—ฒ ๐—ถ๐˜.

Designing for offline-first while shipping AI features is a real tension. My solution: Room is the source of truth. Gemini is the upgrade. If the agent call fails, the app still works.

I used two AI tools at different stages:

๐—š๐—ฒ๐—บ๐—ถ๐—ป๐—ถ ๐—ถ๐—ป ๐—”๐—ป๐—ฑ๐—ฟ๐—ผ๐—ถ๐—ฑ ๐—ฆ๐˜๐˜‚๐—ฑ๐—ถ๐—ผ for scaffolding. Boilerplate, A2A setup, Compose screens. Gemini knows the Android ecosystem deeply and moves fast.

๐—–๐—น๐—ฎ๐˜‚๐—ฑ๐—ฒ ๐—–๐—ผ๐—ฑ๐—ฒ (๐—๐—ฒ๐˜๐—•๐—ฟ๐—ฎ๐—ถ๐—ป๐˜€ ๐—ฝ๐—น๐˜‚๐—ด๐—ถ๐—ป) for polish. Edge cases, accessibility, ProGuard rules, test coverage gaps. Claude reads the full codebase and reasons about architecture, not just the current file.

Neither tool replaced thinking. Both tools compressed the time between thinking and shipping.

Before either tool touched the codebase, I wrote three spec files: mission.md

, techstack.md

, and roadmap.md

. That is what kept the agents grounded.

CyberBuddy is being presented at ๐—ฃ๐—ฒ๐˜ ๐—ฃ๐—ฟ๐—ผ๐—ท๐—ฒ๐—ฐ๐˜๐˜€: ๐—ง๐—ต๐—ฒ ๐Ÿฎ๐Ÿฌ๐Ÿฎ๐Ÿฒ ๐—˜๐—ฑ๐—ถ๐˜๐—ถ๐—ผ๐—ป - GDG Cape Town's mid-year showcase on 30 June 2026.

After that: Play Store release, closed beta with users from Strand and the IUS Africa youth network, and Supabase MCP integration for cross-device PSP sync.

๐—œ๐—ณ ๐˜†๐—ผ๐˜‚ ๐—ฎ๐—ฟ๐—ฒ ๐—ฏ๐˜‚๐—ถ๐—น๐—ฑ๐—ถ๐—ป๐—ด ๐˜€๐—ผ๐—บ๐—ฒ๐˜๐—ต๐—ถ๐—ป๐—ด ๐—ณ๐—ผ๐—ฟ ๐—ฝ๐—ฒ๐—ผ๐—ฝ๐—น๐—ฒ ๐˜„๐—ต๐—ผ ๐—ป๐—ฒ๐—ฒ๐—ฑ ๐—ถ๐˜, ๐—ž๐—ฒ๐—ฒ๐—ฝ ๐—ฏ๐˜‚๐—ถ๐—น๐—ฑ๐—ถ๐—ป๐—ด.

El Roi sees the work.

๐—Ÿ๐—ถ๐—ป๐—ณ๐—ผ๐—ฟ๐—ฑ ๐— ๐˜‚๐˜€๐—ถ๐˜†๐—ฎ๐—บ๐—ฏ๐—ผ๐—ฑ๐˜‡๐—ฎ

Founder, Linfy Tech Solutions | Strand, Cape Town

โ”€โ”€ more in #ai-products 4 stories ยท sorted by recency
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain โ€” perfect for shipping the agent you just read about.

$git push zahid main
โ†’ Live at https://your-agent.zahid.host โœ“
Get free account โ†’ Pricing
from โ‚ฌ0/mo ยท no card required
LIVE [news/i-built-an-ai-securiโ€ฆ] indexed:0 read:3min 2026-05-29 ยท โ€”