Skip to content
ObaidNadeemPublic

About

Ten useful Command Code mods for Git workflows, context, run stats, bookmarks, and focused sessions.

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

cmd-mods

Ten useful mods for Command Code, built against the current main mod-builder and ModApi. Maintained by Obaid Nadeem. Use Command Code 1.81.0 or newer.

Install

cmd mods add ObaidNadeem/cmd-mods -g
cmd mods list

One installation adds all ten mods. Each has its own enable/disable name and command. Restart Command Code or use /reload after installing or changing enabled mods.

cmd mods disable cmd-mod-context-meter -g
cmd mods enable cmd-mod-context-meter -g
Mod Commands Purpose
Review /review-changes [base-ref] Review actual Git changes for bugs, regressions and test gaps.
Standup /standup [YYYY-MM-DD] Draft an update from recent commits and working changes.
PR draft /pr-draft [base-ref] Draft a PR title and body with honest testing status.
Release notes /release-notes [base-ref] Describe user-facing changes and separate uncommitted work.
Test plan /test-plan [base-ref] Propose concrete regression tests from changed code.
Git summary /git-summary [base-ref] Show committed, staged and unstaged change stats without a model call.
Context meter /context-meter Display measured context usage and a manual compaction hint.
Run stats /run-stats Track elapsed time and successful/failed tool calls.
Bookmarks /bookmark <label>, /bookmarks, /jump-bookmark <label-or-id> Label conversation points and return to them.
Focus /focus <goal>, /focus status, /focus off Keep a persistent scope reminder that follows the active conversation branch.

The first five commands submit a model turn; the other utilities do not. Git commands default to an available main/master base or HEAD and cap each output at 6,000 characters. Specify a base ref for already-merged work. Bookmarks navigate the transcript, not filesystem history. Focus is a reminder and yields to newer user instructions.

How the package works

The root package.json lists ten factory files under commandcode.mods. Command Code loads the TypeScript directly, so installing requires no build and no runtime dependencies. Each folder also works as an independent local mod package (cmd mods add ./cmd-mod-review). Type-only imports of @commandcode/harness are erased by the host loader.

For development:

cmd --mod ./cmd-mod-review/index.ts

Validation in Command Code main: seven real-host integration cases cover package loading, all twelve command registrations, real Git data, focus resume and active branches, footer cleanup, missing sessions, and run error timing. Strict TypeScript and Biome pass, and all ten optional ESM validation builds pass.

Listing on the Mods page

registry-entries.json contains ten entries ready to copy into the mods array of CommandCodeAI/command-code/mods/registry.json. Every entry uses the same Git collection source and says that installing adds all ten. These are Git-only entries; no unpublished npm package is claimed. The public Command Code repo needs the JSON links only.

License

MIT

About

Ten useful Command Code mods for Git workflows, context, run stats, bookmarks, and focused sessions.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages