You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Improve TTS injection feature for BMAD agents with better backups and summary:
- Organized backups: All backups now saved in .agentvibes/backups/agents/ with timestamps
- Better summary: See exactly which files were modified and how to restore them
- Improved reliability: Better file handling to ensure agent files are always preserved
- Shell compatibility: Works on more systems including older bash versions
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
# SAFETY CHECK: Verify the tmp file is not empty and has similar size to original
309
+
# This prevents data loss if awk fails or produces empty output
310
+
local original_size=$(stat -c%s "$agent_file"2>/dev/null || stat -f%z "$agent_file"2>/dev/null ||echo"0")
311
+
local tmp_size=$(stat -c%s "$agent_file.tmp"2>/dev/null || stat -f%z "$agent_file.tmp"2>/dev/null ||echo"0")
312
+
313
+
if [[ "$tmp_size"-eq 0 ]];then
314
+
echo -e "${RED}❌ SAFETY: Refusing to overwrite - tmp file is empty: $(basename "$agent_file")${NC}">&2
315
+
rm -f "$agent_file.tmp"
316
+
mv "$agent_file.backup-pre-tts""$agent_file"
317
+
return 1
318
+
fi
319
+
320
+
# Tmp file should be at least 80% of original size (protects against truncation)
321
+
# No upper limit since injection adds substantial content (typically 300-500 bytes)
322
+
local min_size=$((original_size *80/100))
323
+
324
+
if [[ "$tmp_size"-lt"$min_size" ]];then
325
+
echo -e "${RED}❌ SAFETY: Refusing to overwrite - file would shrink too much (orig: ${original_size}B, tmp: ${tmp_size}B): $(basename "$agent_file")${NC}">&2
AgentVibes v2.14.19 improves the BMAD TTS injection feature with better file handling, organized backups, and a more informative summary when enabling voice support for your BMAD agents.
9
+
10
+
**Key Highlights:**
11
+
- 📦 **Organized Backups** - All backups now saved in `.agentvibes/backups/agents/` with timestamps
12
+
- 📋 **Better Summary** - See exactly which files were modified and how to restore them
13
+
- 🔧 **Improved Reliability** - Better file handling to ensure agent files are always preserved
14
+
- 🐚 **Shell Compatibility** - Works on more systems including older bash versions
15
+
16
+
---
17
+
18
+
## What is TTS Injection?
19
+
20
+
**TTS (Text-to-Speech) Injection** is a feature that makes your BMAD agents talk! When you install BMAD with AgentVibes, it adds voice instructions to each agent file so they can speak their responses aloud.
21
+
22
+
### How it works:
23
+
24
+
1.**Before TTS Injection** - Your BMAD agents (PM, Architect, UX Designer, etc.) only display text responses
25
+
2.**After TTS Injection** - Each agent can speak their responses using your chosen voice
26
+
27
+
### Example:
28
+
29
+
When you activate the PM agent, instead of just seeing text, you'll hear:
30
+
> "Hey! I'm Marcus, your Project Manager. What can I help you with today?"
31
+
32
+
The injection adds a small instruction to each agent file that tells it to use AgentVibes for voice output. Your original agent files are always backed up before any changes.
33
+
34
+
---
35
+
36
+
## What's New in This Release
37
+
38
+
### Organized Backup System
39
+
40
+
When TTS is enabled on your agents, backups are now saved in one central location:
41
+
42
+
```
43
+
.agentvibes/backups/agents/
44
+
├── pm_20251205_143022.md
45
+
├── architect_20251205_143022.md
46
+
├── ux-designer_20251205_143022.md
47
+
└── ...
48
+
```
49
+
50
+
Each backup includes a timestamp so you can see exactly when it was created.
"description": "Now your AI Agents can finally talk back! Professional TTS voice for Claude Code and Claude Desktop (via MCP) with multi-provider support.",
0 commit comments