惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

腾讯CDC
aimingoo的专栏
aimingoo的专栏
S
SegmentFault 最新的问题
A
About on SuperTechFans
Engineering at Meta
Engineering at Meta
宝玉的分享
宝玉的分享
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
博客园 - 叶小钗
WordPress大学
WordPress大学
N
Netflix TechBlog - Medium
MyScale Blog
MyScale Blog
Stack Overflow Blog
Stack Overflow Blog
Microsoft Azure Blog
Microsoft Azure Blog
博客园 - 聂微东
M
MIT News - Artificial intelligence
F
Fortinet All Blogs
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Blog — PlanetScale
Blog — PlanetScale
T
Tailwind CSS Blog
Recent Announcements
Recent Announcements
Jina AI
Jina AI
大猫的无限游戏
大猫的无限游戏
Apple Machine Learning Research
Apple Machine Learning Research
J
Java Code Geeks

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
Tian AI: I Built an AI Assistant That Runs 100% Offline o...
Jeffrey.Feil · 2026-05-27 · via DEV Community

Jeffrey.Feillp

Tian AI: I Built an AI Assistant That Runs 100% Offline on My Phone

I got tired of paying $20/month for ChatGPT, sending my private conversations to servers I don't control, and being useless without internet. So I built my own AI that runs entirely on my phone.

The Problem

Every mainstream AI has the same three problems:

  1. Your data leaves your device — Every query goes to someone else's server
  2. Subscription fees — $10-200/month, forever
  3. No offline mode — Useless when you have no signal

I wanted something that works like Jarvis from Iron Man — a private AI that lives on my device, knows my data, and works anywhere.

What I Built: Tian AI

Tian AI is an open-source, self-evolving AI system that runs completely offline on Android (via Termux), Linux, or any device that can run Python.

Core Specs

Feature Detail
LLM Engine Qwen2.5-1.5B via llama.cpp (runs on ARM/CPU)
Project Size 770+ Python files, 171K+ lines of code
Knowledge Base SQLite with millions of indexed concepts
Backend Flask REST API
Privacy Zero data leaves your device
Cost Free & open source
GitHub github.com/3969129510/tian-ai

Architecture

Tian AI is built around five specialized engines:

1. Thinker — Three-tier reasoning engine:

  • Fast Mode: Simple responses (~1-3s on mobile)
  • Chain-of-Thought: Step-by-step reasoning for complex problems
  • Deep Mode: Multi-perspective analysis with reflection and synthesis

2. Talker — Multi-turn conversation with short/long-term memory

3. Knowledge Retriever — Million-entry SQLite knowledge base with 0.04-0.1s lookup time

4. Agent Scheduler — Autonomous task planning, dependency resolution, and execution

5. Self-Evolution System — The AI analyzes its own code, suggests improvements, and patches itself

The Self-Evolution Feature

This is what makes Tian AI unique. Most AI systems are static — trained once, never changed. Tian AI has an XP/leveling system where:

  • Every interaction earns XP
  • Level-ups unlock new capabilities
  • The system uses Python AST parsing to analyze its own code
  • It generates patches, validates them, and applies them automatically
  • Version tracking: M1 → M1-E1 → M1-E2 → M2

Running on Phone (Real Test)

I run Tian AI on a Realme V70s (Android) via Termux:

# Start llama.cpp server
llama-server -m qwen-1.5b-q4.gguf --port 8080 -t 4 -c 2048

# Launch Tian AI
python run.py

Enter fullscreen mode Exit fullscreen mode

The 1.5B model runs smoothly on mobile hardware. Knowledge retrieval takes under 100ms. Full LLM reasoning takes 1-60s depending on complexity.

Agent System in Action

Tian AI's agent scheduler can autonomously:

  • Plan and execute multi-step tasks
  • Resolve task dependencies (topological sorting)
  • Check safety whitelists before executing commands
  • Self-evaluate after each task
  • Handle file operations, code analysis, and automation

Safety is built in: whitelisted directories, no dangerous commands (rm -rf, sudo), read-only by default.

Why Local AI Matters

The AI industry is obsessed with larger models and bigger clouds. But there's a quiet revolution happening on the edge:

  • Apple Intelligence runs on-device
  • Llama.cpp makes local inference practical
  • Qwen2.5 proves small models can be remarkably capable

Tian AI is part of this movement. It proves that a personal AI doesn't need cloud infrastructure. It doesn't need a subscription. It doesn't need your data.

Get Started

git clone https://github.com/3969129510/tian-ai
cd tian-ai
pip install -r requirements.txt
# Download Qwen2.5-1.5B GGUF model
python run.py

Enter fullscreen mode Exit fullscreen mode

Support the Project

Tian AI is completely free and open source. If you find it useful:

USDT (TRC-20): TNeUMpbwWFcv6v7tYHmkFkE7gC5eWzqbrs
BTC: bc1ph7qnaqkx4pkg4fmucvudlu3ydzgwnfmxy7dkv3nyl48wwa03kmnsvpc2xv

GitHub: github.com/3969129510/tian-ai


Tian AI — Your Private AI, Completely Offline.