Use Cases

Vibe Coding on macOS: Voice-Driven Development with Claude Code

The new TokKong for macOS lets you dictate coding instructions, format them with custom prompts, and paste directly into Claude Code - all without typing a single character.

T
TokKong Team
9 min read
vibe codingmacOSClaude Codedeveloper toolsclipboard synccustom promptsAI coding

The Voice-to-AI-Coding Pipeline

Modern developers are increasingly working with AI coding assistants like Claude Code, Cursor, and GitHub Copilot. But there's a bottleneck: you still have to type your prompts, instructions, and code descriptions.

What if you could speak naturally and have your words transformed into well-structured prompts ready to paste into Claude Code?

That's exactly what TokKong for macOS enables.

The Real Workflow

Here's how developers are actually using TokKong for vibe coding:

  1. Dictate your coding intent naturally using voice
  2. Transcribe with Whisper AI (100% local, private)
  3. Transform using custom prompts you've created
  4. Clipboard sync automatically copies the result
  5. Paste directly into Claude Code and let AI generate your code

The key insight: TokKong isn't generating the code - it's preparing your voice input to communicate effectively with Claude Code.

Setting Up Custom Prompts for Claude Code

The power of this workflow lies in custom prompts. You create templates that transform raw transcription into structured instructions that Claude Code understands perfectly.

Example: Code Request Formatter

Custom Prompt Name: "Claude Code Request"

Prompt Template:

Format the following spoken request into a clear coding instruction for Claude Code. Structure it with:
1. What to build (be specific)
2. Language/framework requirements
3. Any constraints mentioned
4. Expected behavior

Input: {transcription}

Output a clean, well-formatted prompt ready to paste into Claude Code.

What you say: "I need a React hook that fetches user data from an API endpoint. It should handle loading states, errors, and cache the results. Use TypeScript and make sure it's reusable across different endpoints."

What gets copied to clipboard:

Create a custom React hook with the following requirements:

**What to build**: A reusable data fetching hook

**Language/Framework**: React with TypeScript

**Requirements**:
- Fetch user data from an API endpoint
- Handle loading state
- Handle error state
- Cache results to prevent unnecessary refetches
- Make it generic/reusable for different API endpoints

**Expected behavior**:
- Return loading, error, and data states
- Automatically refetch when endpoint changes
- Provide cached data while revalidating

Now paste into Claude Code, and it generates exactly what you need.

More Custom Prompt Examples

Bug Report Formatter

Prompt Name: "Bug Description"

Template:

Convert this spoken bug description into a structured bug report for Claude Code to help debug:

Spoken description: {transcription}

Format as:
- What's happening (observed behavior)
- What should happen (expected behavior)
- Steps or context mentioned
- Any error messages or symptoms described

Ask Claude Code to help identify and fix the issue.

What you say: "The login form is not working. When I click submit nothing happens. The console shows some kind of undefined error. It was working yesterday before I changed the auth context."

What gets copied:

I need help debugging a login form issue:

**Observed behavior**: Login form submit button does nothing when clicked

**Expected behavior**: Form should submit and process login

**Context**:
- Console shows an undefined error
- Issue started after modifying the auth context
- Was working previously

**Request**: Help me identify what might be causing the undefined error related to the auth context changes, and suggest a fix.

Refactoring Request

Prompt Name: "Refactor Request"

Template:

Turn this spoken refactoring idea into clear instructions for Claude Code:

Spoken: {transcription}

