Repository navigation
Implement voice-driven Claude AI developer interface (VoiceParser, ClaudeAPI, TestingGuardrails, VSCodeIntegration) - #2
Merged
Conversation
…rdrails, VSCodeIntegration, tests, and CI fixes Co-authored-by: tathagata <68151+tathagata@users.noreply.github.com>
Co-authored-by: tathagata <68151+tathagata@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add voice-to-intent parsing module for Claude AI
Implement voice-driven Claude AI developer interface (VoiceParser, ClaudeAPI, TestingGuardrails, VSCodeIntegration)
Mar 1, 2026
tathagata
approved these changes
Mar 1, 2026
tathagata
marked this pull request as ready for review
March 1, 2026 15:14
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bootstraps a Mac-targeted voice interface for interacting with Claude AI to generate and validate code without manually writing or reading it. The repo had only a stub
VoiceParserclass, no tests, and a CI workflow that would fail on PRs.New modules
src/voice_parser.py— FullVoiceParserpipeline:listen()→transcribe()→sanitize()→speech_to_text(). UsesSpeechRecognition; handlesUnknownValueError,RequestError, missing library, and empty transcription gracefully.src/claude_api.py—ClaudeAPIwrapping Anthropic's SDK.generate_code(prompt)with up to 3 retries on transient failures;explain_code(code)returns a conversational algorithmic description.src/testing_guardrails.py—TestingGuardrailsruns pytest against generated code in a temp directory and returns conversational summaries: "Your code passed 3 of 5 tests. Failures may be related to edge cases… Would you like to refine?"src/vscode_integration.py—VSCodeIntegration.open_file()opens a file via thecodeCLI;display_code()logs code line-by-line for interactive inspection.Tests
21 tests across
tests/test_voice_parser.py,tests/test_claude_api.py,tests/test_testing_guardrails.py. All external I/O (microphone, Anthropic API) is mocked.Infrastructure
requirements.txt— addsSpeechRecognition,anthropicci.yml— addspull_requesttrigger, pins action versions (checkout@v3,setup-python@v4), explicit Python 3.11 setup, runspytest tests/ src/.gitignore— excludes__pycache__,.pytest_cache, build artifactsOriginal prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.