packages / senomas-pi-git-hat
extension Modes & workflows

@senomas/pi-git-hat

Pi extension for role-based Git branch workflows — wear different hats by switching branches

No reviews yet

Install

$ pi install npm:@senomas/pi-git-hat

Installs from npm into ~/.pi/agent/. Add -l for project-local (.pi/). Manage with pi list / pi update / pi remove.

What this package can reach

Detected automatically from the source at version 1.0.0. This describes access, not safety — you decide whether it's appropriate for what the package claims to do.

  • 🤖
    Behavior — Changes how the agent thinks Modifies the system prompt, injects messages, or rewrites conversation context.
  • Commands — Runs shell commands Spawns processes on your machine.
  • 📁
    Files — Reads files outside your project Touches paths beyond the working directory, such as your home folder.
  • Intercepts tools — Can block or rewrite tool calls Subscribes to tool_call/tool_result/input. Can change a command after you approved the one displayed.
  • 🌐
    Network — Talks to the internet Makes outbound network requests. Check the destinations are ones you expect.
  • Subagents — Spawns agents or sessions Runs additional agents. Ask whether it caps iterations and spend.
  • 🔧
    New tools — Adds model-callable tools Gives the agent new abilities. Additive and visible, unlike an override.
  • UI — Draws its own interface Renders widgets, footers, dialogs or full-screen views.

What it actually did when run

observed

Loaded in a sandbox with no network, a read-only filesystem and a recording stand-in for pi's API. This is what it called — not what the source suggests it might.

Tools registered hat_todo_newhat_todo_updatehat_todo_implhat_todo_reviewhat_todo_futurehat_todo_queryhat_todo_regen_mdhat_podmanhat_podman_rmhatd_updatehat_test_failhat_enable_networkhat_subagenthat_makehat_python

Events subscribed before_agent_startinputsession_shutdownsession_starttool_calltool_resultturn_endturn_start

APIs called cwd.slicecwd.startsWithexecexec.stdout.indexOfexec.stdout.sliceexec.stdout.slice.trimexec.stdout.slice.trim.splitexec.stdout.slice.trim.split.mapexec.stdout.slice.trim.split.map.joinexec.stdout.trimexec.stdout.trim.splitexec.stdout.trim.split.filterexec.stdout.trim.split.filter.filterexec.stdout.trim.split.filter.includesexec.stdout.trimEndgetSessionNamegetSessionName.startsWithmodel.id.toJSONregisterCommandregisterToolsessionManager.getEntriessessionManager.getSessionIdui.notify

16 calls the source scan did not predict

cwd.slice · cwd.startsWith · exec.stdout.indexOf · exec.stdout.slice · exec.stdout.slice.trim · exec.stdout.slice.trim.split · exec.stdout.slice.trim.split.map · exec.stdout.slice.trim.split.map.join · exec.stdout.trim · exec.stdout.trim.split · exec.stdout.trim.split.filter · exec.stdout.trim.split.filter.filter · exec.stdout.trim.split.filter.includes · exec.stdout.trimEnd · getSessionName.startsWith · model.id.toJSON

Reached through a value the scan could not follow — passed as an argument, stored on another object, or returned by a helper.

Run against version 1.0.0 on 2026-08-02. Registration-time behaviour under default settings; other configurations may differ.

Review before you install. pi packages run with your full system permissions. Check the source, pin versions, and prefer authors you trust.

Reviews

0 published

Sign in with GitHub to write a review, reply, or vote.

No reviews yet — be the first.

More in Modes & workflows

  • pi-executor — Pi extension to run executor
  • pi-gsd — Get Shit Done - Unofficial port of the renowned AI-native project-planning spec-driven too…
  • @gonrocca/zero-pi-todo — zero-pi-todo — TODOs persistentes para pi, con tool, slash command y overlay aboveEditor.
  • @siddr/pi-review — Interactive review mode extension for pi