ModsCode / Claude Code Mods / Build / Read or send, not both
Read or send, not both, and keep keys out of the source
A mod that reads your files, environment variables or the transcript and also reaches the network can send what it read. Split the two where you can: the mods below read files or environment variables and reach no network. Never put an API key in the source: anyone who can read the repository can use it.
Rules it rests on: Reads and sends, Keys in the source
Real mods' code (2)
Quoted as is from public mods on GitHub, at the commit ModsCode read. The heading leads to the mod's page (what it does, its good points, what its code reaches); the file name leads to the lines on GitHub.
An excerpt shows what that code does; it is not a rating of the mod. Mods run unsandboxed, with your permissions, and ModsCode does not vouch for any mod. Read the code yourself before you copy or install it.
replay-theater deepseek-ai · ★ 247,289
async function stepsFor($, e) {
const file = String(e.file_path ?? "");
if (e.tool === "Edit") {
return [{ file, before: String(e.old_string ?? ""), after: String(e.new_string ?? "") }];
}
// For a Write, the old contents are read just before the write lands, so the diff is real.
const before = await $.fs.read(file).catch(() => "");
return [{ file, before, after: String(e.content ?? "") }];
}From deepseek-ai/deepseek-harness at commit d743267. MIT licence. Keep its notice when you copy the code.
What the check read in this mod: Reads and sends: reads files, but reaches nothing outside · Keys in the source: no keys in the source
Licence text (MIT)
MIT License Copyright (c) 2026 DeepSeek Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
ruflo-protector ruvnet · ★ 74,323
async function readText($: Dollar, root: string, rel: string): Promise<string> {
try {
return await $.fs.read(`${root}/${rel}`)
} catch {
return ''
}
}From ruvnet/ruflo at commit 72255a2. MIT licence. Keep its notice when you copy the code.
What the check read in this mod: Reads and sends: reads files, but reaches nothing outside · Keys in the source: no keys in the source
Licence text (MIT)
MIT License Copyright (c) 2024-2026 ruvnet Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Excerpts are picked by one rule, never by name: listed mods under an open licence whose text ModsCode keeps and that no check flags; the most starred repositories first, then the shorter excerpt; one mod per repository; at most 16 lines each.