choas/claude-mods/tree/main/cwd-status
cwd-status
セッションが作業しているフォルダーをステータスラインに表示する Claude Code Mod。Bash コマンドが cd した先も含め、ホームは ~ に短縮します。
この mod について
cwd-status は、モードラベルの隣にあるフッターへ現在の作業フォルダーを追加する小さな Claude Code プラグインです。ホームディレクトリを ~ に短縮し、📁 <folder> として表示します。セッションの作業フォルダーを追跡し、Bash コマンド内の cd や pushd の対象(例:cd ../other && make)も次のツール実行まで反映します。choas/claude-mods マーケットプレイスの一部で、/plugin marketplace add choas/claude-mods の後に /plugin install cwd-status@my-mods、さらに /reload-plugins を実行してインストールできます。付属の git-status Mod はブランチ、未コミットの項目、未 push のコミットを表示し、cwd-status とは独立して動作します。git status --porcelain=v2 --branch を使い、任意で locks off と 5 s のタイムアウトを設定できます。開発では claude plugin validate/test と claude --plugin-dir に対応し、プロジェクトは MIT ライセンスです。
インストール
まず作者の README で marketplace とプラグイン名を確認してください。コマンドはリポジトリの構成によって変わる場合があります。
claude plugin marketplace add choas/claude-mods claude plugin install cwd-status
原文 / README
my-mods
Small Claude Code mods that add live info to the footer, next to the mode labels.
| Mod | Shows | Example |
| --- | --- | --- |
| cwd-status | The folder Claude is working in, including where a Bash command cds to | 📁 ~/prj/app |
| git-status | Branch, uncommitted files and unpushed commits of that folder's repo | ⎇ main ●3 ↑2 |
Together they read like 📁 ~/prj/app ⎇ main ●3 ↑2.
Install
In Claude Code, add this marketplace once:
/plugin marketplace add choas/claude-mods
Then install one or both mods:
/plugin install cwd-status@my-mods
/plugin install git-status@my-mods
Run /reload-plugins (or restart Claude Code) and the labels show up in the footer.
You can also browse and install them interactively with /plugin → Marketplaces → my-mods.
Update
/plugin marketplace update my-mods
Uninstall
/plugin uninstall cwd-status@my-mods
/plugin uninstall git-status@my-mods
cwd-status
Shows 📁 <folder> with your home folder shortened to ~.
- Follows the session's working folder.
- When a Bash command
cds orpushdes somewhere (cd ../other && make), it shows that folder until the next tool runs.
git-status
Shows the git state of the current folder:
| Part | Meaning |
| --- | --- |
| ⎇ main | Current branch (short commit hash on a detached HEAD) |
| ●3 | Uncommitted entries: modified, staged, renamed, conflicted and untracked |
| ↑2 | Commits not pushed yet: ahead of the upstream, or, without an upstream, commits on no remote |
●and↑only appear when non-zero; outside a git repo nothing is shown.- Refreshes when the session starts, on every prompt (so commits made in another terminal show up), after Bash/Edit/Write tool calls, and when the folder changes.
- Follows
cdinside Bash commands on its own, so it works without cwd-status. - Uses
git status --porcelain=v2 --branchwith optional locks off and a 5 s timeout, so it never blocks your repo.
Requires git on your PATH.
Development
Each mod is a plugin folder with a hooks module (hooks/register.ts), a state contract (types/index.d.ts) and tests:
claude plugin validate git-status
claude plugin test git-status
To try local changes, point Claude Code at the folder: claude --plugin-dir ./git-status.
License
MIT
