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
显示更多