Pi lets you pass a project directory (cwd) to createAgentSession(), to help scope where tools should work.
Tools like read, grep, find and ls efficiently resolve in that project, and the session picks up the projects AGENTS.md and skills.
Here’s the code to try this out
Tools like read, grep, find and ls efficiently resolve in that project, and the session picks up the projects AGENTS.md and skills.
Here’s the code to try this out
Sep 7, 2026 · 11:53 AM UTC
10
14
377
27,225








