Home / Claude Code mods / Interface / path-shorten

path-shorten

path-shorten is a Claude Code mod by baselane-sh that tool rows draw long absolute file paths shorter: the project root as ./ and your home folder as ~. Display only; Bash commands are drawn as they ran.

Updated 2026-10-06

What is path-shorten?

path-shorten is a Claude Code mod by baselane-sh that tool rows draw long absolute file paths shorter: the project root as ./ and your home folder as ~. Display only; Bash commands are drawn as they ran. It is listed under Interface and has 1 GitHub stars.

TypeClaude code mod
Authorbaselane-sh
Repositorybaselane-sh/mods
Popularity1 GitHub stars
CategoryInterface
SecurityLow risk (88/100)
Rank#1,608 of 5,272 Claude Code mods; #641 in Interface
LicenseMIT
Last commit2026-10-06
Hooks1 events
Seesonly the events it hooks
Draws onToolUse

Is path-shorten safe to install?

path-shorten scores 88/100 on the MCPMods security check: Low risk. Things to review: reads environment variables. It passed 7 of 8 checks.

Mod footprints come from claude plugin validate, which lists every event a mod hooks and every API call it makes without running it.

CheckResult
No network accessPass
Starts no processesPass
Writes no files or configPass
Reads environment variablesReview
Only sees the events it hooksPass
Doesn't drive ClaudePass
Passes claude plugin validatePass
Has an open-source licensePass

API calls in its code

CallWhat it means
$.env.getreads env vars
$.session.root
$.ui.logdraws interface
$.ui.resolvedraws interface

How do I install path-shorten?

  1. Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
    claude --version
  2. Read its footprint. This lists every event it hooks and every API call it makes, without running it.
    git clone https://github.com/baselane-sh/mods
    claude plugin validate ./mods/plugins/path-shorten
  3. Install it. Run this in your terminal, then /reload-plugins in an open session.
    claude plugin marketplace add baselane-sh/mods && claude plugin install path-shorten@baselane-mods-dev

Or ask Claude to set it up

Paste this into Claude Code and it installs path-shorten for you:

Install the "path-shorten" Claude Code mod from https://github.com/baselane-sh/mods/tree/main/plugins/path-shorten. Run claude plugin validate on it first and show me what it can access before you enable it.

More from baselane-sh/mods

This repository has at least 9 Claude Code mods on MCPMods.

  • achievements: Unlocks eight badges once each (first session, first green test run, 100 and 1,000 tool calls, 7-day streak, 10 blocked (Low risk)
  • agent-firewall: A live pane of every tool call the agent makes: green when it ran, red when it was blocked, with counters. Open it with (Low risk)
  • ahead-behind: A band above the prompt with the commits ahead and behind the upstream (↑2 ↓1), read with git status after each Bash cal (Low risk)
  • audit-pack: Three read-only audit commands in one mod: /secret-scan, /conflicts and /licenses. They read git, project files and depe (Low risk)
  • authors: Adds /authors: the top 15 contributors by commit count with their last commit date, from git log. Names only, never emai (Low risk)
  • auto-format: Runs your project's own formatter on each file Claude writes or edits, only when the project has a formatter config, and (Low risk)
  • auto-lint: Runs your project's own linter fix (eslint, ruff or golangci-lint) on each file Claude writes or edits, only when the pr (Low risk)
  • band-pack: The first six Baselane band meters in one row above the prompt: session cost, lattes, context bar, today's spend, the fo (Low risk)