claude-code-mods
hamzafer · hamzafer/claude-code-mods
Một bộ sưu tập các plugin Claude Code cung cấp phản hồi trực tiếp, trực quan hóa ngữ cảnh và công cụ giám sát để cải thiện môi trường viết code của agent.
Một bộ sưu tập các mod của Claude Code: các dòng trực tiếp trên lời nhắc, bảo vệ, bảng điều khiển và trò chơi.
Xem kết quả thực tế
Ảnh từ README của tác giả hamzafer ·Nguồn
Bạn có thể làm gì với nó
- Trực quan hóa việc sử dụng cửa sổ ngữ cảnh hiện tại của một phiên Claude Code.
- Nhận phản hồi đánh giá code trực tiếp trong khi agent đang viết code.
- Giám sát hoạt động và các lệnh gọi công cụ của nhiều sub-agent theo thời gian thực.
Kiểm tra an toàn
Không thấy dấu hiệu rủi ro trong các file đã quét.
Quét tự động các file trong repo. Luôn xem lại code trước khi chạy.
Trích từ README
Claude Code mods
Make Claude Code show what it's doing.Live lines above the prompt, guards, panes and games. Install only the ones you want.
Install · All mods · Docs · What are mods?
📊 <b>context-bar</b>what fills your context
🔍 <b>review-watch</b>running code reviews, live
📝 <b>md-preview</b>Markdown rendered like GitHub
💥 <b>blast-radius</b>see what <code>rm -rf</code> would delete
🎵 <b>now-playing</b>Spotify and its lyrics, live
📱 <b>reels</b>Shorts while Claude works
📍 <b>where-am-i</b>goal, now, waiting on you
🌦️ <b>token-weather and friends</b>lines above the prompt
🛰️ <b>mission-control</b>agents and the code they touch
🚀 Install
Add the marketplace once, then install any mod by name:
claude plugin marketplace add hamzafer/claude-code-mods
claude plugin install context-bar@claude-code-mods
Or install the general-purpose set in one go:
for m in context-bar token-weather usage-meter where-am-i next-steps agent-radar review-watch replay-theater md-preview blast-radius mission-control; do
claude plugin install "$m@claude-code-mods"
done
Restart Claude Code after installing. To try one without installing:
git clone https://github.com/hamzafer/claude-code-mods && cd claude-code-mods
claude --plugin-dir mods/context-bar
Needs Claude Code 2.1.287+. A few mods need more (Chrome,
gh, a connector); the tables say which.
🧩 The mods
👀 See what's happening
| Mod | What it does | Command | |
|---|---|---|---|
| 🛰️ | mission-control | Live map of agents, tool calls and the code they touch | /mission |
| 📊 | context-bar | Your context window as one stacked bar, a color per category, with token counts and where it compacts | /context-bar |
| 🌦️ | token-weather | Context fill from Clear to Compact soon, plus a prompt-cache countdown | |
| 📍 | where-am-i | Goal, doing now, waiting on you, next step | /where |
| ➡️ | next-steps | 2 or 3 likely next prompts after each turn, one key to draft one | 1 2 3, 0 hides |
| 💰 | usage-meter | 5-hour and 7-day plan usage, the reset countdown and the session's cost | |
| 📡 | agent-radar | One live line per running subagent | /radar |
| 🔍 | review-watch | One live line per running code review (Codex or a review subagent) with the model, target, elapsed time and Codex's latest output. A toast lists the findings when it ends | |
| 🌐 | browser-lanes | Whether this session has a browser, and who holds it | /browser |
| 🕌 | prayer-times | The current prayer and how long is left, the next one, and zawal. Computed on your computer, Hanafi or standard Asr | /prayers |
| 🎬 | replay-theater | Steps through the last turn's edits, one diff at a time | /replay |
| 📝 | md-preview | Renders the Markdown files Claude edits like GitHub does, with before and after side by side. Needs Chrome and a terminal that shows images | /md |
🛡️ Guard your repo
| Mod | What it does | Command | |
|---|---|---|---|
| 💥 | blast-radius | Holds rm -r, force pushes and migrations, shows what they'd delete, cancels after 60 s with no answer |
🔧 My setup (fork and adapt)
These are built around my own tools and rules. Fork them and change the rules to yours.
| Mod | What it does | Command | |
|---|---|---|---|
| 👀 | glance | One line with what needs you: next meeting, PRs, Linear issues, Slack DMs. Needs gh and the Google Calendar, Linear and Slack connectors | /glance |
| 🚦 | merge-gate | Holds gh pr merge until CI is green and Codex reviewed once. Needs gh and the Codex CLI. Reviews run on one fixed model; change it to yours | /gate |
| 📏 | rulebook-guard | Enforces my writing and git rules: rewrites em dashes, asks before --amend, unformatted pushes, emails and phone numbers in notes | |
| 💾 | session-saver | Saves where you left off, shows it on resume. Needs unpause | /park [note] |
🎮 For fun (opt-in)
| Mod | What it does | Command | |
|---|---|---|---|
| 📱 | reels | YouTube Shorts while Claude works, pauses when it's done | /reels |
| 🐍 | snake | Snake while Claude works | /snake |
| 🎵 | now-playing | What Spotify is playing, with a progress bar, the lyric being sung, and ⏮ ⏸ ⏭ buttons. Needs macOS and the Spotify app | /music |
🛰️ Flagship: mission-control
Every subagent, every tool call and every file they touch, in a pane next to the chat. Shown at 4x: two subagents building a logout feature across four files.
Install it like any mod, restart, and type /mission (or /mission code to open the code map). q closes it.
- 🤖
wshows the agents and every tool call, live - 🗺️
cshows the code map, with import arrows - 🔵 Blue while the agent reads a file
- 🟠 Orange while it writes
- 🟢 Green when done, with one line on what changed
The Code view also needs macOS, Google Chrome and a terminal that shows images (Ghostty, kitty, iTerm2). The Who view works everywhere.
📚 More
- 📖 docs/mods.md: how they behave, setup notes and build your own
- 🎥 docs/demo.md: videos and screenshots
- ⭐ Earlier project: cursor-commands , 600+ stars for Cursor slash commands
- 🤝 CONTRIBUTING.md: add your own mod

