description: Launch CoSy as persistent subprocess via Popen. stdin/stdout pipe. Send Forth-APL expressions, read results. Backup before redefining words. Only load from personal vocab dir.

issue_type: task

status: open

title: CoSy integration: subprocess pipe to CoSy.bat/reva.exe


description: File operations with backup-before-edit. Allowlist for working dirs. No destructive deletes without confirmation. Type-hinted API.

title: File capability: read/write/edit with backup


description: Run shell commands with policy checks. Allowlist of approved dirs and commands. confirm_spawn() gate. Log all subprocess calls with timestamps.

title: Shell capability: safe subprocess execution


description: Telegram bot daemon thread. Poll for messages and audio notes. Pass audio through STT. Route transcribed text to agent queue via asyncio.run_coroutine_threadsafe().

title: Telegram integration: polling, audio STT input


description: Initialize Python project. pyproject.toml with deps (anthropic, elevenlabs, python-telegram-bot, dearpygui). Set up src/rook/ package. Configure uv.

status: closed

title: Project scaffolding: pyproject.toml, src layout, uv setup


description: Core policy module. Allowlists per capability (file, shell, git). confirm_spawn() gate for risky ops. backup_before_edit() helper. Approved working dirs enforcement.

title: Policy engine: allowlists, confirm gates, backup-before-edit


description: Speak agent responses. ElevenLabs TTS with Rook voice ID (scratchy/military). Google TTS fallback. Async playback so it doesn't block the agent loop.

title: TTS output: ElevenLabs Rook voice + Google TTS fallback


description: Dear PyGui dark-theme GUI. Dockable panels for agent transcript, TTS status, CoSy output. Runs on main thread; asyncio on background daemon thread.

title: Dear PyGui GUI: ModernCoSy dockable panels


description: Git operations (status, diff, add, commit, log). Allowlist gates on push/reset/force ops. Confirmation required for destructive git commands.

title: Git capability: git ops with policy allowlist


description: Main agent turn loop. Claude Haiku 4.5 primary, Sonnet 4.6 fallback. Tool call dispatch. Asyncio event loop with background daemon thread support.

title: Core agent loop: asyncio, Claude API, tool dispatch