Skip to content

Forge

Forge is a 100% offline, fully autonomous, local software engineering agentic platform built as a native Android application.

Core trick

Runs Gemma on-device through LiteRT to plan tasks, generate Compose code, and compile it locally with no network calls.

Tags

Description

Forge is a 100% offline, fully autonomous, local software engineering agentic platform built as a native Android application. It allows users to input natural language development goals or capture/attach hand-drawn layout sketches, and translates them into fully functioning, beautifully designed mobile web applications compiled, validated, and rendered entirely on-device, with zero cloud dependencies.
reyyanxahmed/forge★ 00 forksKotlinCreated Jul 11, 2026 · last push Jul 11, 2026

README excerpt

# Forge 🛠️
> **Autonomous On-Device Agentic Platform for Native Android Apps — Running 100% Offline on Android (LiteRT + Gemma 4)**

Forge is an **on-device, fully autonomous, offline agentic compilation platform** built as a native Android Application (`forge/`). It is designed to run completely offline on modern Android devices (such as the Google Pixel 10 Pro or Samsung S23 Ultra), leveraging on-device NPUs/GPUs via **Google's LiteRT-LM (TFLite) SDK** to run Gemma 4 E4B (Quality Path) and E2B (Fast Path) models. 

Forge takes a natural language objective (e.g., *"build a loan ledger for my 5-member self-help group"*), plans a sequential task graph, synthesizes Material You Jetpack Compose code, validates compilation, and deploys fully working apps natively—**all offline, completely local, on-device.**

---

## 🏗️ Production Architecture: The Android App (`forge/`)

Unlike traditional CLI wrappers or cloud-dependent chatbots, the production version of Forge is engineered as a **native Android Application** wrapping the agent's core cycle in a robust Android Service infrastructure.

```mermaid
graph TD
    User([User App Request]) -->|Natural Language Goal| CLI[Forge CLI / Android Foreground Service]
    CLI --> Loop{Sense-Decide-Act-Check Loop}
    
    %% Sense Phase
    Loop -->|1. SENSE| Sense[Sense: Load State & Re-grounding Briefing]
    Sense --> StateDB[(.forge/state.json Atomic Storage)]
    
    %% Decide Phase
    Sense -->|2. DECIDE| Decide[Decide: Policy-Based M

Team