This is a submission for the Gemma 4 Challenge: Build with Gemma 4
What I Built
ARIA is a terminal-native AI assistant designed specifically for Termux and Android development workflows.
It combines Google's Gemma 4 models with a Termux-focused knowledge base, shell tooling, model discovery, and safety systems to create a mobile-first AI development experience that feels native to the terminal.
Unlike desktop-focused coding assistants, ARIA is built around the realities of Android terminal development:
- Clang instead of GCC
- Android filesystem limitations
- Proot/container environments
- Mobile-only workflows
- Package and permission quirks
- Real-world Termux debugging patterns
The goal was straightforward: build an AI assistant that actually understands the Termux ecosystem instead of treating Android like a normal Linux desktop.
ARIA includes:
- Slash-command interface (
/ask,/fix,/watch,/models) - Dynamic Gemma model discovery and switching
- Shell error analysis and troubleshooting
- Offline Termux knowledge base
- Clipboard integration for command workflows
- Guardian safety layer for risky shell operations
- Rich terminal UI with animations and formatted output
- Experimental watch mode for shell monitoring
Demo
GitHub Repository: https://github.com/Alex72-py/aria-termux
A short terminal demo video is included in the repository README.
Screenshots
Startup Interface
Model Selection
Error Analysis
How I Used Gemma 4
ARIA uses Gemma 4 through Google AI Studio as its primary reasoning and assistance engine.
Gemma powers:
- Shell error analysis
- Interactive
/askworkflows - Command explanation and troubleshooting
- Termux-specific debugging assistance
- Knowledge-assisted recommendations
- Real-time command reasoning
I primarily used gemma-4-26b-a4b-it, which offered the best balance of reasoning quality, response consistency, mobile-friendly latency, and free-tier accessibility — all critical for practical usability inside Termux.
One of the core goals was making advanced AI tooling accessible directly from Android without requiring expensive infrastructure or a desktop environment. To support that, ARIA also implements dynamic model discovery, graceful fallback handling, retry logic, configurable model switching, and offline fallback workflows.
Challenges I Faced
The biggest technical hurdles included:
- Handling invalid or unavailable model endpoints gracefully
- Building a reliable terminal UX inside Termux
- Streaming long responses cleanly without breaking layout
- Designing safe shell interaction workflows
- Working around Android-specific development limitations
- Balancing transparent reasoning output against cleaner response presentation
The experimental watch mode was especially tricky — it required monitoring shell behavior in real time while keeping the experience responsive and safe.
Transparent Reasoning Output
ARIA currently exposes portions of its intermediate reasoning and response planning during some operations. This is intentional during the current development phase, improving debugging, transparency, and prompt iteration.
Future versions will add:
- Optional hidden reasoning mode
- Configurable verbosity settings
- Cleaner streaming output
- Dedicated developer/debug modes
Why I Built This
Most AI coding assistants assume you're sitting at a powerful desktop. But a lot of developers use Termux as a genuine mobile development environment — and almost nothing is built with that workflow in mind.
I wanted to change that. ARIA is lightweight, terminal-native, Android-aware, and designed for real usage on a phone. It's meant to feel like a natural extension of the mobile terminal experience, not a desktop tool awkwardly shoehorned onto Android.
Future Plans
Planned improvements include:
- More reliable watch mode
- Better streaming and response rendering
- Expanded offline capabilities
- Plugin/tool architecture
- Improved shell integration
- Local model support
- Stronger command execution safety controls
Tech Stack
- Python
- Google Gemma 4
- Google AI Studio API
- Rich
- Click
- Pydantic
- Termux
Closing Thoughts
This project started as an experiment in improving AI-assisted development on Android. It grew into a full terminal-native assistant built specifically around the realities of Termux development.
Building ARIA sharpened my thinking on terminal UX, AI reliability, mobile-first workflows, shell safety, and what practical AI tooling actually looks like in constrained environments. It also reinforced just how powerful mobile development has become.
Thanks for reading.



Top comments (0)