Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

pi-readonly-default

Read-only tools by default. Use /do to unlock edit/write for one request, then automatically reverts to read-only.

Installation

# Via git (recommended — pin to a tagged version)
pi install git:github.com/<user>/[email protected]

# Try without installing
pi -e git:github.com/<user>/pi-readonly-default

Usage

Once installed, the agent starts in read-only mode with only these tools: read, bash, grep, find, ls

Unlock full tools for one request

/do                  # Unlock + "Go ahead"
/do refactor login   # Unlock + sends "refactor login" as the prompt

What happens

Step Effect
Type /do Agent gets edit and write for this request only
Agent completes work Tools automatically revert to read-only
Next prompt Agent is told it's back in read-only mode

Blocked commands in read-only mode

Destructive bash commands are blocked when read-only:

rm, mv, mkdir, touch, chmod, chown, sed, npm install/uninstall, yarn add, pnpm add, pip install, git add/commit/push/reset/rebase, sudo, kill, reboot

Use /do to temporarily lift these restrictions.

Configuration

No configuration required — works out of the box.

License

MIT

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages