Commit 1148cc9
authored
feat: add non-interactive commands (#11)
## Summary
This PR introduces autonomous variants of the plan creation and
refinement commands that resolve ambiguities without user interaction.
These new commands are designed for scripted workflows, CI/CD pipelines,
and batch processing scenarios where manual feedback is not available.
## Key Changes
- **New Commands Added**:
- `/tasks:create-plan-auto` - Creates comprehensive plans autonomously
by inspecting codebase and documentation instead of asking clarifying
questions
- `/tasks:refine-plan-auto` - Refines existing plans autonomously using
the same codebase-inspection approach
- **Command Templates**:
- Added `templates/assistant/commands/tasks/create-plan-auto.md` with
full autonomous planning workflow
- Added `templates/assistant/commands/tasks/refine-plan-auto.md` with
autonomous refinement workflow
- Both templates include detailed instructions for resolving ambiguities
through codebase analysis and documenting assumptions
- **Documentation Updates**:
- Updated `AGENTS.md` with usage guidance for the new `-auto` commands
- Added section explaining when to use auto commands (scripted
workflows, CI/CD pipelines, batch processing)
- Clarified that auto variants skip user feedback loops and resolve gaps
autonomously
- **Test Coverage**:
- Updated integration tests to verify both new command templates are
generated for all assistants (Cursor, Claude, Gemini, OpenCode, Codex)
- Updated test expectations to account for 9 total command templates (up
from 7)
- **CLI Output**:
- Updated initialization output to display the new prompt files and
command templates
## Implementation Details
The autonomous commands follow the same planning structure as their
interactive counterparts but with critical differences:
- They do NOT ask users clarifying questions
- They resolve ambiguities by inspecting the codebase, documentation,
README files, and assistant configuration
- They document all assumptions in the Plan Clarifications table with
clear rationale
- They maintain the same output format and plan structure for downstream
task generation
Both commands include a "Process Checklist" and "Autonomous
Clarification Algorithm" to systematically identify and resolve gaps
without user input.1 parent 9a20c1f commit 1148cc9
7 files changed
Lines changed: 405 additions & 18 deletions
File tree
- src
- __tests__
- templates/assistant/commands/tasks
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
203 | 203 | | |
204 | 204 | | |
205 | 205 | | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
206 | 209 | | |
207 | 210 | | |
208 | 211 | | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
209 | 215 | | |
210 | 216 | | |
211 | 217 | | |
212 | 218 | | |
213 | 219 | | |
214 | 220 | | |
215 | 221 | | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
216 | 231 | | |
217 | 232 | | |
218 | 233 | | |
| |||
298 | 313 | | |
299 | 314 | | |
300 | 315 | | |
| 316 | + | |
301 | 317 | | |
| 318 | + | |
302 | 319 | | |
303 | 320 | | |
304 | 321 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| 77 | + | |
77 | 78 | | |
| 79 | + | |
78 | 80 | | |
79 | 81 | | |
80 | 82 | | |
| |||
111 | 113 | | |
112 | 114 | | |
113 | 115 | | |
| 116 | + | |
114 | 117 | | |
| 118 | + | |
115 | 119 | | |
116 | 120 | | |
117 | 121 | | |
| |||
126 | 130 | | |
127 | 131 | | |
128 | 132 | | |
129 | | - | |
| 133 | + | |
130 | 134 | | |
131 | 135 | | |
132 | 136 | | |
| |||
231 | 235 | | |
232 | 236 | | |
233 | 237 | | |
234 | | - | |
| 238 | + | |
235 | 239 | | |
236 | 240 | | |
| 241 | + | |
237 | 242 | | |
| 243 | + | |
238 | 244 | | |
239 | 245 | | |
240 | 246 | | |
| |||
303 | 309 | | |
304 | 310 | | |
305 | 311 | | |
306 | | - | |
| 312 | + | |
307 | 313 | | |
308 | 314 | | |
309 | 315 | | |
| |||
672 | 678 | | |
673 | 679 | | |
674 | 680 | | |
675 | | - | |
| 681 | + | |
676 | 682 | | |
677 | 683 | | |
678 | 684 | | |
| |||
769 | 775 | | |
770 | 776 | | |
771 | 777 | | |
| 778 | + | |
772 | 779 | | |
773 | 780 | | |
774 | 781 | | |
775 | 782 | | |
776 | 783 | | |
777 | 784 | | |
| 785 | + | |
778 | 786 | | |
779 | 787 | | |
780 | 788 | | |
| |||
792 | 800 | | |
793 | 801 | | |
794 | 802 | | |
795 | | - | |
| 803 | + | |
796 | 804 | | |
797 | 805 | | |
798 | 806 | | |
799 | | - | |
| 807 | + | |
800 | 808 | | |
801 | 809 | | |
802 | 810 | | |
803 | 811 | | |
804 | | - | |
| 812 | + | |
805 | 813 | | |
| 814 | + | |
806 | 815 | | |
807 | 816 | | |
808 | 817 | | |
809 | 818 | | |
810 | 819 | | |
811 | 820 | | |
| 821 | + | |
812 | 822 | | |
813 | 823 | | |
814 | 824 | | |
| |||
871 | 881 | | |
872 | 882 | | |
873 | 883 | | |
874 | | - | |
| 884 | + | |
875 | 885 | | |
876 | 886 | | |
877 | 887 | | |
878 | 888 | | |
879 | 889 | | |
880 | 890 | | |
| 891 | + | |
881 | 892 | | |
| 893 | + | |
882 | 894 | | |
883 | 895 | | |
884 | 896 | | |
| |||
958 | 970 | | |
959 | 971 | | |
960 | 972 | | |
| 973 | + | |
961 | 974 | | |
| 975 | + | |
962 | 976 | | |
963 | 977 | | |
964 | 978 | | |
| |||
1026 | 1040 | | |
1027 | 1041 | | |
1028 | 1042 | | |
| 1043 | + | |
1029 | 1044 | | |
| 1045 | + | |
1030 | 1046 | | |
1031 | 1047 | | |
1032 | 1048 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
135 | 138 | | |
136 | 139 | | |
137 | 140 | | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
138 | 144 | | |
139 | 145 | | |
140 | 146 | | |
| |||
161 | 167 | | |
162 | 168 | | |
163 | 169 | | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
164 | 173 | | |
165 | 174 | | |
166 | 175 | | |
| |||
170 | 179 | | |
171 | 180 | | |
172 | 181 | | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
173 | 185 | | |
174 | 186 | | |
175 | 187 | | |
| |||
407 | 419 | | |
408 | 420 | | |
409 | 421 | | |
| 422 | + | |
410 | 423 | | |
| 424 | + | |
411 | 425 | | |
412 | 426 | | |
413 | 427 | | |
| |||
442 | 456 | | |
443 | 457 | | |
444 | 458 | | |
| 459 | + | |
445 | 460 | | |
446 | 461 | | |
447 | 462 | | |
448 | 463 | | |
449 | 464 | | |
450 | 465 | | |
| 466 | + | |
451 | 467 | | |
452 | 468 | | |
453 | 469 | | |
| |||
0 commit comments