---
slug: "kkskcs-pi-diff-inline"
source_type: "readme"
source_url: "https://cdn.jsdelivr.net/gh/kkskcs/pi-lego@main/README.md"
repo: "https://github.com/kkskcs/pi-lego"
source_file: "README.md"
branch: "main"
---
# @kkskcs/pi-lego

Reusable modules for [pi](https://github.com/earendil-works/pi-coding-agent), packaged as independent npm extensions.

Frequently used patterns and utilities during pi sessions are extracted here so they can be shared, versioned, and
installed independently.

## Packages

| Package                                     | Description                                               |
|---------------------------------------------|-----------------------------------------------------------|
| [@kkskcs/pi-open](https://github.com/kkskcs/pi-lego/tree/HEAD/packages/pi-open) | Open current directory in finder, terminal, or split pane |
| [@kkskcs/pi-diff-inline](https://github.com/kkskcs/pi-lego/tree/HEAD/packages/pi-diff-inline) | Render diffs inline in the conversation stream |

## Debugging with Source

If you want to link a package locally for development/debugging:

```bash
# 1. Clone and build
git clone https://github.com/kkskcs/pi-lego.git
cd pi-lego
pnpm install
pnpm run build

# 2. Link the package you want to debug
cd packages/pi-open
pnpm link --global

# 3. In your pi project, link the package
pnpm link --global @kkskcs/pi-open
```

Changes in the source will be reflected after `pnpm run build`.

