pi-tool-discipline 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/extensions/index.ts +8 -3
- package/package.json +1 -1
package/extensions/index.ts
CHANGED
|
@@ -44,10 +44,15 @@ const BASH_GUIDELINES = [
|
|
|
44
44
|
const DISCIPLINE = `
|
|
45
45
|
## Tool Discipline (pi-tool-discipline)
|
|
46
46
|
|
|
47
|
-
|
|
47
|
+
Tool priority for search (always use the highest available):
|
|
48
48
|
|
|
49
|
-
- Content search:
|
|
50
|
-
-
|
|
49
|
+
- Content search: ffgrep (tool) > rg (bash) > grep (bash)
|
|
50
|
+
- Path search: fffind (tool) > find (bash)
|
|
51
|
+
|
|
52
|
+
Rules:
|
|
53
|
+
|
|
54
|
+
- Read files with \`read\` (use \`offset\`/\`limit\` for large files); do not use bash \`cat\`/\`head\`/\`tail\`/\`sed\` for reading.
|
|
55
|
+
- Do not use bash \`ls\` for listing; use \`fffind\` (empty pattern lists the directory).
|
|
51
56
|
- Do NOT use the bash tool for \`grep\`/\`rg\`/\`find\`/\`ls\`/\`cat\`/\`sed\`/\`head\`/\`tail\`/\`which\` searches or file reads.
|
|
52
57
|
- Bash stays allowed only when dedicated tools cannot do the job: pipelines, git, npm, running programs, network requests, file mutations.
|
|
53
58
|
- If bash searching is truly unavoidable, prefer \`rg\` over \`grep\`.`;
|
package/package.json
CHANGED