Dictating prompts to AI coding tools

Talk about what the code should do, and let the AI write the syntax. Describe the goal, the files and the constraints out loud, then read the prompt before you press Enter.

A playbook for developers on Mac · 25 November 2026

A developer at night speaks into her iPhone in front of two monitors with a blurred code editor.

Why talk

Why dictate prompts when you code?

Coding prompts need context: what broke, what you tried, which files matter, and what you don’t want changed. That is a lot to type, so typed prompts stay short and the AI guesses.

Saying it out loud takes seconds. It works like explaining a bug to a coworker: you often spot the answer halfway through. See how much time talking saves →

Rules

How do I dictate a good coding prompt?

  • Describe, don’t spell. Say “add a retry with a short back-off around the upload call”, not the code itself.
  • Name files plainly. Say “the checkout service file”. The AI can find it, and you avoid spelling every dot and slash.
  • Say what must not change. “Don’t touch the public API.” This is the part people skip when typing.
  • Ask for a plan first on big changes: “Tell me your plan before you edit anything.”
  • Read before Enter. Check names, numbers and file paths before you send.

Prompts to say

What do good spoken coding prompts sound like?

Read these out loud and swap in your own details. Each one gives the goal, the context and the limits.

Fix a bug

“The login form shows a blank screen after a wrong password. It started after yesterday’s change to the auth hook. Find the cause, explain it in two sentences, then fix it without changing the form’s layout.”

Refactor

“The settings screen file is too long. Split it into smaller views, keep the behaviour exactly the same, and tell me your plan before you edit anything.”

Review

“Review this change like a senior engineer. List real bugs first, then risky edge cases, then small style notes. Skip anything that’s just preference.”

Write tests

“Write tests for the price calculator. Cover the free trial, the first-100 founder price, and a currency with no decimals. Use the same test style as the other files.”

Explain

“Explain how the sync queue works, as if I’m new to this code. Start with the big picture, then walk through one message from start to end.”

Commit message

“Write a commit message for these changes. One short subject line, then two or three lines on why, not what.”

Want more? Spoken prompt templates for everyday work →

Terminal

Can I dictate into the terminal?

Yes. Dictation types wherever your cursor is, including a terminal prompt or an AI agent running in the terminal.

Be careful with Enter. In a terminal, Enter runs what you typed. Dictate the prompt, read it, then press Enter yourself.

With Attiva

How does Attiva fit a coding setup?

  • Review first. Your words appear on your iPhone as you talk, so you check the prompt before it reaches your editor.
  • Hands off the keyboard. Scroll long answers and diffs with the iPhone trackpad and scroll wheel, then tap Enter.
  • Quiet. Hold the iPhone close and talk softly, so your team isn’t listening to your bug reports.

FAQ

More questions about dictating code prompts

Usually not. Describe what the code should do and let the AI write it. Spoken symbols are slow and easy to get wrong.

Any tool with a text box: editor chat panels, browser chats and terminal agents. Apple Dictation and Attiva both type where your cursor is.

Apple Dictation understands words like “forward slash”, “underscore” and “open parenthesis”. See Mac dictation commands for the full list.

Try Attiva free for 7 days.

Talk your prompts into your iPhone. Your words appear in your editor.