🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@feniix/pi-devtools

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@feniix/pi-devtools

Devtools extension for pi — branch and PR workflow, release automation, PR feedback resolution, merge commands, with GitHub and Linear tracker support

latest
Source
npmnpm
Version
3.1.1
Version published
Weekly downloads
57
307.14%
Maintainers
1
Weekly downloads
 
Created
Source

@feniix/pi-devtools

Devtools extension for pi — branch and PR workflow, release automation, and merge commands.

Features

  • Git Workflow Tools: Create branches, commit, push, create PRs
  • Merge Commands: Merge or squash-merge PRs with observable, worktree-safe branch cleanup
  • Release Automation: Analyze commits, bump versions, generate changelogs, create releases
  • CI Status Checking: Check GitHub Actions status before merging or releasing

Install

pi install npm:@feniix/pi-devtools

Ephemeral (one-off) use:

pi -e npm:@feniix/pi-devtools

Active Working Directory and Worktrees

Every tool runs Git, GitHub CLI, and repository-relative file operations in Pi's active working directory (active cwd), not the extension process directory. devtools_get_repo_info reports the active worktree root, linked worktree context, detached HEAD state, Git directories, and all parsed worktree records.

When merge cleanup is requested, remote and local cleanup are attempted and reported separately. Occupied branches are retained when checked out by the active or another linked worktree, including locked or conservatively retained prunable records. A retained branch or cleanup failure does not change a successful merge into a failed merge.

The extension observes worktree topology for safety, but it will never create, remove, unlock, or prune worktrees. It also does not switch to or update the default branch after a merge.

Tools

Branch & PR Tools

ToolDescription
devtools_create_branchCreate and switch to a new git branch
devtools_commitStage files and create a commit with conventional format
devtools_pushPush branch to remote with upstream tracking
devtools_create_prCreate a GitHub pull request
devtools_get_repo_infoGet active worktree, linked/detached context, default branch, and status

Merge Tools

ToolDescription
devtools_merge_prMerge a PR with optional best-effort remote and local branch cleanup
devtools_squash_merge_prSquash-merge a PR with optional best-effort remote and local branch cleanup
devtools_check_ciCheck CI status for a PR or the current branch

Release Tools

ToolDescription
devtools_get_latest_tagGet the latest version tag from git
devtools_analyze_commitsAnalyze commits since last tag to determine version bump
devtools_bump_versionUpdate version in package.json
devtools_create_releaseCreate a GitHub release with changelog

Skills

  • brpr: Branch, commit, push, and open PR workflow
  • release: Automated release process with changelog generation
  • merge: Merge or squash-merge PRs

Configuration

Required: GitHub CLI

The gh CLI must be installed and authenticated:

gh auth login

Optional: Default Branch

The extension auto-detects the default branch, but you can set it explicitly:

export DEFAULT_BRANCH=main  # or 'master'

Requirements

  • pi v0.51.0 or later
  • git CLI
  • gh CLI (authenticated)
  • jq (for JSON parsing)

License

MIT

Keywords

pi

FAQs

Package last updated on 12 Jul 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts