mutable-default-note
by Matheus Chiodi · ★ 1 · updated 18 Oct 2026
Tells Claude when an edit gives a Python function a mutable default such as [], {} or set()
Install
git clone https://github.com/MatheusChiodi/cockpitclaude --plugin-dir ./cockpit/mods/mutable-default-noteThen run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.
What it hooks into
From an automated scan with claude plugin validate, not a security review. Mods run with your permissions; read the code before installing.
- Events
tool.call- API calls
$.fs.read$.session.root$.state.get$.ui.toast- Can see
Write callsEdit calls- Reach
- level 1 of 3 reads filesreads mod statedraws
Origin
- How it got here
- Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
- Repository
- github.com/MatheusChiodi/cockpit
- Path in repo
mods/mutable-default-note- Source commit
d0a978dthe exact code the scan read- Author
- Matheus Chiodi @MatheusChiodi
- License
- MIT
- First published
- Last pushed
- First listed here
Name and description come from the mod's own manifest. We link to the code; we don't host it, and it stays under its author's license.
More from MatheusChiodi/cockpit
a11y-rules
MatheusChiodi/cockpit
In web projects, keeps Claude to accessibility rules when editing markup: labels, alt text, keyboard, focus, contrast
activity-status
MatheusChiodi/cockpit
Live status line with the tool Claude is running right now
agent-cap
MatheusChiodi/cockpit
/agentcap caps how many subagents run at once and asks before each one past the cap
agent-done-notify
MatheusChiodi/cockpit
Sends a native notification when a subagent that ran for 30 seconds or more finishes
agent-model-note
MatheusChiodi/cockpit
A toast naming the model a subagent resolved to when it differs from the main one, and /agentmodels lists them all
agent-pane
MatheusChiodi/cockpit
/crew opens a pane with the session's subagents, their type and status, refreshed while any is running
agent-straggler
MatheusChiodi/cockpit
A toast when a subagent has been running more than three times as long as the ones that finished
agent-trivial-note
MatheusChiodi/cockpit
A toast when a subagent is spawned for a task one Read, Bash or Grep call would answer
agent-usage-toast
MatheusChiodi/cockpit
A toast with the tokens a subagent used, and its model, when a run of 10k tokens or more finishes
agents-band
MatheusChiodi/cockpit
Band showing in real time how many subagents are running and which ones
alarms
MatheusChiodi/cockpit
/alarm sets daily alarms at a local time, kept across sessions, with a toast and a notification
alias-import-guard
MatheusChiodi/cockpit
Refuses deep ../../ imports when tsconfig paths has an alias for the folder, and names the alias to use