Build|Claude Code Mods

ModsCode / Claude Code Mods / Build / Keep the code in the mod

Keep all the code in the mod, as plain source

Import only your own files, and the engine's types from claude-code: no npm packages, no require, no bundled or minified output, no eval or new Function, no import() of a computed path, no encoded blobs. A reader can then check every line that runs. Code from a package, a bundle or a blob runs without anyone who reads the mod seeing it.

import { x } from './x'

Rules it rests on: Entry read, Parses, All its code is in the mod, Readable

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.

ruflo-arena ruvnet · ★ 74,323

import type { Hook, Register } from 'claude-code'

import { answer } from './command'
import { readOptions } from './options'
import { newStats, STATUS_PATH, statusText, type Stats } from './status'
import type { ModOptions } from './options'

From ruvnet/ruflo at commit 72255a2. MIT licence. Keep its notice when you copy the code.

What the check read in this mod: Entry read: plugins/ruflo-arena/hooks/register.ts · Parses: 5 files parsed · All its code is in the mod: all its code is in the mod · Readable: no minified code, no eval, no encoded blobs

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.

memory-lens Yonatan Gross · ★ 292

import { contextText, percentiles, screenLines } from '../src/format.js';
import { isIndexFile, parentProjectKey, parseMemory, parseMirror, projectKey } from '../src/memory.js';
import { LensIndex } from '../src/rank.js';
import type { Hit, LensPrivate, MemoryDoc } from '../src/types.js';

From yonatangross/orchestkit at commit 8a4716e. MIT licence. Keep its notice when you copy the code.

What the check read in this mod: Entry read: mods/memory-lens/hooks/register.ts · Parses: 6 files parsed · All its code is in the mod: all its code is in the mod · Readable: no minified code, no eval, no encoded blobs

Licence text (MIT)
MIT License

Copyright (c) 2026 OrchestKit Contributors

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.

Other security practices