Refactor cockpit to use DockerTmuxController pattern

Based on claude-code-tools TmuxCLIController, this refactor:

- Added DockerTmuxController class for robust tmux session management
- Implements send_keys() with configurable delay_enter
- Implements capture_pane() for output retrieval
- Implements wait_for_prompt() for pattern-based completion detection
- Implements wait_for_idle() for content-hash-based idle detection
- Implements wait_for_shell_prompt() for shell prompt detection

Also includes workflow improvements:
- Pre-task git snapshot before agent execution
- Post-task commit protocol in agent guidelines

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
admin
2026-01-14 10:42:16 -03:00
commit ec33ac1936
265 changed files with 92011 additions and 0 deletions

917
skill-usage-report.json Normal file
View File

@@ -0,0 +1,917 @@
{
"timestamp": "2026-01-09T00:46:29.645528",
"queue_analysis": {
"total_tasks": 0,
"tasks_with_skill": 0,
"skills_found": {},
"by_project": {},
"by_priority": {
"high": 0,
"normal": 0
},
"entries": []
},
"job_analysis": {
"time_window": "Last 24 hours",
"total_jobs": 93,
"jobs_with_skill": 0,
"skills_used": {},
"debug_mode_tasks": 36,
"by_project": {
"admin": {
"total": 36,
"with_skill": 0,
"debug_mode": 16
},
"musica": {
"total": 32,
"with_skill": 0,
"debug_mode": 5
},
"librechat": {
"total": 11,
"with_skill": 0,
"debug_mode": 7
},
"luzia": {
"total": 8,
"with_skill": 0,
"debug_mode": 6
},
"dss": {
"total": 6,
"with_skill": 0,
"debug_mode": 2
}
},
"jobs": [
{
"id": "182604-76f7",
"project": "admin",
"task": "check the claude skill files in .claude/skills",
"skill": null,
"started": "2026-01-08T18:26:05.195605",
"status": "running",
"debug": true
},
{
"id": "200843-e5c",
"project": "musica",
"task": "improve UI/UX of fluid studio - analyze current state, identify usability issues, and implement impr",
"skill": null,
"started": "2026-01-08T20:08:44.012354",
"status": "running",
"debug": false
},
{
"id": "121849-5b06",
"project": "musica",
"task": "check implementation status - list what features are complete, in progress, and pending. Look at pac",
"skill": null,
"started": "2026-01-08T12:18:49.316525",
"status": "running",
"debug": false
},
{
"id": "175351-cc59",
"project": "admin",
"task": "INFRASTRUCTURE UPDATE - Update all sysadmin scripts, user maintenance scripts, skeleton files to ref",
"skill": null,
"started": "2026-01-08T17:53:51.932670",
"status": "running",
"debug": true
},
{
"id": "085107-2ddf",
"project": "admin",
"task": "upgrade gemini claude codex CLI tools to latest versions",
"skill": null,
"started": "2026-01-08T08:51:07.357589",
"status": "running",
"debug": false
},
{
"id": "115130-308d",
"project": "librechat",
"task": "fix hub.luz.uy agent output give markdown styles",
"skill": null,
"started": "2026-01-08T11:51:30.641167",
"status": "running",
"debug": true
},
{
"id": "204207-4cae",
"project": "musica",
"task": "run dss init, dss analyze and all dss setup scripts. Ensure DSS integration is fully initialized and",
"skill": null,
"started": "2026-01-08T20:42:07.779980",
"status": "running",
"debug": false
},
{
"id": "084443-a5a8",
"project": "admin",
"task": "",
"skill": null,
"started": "2026-01-08T08:44:43.565283",
"status": "running",
"debug": false
},
{
"id": "174814-c996",
"project": "admin",
"task": "COMPREHENSIVE INFRASTRUCTURE UPDATE TASK:\n\n1. AUDIT & UPDATE SYSADMIN SCRIPTS:\n - Scan /opt/server",
"skill": null,
"started": "2026-01-08T17:48:14.901150",
"status": "running",
"debug": true
},
{
"id": "004323-e275",
"project": "luzia",
"task": "implement comprehensive report showing which skills and documentation files are being picked and use",
"skill": null,
"started": "2026-01-09T00:43:24.033396",
"status": "running",
"debug": true
},
{
"id": "135346-43e1",
"project": "musica",
"task": "implement \u201c\u201d\u201ddeep think with all knowledge of mu.labs and improve the structure axis of the song, th",
"skill": null,
"started": "2026-01-08T13:53:55.040935",
"status": "running",
"debug": true
},
{
"id": "085808-f703",
"project": "admin",
"task": "implement luzia ensure to not ask cli confirmations from sub-agents when running commands - agents s",
"skill": null,
"started": "2026-01-08T08:58:08.515311",
"status": "running",
"debug": true
},
{
"id": "195519-b0e2",
"project": "musica",
"task": "implement mu fluid demo - fix no output sound issue. Debug why audio is not playing in https://mu.lu",
"skill": null,
"started": "2026-01-08T19:55:20.066795",
"status": "running",
"debug": false
},
{
"id": "120328-b410",
"project": "musica",
"task": "implement \u201c\u201d\u201ddeep think with all knowledge of mu.labs and improve the structure axis of the song, th",
"skill": null,
"started": "2026-01-08T12:03:28.650547",
"status": "running",
"debug": true
},
{
"id": "182406-8a0a",
"project": "admin",
"task": "create a test file at /tmp/luzia-test-file.txt with content hello",
"skill": null,
"started": "2026-01-08T18:24:06.809439",
"status": "running",
"debug": true
},
{
"id": "161642-b25d",
"project": "admin",
"task": "e2e verification test",
"skill": null,
"started": "2026-01-08T16:16:50.892731",
"status": "running",
"debug": false
},
{
"id": "165841-ef6e",
"project": "luzia",
"task": "test",
"skill": null,
"started": "2026-01-08T16:58:41.925846",
"status": "running",
"debug": false
},
{
"id": "141857-5c7f",
"project": "admin",
"task": "implement use current researches think deep and implement: improvements to luzia based on new deep r",
"skill": null,
"started": "2026-01-08T14:19:06.716958",
"status": "running",
"debug": true
},
{
"id": "181039-210b",
"project": "admin",
"task": "run all qa tests",
"skill": null,
"started": "2026-01-08T18:10:39.929797",
"status": "running",
"debug": false
},
{
"id": "160414-f150",
"project": "admin",
"task": "",
"skill": null,
"started": "2026-01-08T16:04:14.159401",
"status": "running",
"debug": false
},
{
"id": "155218-d8a8",
"project": "admin",
"task": "just say hello - queue test",
"skill": null,
"started": "2026-01-08T15:52:27.610660",
"status": "running",
"debug": false
},
{
"id": "160719-2084",
"project": "admin",
"task": "",
"skill": null,
"started": "2026-01-08T16:07:19.445761",
"status": "running",
"debug": false
},
{
"id": "212252-eb06",
"project": "musica",
"task": "Improve all functionalities in mu: 1) Improve demo content and showcase, 2) Enhance playback UX with",
"skill": null,
"started": "2026-01-08T21:22:52.853353",
"status": "running",
"debug": false
},
{
"id": "160351-f02a",
"project": "admin",
"task": "",
"skill": null,
"started": "2026-01-08T16:03:51.999263",
"status": "running",
"debug": false
},
{
"id": "170232-2370",
"project": "librechat",
"task": "Fix hub.luz.uy agents max length run issue and implement testing. Investigate why agent runs are bei",
"skill": null,
"started": "2026-01-08T17:02:33.026275",
"status": "running",
"debug": true
},
{
"id": "183401-9670",
"project": "admin",
"task": "What global context do you see? Look for any system-reminder tags about luz.uy",
"skill": null,
"started": "2026-01-08T18:34:01.957397",
"status": "running",
"debug": false
},
{
"id": "222457-3df3",
"project": "musica",
"task": "implement mu session saving functionality, comprehensive visual qa testing, debug and fix playback i",
"skill": null,
"started": "2026-01-08T22:24:57.871555",
"status": "running",
"debug": false
},
{
"id": "165909-9eb3",
"project": "luzia",
"task": "list all route_ functions",
"skill": null,
"started": "2026-01-08T16:59:10.029101",
"status": "running",
"debug": false
},
{
"id": "123317-cb9b",
"project": "musica",
"task": "check implementation status - briefly list features that are complete, in progress, and pending",
"skill": null,
"started": "2026-01-08T12:33:17.315401",
"status": "running",
"debug": false
},
{
"id": "182541-ad7a",
"project": "admin",
"task": "check the claude skill files in .claude/skills",
"skill": null,
"started": "2026-01-08T18:25:42.133215",
"status": "running",
"debug": true
},
{
"id": "084846-2146",
"project": "admin",
"task": "implement luzia skill dev/qa workflow for claude development tasks",
"skill": null,
"started": "2026-01-08T08:48:46.767153",
"status": "running",
"debug": true
},
{
"id": "200515-1054",
"project": "dss",
"task": "fully deploy dss, init analyze tools and ensure everything is working",
"skill": null,
"started": "2026-01-08T20:05:16.051356",
"status": "running",
"debug": false
},
{
"id": "202301-75f0",
"project": "dss",
"task": "Full deployment and initialization: 1) Check current state 2) Initialize analyze tools 3) Deploy all",
"skill": null,
"started": "2026-01-08T20:23:02.144598",
"status": "running",
"debug": false
},
{
"id": "100718-c920",
"project": "admin",
"task": "create a test file at /home/admin/luzia-test.txt with the content 'Hello from luzia sub-agent' and t",
"skill": null,
"started": "2026-01-08T10:07:18.450223",
"status": "running",
"debug": true
},
{
"id": "134419-49d8",
"project": "musica",
"task": "",
"skill": null,
"started": "2026-01-08T13:44:19.488089",
"status": "running",
"debug": false
},
{
"id": "132102-46c8",
"project": "musica",
"task": "check implementation status - briefly list features that are complete, in progress, and pending",
"skill": null,
"started": "2026-01-08T13:21:02.646146",
"status": "failed",
"debug": false
},
{
"id": "160746-51fd",
"project": "admin",
"task": "immediate test",
"skill": null,
"started": "2026-01-08T16:07:54.215916",
"status": "running",
"debug": false
},
{
"id": "160144-748f",
"project": "admin",
"task": "just echo hello world",
"skill": null,
"started": "2026-01-08T16:01:51.389682",
"status": "running",
"debug": false
},
{
"id": "161854-3a62",
"project": "musica",
"task": "status",
"skill": null,
"started": "2026-01-08T16:18:56.249330",
"status": "running",
"debug": false
},
{
"id": "191513-f426",
"project": "dss",
"task": "analyze entire dss ecosystem including ALL test suites for all projects. run comprehensive analysis ",
"skill": null,
"started": "2026-01-08T19:15:13.798181",
"status": "running",
"debug": true
},
{
"id": "152048-ec8b",
"project": "musica",
"task": "integrate FluidStudioPage into App.tsx routes - add /fluid route that renders FluidStudioPage compon",
"skill": null,
"started": "2026-01-08T15:20:57.094467",
"status": "running",
"debug": false
},
{
"id": "003802-412a",
"project": "dss",
"task": "update all dss repositories pull",
"skill": null,
"started": "2026-01-09T00:38:03.163487",
"status": "running",
"debug": false
},
{
"id": "102045-ea96",
"project": "librechat",
"task": "qa chat with claude through hub.luz.uy",
"skill": null,
"started": "2026-01-08T10:20:45.261752",
"status": "running",
"debug": false
},
{
"id": "182208-10d4",
"project": "admin",
"task": "",
"skill": null,
"started": "2026-01-08T18:22:08.061141",
"status": "running",
"debug": false
},
{
"id": "102809-c82d",
"project": "admin",
"task": "implement luzia flows, all flows should start with planning, X number of iterations of custom task f",
"skill": null,
"started": "2026-01-08T10:28:09.664555",
"status": "running",
"debug": true
},
{
"id": "192530-c52b",
"project": "musica",
"task": "use refraction thinking for improving ui and ux of https://mu.luz.uy/fluid and finalizing full imple",
"skill": null,
"started": "2026-01-08T19:25:30.766189",
"status": "running",
"debug": false
},
{
"id": "003025-f947",
"project": "luzia",
"task": "implement structural analysis tools that scan project code structures, generate analysis reports, sa",
"skill": null,
"started": "2026-01-09T00:30:26.010379",
"status": "running",
"debug": true
},
{
"id": "160321-c164",
"project": "admin",
"task": "just say hello world",
"skill": null,
"started": "2026-01-08T16:03:29.463308",
"status": "running",
"debug": false
},
{
"id": "182330-3396",
"project": "admin",
"task": "list files in current directory",
"skill": null,
"started": "2026-01-08T18:23:31.165742",
"status": "running",
"debug": false
},
{
"id": "122134-7f91",
"project": "musica",
"task": "check implementation status - list what features are complete, in progress, and pending",
"skill": null,
"started": "2026-01-08T12:21:34.568629",
"status": "running",
"debug": false
},
{
"id": "192120-3b87",
"project": "musica",
"task": "use refraction thinking for improving ui and ux of https://mu.luz.uy/fluid and finalizing full imple",
"skill": null,
"started": "2026-01-08T19:21:20.412335",
"status": "running",
"debug": false
},
{
"id": "083450-294b",
"project": "librechat",
"task": "fix hub.luz.uy is not working now do full qa and run/create tests for chat agent interaction",
"skill": null,
"started": "2026-01-08T08:34:50.549328",
"status": "running",
"debug": false
},
{
"id": "170107-e019",
"project": "luzia",
"task": "Document luzia comprehensively. Create or update /opt/server-agents/docs/AI-AGENT-LUZIA-GUIDE.md wit",
"skill": null,
"started": "2026-01-08T17:01:07.281036",
"status": "running",
"debug": true
},
{
"id": "192843-b385",
"project": "dss",
"task": "$(cat /tmp/phase-1-implementation-task.txt)",
"skill": null,
"started": "2026-01-08T19:28:44.137791",
"status": "running",
"debug": false
},
{
"id": "170914-d531",
"project": "luzia",
"task": "list route_ functions in luzia",
"skill": null,
"started": "2026-01-08T17:09:14.345950",
"status": "running",
"debug": true
},
{
"id": "100846-2d4",
"project": "admin",
"task": "create a test file at /home/admin/luzia-test.txt with the content 'Hello from luzia sub-agent' and t",
"skill": null,
"started": "2026-01-08T10:08:46.987366",
"status": "running",
"debug": true
},
{
"id": "100943-8f07",
"project": "admin",
"task": "create a test file at /home/admin/luzia-test.txt with the content 'Hello from luzia sub-agent' and t",
"skill": null,
"started": "2026-01-08T10:09:44.179773",
"status": "running",
"debug": true
},
{
"id": "181947-1ee2",
"project": "admin",
"task": "",
"skill": null,
"started": "2026-01-08T18:19:47.497523",
"status": "running",
"debug": false
},
{
"id": "101408-61",
"project": "admin",
"task": "run system health and balance server",
"skill": null,
"started": "2026-01-08T10:14:08.828517",
"status": "running",
"debug": false
},
{
"id": "181659-8a8f",
"project": "musica",
"task": "",
"skill": null,
"started": "2026-01-08T18:16:59.817942",
"status": "running",
"debug": false
},
{
"id": "172938-155",
"project": "admin",
"task": "Research all admin sysadmin files, scripts, documentation, and tests. Deep think in swarm mode and a",
"skill": null,
"started": "2026-01-08T17:29:38.831697",
"status": "running",
"debug": true
},
{
"id": "100147-6dfc",
"project": "librechat",
"task": "implement expand max token/chars per message response of agents. Make central variable and agents co",
"skill": null,
"started": "2026-01-08T10:01:47.770834",
"status": "running",
"debug": true
},
{
"id": "154009-322d",
"project": "musica",
"task": "debug and create comprehensive tests for all routes in App.tsx - test both authenticated and unauthe",
"skill": null,
"started": "2026-01-08T15:40:17.507030",
"status": "running",
"debug": true
},
{
"id": "131218-efda",
"project": "musica",
"task": "implement \u201c\u201d\u201ddeep think with all knowledge of mu.labs and improve the structure axis of the song, th",
"skill": null,
"started": "2026-01-08T13:12:18.726841",
"status": "running",
"debug": true
},
{
"id": "100637-e964",
"project": "admin",
"task": "create a test file at /home/admin/luzia-test.txt with the content 'Hello from luzia sub-agent' and t",
"skill": null,
"started": "2026-01-08T10:06:37.904686",
"status": "running",
"debug": true
},
{
"id": "183131-f608",
"project": "admin",
"task": "Report what global context you see in your system prompt. Look for any mention of /etc/claude/GLOBAL",
"skill": null,
"started": "2026-01-08T18:31:31.912266",
"status": "running",
"debug": false
},
{
"id": "163326-795c",
"project": "musica",
"task": "run all tests for routes to ensure they work properly. Focus on the route tests at src/__tests__/rou",
"skill": null,
"started": "2026-01-08T16:33:27.094427",
"status": "running",
"debug": false
},
{
"id": "222550-99ab",
"project": "musica",
"task": "implement mu session saving functionality, comprehensive visual qa testing, debug and fix playback i",
"skill": null,
"started": "2026-01-08T22:25:51.176952",
"status": "running",
"debug": false
},
{
"id": "154610-2c49",
"project": "musica",
"task": "create route tests at src/__tests__/routes.test.tsx using vitest - test authenticated and unauthenti",
"skill": null,
"started": "2026-01-08T15:46:19.516185",
"status": "running",
"debug": false
},
{
"id": "132357-3e81",
"project": "musica",
"task": "deep think with all knowledge of mu.labs and improve the structure axis of the song, think of a more",
"skill": null,
"started": "2026-01-08T13:23:57.803396",
"status": "failed",
"debug": true
},
{
"id": "171015-2065",
"project": "librechat",
"task": "list files in current directory",
"skill": null,
"started": "2026-01-08T17:10:15.701043",
"status": "running",
"debug": false
},
{
"id": "003639-9ee7",
"project": "librechat",
"task": "fix hub.luz.uy agent conversations, qa test with long conversations and large messages, debug and fi",
"skill": null,
"started": "2026-01-09T00:36:39.878385",
"status": "running",
"debug": true
},
{
"id": "095358-4d9c",
"project": "musica",
"task": "continue with all tasks",
"skill": null,
"started": "2026-01-08T09:53:58.376169",
"status": "running",
"debug": false
},
{
"id": "170648-c1e4",
"project": "luzia",
"task": "Document luzia - update /opt/server-agents/docs/AI-AGENT-LUZIA-GUIDE.md",
"skill": null,
"started": "2026-01-08T17:06:48.361066",
"status": "running",
"debug": true
},
{
"id": "132825-e78a",
"project": "musica",
"task": "list files in current directory - just output ls",
"skill": null,
"started": "2026-01-08T13:28:50.341682",
"status": "failed",
"debug": false
},
{
"id": "170747-5cbd",
"project": "luzia",
"task": "Document luzia CLI comprehensively",
"skill": null,
"started": "2026-01-08T17:07:48.007563",
"status": "running",
"debug": true
},
{
"id": "121705-763b",
"project": "musica",
"task": "check implementation status - list what features are complete, in progress, and pending",
"skill": null,
"started": "2026-01-08T12:17:05.866523",
"status": "running",
"debug": false
},
{
"id": "115223-e92",
"project": "librechat",
"task": "implement all dss correctly, dss init, review, improve ui ux of hub.luz.uy only one chat room full m",
"skill": null,
"started": "2026-01-08T11:52:24.078452",
"status": "running",
"debug": false
},
{
"id": "181912-59d1",
"project": "musica",
"task": "check TMPDIR environment variable",
"skill": null,
"started": "2026-01-08T18:19:12.735738",
"status": "running",
"debug": false
},
{
"id": "132326-6817",
"project": "musica",
"task": "",
"skill": null,
"started": "2026-01-08T13:23:26.633157",
"status": "running",
"debug": false
},
{
"id": "121239-eff8",
"project": "musica",
"task": "check status of implementation",
"skill": null,
"started": "2026-01-08T12:12:39.404220",
"status": "running",
"debug": false
},
{
"id": "004531-7155",
"project": "librechat",
"task": "research and document all librechat hub.luz.uy api endpoints, configuration options, agent integrati",
"skill": null,
"started": "2026-01-09T00:45:31.914290",
"status": "running",
"debug": true
},
{
"id": "084551-4425",
"project": "admin",
"task": "verify that the skill loading works correctly",
"skill": null,
"started": "2026-01-08T08:45:51.373576",
"status": "running",
"debug": true
},
{
"id": "182503-b9d2",
"project": "admin",
"task": "",
"skill": null,
"started": "2026-01-08T18:25:03.384890",
"status": "running",
"debug": false
},
{
"id": "133334-df45",
"project": "musica",
"task": "check current status of the app - just list what's deployed and running",
"skill": null,
"started": "2026-01-08T13:33:43.202904",
"status": "failed",
"debug": false
},
{
"id": "200526-96a3",
"project": "musica",
"task": "improve UI/UX of fluid studio - analyze current state, identify usability issues, and implement impr",
"skill": null,
"started": "2026-01-08T20:05:26.775396",
"status": "running",
"debug": false
},
{
"id": "101525-b531",
"project": "admin",
"task": "remove https://dss.overbits.luz.uy/ references and https://storybook.dss.overbits.luz.uy/",
"skill": null,
"started": "2026-01-08T10:15:25.427425",
"status": "running",
"debug": false
},
{
"id": "190215-80d2",
"project": "dss",
"task": "analyze sofi-design-system root and all submodules: run dss-analyze on root, packages/dss-server, pa",
"skill": null,
"started": "2026-01-08T19:02:15.319891",
"status": "running",
"debug": true
},
{
"id": "192424-4a7",
"project": "musica",
"task": "use refraction thinking for improving ui and ux of https://mu.luz.uy/fluid and finalizing full imple",
"skill": null,
"started": "2026-01-08T19:24:24.906416",
"status": "running",
"debug": false
},
{
"id": "170214-56a3",
"project": "librechat",
"task": "Fix hub.luz.uy agents max length run issue and implement testing. Investigate why agent runs are bei",
"skill": null,
"started": "2026-01-08T17:02:14.356912",
"status": "running",
"debug": true
},
{
"id": "142004-5e65",
"project": "admin",
"task": "Deep research task: Use current knowledge graph researches to infer three architectural proposals fo",
"skill": null,
"started": "2026-01-08T14:20:13.806509",
"status": "running",
"debug": true
},
{
"id": "100508-9baf",
"project": "admin",
"task": "review is claude pal added to zen?",
"skill": null,
"started": "2026-01-08T10:05:08.331948",
"status": "running",
"debug": false
},
{
"id": "100039-9b1f",
"project": "librechat",
"task": "implement work on hub.luz.uy agent that has all knowledge of server and all server projects. it serv",
"skill": null,
"started": "2026-01-08T10:00:39.453644",
"status": "running",
"debug": true
}
]
},
"skill_detection": {},
"doc_analysis": {
"doc_files": {
"IMPLEMENTATION-SUMMARY.md": {
"size_bytes": 10544,
"last_modified": "2026-01-09T00:35:34.464955"
},
"SKILL-AND-DOCS-TRACKING.md": {
"size_bytes": 18170,
"last_modified": "2026-01-09T00:45:56.984460"
},
"README.md": {
"size_bytes": 16386,
"last_modified": "2026-01-08T17:10:45.806412"
},
"STRUCTURAL-ANALYSIS.md": {
"size_bytes": 9700,
"last_modified": "2026-01-09T00:34:44.769020"
}
},
"doc_references": {},
"sync_patterns": {}
},
"skill_distribution": {},
"project_skill_usage": {},
"summary": {
"total_unique_skills": 0,
"most_used_skill": null,
"skill_usage_stats": {}
}
}