What is gpu-lock?
gpu-lock is a Claude Code mod by CoderDayton that one CUDA job at a time, or shared up to a memory limit: locks the GPU across sessions, checks free memory first, and shows who runs and who waits. It is listed under Context & memory and has no public popularity data yet.
| Type | Claude code mod |
|---|---|
| Author | CoderDayton |
| Repository | CoderDayton/vii-mods |
| Popularity | no public popularity data yet |
| Category | Context & memory |
| Security | Low risk (88/100) |
| Rank | #5,412 of 9,397 Claude Code mods; #474 in Context & memory |
| License | MIT |
| Last commit | 2026-11-30 |
| Hooks | 6 events |
| Sees | Bash calls |
| Draws on | AbovePrompt, Pane |
Is gpu-lock safe to install?
gpu-lock scores 88/100 on the MCPMods security check: Low risk. Things to review: starts processes outside the sandbox. It passed 7 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.
| Check | Result |
|---|---|
| No network access | Pass |
| Starts processes outside the sandbox | Review |
| Writes no files or config | Pass |
| Doesn't read environment variables | Pass |
| Only sees the events it hooks | Pass |
| Doesn't drive Claude | Pass |
| Passes claude plugin validate | Pass |
| Has an open-source license | Pass |
API calls in its code
| Call | What it means |
|---|---|
$.clock.every | |
$.clock.now | |
$.command.register | |
$.fs.exists | reads files |
$.fs.read | reads files |
$.process.run | runs processes |
$.session.cwd | |
$.session.id | |
$.state.get | |
$.state.set | |
$.store.get | keeps its own state |
$.store.set | keeps its own state |
$.ui.close | draws interface |
$.ui.open | draws interface |
$.ui.panes | draws interface |
$.ui.resolve | draws interface |
$.ui.status | draws interface |
$.ui.toast | draws interface |
How do I install gpu-lock?
- Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
claude --version
- Read its footprint. This lists every event it hooks and every API call it makes, without running it.
git clone https://github.com/CoderDayton/vii-mods claude plugin validate ./vii-mods/plugins/gpu-lock
- Install it. Run this in your terminal, then /reload-plugins in an open session.
claude plugin marketplace add CoderDayton/vii-mods && claude plugin install gpu-lock@vii-mods
Or ask Claude to set it up
Paste this into Claude Code and it installs gpu-lock for you:
Install the "gpu-lock" Claude Code mod from https://github.com/CoderDayton/vii-mods/tree/main/plugins/gpu-lock. Run claude plugin validate on it first and show me what it can access before you enable it.
More from CoderDayton/vii-mods
This repository has 8 Claude Code mods on MCPMods.
- correction-ledger: Saves each correction you make as a rule, sends it every turn or when Claude makes the call it is about, makes it louder (High risk)
- cues: Sound for Claude Code on Linux: mechanical key sounds as you type, and a chime when you send a prompt, when the reply la (Review before installing)
- fleet-board: A read-only pane for the other Claude sessions you run: who is working, who went quiet, and the team your boss session b (High risk)
- lookback: Searches your past Claude Code sessions by words and by meaning. A local SQLite index and local Ollama embeddings, no cl (Review before installing)
- rescribe: Prompt enhancer: a shortcut rewrites the draft in the prompt box, and a menu shows the change to apply or dismiss. (Review before installing)
- smart-comments: Reads each comment Claude adds, lets through the ones that tell a reader what the code cannot, skips docstrings, and nam (Review before installing)
- sudo-askpass: Lets Claude run sudo commands: each one opens a password dialog on your screen that shows the command. Your password goe (Low risk)