ai agentic_os claude_code anthropic_haiku faster_whisper kokoro_tts skill_architecture automation obsidian graphrag lightrag headless_execution

Building a Multi-Modal Agentic OS: Orchestrating Headless Claude Code, Faster Whisper, and Kokoro via Deterministic Skill Architecture

5 min read

Building a Multi-Modal Agentic OS: Orchestrating Headless Claude Code, Faster Whisper, and Kokoro via Deterministic Skill Architecture

In the evolving landscape of AI development, the gap between raw terminal-based execution and usable, scalable automation remains wide. While tools like Claude Code provide unparalleled power for developers within a CLI environment, they present a significant barrier to entry for non-technical stakeholders or team members who require the utility of agentic workflows without the overhead of managing complex terminal commands.

This post explores the architecture of "Jarvis," an Agentic Operating System (OS) designed as a sophisticated orchestration layer sitting atop Claude Code. Rather than mere "productivity theater," this system implements a robust, multi-modal pipeline that integrates local transcription, probabilistic routing, headless execution, and localized text-to-speech (TTS).

The Architecture of Orchestration

The core philosophy behind the Jarvis Agentic OS is the transformation of manual, repetitive workflows into a structured Skill Architecture. This architecture is built on a foundation of "skills"—modular, automated processes that can be triggered via a web-based UI. By decoupling the user interface from the execution engine, we create a system that is model-agnostic and highly customizable.

1. The Input Pipeline: Localized Speech-to-Text

To achieve low-latency, high-fidelity interaction, Jarvis utilizes Faster Whisper for local audio transcription. Unlike cloud-based solutions like ElevenLabs or OpenAI’s Whisper API, running Faster Whisper locally ensures that the initial stage of the pipeline is both cost-effective and privacy-centric. This allows for a "snappy" user experience where voice commands are converted into text transcripts almost instantaneously, providing the foundation for the subsequent routing logic.

2. The Routing Engine: A Three-Tiered Decision Matrix

Once the transcript is generated, the system must determine the intent of the user. To optimize for both cost and latency, Jarvis employs a tiered approach to request routing:

  • Tier 1: Deterministic Regex (Regular Expressions): For high-frequency, predictable commands (e.g., "Give me the rundown"), the system uses standard regex pattern matching. This is purely deterministic code; it requires no LLM inference, incurs zero cost, and operates at near-zero latency.
  • Tier 2: Probabilistic Routing via Anthropic Haiku: When a command does not match a pre-defined regex pattern, the transcript is routed to Anthropic Haiku. We utilize Haiku specifically because of its superior price-to-performance ratio for classification tasks. The goal here isn's complex reasoning, but rather "intent routing"—determining which specific skill or automation needs to be invoked.
  • Tier 3: Local LLM Fallback: For maximum privacy or offline capability, the system can route queries to a local Large Language Model (LLM) to perform the same classification task previously handled by Haiku.

3. The Execution Layer: Headless Claude Code

The true "heavy lifting" occurs in the execution layer. If the routing engine identifies that a specific skill is required—and if that skill does not already exist as a cached report within the Obsidian Vault—the system spawns a headless instance of Claude Code.

By utilizing the -p flag, we can run Claude Code in a non-interactive, background process. This allows the agent to execute complex tasks—such as generating a "Morning Report" or performing an "Inbox Triage"—without manual terminal intervention.

A Note on Token Economics: When running headless Claude Code via API, it is critical to manage your usage of the $200 monthly credit pool provided by Anthropic. For high-complexity tasks involving deep reasoning, models like Claude 3 Opus are ideal; however, for most routine skill executions, Claude 3 Sonnet provides a more sustainable balance of intelligence and cost-efficiency.

4. The Output Pipeline: Localized TTS with Kokoro

Once the headless execution is complete and the new data (e.g., an updated Markdown report) is written to the Obsidian Vault, the system must communicate the results back to the user. Jarvis utilizes Kokoro, a local, open-source TTS model.

Kokoro acts as a localized alternative to ElevenLabs, transforming the text summary generated by Claude Code into natural-sounding speech. This completes the loop: Voice Input $\rightarrow$ Transcription $\rightarrow$ Routing $\rightarrow$ Execution $\rightarrow$ Summarization $\rightarrow$ Speech Output.

Codifying Workflows: The Skill Architecture

The utility of an Agentic OS is limited only by the depth of its skill library. A "skill" is essentially a codified workflow. To build a high-value system, one must audit their daily operations and decompose them into discrete, programmable steps.

For example, a Content Research Skill might involve:

  1. Scraping specific YouTube channels via a custom pipeline.
  2. Feeding transcripts into NotebookLM for synthesis.
  3. Summarizing the findings into an Obsidian-compatible Markdown format.

Advanced implementations even integrate GraphRAG using frameworks like LightRag. By turning complex queries against a massive, unstructured knowledge base into a single "skill," we move away from the unpredictability of general-purpose prompting and toward the reliability of deterministic automation.

Conclusion: The Future of Agentic Interfaces

The goal of this architecture is to provide 80–90% of the power of Claude Code through a simplified, button-based interface. By wrapping complex agentic logic in a web-based UI with visual metrics (such as subscriber counts or token usage trackers), we democratize access to AI development for non-technical team members and clients.

As we move toward more sophisticated multi-modal models, the ability to orchestrate local tools (Whisper, Kokoro) with powerful cloud models (Claude 3.5 Sonnet/Opus) will define the next generation of personalized Agentic Operating Systems.