Looking for the best iOS terminal app for agentic code
I run an on-device AI agent on my iPhone (it has its own local Linux shell and can fire off system URL schemes, mount folders via the iOS File Provider, and trigger Shortcuts). It's great at writing/testing scripts non-interactively, but it hits a wall on the things iOS terminals do well: real interactive sessions, persistent connections, and remote file editing.
Here's my wishlist for the app that would be perfect to drive from an AI agent. Curious what the devs and this community think is realistic:
- A real URL-scheme / x-callback-url API. Something like app://run?host=<saved-host>&cmd=<urlencoded>&x-success=… that opens a saved host (SSH or Mosh), runs a command, and returns output via x-callback. Bonus: a headless/background variant that doesn't require bringing the app to the foreground.
- A File Provider extension for remote hosts. Expose SSH/SFTP servers as storage in the iOS Files app (like "La Terminal" does), so an agent can read and write remote files directly with normal filesystem calls — not just import/export one file at a time.
- Shortcuts actions (App Intents). Native "Run Command", "Connect to Host", "Upload/Download File", "Get Last Output" actions. This is the cleanest, most future-proof automation surface on iOS.
- Persistent, resumable sessions addressable by ID. Start a session, detach, and later send more commands to that same session by an ID (tmux-style but exposed to automation). Mosh already gives resilience — expose it to scripts.
- Structured output, not just a screen scrape. A way to get a command's stdout/stderr/exit-code back cleanly (e.g. via OSC 133 shell-integration markers or a JSON callback), so an agent isn't parsing ANSI-colored scrollback.
- Non-interactive auth that stays secure. Let automation reference a saved host + key by name without ever exposing the private key or 2FA secret to the caller. Keys stay in the app's keychain; the agent just says "use host X".