Mod your
agent.
Mods are TypeScript extensions for Command Code. Add tools, slash commands, and rules that change how your agent works.
Your agent
> git push --force origin main
LForce-pushed to main
+
A mod~/.commandcode/mods/guard.ts
1export default (cmd) => {2 cmd.hooks({3 beforeToolCall: ({input}) =>4 input.command.includes('--force')5 ? {block: true} : undefined,6 });7};=
Your agent, modded
> git push --force origin main
L✕ Blocked by guard.ts
//Discover
Community mods
Install one and make it part of your workflow, or build your own and publish it here.
1 mod
- HooksCommandsRenderersOfficialv0.1.1
cmd-mod-hi
Roasts you every time you greet your agent with "hi". One transformInput hook plus a renderer, and a /hi-stats command that tallies the damage.
by Ahmad Awais
210 Build
Build your own
Ask Command Code to write it. One TypeScript file, no build step. Publish it to npm with the
Start buildingcmd-modkeyword and it lists here automatically.
//Create
Start with an idea.
Copy a prompt into Command Code. It builds the mod, then you can refine it together.