- TypeScript 99.6%
- JavaScript 0.3%
| .changeset | ||
| libraries | ||
| packages | ||
| scripts | ||
| .envrc | ||
| .gitignore | ||
| AGENTS.md | ||
| bun.lock | ||
| flake.lock | ||
| flake.nix | ||
| LICENSE | ||
| oxfmt.config.ts | ||
| oxlint.config.ts | ||
| package.json | ||
| prek.toml | ||
| README.md | ||
| tsconfig.json | ||
Pi extensions
Sixteen independently installable Pi packages in one Bun workspace. The repository root is private and does not load extensions.
| Package | Purpose |
|---|---|
| @jawfish/code-execution | CPython execution, sessions, and retained output |
| @jawfish/compact-footer | Compact context, model, and subscription footer |
| @jawfish/fleet | Concurrent child agents and workflows |
| @jawfish/github | GitHub pull request status, CI monitoring, and opt-in fixes and merges |
| @jawfish/issue-tracker | Local SQLite Issues, criteria, dependencies, and project tracking |
| @jawfish/background-tasks | Session-scoped background processes |
| @jawfish/browser | Shared visible browser control and human handoff |
| @jawfish/memory | Global and project notes with keyword search and decay |
| @jawfish/questionnaire | Multi-question terminal forms |
| @jawfish/review | Read-only code review in an isolated reviewer session |
| @jawfish/session-logs | Complete session history and lifecycle logs |
| @jawfish/shortcuts | Custom compaction, prompt cut, and restore shortcuts |
| @jawfish/subscription-usage | Subscription quota and reset status through CLIProxyAPI |
| @jawfish/suggest | Ghost-text reply suggestions |
| @jawfish/turn-timing | Per-request and tool latency records |
| @jawfish/worktree | Managed Git worktrees and conversation transfer |
Install one package
After the package is published:
pi install npm:@jawfish/fleet
Use any package name from the table. Add @<version> to pin a release. Each package declares only its own Pi resources and runtime dependencies. Installing one does not install or activate the other extensions.
For a local checkout:
nix develop -c bun install --frozen-lockfile
nix develop -c bun run build
pi install /absolute/path/to/pi-extensions/packages/fleet
Local installs do not install dependencies or run builds. Run the first two commands yourself.
Do not install the repository root. Pi's Git package source selects a repository, not a workspace subdirectory. This repository deliberately has no aggregate package or root extension manifest. Use npm or a local package directory. Remove any old Git-source or @jawfish/pi-* package declaration before installing its replacement to avoid loading the same extension twice. Package names changed; tool names and operational state paths remain unchanged. Diagnostic logging now uses the shared telemetry setting below instead of per-extension journal paths.
Development
The pinned Nix shell supplies Bun, Node 24, Git, and uv. Without Nix, use Bun 1.4.2, Node 24 or later, Git, and uv.
nix develop -c bun install --frozen-lockfile
nix develop -c bun run check
# Build shared JavaScript before working on one package.
# Each suite runs in its own process and directory.
nix develop -c bun run build
nix develop -c bun run --filter @jawfish/fleet test
nix develop -c bun run --filter @jawfish/fleet typecheck
check runs format and lint checks, builds shared libraries, then runs type checks, package test suites, and isolated artifact checks. Root lint, fix, test, and typecheck build libraries before resolving their generated exports. package:check builds, packs all packages, installs each extension separately outside the workspace without host peers, and starts Pi with that package only. It checks tools, commands, skills, and installed runtime libraries under Node, including full chunk reconstruction. It uses temporary Pi homes, clears PI_TELEMETRY_ENDPOINT for extension loading, and makes no model requests. Export tests use synthetic loopback receivers only. The check needs registry access for ordinary runtime dependencies.
Lint and format
The root oxlint.config.ts and oxfmt.config.ts apply to every package, library, and workspace script. They use Ultracite's core and formatter presets plus all rules from @jawfish/oxlint-plugin/config. Oxlint also runs type-aware rules and TypeScript checks. Warnings fail the check. Dependencies and generated output are excluded by the shared presets and .gitignore.
bun run lint # check source and tests; no fixes
bun run format:check # check formatting; no writes
bun run format # format the workspace
bun run fix # safe lint fixes, then formatting
Run these commands from the workspace root. Questionnaire's local commands use the same root configuration. The custom plugin is installed from git.jawfish.dev/james/oxlint-plugin; bun.lock pins its revision. To update it, run bun update @jawfish/oxlint-plugin and review the resulting rule changes. Do not disable rules to hide existing violations.
Shared code
Workspace packages can share runtime libraries under libraries/. Use declared workspace:^ dependencies, not relative imports into siblings. Libraries have no Pi entry point and must not activate extensions. Bun converts workspace ranges when packing; publish libraries before their consumers.
@jawfish/telemetry provides structured OTLP/HTTP logs for Background Tasks, Browser, Code Execution, Fleet, Questionnaire, and Session Logs. Set PI_TELEMETRY_ENDPOINT to a complete Collector logs URL, for example http://127.0.0.1:4318/v1/logs. Unset or empty disables export. This exports full recorded content; use a trusted private endpoint. Browser keeps its existing metadata-only policy; the other diagnostic writers retain their full payloads. A Grafana web URL is not an OTLP endpoint.
Small events have readable JSON bodies. Large bodies use numbered, hash-verifiable chunks; see the library's format and limits. Export is bounded and best effort. Queue acceptance is not a delivery receipt, and missing chunks are incomplete evidence. Logging failures do not fail tools. The library has no Pi hooks, console capture, or SQLite access.
Session Logs automatically exports the complete tree of each opened session, including history on resume and inactive branches, followed by new entries. It also records run and tool lifecycle observations. Query all extension logs with {service_namespace="pi-extensions"}, or only sessions with {service_name="pi-session-logs"}. See Session Logs for event schemas and correlation.
The diagnostic SQLite engine and PI_*_JOURNAL settings are retired. Existing journal database files are not read, imported, modified, or deleted. Fleet's durable recovery database, Memory's database, and retained source/output artifacts remain separate and unchanged. They are operational state, not lossy logs. Shared tooling and dependency versions live at the workspace root.
@jawfish/worktree-core provides Git validation, named-checkout creation, authorized environment setup, filesystem ownership, inspection, and safe removal. Worktree uses it through a Pi settings/path adapter. It ships JavaScript and types and has no Pi dependency. Fleet integration requires detached-checkout creation and verified result-reference cleanup; it is not wired to this library yet.
Releases
Each package has its own version. Changesets has no fixed or linked groups. Nothing publishes automatically.
bun run changeset # select changed packages and describe the change
bun run version # apply independent version/changelog updates
bun install # update the lockfile after version changes
bun run check
Review and commit the version changes before publishing. Set repository metadata after choosing a remote, and check registry versions before the first release. For each changed package, publish shared dependencies first:
cd packages/fleet
bun pm pack # produces a tarball with resolved workspace ranges
# Inspect the archive before this explicit publishing step:
npm publish ./jawfish-fleet-<version>.tgz --access public
Publish the tested tarball, not the source directory with workspace: references. The runtime libraries have build/prepack scripts and ship JavaScript plus declarations. Do not publish the private root.
Packaging references
- Vahor/pi-extensions: independent packages with private shared code included in build output.
- nicknisi/pi-extensions: independent packages with a published shared library and JavaScript exports.
- howaboua-pi-stuff: an isolated packed-artifact loader check. This repository checks all sixteen extensions.