PadCodedocs

The AI Agent

Agent mode puts the AI Agent's chat beside the canvas. Describe an app or a change and it builds it, in Manual, Auto or Plan mode.

The AI Agent builds your app with you. Describe an app, or a change to the one you have open, and it makes it on the canvas: screens, buttons, lists, the values they use and what happens when someone taps. It checks its work the way the Builder does, so what it makes runs in Preview.

The AI Agent is part of PadCode Pro, with 3,000 AI credits a month. On Free, Agent Mode and Build with AI say so and offer the upgrade. See Plans and billing.

To start a new app with it, tap Build with AI on Home: PadCode makes a new app and opens it in Agent mode, ready for you to describe it.

Agent mode: the chat on the left, the canvas beside it.

#Agent mode

In the Builder, tap ✦ (Agent Mode) in the toolbar, or press ⌘I. The Library and the Inspector make way for the agent's chat, on the left, and the canvas takes the rest of the screen. If Flow is on, the canvas comes back for Agent mode.

  • The ✦ button is filled while Agent mode is on. Tap it again, tap the chat's close button, or press ⌘I to go back to the panels.
  • A panel's shortcut, like ⌘1 for Components or ⌥⌘1 for the Style tab, also leaves Agent mode and shows that panel.
  • Drag the chat's right edge to make it wider, up to 600 points. Double-tap the edge for its usual width, which is also its narrowest. PadCode remembers the width.
  • If your app has more than one screen, a screen menu in the toolbar picks the one the canvas shows, since the Screens list is in the hidden left panel.
  • With a hardware keyboard attached, the cursor is in the message box as soon as Agent mode opens.
  • In a narrow window, the chat covers the canvas: close it to see your app. When the toolbar runs out of room, Agent Mode and the screen menu are in its ⋯ menu.

#Asking

Type what you want and tap the arrow or press Return, or tap a suggestion to fill the box in. Be as specific as you like: "a habit tracker with a streak and a reminder at 9" works better than "a habit app".

The first time, PadCode asks Send this to the AI model? before it sends anything (Formula from words asks the same): your message, the chat and the app you're building go to PadCode's server, and from there to the AI model, which another company runs. Allow sends it, and PadCode doesn't ask again. Not Now sends nothing and leaves your message in the box; it stays there while PadCode asks, even if you turn your iPad. With your own model, the agent's requests go straight to its provider, and PadCode doesn't ask. Formula from words always uses PadCode's model, so it asks even then.

While the agent works, you watch it build: each change goes on the canvas as it's made, and the canvas goes to the screen it's working on. A pill at the top of the canvas, and a card in the chat, say what it's doing as it does it:

  • what it's doing, as it does it: "Writing the “Home” screen", "Changing “Count”", or "Thinking" while it works out what to do;
  • how far it's got: "Working it out · 300 words so far";
  • how long it's been at it, counting up.

Stop, on the pill or the card, ends it there: what it has already made stays, and Undo takes it back.

The keyboard goes away when you send, so you can see the canvas. You can type your next message while it works, and send it when it's done; what you've typed stays when you turn your iPad. You can't change the app yourself until it's done or stopped, and Undo waits too. You can go to another tab, or another app, while it works: see When you leave PadCode.

What it sends back can include:

  • A question, when what you asked could go two ways. Tap an answer and it carries on.
  • The changes, as a list: + for something new, ~ for a change, − for something removed.
  • A screen it built, drawn small. Show on canvas takes the canvas there.
  • Explain, under its changes, asks it how what it built works, in plain words.
  • If something goes wrong (no connection, or the AI is busy), it says so, with Try Again.

The agent knows the app you have open, what you've said in this chat, the screen on the canvas and what you've selected, so "make this blue" works. It also knows the names of your app's images, fonts, files and secrets (never a secret's value), and your My Components, so you can ask it to use one by name. It can't add pictures from your Photos or files yet: add them in Assets and ask it to use them by name.

#Modes

The button under the message box says how freely the agent changes your app, like Claude Code's modes. Press ⇧⇥ to go to the next one.

ModeWhat the agent does
ManualStops before each change and shows it on the canvas, so you check every one before it's made.
AutoMakes each change on the canvas as it goes, without stopping. Undo (⌘Z) takes the whole run back in one go.
PlanWrites a plan, a list of steps, and changes nothing until you approve it.

Tap ⓘ beside the mode for what each one does and when to pick it. PadCode remembers the mode you pick.

#Reviewing each change

In Manual mode, each change waits on the canvas. The screen it changes shows twice, side by side: Before, as it was, and After, with the change made and what it changed selected. A screen that's new shows as A new screen under Before. A bar under them lists what the change does, and for a view, what about it changed ("“Count” · font, color"), so a change you can't see, like what a button does, still says what it is.

Changes to the app's data (its values, colors and actions) have nothing to see on their own, so they wait and come with the next change that shows them: "Keep these 3 changes?" over the new screen that uses them. Undo it undoes them together. If nothing comes after them, they're shown on their own at the end, saying Nothing on screen changes yet: it sets up the app's data.

  • Keep makes the change, and the agent carries on to the next one.
  • Undo it doesn't make it. Say why if you like ("make it green, not blue"): the agent does it your way, or carries on without it.
  • Keep all from here keeps this change and makes the rest without stopping, as Auto does.

The card in the chat has the same choices, with Keep all for Keep all from here. Stop throws away the change that's waiting.

Manual mode: a new screen waiting, Before beside After.

#Approving a plan

