Coding Tools & @Files
Pia can read, search, and edit text files for you — but only inside a folder you pick. Everything stays limited to that folder, so Pia can’t touch files anywhere else on your computer.
Choose a Folder
Section titled “Choose a Folder”First, tell Pia which folder it’s allowed to work in.
- Open Settings → Assistant
- Find Assistant files folder
- Click Browse… and pick a folder
That’s it — Pia can now work with files in that folder. Leave the folder empty to turn the file tools off completely.
Scope a Single Chat
Section titled “Scope a Single Chat”Each chat can work in a subfolder of your main folder, which keeps things focused.
- In the Assistant, click the chat title chip at the top
- A flyout opens with a folder picker
- Drill into a subfolder to scope that chat to it
- Click the home icon to return to the top folder
Reference Files with @Files
Section titled “Reference Files with @Files”You can pull a file’s contents straight into your message.
- In the message box, type
@Filesfollowed by a file name - An autocomplete list shows matching files in the chat’s folder
- Pick one to include its contents in your message
Pia then has the full text to work with — handy for asking questions about a document or having Pia rewrite part of it.
Review Changes Before They Happen
Section titled “Review Changes Before They Happen”When Pia wants to change a file, it doesn’t just go ahead. An action card appears showing:
- The file path
- A colour-coded diff — green for added lines, red for removed lines
You then choose Decline or Allow once.
If a file changes on disk after Pia previewed it but before you approve, the change is blocked to keep things safe. Just ask Pia to read the file again and try once more.
Tool Permissions
Section titled “Tool Permissions”Reading, searching, and listing files are safe, so they don’t need approval. For any standing permissions you’ve granted:
- Open Settings → Tool access
- You’ll see any “Always allow” grants for safe tools
- Click Revoke next to any grant you want to remove
Good to Know
Section titled “Good to Know”- File tools work on plain-text files. Binary files like images are skipped.
- Very large files may be skipped or trimmed.
- Your file contents stay on your computer. They aren’t uploaded anywhere unless you ask Pia to do so. See the Privacy guide for more on how Pia handles your data.
Next Steps
Section titled “Next Steps”Learn more about chatting with the Assistant in the Assistant guide.