npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

pi-files-touched

v0.1.0

Published

Deterministic file-activity tracking for Pi sessions, covering native tools, RepoPrompt, and bash commands. Includes /files-touched picker and a shared core for compaction/handover extensions

Downloads

103

Readme

Files Touched for Pi (pi-files-touched)

Deterministic file-activity tracking across a Pi session branch that registers /files-touched, a picker that lists every file the agent has read, written, edited, moved, or deleted. The list is sorted newest-first and has colored R/W/E/M/D operation badges and normalized paths.

Evolved from pi-mono/.pi/extensions/files.ts by Mario Zechner (MIT). See THIRD-PARTY-NOTICES.md.

Install

pi install npm:pi-files-touched

What it tracks

pi-files-touched walks the current branch of the Pi session tree and collects file activity from:

  • Pi native tools: read, write, edit tool calls matched with their tool results
  • RepoPrompt tools: rp and rp_exec tool calls: read_file, apply_edits, file_actions (create/move/delete), git mv, git rm
  • Bash commands: sed -i (edit), cp/rsync (write destination), tee/touch (write), patch (edit), curl -o/wget -O (write), cat/head/tail (read), shell output redirections (>, >>), mv (move), rm/trash (delete), heredoc body filtering

All path spellings — relative, root-prefixed (RootName:path), and absolute — are normalized and coalesced so the same file appears once regardless of how different tools referred to it. File moves are tracked and earlier references are carried forward to the final path.

Shared core for other extensions

The tracking engine lives in extensions/_shared/files-touched-core.ts and is designed to be imported by other extensions that need an authoritative, deterministic manifest of file activity across any segment of the session tree.

import { collectFilesTouched, type FilesTouchedEntry, type FileTouchOperation } from "./_shared/files-touched-core.ts";

// Walk the current branch
const files = collectFilesTouched(ctx.sessionManager.getBranch(), ctx.cwd);

// Or pass any subset of session entries (e.g., the entries being compacted)
const spanFiles = collectFilesTouched(entriesToSummarize, ctx.cwd);

This is useful for extensions that generate compaction summaries, handoff documents, branch summaries, or anywhere else benefiting from a grounded file manifest instead of relying on LLM inference-mediated recall.

/files-touched

Opens an interactive picker listing all files on the current branch. You can select a file to open it in VS Code (supports Windows cmd launch hardening).

 ┌──────────────────────────────────────────────────┐
  Select file to open
  ▸ RW src/header.txt
    RE src/utils.ts
    E  src/config.ts
    W  src/synced.ts
    W  data/downloaded.json
    W  src/redirected.ts
    W  src/brand-new.ts
    W  src/copy.ts
  ↑↓ navigate • ←→ page • enter open • esc close
 └──────────────────────────────────────────────────┘

License

MIT