AGENT SKILL

cli-and-server

Operate speech-to-speech from the Python CLI, choosing serve, local, or talk safely and tuning server binding, audio, endpointing, live transcription, session capacity, and the command-level LLM proxy.

License 许可
Apache-2.0
最近更新
2026-09-03
Stars
★ 351
Forks
27

01 前言 Front Matter

name
cli-and-server
license
Apache 2.0
metadata
{ "disco-role": "operating" }
description
Operate speech-to-speech from the Python CLI, choosing serve, local, or talk safely and tuning server binding, audio, endpointing, live transcription, session capacity, and the command-level LLM proxy.
disable-model-invocation
true

02 资源文件 4

03 SKILL.md 正文

CLI and server operation

Use this sub-skill when the task is to start or connect to the Python package, choose a command profile, expose the Realtime server, or diagnose command-level capacity and endpointing behavior.

Route by intent

  • Build or expose a Realtime service: use speech-to-speech serve.
  • Connect the packaged microphone/speaker client to an existing service: use speech-to-speech talk --url <full-endpoint>.
  • Run the service and packaged audio client together on one machine: use speech-to-speech local; it is forced to loopback and accepts local audio flags, not a public host.
  • Choose STT, LLM, TTS implementations, optional extras, language/voice models, or direct-audio model compatibility: route to components-and-backends.
  • Debug Realtime events, WebSocket/WebRTC transport, tool calls, or protocol lifecycle: route to realtime-api.

Safe operating sequence

  1. Pick exactly one of serve, talk, or local; use the command-specific flags rather than mixing server and client options.
  2. Start with the default profile unless a local LLM, a provider base URL, or a platform preset is intentional. Read CLI reference for the profile commands and invalid combinations.
  3. Keep serve on 127.0.0.1 unless a trusted network or an authenticated gateway is already in place. Read server runtime before using --host 0.0.0.0 or --enable_llm_proxy.
  4. For choppy or premature turns, tune VAD and Smart Turn together rather than changing the LLM first. For capacity errors, size --num_pipelines to the number of concurrent sessions and watch for session_limit_reached.
  5. Use the bundled safe checker for parser/default smoke checks: scripts/check_cli_profiles.py. It does not download models or start a server.

Non-negotiable command rules

  • talk owns the full Realtime URL and audio-client options; it does not accept server host/port, backend selectors, or pipeline flags.
  • serve owns host/port and pipeline flags; it does not accept talk's --url or local's --local_audio_* flags.
  • local owns the loopback port and --local_audio_* flags; it rejects --host and always connects to ws://127.0.0.1:<port>/v1/realtime internally.
  • The old top-level --mode realtime and --mode local are temporary aliases with a deprecation warning. Other old mode values are rejected; migrate to the three-command family.

Detailed flags, profiles, security notes, endpointing behavior, and failure handling are bundled in:

04 同仓库更多 Skills

VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-triton-opt

Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-solve

END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-skill

PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-pattern-fusion

Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-orchestrate

Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-feedback

Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).

★ 351