@piotr-oles/pi-cwd

Pi Coding Agent extension: block absolute cwd paths in tool calls

Packages

Package details

extension

Install @piotr-oles/pi-cwd from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:@piotr-oles/pi-cwd
Package
@piotr-oles/pi-cwd
Version
1.1.0
Published
Jul 22, 2026
Downloads
426/mo · 163/wk
Author
piotr-oles
License
unknown
Types
extension
Size
2.6 KB
Dependencies
0 dependencies · 2 peers
Pi manifest JSON
{
  "extensions": [
    "./src/index.ts"
  ]
}

Security note

Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.

README

pi-cwd

Pi Coding Agent extension that forces agent to use relative paths to reduce context usage.

When agent uses absolute paths in read, write, edit, or bash tool calls, extension blocks that call and reminds agent to use relative paths.

Usage

Install via pi config:

pi install npm:@piotr-oles/pi-cwd

Detection

  • read/write/edit: Checks if path parameter starts with cwd path.
  • bash: Checks if command includes absolute cwd path.