Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions tools/promptExtractor.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,22 @@ function validateInput(text, minLength = 500) {
if (text.includes('IMPORTANT: Assist with authorized security testing'))
return true;

// Short prompts from the "Doing tasks" section (rJ3 function in cli.js)
if (text.includes('exploratory questions')) return true;
if (text.includes('well-named identifiers already do that')) return true;
if (text.includes('golden path and edge cases')) return true;
if (text.includes('Prefer editing existing files')) return true;
if (text.includes('Default to writing no comments')) return true;
if (text.startsWith("Don't add features, refactor")) return true;
Comment thread
Liyux3 marked this conversation as resolved.

// Short prompts from the "Tone and style" section (HM3 function in cli.js)
if (text.includes('Only use emojis if the user explicitly')) return true;
if (text === 'Your responses should be short and concise.') return true;
if (text.includes('Do not use a colon before tool calls')) return true;

// Short prompts from the memory "What NOT to save" section
if (text.includes('What NOT to save in memory')) return true;

// ////////////////
// What to exclude.
// ////////////////
Expand Down