Problem
In issue #283, we simplified the CLI from 49 → 37 visible commands by hiding 10 commands for backward compatibility. These hidden commands still work but clutter the codebase and should be removed in a future major version.
Hidden Commands to Remove in v3.0
The following commands were hidden in v2.x and should be completely removed in v3.0:
1. Deprecated Aliases (3 commands)
daf sessions list → Remove (use daf list)
daf config tui → Remove (use daf config edit)
daf completion → Remove (integrated into daf init)
2. Merged Commands (2 commands)
daf edit → Remove (use daf open --edit)
daf check → Remove (use daf init --check)
3. Hidden Maintenance Commands (5 commands)
Keep these but remove direct access (only via daf maintenance group):
daf cleanup-conversation → Remove direct access
daf cleanup-sessions → Remove direct access
daf discover → Remove direct access
daf rebuild-index → Remove direct access
daf repair-conversation → Remove direct access
4. Developer Utilities (1 command)
daf purge-mock-data → Keep hidden (developer-only)
Implementation Plan
Phase 1: Prepare Users (v2.x releases)
Phase 2: Remove Commands (v3.0)
Phase 3: Cleanup (v3.0)
Expected Impact
| Metric |
v2.x |
v3.0 |
Change |
| Visible Commands |
37 |
37 |
No change (already hidden) |
| Hidden Commands |
10 |
1 |
-9 |
| Total Commands |
47 |
38 |
-9 (-19%) |
| Backward Compatibility |
Yes |
No (breaking) |
⚠️ |
Breaking Changes
This is a BREAKING CHANGE release (v3.0) requiring:
- Major version bump
- Clear migration guide
- Release notes highlighting removals
- Minimum 6 months deprecation period
User Migration Path
Users will need to update their scripts/workflows:
# v2.x (deprecated, still works)
daf sessions list
daf config tui
daf edit PROJ-123
daf check
daf cleanup-sessions
# v3.0+ (required)
daf list
daf config edit
daf open PROJ-123 --edit
daf init --check
daf maintenance cleanup-sessions
Files to Modify
Delete:
devflow/cli/commands/sessions_list_command.py (already unused in v2.x)
- Hidden command decorators from
devflow/cli/main.py
Update:
devflow/cli/main.py - Remove hidden command definitions
tests/ - Update/remove tests for hidden commands
docs/ - Remove migration notes (no longer needed)
Acceptance Criteria
Timeline
Proposed:
- v2.1: Add deprecation warnings (released)
- v2.2-2.3: Continue showing warnings (6 months)
- v3.0: Remove hidden commands (breaking change)
Dependencies
References
Problem
In issue #283, we simplified the CLI from 49 → 37 visible commands by hiding 10 commands for backward compatibility. These hidden commands still work but clutter the codebase and should be removed in a future major version.
Hidden Commands to Remove in v3.0
The following commands were hidden in v2.x and should be completely removed in v3.0:
1. Deprecated Aliases (3 commands)
daf sessions list→ Remove (usedaf list)daf config tui→ Remove (usedaf config edit)daf completion→ Remove (integrated intodaf init)2. Merged Commands (2 commands)
daf edit→ Remove (usedaf open --edit)daf check→ Remove (usedaf init --check)3. Hidden Maintenance Commands (5 commands)
Keep these but remove direct access (only via
daf maintenancegroup):daf cleanup-conversation→ Remove direct accessdaf cleanup-sessions→ Remove direct accessdaf discover→ Remove direct accessdaf rebuild-index→ Remove direct accessdaf repair-conversation→ Remove direct access4. Developer Utilities (1 command)
daf purge-mock-data→ Keep hidden (developer-only)Implementation Plan
Phase 1: Prepare Users (v2.x releases)
Phase 2: Remove Commands (v3.0)
daf sessionscommand group codedaf config tuialias codedaf completioncommand codedaf editcommand codedaf checkcommand codePhase 3: Cleanup (v3.0)
Expected Impact
Breaking Changes
This is a BREAKING CHANGE release (v3.0) requiring:
User Migration Path
Users will need to update their scripts/workflows:
Files to Modify
Delete:
devflow/cli/commands/sessions_list_command.py(already unused in v2.x)devflow/cli/main.pyUpdate:
devflow/cli/main.py- Remove hidden command definitionstests/- Update/remove tests for hidden commandsdocs/- Remove migration notes (no longer needed)Acceptance Criteria
daf purge-mock-dataremains hidden (developer utility)Timeline
Proposed:
Dependencies
References
283