Skip to content

Conversation

@ryanmac
Copy link
Owner

@ryanmac ryanmac commented Jul 26, 2025

Summary

  • Add uninstall.py script that safely removes Code Conductor from projects
  • Provides interactive, force, and dry-run modes for different use cases
  • Includes comprehensive test suite to ensure reliability

Features

Safe removal - Preserves user files while removing conductor components
Interactive mode - Shows what will be removed and asks for confirmation
Force mode - Skip confirmation for automated workflows
Dry-run mode - Preview changes without making them
Git worktree cleanup - Automatically removes conductor worktrees
CLAUDE.md handling - Removes conductor section while preserving other content
GitHub info display - Shows open issues and labels for manual cleanup
Empty directory cleanup - Removes empty .github directories after uninstall

Test Plan

  • Run unit tests: python tests/test_uninstall.py
  • Test dry-run mode: python uninstall.py --dry-run
  • Test interactive mode in a test project
  • Test force mode: python uninstall.py --force
  • Verify user files are preserved
  • Verify CLAUDE.md conductor section is removed cleanly
  • Run linting: flake8 uninstall.py tests/test_uninstall.py
  • Run formatting: black uninstall.py tests/test_uninstall.py

Usage

# Interactive removal (default)
python uninstall.py

# Remove without confirmation
python uninstall.py --force

# Preview what will be removed
python uninstall.py --dry-run

# Verbose output
python uninstall.py --verbose

Documentation Updates

  • Updated README.md with uninstall section
  • Updated CLAUDE.md with uninstall instructions

🤖 Generated with Claude Code

- Create uninstall.py with interactive and force modes
- Safely removes all conductor files while preserving user files
- Handles git worktree cleanup automatically
- Shows conductor section removal from CLAUDE.md
- Provides dry-run mode to preview changes
- Displays GitHub items (issues/labels) for manual cleanup
- Add comprehensive test suite with unit and integration tests
- Update README.md with uninstall instructions
- Update CLAUDE.md with uninstall documentation

The uninstaller provides a clean way for users to remove Code Conductor
from their projects when needed, with safety checks and clear feedback.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@ryanmac ryanmac merged commit ea7c276 into main Jul 26, 2025
10 checks passed
@ryanmac ryanmac deleted the uninstall-script-for-code-conductor branch July 26, 2025 23:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants