Home / Claude Code mods / Interface / session-dir-button

session-dir-button

session-dir-button is a Claude Code mod by dcr-lol that a band above the prompt showing the current session's directory, with a Copy button that puts the path on the clipboard.

Updated 2026-10-09

What is session-dir-button?

session-dir-button is a Claude Code mod by dcr-lol that a band above the prompt showing the current session's directory, with a Copy button that puts the path on the clipboard. It is listed under Interface and has no public popularity data yet.

TypeClaude code mod
Authordcr-lol
Repositorydcr-lol/claude-session-mod
Popularityno public popularity data yet
CategoryInterface
SecurityLow risk (84/100)
Rank#3,013 of 5,272 Claude Code mods; #1,255 in Interface
Last commit2026-10-09
Hooks4 events
Seesclassic hooks
Draws onAbovePrompt

Is session-dir-button safe to install?

session-dir-button scores 84/100 on the MCPMods security check: Low risk. Things to review: reads environment variables. It passed 6 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
No license detectedNote

API calls in its code

CallWhat it means
$.env.getreads env vars
$.session.id
$.state.get
$.state.set
$.ui.copydraws interface
$.ui.resolvedraws interface
$.ui.toastdraws interface

How do I install session-dir-button?

  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/dcr-lol/claude-session-mod
    claude plugin validate ./claude-session-mod/session-dir-button
  3. Install it. Run this in your terminal, then /reload-plugins in an open session.
    claude plugin marketplace add dcr-lol/claude-session-mod && claude plugin install session-dir-button@claude-mods

Or ask Claude to set it up

Paste this into Claude Code and it installs session-dir-button for you:

Install the "session-dir-button" Claude Code mod from https://github.com/dcr-lol/claude-session-mod/tree/main/session-dir-button. Run claude plugin validate on it first and show me what it can access before you enable it.