
Small model. Serious agent.
Resident puts an AI agent on your iPhone, powered by models that run on the device. It can research a question, work with your files and take action in the apps you connect, using tools across several steps to carry out what you asked.
Tools, skills, memory and an agent harness engineered for small models. Open source.
Download on the App Store See Resident work Build from source
A 1.7B model, put to work.
Two chats LFM3 1.7B really had, as they look in the app. Nobody told it which pages to read or which file to change.
Research a question
Asked for the latest Swift release, it searched the web, read three pages and answered. Asked next how many days were left until New Year, it worked the sum out in code.
5 tool calls


Change code and open a pull request
Pointed at Resident’s own repository, it cloned 964 files, found the one line that sets a limit, changed it and opened pull request #5 on GitHub.
9 tool calls


What it can do
A real harness, not a chat app.
If you use Claude Code or Codex, the loop will be familiar: read, act, check the result, carry on. Resident runs that loop on a phone, and not only for code.
Works on your files
The tools a coding agent has: list, search, read, edit and write. They work on a folder you can see in the Files app, so you can put files in and take out what it wrote.
Ships pull requests
With GitHub connected it clones a repository, changes the code and opens a pull request for you to review. The branch and the commit are made for it.
Runs code
A JavaScript sandbox on the device, with no network and no access to your files. Arithmetic, dates and data are computed, not guessed.
Reads the web
Search and page reading run on the phone, with no account or key. A long page is ranked against the question, so only the passages that matter are read.
Loads skills
Saved instructions for one kind of job, loaded only when a request matches. Import a SKILL.md, or turn something it just did into a skill with one tap.
Remembers
A short list of lasting facts about you, used in later chats. You can read it, edit it or switch it off.
Knows your day
Reads your calendar and reminders, adds to them and checks reminders off, through iOS itself on the device.
Takes the shape you give it
An agent is a set of instructions and a switch for each tool. Start with Assistant or Coder, or write your own.
Works in the services you use.
GitHub, Linear, Notion, Atlassian, Sentry, Hugging Face and DeepWiki are in the list. Any other service that speaks the Model Context Protocol (MCP) is added by pasting its address.
You sign in on the service’s own page, as you would for any app. Resident never sees your password, keeps its access in the iPhone’s Keychain and renews it without asking again.

