Session Date: 2026-01-23 Start Time: 12:28 GMT+7 (yesterday, continued today 08:00) End Time: 08:07 GMT+7 Duration: ~40 minutes active (split across days) Primary Focus: Block Mountain Live Demo + Conversation with อาจารย์ภู Session Type: Live Demo / Philosophy Exchange Current Issue: #36 (Sea greets Oracle family)
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
| #!/bin/bash | |
| # claude-cleanup - Kill orphan Claude Code processes | |
| # Usage: claude-cleanup [--dry-run] | |
| DRY_RUN=false | |
| [[ "$1" == "--dry-run" ]] && DRY_RUN=true | |
| # Count before | |
| BEFORE=$(ps aux | grep -E "claude.*resume" | grep -v grep | wc -l | tr -d ' ') | |
| MEM_BEFORE=$(ps aux | grep -E "claude.*resume" | grep -v grep | awk '{sum+=$6} END {printf "%.0f", sum/1024}') |
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
| // OpenCode Plugin: Prepend prefix to all user messages | |
| // | |
| // DISCOVERY: Message structure uses msg.info.role, NOT msg.role! | |
| // Structure: { info: { role: "user" }, parts: [{ type: "text", text: "..." }] } | |
| // | |
| // INSTALLATION: | |
| // 1. Save this file to: ~/.config/opencode/plugins/prefix.ts (global) | |
| // OR: .opencode/plugins/prefix.ts (project-level) | |
| // 2. Restart OpenCode | |
| // 3. Test by asking: "What are the first 5 characters of this message?" |
AI Agent Safety Hook - blocks dangerous commands before execution
Repo: https://github.com/Dicklesworthstone/destructive_command_guard Learned: 2026-01-18 16:01
NewerOlder