You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
input=`Refactor: ${desc}. Read the relevant code first, then make targeted changes. Explain each change.`;
376
+
}
377
+
// Handle /debug — analyze recent error
378
+
if(input==='/debug'){
379
+
input='Look at the most recent error in this session. Read the relevant source files, analyze the root cause, and suggest a fix with specific code changes.';
380
+
}
381
+
// Handle /init — initialize project context
382
+
if(input==='/init'){
383
+
input='Read the project structure: check package.json (or equivalent), README, and key config files. Summarize: what this project is, main language/framework, entry points, and how to run/test it.';
384
+
}
385
+
// Handle /todo — find TODOs in codebase
386
+
if(input==='/todo'){
387
+
input='Search the codebase for TODO, FIXME, HACK, and XXX comments using Grep. Show the results grouped by file.';
388
+
}
389
+
// Handle /deps — show project dependencies
390
+
if(input==='/deps'){
391
+
input='Read the project dependency file (package.json, requirements.txt, go.mod, Cargo.toml, etc.) and list key dependencies with their versions.';
input=`Refactor: ${desc}. Read the relevant code first, then make targeted changes. Explain each change.`;
475
+
}
476
+
477
+
// Handle /debug — analyze recent error
478
+
if(input==='/debug'){
479
+
input='Look at the most recent error in this session. Read the relevant source files, analyze the root cause, and suggest a fix with specific code changes.';
480
+
}
481
+
482
+
// Handle /init — initialize project context
483
+
if(input==='/init'){
484
+
input='Read the project structure: check package.json (or equivalent), README, and key config files. Summarize: what this project is, main language/framework, entry points, and how to run/test it.';
485
+
}
486
+
487
+
// Handle /todo — find TODOs in codebase
488
+
if(input==='/todo'){
489
+
input='Search the codebase for TODO, FIXME, HACK, and XXX comments using Grep. Show the results grouped by file.';
490
+
}
491
+
492
+
// Handle /deps — show project dependencies
493
+
if(input==='/deps'){
494
+
input='Read the project dependency file (package.json, requirements.txt, go.mod, Cargo.toml, etc.) and list key dependencies with their versions.';
0 commit comments