🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@piotr-oles/pi-cwd

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@piotr-oles/pi-cwd

Pi Agent extension: remind agent to use relative paths based on current working directory

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

pi-cwd

Pi Agent extension that reminds you to use relative paths to reduce context usage.

When agent uses absolute paths in read, write, edit, or bash tool calls, extension reacts according to configured mode.

Usage

Install via pi config:

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

Modes

Controlled by pi-cwd-mode flag or PI_CWD_MODE env variable. Flag takes precedence.

ModeBehavior
warn (default)Appends tip to tool result reminding agent to use relative paths
blockBlocks tool call before execution and asks agent to retry with relative path

Detection

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

Keywords

pi-package

FAQs

Package last updated on 09 Jul 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts