Skip to content

About

Pi extensions for inline skill invocation, session IDs in the footer, Agent Guard checks, and a DeepSeek reasoning workaround. Each can be enabled on its own.

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

Pi Extensions

Extensions for Pi that add inline skill invocation, session IDs in the footer, Agent Guard checks, an OS sandbox for shell commands, and a DeepSeek reasoning workaround. Each extension can be enabled independently.

Invoke skills inside a prompt

Type /skill-name inside an interactive prompt to complete and highlight a skill mention. The first mention outside code invokes the skill through Pi. Other mentions are named to the model, which decides whether to use them.

Identify the session

The session footer adds the session ID below the working directory. It keeps Pi's statistics and extension statuses.

Check tool calls with Agent Guard

The Agent Guard adapter checks shell, file, and search tool calls before they run. A rejected or failed check blocks the call. Agent Guard owns the rules.

Sandbox shell commands

The command sandbox runs the bash tool and ! commands inside a macOS Seatbelt sandbox built with Sandbox Runtime. It holds write and edit to the same write policy. A bash call runs outside it only after you approve that command; an optional judge records beside your answer whether it would have let the command run without asking. Pi and its other extensions stay outside it.

Filter replayed DeepSeek reasoning

The reasoning workaround removes interjections and repeated standalone filler from the request copy. It preserves the recorded transcript. It applies only to DeepSeek models.

Install

pi install git:github.com/Entwining/pi-extensions

This loads every extension in the package. The Agent Guard adapter requires Apple Silicon macOS and Agent Guard installed through Homebrew. Without it, every guarded tool call is blocked; disable that extension or select only the extensions you need. The command sandbox blocks shell commands, write, and edit on systems other than macOS and until its policy file exists.

Updates follow the default branch unless you pin a Git tag or commit. The package is distributed through Git, not npm.

Limits

The editor and footer extensions replace parts of Pi's terminal UI. Other extensions replacing the same components can affect their composition. The reasoning workaround depends on the provider's reasoning_details format.

Development

Contributors run the repository checks and try changes in a local Pi session. AGENTS.md defines the runtime, test, release, and dependency constraints for changes.

Pi Extensions is released under the MIT License.

About

Pi extensions for inline skill invocation, session IDs in the footer, Agent Guard checks, and a DeepSeek reasoning workaround. Each can be enabled on its own.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages