ClaudeMods
☰
KO
● 0 명 접속 중 · 조회 0 회
후원프로젝트 제출
GitHub 저장소 · 작성자 choas

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는 브랜치, 커밋하지 않은 항목과 푸시하지 않은 커밋을 표시하고 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 or pushdes 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 cd inside Bash commands on its own, so it works without cwd-status.
  • Uses git status --porcelain=v2 --branch with 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

비슷한 프로젝트