Skip to content

Instantly share code, notes, and snippets.

@Yosorable
Yosorable / code-agent.py
Last active May 22, 2026 15:58
Local code agent running fully on-device on iPhone — writes, runs & previews code offline (Pythona iOS Python IDE)
# Local Code Agent — running fully on-device in Pythona (iOS Python 3 IDE)
# App Store: https://apps.apple.com/us/app/pythona-python-3-ide/id6760310359
#
# A minimal coding agent powered by Apple MLX + mlx-lm, running entirely
# on your iPhone/iPad. The model writes files, runs Python in-process, and
# previews HTML in a real WKWebView — fully offline after the first setup.
#
# Tools the agent can call:
# <write path="..."> write a file to ./workspace
# <run>file.py</run> execute a Python file in-process, capture stdout/stderr