AgentVibes
CLAUDE.md155 starsChanged 2 months agoApache-2.0View on GitHub
Updated: 2026-07-06 (v5.12.x era) AgentVibes (agentvibes on npm) gives AI coding agents a spoken voice: Claude Code hooks + MCP server + interactive TUI, with Piper/Kokoro/ElevenLabs providers, background music, per-agent BMAD voices, a remote SSH receiver, and avatar rendering. Node ESM core with parallel bash and PowerShell runtimes and a Python MCP server. Everything under the repo's .claude/ (hooks, personalities, commands, config) is the npm package payload. Editing a hook here is a product change: it must pass tests, keep…
- Reads credentials
- Commits and pushes
In this repository49 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .codex/AGENTS.mdAGENTS.md
- docs/agents.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- AgentVibes GrokBot TTS setupSkill
- bmad-advanced-elicitationSkill
- bmad-agent-analystSkill
- bmad-agent-architectSkill
- bmad-agent-devSkill
- bmad-agent-pmSkill
- bmad-agent-qaSkill
- bmad-agent-smSkill
- bmad-agent-tech-writerSkill
- bmad-agent-ux-designerSkill
- bmad-brainstormingSkill
- bmad-check-implementation-readinessSkill
- bmad-code-reviewSkill
- bmad-correct-courseSkill
- bmad-create-architectureSkill
- bmad-create-epics-and-storiesSkill
- bmad-create-prdSkill
- bmad-create-storySkill
- bmad-create-ux-designSkill
- bmad-dev-storySkill
- bmad-distillatorSkill
- bmad-document-projectSkill
- bmad-domain-researchSkill
- bmad-editorial-review-proseSkill
- bmad-editorial-review-structureSkill
- bmad-edit-prdSkill
- bmad-generate-project-contextSkill
- bmad-helpSkill
- bmad-index-docsSkill
- bmad-install-agentvibesSkill
- bmad-market-researchSkill
- bmad-party-modeSkill
- bmad-prfaqSkill
- bmad-product-briefSkill
- bmad-qa-generate-e2e-testsSkill
- bmad-quick-devSkill
- bmad-retrospectiveSkill
- bmad-review-adversarial-generalSkill
- bmad-review-edge-case-hunterSkill
- bmad-shard-docSkill
- bmad-sprint-planningSkill
- bmad-sprint-statusSkill
- bmad-technical-researchSkill
- bmad-validate-prdSkill
- clawdbotSkill
The file
We split this CLAUDE.md into the rules it gives an agent
3 rules. About 0 are common, 0 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 38
All code touching user .claude/ or ~/.claude/ config must be non-destructive.
- Very specific: line 42
Never delete/overwrite user settings, voices, personalities, or audio-effects.cfg.
- Very specific: line 67
npm publishpacks the working tree, not the git tag: Run the pack-contents test (test/unit/npm-pack-contents.test.js) and never publish …
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AgentVibes — Development Guidelines
Updated: 2026-07-06 (v5.12.x era)
What this is
AgentVibes (agentvibes on npm) gives AI coding agents a spoken voice: Claude Code hooks + MCP server + interactive TUI, with Piper/Kokoro/ElevenLabs providers, background music, per-agent BMAD voices, a remote SSH receiver, and avatar rendering. Node ESM core with parallel bash and PowerShell runtimes and a Python MCP server.
Repo map
| Path | What it is |
src/installer.js + src/installer/ | npx installer (manifest-based, non-destructive) |
src/console/ | blessed TUI (tabs, modals, widgets) |
src/services/ | config-service, provider services, utterance-resolver.js (single source of truth for playback plans) |
.claude/hooks/ + .claude/hooks-windows/ | Shipped product code — bash/PS1 runtime (play-tts.sh, audio-processor.sh, bmad-speak.sh, …) installed into user projects |
mcp-server/ | Python MCP server (server.py, pytest suite) |
templates/ | Remote receiver scripts (agentvibes-receiver.sh/.ps1) |
bin/ | CLI entry points (agentvibes.js, resolve-utterance.js, mcp-server.js) |
test/unit/ | node:test .test.js + bats .bats suites |
docs/implementation-artifacts/ | BMAD story files + sprint-status.yaml |
docs/architecture/ | Provider/system architecture docs |
Everything under the repo's .claude/ (hooks, personalities, commands, config) is the npm package payload. Editing a hook here is a product change: it must pass tests, keep bash/PowerShell parity, and reach real installs via the installer (manifestSafeCopy) — not just the dev checkout. The remote receiver additionally needs an in-place redeploy to ~/.agentvibes/ + watcher restart.
Architecture invariants (hard-won — do not regress)
- The utterance resolver is the single source of truth.
src/services/utterance-resolver.jsreads all config once and emits a flat plan (voice, engine, transport, effects, music, speed, volume). Players consume the plan; they must NOT re-read config files directly. New playback behavior goes in the resolver + precedence table, not in a player script. - Volume defaults are 20% (
0.20), never 70%. Regression-tested; covered in bash, PS, and JS. - Never select TTS output by "most recent file." Providers emit an
AV_OUTPUT:sentinel on stdout; capture the exact filename and fail loudly on synthesis failure. Thels -theuristic is retired. - Kokoro voices force the kokoro engine (an
af_*/am_*voice with a piper ENGINE column = silence). The resolver encodes this; keep it. - Bash/PowerShell parity. Any change to
play-tts.shneeds the mirror change inplay-tts.ps1(and vice versa), plus the contract-test matrix (AVI-S8.7) kept green. Note the historical env-flag split: bash readsAGENTVIBES_NO_PLAYBACK, PS readsAGENTVIBES_NO_PLAY— set both. - Receiver settings are keyed by project (TTS
--project-dirbasename namespaces scene/avatar/voice). Don't wipeglb-scenes.json— it holds calibration. - SSH senders must never force
-p 22— it overrides~/.ssh/configalias ports and silently drops TTS.
Non-Destructive Configuration Rule (MANDATORY)
All code touching user .claude/ or ~/.claude/ config must be non-destructive. This is enforced by real machinery — use it:
manifestSafeCopy()insrc/installer.jscopies via an install manifest and refuses to clobber user-modified files. New installed files go through it.configureSessionStartHook()and friends write hooks only when absent.- Never delete/overwrite user settings, voices, personalities, or
audio-effects.cfg; custom entries must surviveagentvibes update. A settings.json parse error must not wipe the file. - Any function that could overwrite user data needs an idempotency test (see
test/unit/installer-config-safety.test.js,install-manifest.test.js).
Development workflow
Hybrid, in practice:
- BMAD for planning and tracking. Epics/stories live in
docs/implementation-artifacts/withsprint-status.yamlactively maintained. Use/sprint-planning,/create-story,/dev-storyfor story-shaped work; updatesprint-status.yamlwhen a story changes state. - Implementation happens on feature branches and git worktrees (many active:
feat/*,fix/*, worktrees likeAgentVibes-musetalk,AgentVibes-outfit-swap), merged tomaster. Direct fixes, agent-driven implementation, and adversarial code-review passes are all normal —/dev-storyis a tool, not a gate on every commit. - Adversarial code review before merging significant work (see the
fix(review): …commits); HIGH/MEDIUM findings get fixed, not deferred. - Get explicit user approval before commits/pushes for non-story work. Paul doesn't code — do the work end-to-end via scripts; give estimates in AI time.
Testing
npm test→scripts/run-tests.sh: syntax check → bats suite →node --testwith c8 coverage. Required before committing.- The runner suppresses TTS audio globally (marker file
~/.agentvibes-tests-running+AGENTVIBES_SUPPRESS_AUDIO+ both no-play flags). Opt in to audio withAGENTVIBES_TEST_AUDIO=true. - Python:
pytestinmcp-server/(test_server.py,test_mcp_correctness.py,test_windows_script_parity.py). - CI:
test.yml,test-windows.yml,test-macos*.yml,sonarcloud.yml,codeql.yml,publish.yml. - New regressions become permanent tests (contract-test matrix pattern) — a bug fixed without a test will come back.
Releases — use the /release skill
/release runs the managed workflow with human checkpoints: pre-flight (coverage must pass, secret scan), version-bump recommendation, drafted RELEASE_NOTES.md + README "NEW IN" section + 8-language translations (docs/i18n/), then npm version → push → gh release create → optional npm publish, each gated on explicit approval.
package.jsonis the single source of truth for version. The README badge is auto-updated byscripts/sync-readme-version.jsvia the npmversionhook — never hand-edit it.npm publishpacks the working tree, not the git tag. Run the pack-contents test (test/unit/npm-pack-contents.test.js) and never publish from a dirty tree.- Alpha flow is normal: ship
x.y.z-alpha.Nwhile iterating, then promote to stable.
Security (project-specific, enforced by tests)
- User-supplied file paths (custom music, config) go through the validator chain:
path.resolve(), containment check, magic-number format validation, UID ownership check (seeaudio-format-validator,file-ownership-verifierand the 180-case traversal suite). - Hooks/shell scripts use
set -euo pipefail, quoted expansions, andtrapcleanup of temp files. - Never display or log secrets — no API keys/tokens in chat, logs, commits, or example data (real SSH ports/aliases were once scrubbed from tests; don't reintroduce them). Mask credentials (
key.substring(0,3) + '...'). - Clean up spawned processes (
try/finallykill in JS,finally: process.kill()in Python) — the TUI spawns preview processes constantly. - SonarCloud runs on CI after push; it can't run locally.
Key references
| File | Purpose |
docs/implementation-artifacts/sprint-status.yaml | Live sprint/story state |
docs/architecture/provider-system.md | Provider architecture |
BMAD-STORY-DEVELOPMENT.md | BMAD story workflow reference |
AGENTS.md | TTS protocol for AI agents using AgentVibes |
.claude/skills/release/SKILL.md | Release workflow |
docs/feature-platform-matrix.md | What works on which platform |
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