In Plan mode the agent looks at your app, may ask a question, and sends a plan: what it'll build, step by step. Nothing changes yet.

  • Build · Auto builds it straight away, and the mode switches to Auto.
  • Build · Review each builds it a change at a time, as Manual does, and the mode switches to Manual.
  • Revise starts your message with "Change the plan: ": say what to do differently and it sends a new plan.

As it builds, each step gets a tick, and the plan says Built when it's done.

A plan in Plan mode, waiting to be approved.

#When you leave PadCode

The agent keeps going when you go to another tab, switch to another app or lock your iPad. Come back to the app, in the Builder, and it's still there, building.

#The agent button

Anywhere else in PadCode, a round AI Agent button sits in the bottom corner while the agent builds an app you're not looking at. It spins while it works, turns to a raised hand when a change is waiting for you, and shows a number when there's more than one. The agent can build several apps at once, each in its own chat.

Tap it for a small window with each app's run, as its chat shows it: what it's doing, for how long, and the changes so far, with Stop; a change waiting, with Keep, Undo it and Keep all; or, once it's done, how it ended. Open takes you to that app's Builder, in Agent mode, where you left it. A finished run stays in the window until you open the app or tap ✕.

The agent button's window on Home, with a change waiting.

While it works, its Live Activity is on the Lock Screen and in Notification Center: the app, the mode and model, what it's doing and for how long, a plan's progress, and Stop. When a change in Manual mode is waiting, it asks Keep this change?, lists the change, and has Undo it, Keep all and Keep: tap one and the agent carries on, without opening PadCode. Tap the Live Activity itself to open the app in Agent mode. When the run's over, it says how it ended for a while, then goes.

The Live Activity on the Lock Screen, with a change waiting.

iPadOS also shows its own progress for the run, and PadCode sends a notification when it's done, or when a change is waiting, while you're away; tap it to go back to the app.

The first time, PadCode asks to send notifications, and iPadOS asks whether PadCode may show Live Activities. If iPadOS needs the time back, or you cancel the run in its progress, the run stops as if you'd tapped Stop. Closing PadCode from the app switcher stops it too.

#History

Each app keeps its chats, even after PadCode closes. New Chat (the pencil at the top) starts a new one and keeps the last in History (the clock), newest first, with how many messages each has and when it last changed. Tap one to open it again. Touch and hold one, then tap Delete, to remove it. Tap History again to go back to the chat. Deleting an app deletes its chats.

History, listing an earlier chat.

#Model and usage

The model menu, beside the mode, picks who builds: one of PadCode's four, or one of your own models. PadCode remembers your choice. Each of PadCode's models has strength bars, like signal bars: four for the most capable, one for the lightest. In a narrow chat, the button shows only the bars. In the menu, each one says what it's best for and about how many AI credits a small app takes with it.

ModelStrengthBest forAI credits for a small app
Kimi K3.1 Pro4 barsWhole apps and tricky logic. The most capable, and its apps look the most finished, but it takes a few minutes.About 200
Qwen 3.7 Plus3 barsEveryday building and changes.About 45
DeepSeek V4.1 Flash2 barsQuick changes and small apps, in a minute or two.About 10
GLM 5.3 Flash1 barSmall tweaks, like a color or a label, in seconds. It isn't up to whole apps.About 1 a tweak

Your own models are listed under PadCode's in the same menu, with Add a Model… to add one on the AI Agent screen. With one picked, the agent asks it straight from your iPad, with your key: the same tools, the same checks and the same guide as PadCode's models, and your provider bills you, not PadCode. It needs a model that can use tools; Test connection checks that. How well it builds depends on the model: a strong one (Claude, GPT, Kimi) builds whole apps, a small one manages tweaks at best.

Usage, on the right, shows how many AI credits you have left. Tap it for the credits left, the credits this chat has used, the number of requests and how many changes the agent has made, with Top Up to buy more. Each request costs what the model charged for reading the chat and your app, and for its answer. With one of your own models picked, Usage counts this chat's tokens instead: your provider bills them, not PadCode.

#Out of AI credits

When your AI credits run out, the agent stops and a sheet says You're out of AI credits. Buy a pack there, See Plans (on Lifetime or in the trial), or Use Your Own Model to carry on with your own key. See When the AI Agent runs out.

#The AI Agent screen

AI Agent in the sidebar shows your plan's AI credits: how many are left, this month's allowance as a bar, the credits that never expire (carried over and from packs), and when the allowance starts again, with Top Up. On Free, it says what Pro adds, with See Plans. On Pro, Where they went shows the credits the agent used each day, as bars (tap a day for its number), and by model; Plan & Billing opens Plan & Billing.

The AI Agent screen: the AI credits left, this month's allowance, and where they went by day and by model.

#Your own models

Under Your own models, Add Model uses your own API key with Claude, OpenAI, DeepSeek, OpenRouter, Gemini, Mistral, Grok, Kimi, or any service with an OpenAI-style chat API:

  1. Pick the provider. PadCode fills in its address, and the model's name where the provider keeps one current.
  2. Give it a name, and a description if you like.
  3. Check the URL (it has to start with https://) and the Model, written as the provider writes it.
  4. Paste your API key.
  5. Tap Test connection. PadCode sends the model one short message and shows its reply and how long it took, or what went wrong: a key that wasn't accepted, an address or model that doesn't exist, or no credit left. Then it checks the model can use tools: Builds with the AI Agent means the Builder's agent can build with it.
  6. Tap Add Model.

Your key is kept in this iPad's Keychain and sent only to that address. Tap a model to change it (leave the key empty to keep the saved one); ⋯ → Delete removes it and its key. Your own models don't use AI credits: their providers bill you. Pick one in the Builder's AI Agent to build with it (Agent mode is part of Pro).

#See also