[FEATURE] Tell the model when a prompt came from voice dictation

Open
#110,618 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
typescript
Domain
cli

Research direction

The issue names the desktop app mic button, /voice, the VS Code extension, and existing <pasted_content> wrapping as relevant entry points. Start by tracing how dictated and pasted text enters the model request across those paths. Done means dictated portions are marked for the model, including mixed typed and dictated messages; the proposed default-on setting is also part of the request.

Written by the indexing model from the issue text.

Description

area:model area:tui enhancement
Preflight Checklist
  • I have searched existing requests and this feature hasn't been requested yet
  • This is a single feature request (not multiple features)
Problem Statement

When I dictate a prompt (desktop app mic button, /voice, VS Code extension), the model receives it as ordinary typed text. Transcription errors (misheard words, wrong homophones, mangled identifiers, odd punctuation) then look like what I meant. Claude either acts on the wrong word or treats a garbled phrase as a real requirement, and it has no signal that it should read loosely.

Proposed Solution

Mark dictated input in what the model receives, the same way pasted text is already wrapped in <pasted_content>. For example, wrap it in <dictated_content> or add a short system note saying "this message was dictated; expect speech-to-text errors and infer the intended words". Mark only the dictated parts when a message mixes typing and dictation. Ideally make it a setting, on by default.

Priority

Medium

Feature Category

Interactive mode (TUI)

Use Case Example

I say "check the cache service". The transcript reads "check the cash service". Today Claude goes looking for a "cash" service. If it knew the text was dictated, it would recognise "cash" as a likely mishearing of "cache", which exists in the repo, and go straight there or ask.

Additional Context

Related but different: #109380 (cleaning up spoken self-corrections) fixes the text; this request tells the model where the text came from. The existing <pasted_content> wrapping is the precedent for marking where input came from.

Dominant language
TypeScript
Stars
156k
Forks
25k
Avg merge
16h 19m
Merged PRs (30d)
5

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

  • No Dockerfile or Docker Compose file
  • No pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from anthropics/claude-code

All issues in anthropics/claude-code

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.