Commit Graph

3 Commits

Author SHA1 Message Date
admin
d163666599 Add QA testing step to task completion protocol
Before git commit, agents must now run pytest tests/ -v --tb=short to verify
their changes don't break existing functionality. The protocol now:

1. Document Changes
2. Run Tests (NEW - required step)
3. Git Commit
4. Knowledge Graph

This ensures code quality and prevents regressions.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-14 11:13:22 -03:00
admin
88cb7156e9 Refactor cockpit to use claude-code-tools-local package
Architecture improvements:
- Import TmuxCLIController from installed claude-code-tools-local
- DockerTmuxAdapter extends TmuxCLIController for Docker execution
- Override _run_tmux_command() to prepend 'docker exec' to commands
- Backward compatibility alias: DockerTmuxController = DockerTmuxAdapter

This enables:
- Pulling upstream improvements from claude-code-tools
- Maintaining Docker-specific functionality
- Clean inheritance-based architecture

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-14 10:53:01 -03:00
admin
ec33ac1936 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>
2026-01-14 10:42:16 -03:00