Structure the request with:
- Current state (what exists)
- Desired outcome (what it should become)
- Specific improvements mentioned
- Any constraints (don't break existing functionality, etc.)

What you say: "I have this really long function that does user validation. It's like 200 lines and handles email checking, password strength, username rules, and age verification all in one place. I want to break it into smaller functions but keep the same API so I don't have to change all the places that call it."

What gets copied:

I need help refactoring a large validation function:

**Current state**:
- Single ~200 line function handling user validation
- Combines email checking, password strength, username rules, and age verification

**Desired outcome**:
- Break into smaller, focused functions
- Each validation type in its own function

**Constraint**:
- Maintain the same external API
- Existing callers should not need modification

Please suggest a refactoring approach that improves maintainability while preserving the public interface.

Feature Planning

Prompt Name: "Feature Spec"

Template:

Convert this spoken feature idea into a specification for Claude Code to help implement:

Spoken idea: {transcription}

Create a structured spec including:
- Feature summary (one sentence)
- User story format (As a... I want... So that...)
- Key requirements extracted from description
- Technical considerations mentioned
- Questions Claude Code should address

The Complete Setup Guide

Step 1: Install TokKong for macOS

Download from the Mac App Store and complete initial setup.

Step 2: Configure Global Hotkey

Set a system-wide hotkey to trigger recording without leaving your current app:

HotkeyWhy It Works
Option + SpaceEasy reach, minimal conflicts
Cmd + Shift + D"D" for dictate
Hyper + VIf you use Hyper key

Step 3: Create Your Custom Prompts

Go to Settings > Custom Prompts and create prompts for your common scenarios:

  1. Code Request - For asking Claude Code to write new code
  2. Bug Report - For describing issues to debug
  3. Refactor - For improvement requests
  4. Explain - For asking Claude Code to explain existing code
  5. Test Writer - For generating test cases

Step 4: Enable Clipboard Sync

Ensure "Auto-copy to clipboard" is enabled. This is what makes the workflow seamless.

Step 5: Set Your Default Prompt

Choose which custom prompt to use by default, or quickly switch between them.

Real Developer Workflows

Morning Coding Session

8:00 AM - Start working on user authentication feature

[Press hotkey, speak]:
"I need to implement OAuth login with Google. The app is Next.js 14
using the app router. I want to store the session in a JWT cookie
and have a protected route wrapper component."

[Paste into Claude Code]
[Claude Code generates the implementation]
[Review, iterate with voice follow-ups]

Debugging Session

[Press hotkey, speak]:
"I'm getting a hydration mismatch error in my React app. It only
happens on the dashboard page and only in production. The component
uses useEffect to fetch data and displays a loading spinner.
Can you help me figure out what's causing it?"

[Paste into Claude Code]
[Get debugging suggestions and fixes]

Code Review Prep

[Press hotkey, speak]:
"Review this function for potential issues. It's handling user
file uploads, checking file size and type, then uploading to S3.
I want to make sure there are no security issues and the error
handling is solid."

[Paste into Claude Code along with the code]
[Get comprehensive review]

Why Voice + Claude Code?

Speed

Speaking is 3-4x faster than typing for most people. A complex prompt that takes 2 minutes to type can be spoken in 30 seconds.

Better Prompts

When you speak naturally, you often include more context and detail than when typing. This leads to better responses from Claude Code.

Reduced Fatigue

Long coding sessions mean lots of typing. Offloading prompt creation to voice reduces strain and keeps you fresher for actual coding decisions.

Accessibility

Developers with RSI, carpal tunnel, or other conditions can maintain full productivity.

Privacy Matters

Your coding prompts often contain:

  • Proprietary business logic
  • Client project details
  • Security-sensitive information
  • Competitive features

With TokKong, your voice processing happens 100% locally:

  • Audio never leaves your Mac
  • Transcription uses on-device Whisper
  • Custom prompts process locally
  • Only you decide what to paste into Claude Code

Compare this to voice typing services that send everything to cloud servers.

Advanced: Prompt Chaining

For complex tasks, create a series of prompts:

Prompt 1: "Feature Breakdown" Converts spoken feature into implementation steps

Prompt 2: "Step to Code" Formats individual steps as Claude Code requests

Workflow:

  1. Dictate the full feature idea
  2. Process with "Feature Breakdown"
  3. For each step, dictate details
  4. Process with "Step to Code"
  5. Feed each to Claude Code sequentially

Tips for Effective Voice Prompting

Be Conversational but Complete

Good: "I need a function that validates email addresses. It should check for the at symbol, a valid domain format, and return a boolean. If invalid, I'd also like to know why it failed."

Too vague: "Make an email validator"

Mention Your Stack

Good: "In my Next.js app using Prisma and PostgreSQL..."

This context helps Claude Code give you relevant solutions.

Describe the Why

Good: "I want to cache this API response because the data rarely changes and we're hitting rate limits"

Claude Code can suggest better approaches when it understands your motivation.

Use Follow-ups

After Claude Code responds, dictate follow-ups:

"That looks good but can you also add error handling for network failures and a retry mechanism with exponential backoff"

Getting Started Today

  1. Download TokKong for macOS
  2. Create 2-3 custom prompts for your most common Claude Code interactions
  3. Set your global hotkey
  4. Try it for one coding session

Most developers find that after one session, voice-driven prompting becomes natural. You'll wonder how you typed all those prompts before.

Summary

The vibe coding workflow with TokKong and Claude Code:

StepActionTool
1Speak your coding intentTokKong (voice)
2Transcribe locallyTokKong (Whisper)
3Format with custom promptTokKong (AI)
4Auto-copy to clipboardTokKong
5Paste and generateClaude Code

Your voice becomes the input. Claude Code becomes the output. TokKong is the bridge that makes it seamless, private, and fast.

Start talking to your code today.

TokKong

Try TokKong Free

Experience offline transcription and AI-powered text processing on your iPhone, iPad, or Mac.

Download for iOS

Ready to Try TokKong?

Download free and experience offline transcription with AI-powered text enhancement.

Download Free on App Store