Urgent.News

What's breaking now, across thousands of outlets.

AI

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

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…

A developer has created a command-line interface (CLI) tool called AI-Workflow to ensure artificial intelligence (AI) agents do not overlook critical boundaries while managing Android Room migrations, coroutine ownership, and lifecycle constraints. The tool addresses issues such as silent corruption of existing rows in SQLite databases caused by refresh coroutines improperly owned by view callbacks, and lifecycle paths that continued running after an Activity stopped.

The AI-Workflow tool operates by defining observable facts and a checked-in registry that maps these facts to necessary procedures. When a task is classified as brownfield, android-related, and safety-sensitive, the tool identifies concerns related to concurrency, lifecycle, persistence, and schema migrations. Based on these identified concerns, AI-Workflow recommends a complex set of checks, including android-persistence-migration-readiness due to persistence requirements, kotlin-coroutines-readiness due to concurrency issues, protected-lifecycle-transaction-review due to lifecycle constraints, and android-runtime-evidence-readiness due to lifecycle-related concerns.

To use the tool, users can install it with a single command: `uvx --from git+ https://github.com/RanaAhmedHamdy/AI-Workflow.git ai-workflow brownfield --platform android --profile safety --target /path/to/your-android-app --dry-run`. This installation process does not require cloning the GitHub repository. Additionally, the AI-Workflow tool offers a lightweight Safety profile that performs only routing and protected-boundary checks, and a comprehensive Android fixture that includes unit tests and debug builds verified locally.

The project is released under the Apache-2.0 license, with clear disclosure of what is claimed versus what is not.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in AI

Embeddings Cannot Say No: An Intent Detector's Real Numbers

My message detector worked on my test set. On messages it had never seen, it missed one real case out of two. TL;DR : I built a small detector that spots messages asking for an action.

  • Embeddings convert sentences into numerical lists for intent detection
  • Negation poses challenge, causing false positives and negatives
  • LLM interprets negation, improving detector's accuracy

A year of coding by talking: what I gained and what I lost

2024 was the year AI was everywhere. The ads, the praise, the feeling that something had already been decided without me. I am in my fifties. I had to decide whether to watch or take part. I decided to take part. I started with VS Code, on a paid plan. I did not have to think about what to build.

  • A 50-year-old father aimed for financial freedom through automated trading.
  • Initially used GPT and Claude, but struggled with model switching and code management.
  • Success in automating data-entry, but failed to develop a cohesive trading system.

More from Wednesday 26 August →