PocketBot: iOS app uses Claude to generate deterministic JavaScript automations from natural language

PocketBot is an iOS mobile automation app that uses Claude (via AWS Bedrock) to turn natural language requests into deterministic JavaScript automations. Users describe what they want in plain language, and Claude writes a self-contained JS script that runs on a schedule in a sandboxed runtime.
Architecture and Claude Usage
The system uses a two-tier approach with Claude models:
- Tier 1 (Claude Haiku): Checks if there's already a matching automation template for the user's request. This is fast and cheap.
- Tier 2 (Claude Opus via Claude Code): When a new automation is needed, Opus runs an agentic loop that writes the JavaScript, tests it in a QuickJS sandbox, resolves the user's actual accounts (Slack channels, Gmail, etc.), and saves the final script. Claude Code essentially functions as the backend developer, writing, testing, and deploying automations autonomously.
Key Concepts
- Pocks: Personal automations that run with your data and are stored on your device
- Mocks: Community-contributed templates for general actions (like "send an email" with no sensitive data). As more people contribute mocks, Tier 2 gets called less frequently, making the system more deterministic over time.
Benefits
- Deterministic execution: No hallucinations, same input produces same output every time
- Cost-effective: JavaScript execution is cheaper than LLM inference on every trigger
- Extensive integrations: 20 integrations at launch including Google suite, Slack, WhatsApp, TikTok, Twitter, Notion, and Todoist
Privacy and Security
- No account system: identity is a random device UUID
- OAuth for all integrations: passwords are never seen by the service
- Mock data used for testing, real user data is PII-sanitized before any LLM sees it
- AWS Bedrock ensures inputs/outputs aren't used to train models
The app is currently available via iOS TestFlight with 800+ testers, open to anyone without an invite needed. An App Store launch is coming soon.
📖 Read the full source: r/ClaudeAI
👀 See Also

AutoBe: How Weak Local LLMs Fixed an AI Backend Generator's Architecture
AutoBe is an open-source AI agent that generates complete backend apps using TypeScript, NestJS, and Prisma. The team discovered their initial 100% compilation success produced unmaintainable code, then rebuilt with modular generation—crashing success to 40%—and used weak local LLMs like qwen3-30b-a3b-thinking to debug schema ambiguities.

Antigravity 2.0 Tops OpenSCAD Architectural 3D Benchmark – ModelRift Tests 6 LLMs on the Pantheon
ModelRift benchmarked 6 LLMs on building the Pantheon in OpenSCAD. Antigravity scored 4.5/5 in architectural quality, beating baseline Codex 5.5. Cursor 3.5 was fastest but weakest.

LetMeWatch: Python Plugin Adds Video Analysis to Claude via FFmpeg Scene Detection
A developer built a ~200-line Python plugin called LetMeWatch that enables Claude to analyze videos by using FFmpeg for scene detection, extracting only frames where visuals change, timestamping them, and feeding batches to Claude's multimodal vision.
UI and Server for Anthropic's Natural Language Autoencoders on llama.cpp
A custom llama.cpp server and Mikupad UI for Anthropic's open-weight Natural Language Autoencoders, supporting activation extraction, explanation, reconstruction, and steering via explanation editing.