cd /news/developer-tools/i-built-a-routing-cli-so-ai-agents-d… · home topics developer-tools article
[ARTICLE · art-111376] src=dev.to ↗ pub= topic=developer-tools verified=true sentiment=· neutral

I built a routing CLI so AI agents don't skip Room migrations, coroutine ownership, and lifecycle boundaries

Developer Rana Ahmed Hamdy built AI-Workflow, a routing CLI that makes Android boundary checks deterministic for AI coding agents. The tool maps observable facts about a change to required specialist procedures via a checked-in registry, avoiding LLM judgment. It addresses Room/SQLite migrations, coroutine ownership, and lifecycle boundaries that agents often miss.

read1 min views2 publishedAug 26, 2026

Coding agents handle "add a field, show it on screen" fine. They

consistently miss the Android boundary around it:

Room/SQLite migrations that silently corrupt existing rows

A refresh coroutine owned by a view callback instead of the ViewModel

UI collection that keeps running after the Activity stops

Lifecycle/process-death paths nobody retested

None of it shows up as a compile error.

I built AI-Workflow to make those checks deterministic. You state

observable facts about a change and a checked-in registry maps them

to required specialist procedures:

Task classification: brownfield / android / safety

Detected concerns: concurrency, lifecycle, persistence, schema_migration

Recommended tier: COMPLEX

Required checks:

android-persistence-migration-readiness: because detected persistence, schema_migration

kotlin-coroutines-readiness: because detected concurrency

protected-lifecycle-transaction-review: because detected lifecycle

android-runtime-evidence-readiness: because detected lifecycle

No LLM judgment in that mapping — it's a registry lookup, same output

every run, every agent.

Install takes one command, no clone needed:

uvx --from git+[https://github.com/RanaAhmedHamdy/AI-Workflow.git](https://github.com/RanaAhmedHamdy/AI-Workflow.git) \

ai-workflow brownfield --platform android --profile safety \

--target /path/to/your-android-app --dry-run

There's also a lightweight Safety profile that gives you just the

routing + protected-boundary checks without requiring a full feature

lifecycle. And a full Android fixture (SQLite migration fallback,

ViewModel coroutine ownership, lifecycle-aware Flow collection) with

unit tests and debug build verified locally.

Pre-v1, Apache-2.0, honest about what's claimed vs unclaimed.

── more in #developer-tools 4 stories · sorted by recency
── more on @rana ahmed hamdy 3 stories trending now
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-a-routing-cl…] indexed:0 read:1min 2026-08-26 ·