Put an agent on a schedule.
Ask Resident is an action in Shortcuts. Give it a message, an agent and a model, and it runs with the app closed and hands the reply to the next action as plain text.
So an agent can be a step in anything Shortcuts runs. Connect your tools, save a skill that pulls out what you care about, and have it run every morning: real agent work, done by a model on your phone.
A job that takes a while shows as a Live Activity, with a button to stop it.
Live Activity
The model runs on your phone. You control its connections.
Local inference does not send your conversation to a model provider. Web searches and connected services receive the information needed for the tools you enable.
Private
Every token is computed by the chip in your pocket. There is no account and no analytics, and Resident has no server for a conversation to go to. What you write goes out only when a tool sends it, and every tool has a switch.
No data center
It works offline, it costs nothing per message, and it keeps working whatever happens to somebody else’s API.
Wired into your device
Calendar, Reminders, the Files app and Shortcuts are within reach through iOS itself, with no service in between.
Why I built it
I wanted local AI I could put to work.
I build AI assistants for a living. When I started trying models on my phone, I wanted to see how far they could go.
The apps I tried kept getting in the way. Some offered little beyond conversation. Others exposed tools without doing enough to help a small model choose and use them.
So I built Resident: an app that brings together the tools, context management, memory and execution loop those models need to carry out useful tasks.
The work has been in the details: keeping tool definitions small, making failures recoverable, and getting each step to run efficiently on a phone. Resident is where I am putting that work into practice.
Small models need carefully designed tools.
A small model can reason well and still fall over on a real task. It drowns in a big set of tools, loses its place between steps, or writes a call nothing can parse. Each part of Resident’s harness answers a failure like that.
How this is checked. A public test suite runs any model through the same harness as the app. The services in it are simulated and its pull request cases use one small made-up repository, so it tests the model and the harness. On its last full run, LFM3 1.7B passed 382 of 398 cases.
The details, for those who want them
The prompt lists your connectors, a line each. The model picks a connector when a request needs it, and is then given the tools in it that fit what it asked for. A big MCP server costs one line until it is used.
Small models have seen list, search, read and edit endlessly. They have not seen GitHub’s API. So the model works on files with the tools it knows, and the branch, the commit and the pull request are the harness’s job.
A tool called by the wrong name is answered with the closest real ones, ready to call. A call with the wrong arguments comes back with the ones it needed, and a wrong file path with the right one. The model reads the correction and carries on. For models that write tool calls as JSON, a grammar on the decoder rules out a malformed call altogether.
The start of the prompt never changes, so the model’s cache of it stays good and each step reads only what is new. The instructions and tools that open every chat are read once and stored beside the model, so a new chat starts from that copy. For a large model that saves most of a minute. Tools opened in the middle of a chat are declared where the conversation stands, which leaves the cache as it was.
The eval harness compares every quantized build of a model with its full-precision weights, token by token. The 4-bit LFM3 picks the same next token 89.5% of the time and the 6-bit 97.3%, so the app offers the 6-bit wherever it fits.
Each piece is written up, with the file to read for it, in the harness notes.
Pushing the phone
A 27B model on a 12 GB iPhone.
iOS lets an app use about half of the phone’s memory. The weights of Bonsai 2 27B are 8.6 GB. Running it, and keeping it running past the first reply, meant changing the inference library itself.
Weights mapped, not loaded
The weights file is rearranged in place so every large tensor starts on a page boundary, then mapped read-only. The GPU reads the file’s own pages, which iOS does not charge to the app.
Pinned while it works
iOS takes mapped weights back whenever memory runs short, and the model has to read them from storage again before it can answer. Without a fix, the 27B’s second reply took over a minute to start. So the weights are pinned in memory while a reply is written, and released after it.
420 MB that never loads
In a ternary model every bias is its scale negated, so the biases hold nothing new. Custom Metal kernels compute those layers without them, and 420 MB of the 27B never has to be in memory.
On an iPhone Duo, Bonsai 2 27B ran at about 7 to 10 tokens a second on short replies and slower on long ones. LFM3 1.7B (6-bit) ran at about 65. Mapping is automatic for models too big to fit in memory. The changes are a fork of mlx-swift-lm, listed in the repository.
The newest small models, and any you bring.
Tested models are a tap away, and any MLX model on Hugging Face can be added by its link. Before anything downloads, Resident checks that it will run on your device.
LFM3
Small and quick, and the most dependable with tools in testing. The one to start with.
Bonsai 2
Large models trained to be small. The 9B fits where a 4B would, and all of them see images.
Qwen 3.5
Strong all-rounders that use tools well and read photos and screenshots.
Gemma 4
Natural writing and good vision in a small download.
Apple Intelligence
Nothing to download. Answers at once, on devices that have it.
Hugging Face
Anything in MLX
Paste a link. Resident checks that the model fits your device before it downloads.
Models run on Apple silicon with MLX. You can also point Resident at a server you run, such as Ollama or LM Studio.
Questions
No. The model in your pocket is far smaller than the ones behind those tools, and on a hard problem it shows. What is the same is the kind of work, which is reading files, changing them, calling tools and opening a pull request. A 1.7B model handles a small change that is clearly described, a 9B handles more, and when you want more than a phone can give you can point Resident at any OpenAI-compatible server.
Yes. Once a model is on your device, chatting needs no connection. Web search, page reading and connectors do, and only when the agent uses them.
Not to a model provider, and not to Resident, which has no server. A web search sends the search, reading a page sends its address, and a connected service receives what its tool is asked. Each of those has a switch in every agent.
iPhone and iPad with iOS 18 or later. Larger models need a recent device with more memory, and Resident tells you which ones fit before you download. The 27B needs 12 GB. The Shortcuts actions need iOS 27, and Apple Intelligence needs iOS 26 and a device that supports it.
LFM3 1.7B. It is a 1.3 GB download on a recent iPhone and under 1 GB on an older one, it is quick, and in testing it is the most dependable small model with tools. If your device has Apple Intelligence, you can start with that and download nothing.
From Shortcuts, yes. Apple Intelligence can run for as long as a task takes. On iOS 27, a model Resident runs itself also keeps working with the app closed, more slowly than on screen. Inside the app, a reply pauses when you leave and carries on when you come back.
Yes, under the Apache 2.0 license. The app, the harness, the changes to the inference library, the test suite and the results are all on GitHub.
Resident
A fully local AI agent for iPhone. Open source.
Download on the App Store Build from source