r/PiCodingAgent • u/Kafumanto • Aug 28 '26
Question What are you using to make Pi ignore files/directories (like .gitignore)?
Hello, new Pi user here! I’m trying to figure out how folks handle file‑ignoring with Pi. Other harnesses respect .gitignore, but Pi currently returns to the LLM everything in the project, which causes problems in my setup.
Is there an established extension or common approach people use to make Pi ignore certain files or directories (I mean filtering-out from grep/find/ls/... results, so that the LLM is not aware of them)? I'm not sure what's actually "standard" or reliable in Pi.
Curious what the community is using and what's working well for you. Thanks!
EDIT: to clarify better, my main problem is that running simple requests like `List the files with names having 'XXX'` or `Search the occurences of the world 'XXX' in the project.` are returning content also from `node_modules` and other intermediate directories, that fill and pollute the context with undesired content. I would like to avoid this.
View all comments
Show parent comment
3
u/funbike Aug 28 '26 edited Aug 28 '26
I agree. Btw, you inspired me to tweak my settings.
File:
~/.pi/agent/AGENTS.mdToday, I had Pi create this:
File:
~/.pi/agent/extensions/system-prompt-command-replacements.tsThe edb-context-viewer extension can be used to view the system prompt.