René's URL Explorer Experiment


Title: Mods | Command Code - Command Code Docs

Open Graph Title: Mods | Command Code

X Title: Mods | Command Code

Description: Build mods for Command Code - TypeScript that modifies and extends the agent itself: tools, slash commands, lifecycle hooks, event observers, panes, widgets, toasts, custom rendering, hot reload, and model providers, all through the ModApi. One page: overview, the ModApi reference, hooks and events, the UI surface, packaging, and verification.

Open Graph Description: Build mods for Command Code - TypeScript that modifies and extends the agent itself: tools, slash commands, lifecycle hooks, event observers, panes, widgets, toasts, custom rendering, hot reload, and model providers, all through the ModApi. One page: overview, the ModApi reference, hooks and events, the UI surface, packaging, and verification.

X Description: Build mods for Command Code - TypeScript that modifies and extends the agent itself: tools, slash commands, lifecycle hooks, event observers, panes, widgets, toasts, custom rendering, hot reload, and model providers, all through the ModApi. One page: overview, the ModApi reference, hooks and events, the UI surface, packaging, and verification.

Keywords:

Opengraph URL: https://commandcode.ai/docs/mods

X: @CommandCodeAI

direct link

Domain: commandcode.ai


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Docs","item":"https://commandcode.ai/docs"},{"@type":"ListItem","position":2,"name":"Mods"}]}

authorCommand Code
og:imagehttps://commandcode.ai/docs/api/og?title=Mods | Command Code
og:image:altMods | Command Code
twitter:cardsummary_large_image
twitter:creator@CommandCodeAI
twitter:imagehttps://commandcode.ai/docs/api/og?title=Mods | Command Code

Links:

https://commandcode.ai/docs
Introductionhttps://commandcode.ai/docs
Quickstarthttps://commandcode.ai/docs/quickstart
Common Workflowshttps://commandcode.ai/docs/workflows
Pricing & Limitshttps://commandcode.ai/docs/resources/pricing-limits
Usage Limitshttps://commandcode.ai/docs/resources/usage-limits
Go Planhttps://commandcode.ai/docs/plans/go
GOAT PlanNewhttps://commandcode.ai/docs/plans/goat
Pro PlanNewhttps://commandcode.ai/docs/plans/pro
Max Planshttps://commandcode.ai/docs/plans/max
Provider APIhttps://commandcode.ai/docs/provider
Available Modelshttps://commandcode.ai/docs/reference/cli/models
Other payment methodshttps://commandcode.ai/docs/resources/payment-methods
Interactive Modehttps://commandcode.ai/docs/interactive-mode
Plan Modehttps://commandcode.ai/docs/plan-mode
Permissionshttps://commandcode.ai/docs/permissions
Memoryhttps://commandcode.ai/docs/memory
Tastehttps://commandcode.ai/docs/taste
Agentshttps://commandcode.ai/docs/agents
Skillshttps://commandcode.ai/docs/skills
MCPhttps://commandcode.ai/docs/mcp
Hookshttps://commandcode.ai/docs/hooks
Modshttps://commandcode.ai/docs/mods
Toolshttps://commandcode.ai/docs/reference/tools
Context & Compactionhttps://commandcode.ai/docs/context
Sessions & Checkpointshttps://commandcode.ai/docs/sessions
Background Taskshttps://commandcode.ai/docs/background-tasks
Git Worktreeshttps://commandcode.ai/docs/worktrees
Headless Modehttps://commandcode.ai/docs/headless
Desktop Apphttps://commandcode.ai/docs/desktop
IDE Extensionshttps://commandcode.ai/docs/ide
IDE Integrationhttps://commandcode.ai/docs/ide-integration
ACPhttps://commandcode.ai/docs/acp
Visionhttps://commandcode.ai/docs/vision
Windowshttps://commandcode.ai/docs/windows
BYOK Providershttps://commandcode.ai/docs/byok
Settings & Confighttps://commandcode.ai/docs/settings
Importhttps://commandcode.ai/docs/import
/designhttps://commandcode.ai/docs/design
/goalhttps://commandcode.ai/docs/goal
/loophttps://commandcode.ai/docs/loop
Remote controlhttps://commandcode.ai/docs/remote-control
ArtifactsNewhttps://commandcode.ai/docs/artifacts
CloudBetahttps://commandcode.ai/docs/cloud
Studiohttps://commandcode.ai/docs/studio
CLI Referencehttps://commandcode.ai/docs/reference/cli
Slash Commandshttps://commandcode.ai/docs/reference/slash-commands
Common Issueshttps://commandcode.ai/docs/troubleshooting/common-issues
FAQshttps://commandcode.ai/docs/troubleshooting/faqs
Telemetryhttps://commandcode.ai/docs/troubleshooting/telemetry
Error Codeshttps://commandcode.ai/docs/troubleshooting/errors
Security & Privacyhttps://commandcode.ai/docs/resources/security
Zero Data Retentionhttps://commandcode.ai/docs/resources/zdr
Legalhttps://commandcode.ai/docs/resources/legal
Changeloghttps://commandcode.ai/changelog
Overviewhttps://commandcode.ai/docs/harness-engineering
Tool Call Repairshttps://commandcode.ai/docs/harness-engineering/tool-call-repairs
The Read Toolhttps://commandcode.ai/docs/harness-engineering/read-tool
The Shell Toolhttps://commandcode.ai/docs/harness-engineering/shell-tool
What's New in v1https://commandcode.ai/docs/whats-new
https://commandcode.ai/docs
Homehttps://commandcode.ai
Referencehttps://commandcode.ai/docs/reference/cli
Modelshttps://commandcode.ai/models
Pricinghttps://commandcode.ai/pricing
Changeloghttps://commandcode.ai/changelog
Loginhttps://commandcode.ai/signin
https://x.com/CommandCodeAI
https://commandcode.ai/discord
https://github.com/CommandCodeAI/command-code
Overviewhttps://commandcode.ai/docs/mods
Just ask Command Code to build ithttps://commandcode.ai/docs/mods#just-ask-command-code-to-build-it
A real one, built by askinghttps://commandcode.ai/docs/mods#a-real-one-built-by-asking
Quick starthttps://commandcode.ai/docs/mods#quick-start
Where mods load fromhttps://commandcode.ai/docs/mods#where-mods-load-from
The one rule: hooks mutate, on observeshttps://commandcode.ai/docs/mods#the-one-rule-hooks-mutate-on-observes
Built-in modshttps://commandcode.ai/docs/mods#built-in-mods
Runnable exampleshttps://commandcode.ai/docs/mods#runnable-examples
What mods cannot dohttps://commandcode.ai/docs/mods#what-mods-cannot-do
Reference overviewhttps://commandcode.ai/docs/mods#reference-overview
ModApi referencehttps://commandcode.ai/docs/mods#mod-api-reference
Fieldshttps://commandcode.ai/docs/mods#fields
Registration methodshttps://commandcode.ai/docs/mods#registration-methods
Live methodshttps://commandcode.ai/docs/mods#live-methods
ModHooks: hooks that change behaviorhttps://commandcode.ai/docs/mods#mod-hooks-hooks-that-change-behavior
on event typeshttps://commandcode.ai/docs/mods#on-event-types
Hooks and eventshttps://commandcode.ai/docs/mods#hooks-and-events
Where each hook fireshttps://commandcode.ai/docs/mods#where-each-hook-fires
The hook contractshttps://commandcode.ai/docs/mods#the-hook-contracts
ModContext.session: saved mod datahttps://commandcode.ai/docs/mods#mod-context-session-saved-mod-data
modState conventionshttps://commandcode.ai/docs/mods#mod-state-conventions
AgentEvent cataloghttps://commandcode.ai/docs/mods#agent-event-catalog
Example: a write quota modhttps://commandcode.ai/docs/mods#example-a-write-quota-mod
UI surfacehttps://commandcode.ai/docs/mods#ui-surface
Notifications and dialogshttps://commandcode.ai/docs/mods#notifications-and-dialogs
Clipboard and soundhttps://commandcode.ai/docs/mods#clipboard-and-sound
Footer status segmentshttps://commandcode.ai/docs/mods#footer-status-segments
Elementshttps://commandcode.ai/docs/mods#elements
Widgets: the band above the prompthttps://commandcode.ai/docs/mods#widgets-the-band-above-the-prompt
Paneshttps://commandcode.ai/docs/mods#panes
Custom feed renderinghttps://commandcode.ai/docs/mods#custom-feed-rendering
Restyle built-in rowshttps://commandcode.ai/docs/mods#restyle-built-in-rows
In the desktop apphttps://commandcode.ai/docs/mods#in-the-desktop-app
In the VS Code extensionhttps://commandcode.ai/docs/mods#in-the-vs-code-extension
Headless behavior at a glancehttps://commandcode.ai/docs/mods#headless-behavior-at-a-glance
Install and share modshttps://commandcode.ai/docs/mods#install-and-share-mods
Manage mods from the CLIhttps://commandcode.ai/docs/mods#manage-mods-from-the-cli
Turn a mod into a packagehttps://commandcode.ai/docs/mods#turn-a-mod-into-a-package
Load only some mods from a packagehttps://commandcode.ai/docs/mods#load-only-some-mods-from-a-package
Turn a mod on or offhttps://commandcode.ai/docs/mods#turn-a-mod-on-or-off
Trust and safetyhttps://commandcode.ai/docs/mods#trust-and-safety
Listing a mod on the mods hubhttps://commandcode.ai/docs/mods#listing-a-mod-on-the-mods-hub
Verify a modhttps://commandcode.ai/docs/mods#verify-a-mod
1. Load it without installinghttps://commandcode.ai/docs/mods#1-load-it-without-installing
2. Confirm it registeredhttps://commandcode.ai/docs/mods#2-confirm-it-registered
3. Exercise every surface it registershttps://commandcode.ai/docs/mods#3-exercise-every-surface-it-registers
4. Iterate: save, and it reloadshttps://commandcode.ai/docs/mods#4-iterate-save-and-it-reloads
5. Headless check (CI)https://commandcode.ai/docs/mods#5-headless-check-ci
6. List it on the mods hubhttps://commandcode.ai/docs/mods#6-list-it-on-the-mods-hub
Working from the bundled exampleshttps://commandcode.ai/docs/mods#working-from-the-bundled-examples
Just ask Command Code to build ithttps://commandcode.ai/docs/mods#just-ask-command-code-to-build-it
bundled exampleshttps://commandcode.ai/docs/mods#runnable-examples
A real one, built by askinghttps://commandcode.ai/docs/mods#a-real-one-built-by-asking
cmd-mod-hihttps://github.com/ahmadawais/cmd-mod-hi
Quick starthttps://commandcode.ai/docs/mods#quick-start
Where mods load fromhttps://commandcode.ai/docs/mods#where-mods-load-from
Install and share modshttps://commandcode.ai/docs/mods#install-and-share-mods
The one rule: hooks mutate, on observeshttps://commandcode.ai/docs/mods#the-one-rule-hooks-mutate-on-observes
Hooks and eventshttps://commandcode.ai/docs/mods#hooks-and-events
ModApi referencehttps://commandcode.ai/docs/mods#mod-api-reference
Built-in modshttps://commandcode.ai/docs/mods#built-in-mods
Turn a mod on or offhttps://commandcode.ai/docs/mods#turn-a-mod-on-or-off
Runnable exampleshttps://commandcode.ai/docs/mods#runnable-examples
What mods cannot dohttps://commandcode.ai/docs/mods#what-mods-cannot-do
Reference overviewhttps://commandcode.ai/docs/mods#reference-overview
ModApi referencehttps://commandcode.ai/docs/mods#mod-api-reference
Hooks and eventshttps://commandcode.ai/docs/mods#hooks-and-events
UI surfacehttps://commandcode.ai/docs/mods#ui-surface
Install and share modshttps://commandcode.ai/docs/mods#install-and-share-mods
Listing a mod on the mods hubhttps://commandcode.ai/docs/mods#listing-a-mod-on-the-mods-hub
Verify a modhttps://commandcode.ai/docs/mods#verify-a-mod
ModApi referencehttps://commandcode.ai/docs/mods#mod-api-reference
Fieldshttps://commandcode.ai/docs/mods#fields
Registration methodshttps://commandcode.ai/docs/mods#registration-methods
the hook contractshttps://commandcode.ai/docs/mods#the-hook-contracts
Turn a mod into a packagehttps://commandcode.ai/docs/mods#turn-a-mod-into-a-package
Live methodshttps://commandcode.ai/docs/mods#live-methods
UI surfacehttps://commandcode.ai/docs/mods#ui-surface
ModContext.session - the mods' persistence surfacehttps://commandcode.ai/docs/mods#mod-context-session-saved-mod-data
Clipboard and soundhttps://commandcode.ai/docs/mods#clipboard-and-sound
Clipboard and soundhttps://commandcode.ai/docs/mods#clipboard-and-sound
ModHooks: hooks that change behaviorhttps://commandcode.ai/docs/mods#mod-hooks-hooks-that-change-behavior
the hook contractshttps://commandcode.ai/docs/mods#the-hook-contracts
on event typeshttps://commandcode.ai/docs/mods#on-event-types
the AgentEvent cataloghttps://commandcode.ai/docs/mods#agent-event-catalog
Hooks and eventshttps://commandcode.ai/docs/mods#hooks-and-events
Where each hook fireshttps://commandcode.ai/docs/mods#where-each-hook-fires
Tool-dispatch orderhttps://commandcode.ai/docs/mods#tool-dispatch-order
Ordering guarantees mod authors can rely onhttps://commandcode.ai/docs/mods#ordering-guarantees-mod-authors-can-rely-on
The hook contractshttps://commandcode.ai/docs/mods#the-hook-contracts
transformContext({messages, state, signal?}, ctx?) → messageshttps://commandcode.ai/docs/mods#transform-context-messages-state-signal-ctx-messages
shouldStopAfterTurn({state, turnNumber}, ctx?) → booleanhttps://commandcode.ai/docs/mods#should-stop-after-turn-state-turn-number-ctx-boolean
prepareNextTurn({state, turnNumber}, ctx?) → {model?, effort?} | undefinedhttps://commandcode.ai/docs/mods#prepare-next-turn-state-turn-number-ctx-model-effort-undefined
appendSystemPrompt({state}, ctx?) → string | undefinedhttps://commandcode.ai/docs/mods#append-system-prompt-state-ctx-string-undefined
beforeToolCall({toolCallId, toolName, input, state}, ctx?) → {block?, additionalContext?, input?, terminate?} | undefinedhttps://commandcode.ai/docs/mods#before-tool-call-tool-call-id-tool-name-input-state-ctx-block-additional-context-input-terminate-undefined
beforeModelRequest({state, turnNumber, model}, ctx?) → {model?} | undefinedhttps://commandcode.ai/docs/mods#before-model-request-state-turn-number-model-ctx-model-undefined
transformSystemPrompt({system, state}, ctx?) → stringhttps://commandcode.ai/docs/mods#transform-system-prompt-system-state-ctx-string
transformMessage({message, state}, ctx?) → AgentMessagehttps://commandcode.ai/docs/mods#transform-message-message-state-ctx-agent-message
transformTextDelta({delta, done, turnNumber, attempt, state}, ctx?) → stringhttps://commandcode.ai/docs/mods#transform-text-delta-delta-done-turn-number-attempt-state-ctx-string
afterToolCall({toolCallId, toolName, input, result, isError, state}, ctx?) → {content?, terminate?, additionalContext?, isError?, modState?} | undefinedhttps://commandcode.ai/docs/mods#after-tool-call-tool-call-id-tool-name-input-result-is-error-state-ctx-content-terminate-additional-context-is-error-mod-state-undefined
onTurnStart({state, turnNumber}, ctx?) → AgentState / onTurnEnd({state, turnNumber, hadToolCalls, usage}, ctx?) → AgentStatehttps://commandcode.ai/docs/mods#on-turn-start-state-turn-number-ctx-agent-state-on-turn-end-state-turn-number-had-tool-calls-usage-ctx-agent-state
onRunEnd({state, result}, ctx?) → voidhttps://commandcode.ai/docs/mods#on-run-end-state-result-ctx-void
onStop({state, stopReason, turnNumber, lastAssistantText}, ctx?) → {continue?, reason?} | undefinedhttps://commandcode.ai/docs/mods#on-stop-state-stop-reason-turn-number-last-assistant-text-ctx-continue-reason-undefined
ModContext.session: saved mod datahttps://commandcode.ai/docs/mods#mod-context-session-saved-mod-data
modState conventionshttps://commandcode.ai/docs/mods#mod-state-conventions
AgentEvent cataloghttps://commandcode.ai/docs/mods#agent-event-catalog
Example: a write quota modhttps://commandcode.ai/docs/mods#example-a-write-quota-mod
UI surfacehttps://commandcode.ai/docs/mods#ui-surface
Notifications and dialogshttps://commandcode.ai/docs/mods#notifications-and-dialogs
Clipboard and soundhttps://commandcode.ai/docs/mods#clipboard-and-sound
Footer status segmentshttps://commandcode.ai/docs/mods#footer-status-segments
Add your own items with modshttps://commandcode.ai/docs/reference/slash-commands#add-your-own-items-with-mods
Elementshttps://commandcode.ai/docs/mods#elements
Widgets: the band above the prompthttps://commandcode.ai/docs/mods#widgets-the-band-above-the-prompt
Paneshttps://commandcode.ai/docs/mods#panes
Focushttps://commandcode.ai/docs/mods#focus
Custom feed renderinghttps://commandcode.ai/docs/mods#custom-feed-rendering
Restyle built-in rowshttps://commandcode.ai/docs/mods#restyle-built-in-rows
elementshttps://commandcode.ai/docs/mods#elements
In the desktop apphttps://commandcode.ai/docs/mods#in-the-desktop-app
In the VS Code extensionhttps://commandcode.ai/docs/mods#in-the-vs-code-extension
IDE extensionhttps://commandcode.ai/docs/ide
Headless behavior at a glancehttps://commandcode.ai/docs/mods#headless-behavior-at-a-glance
Install and share modshttps://commandcode.ai/docs/mods#install-and-share-mods
Manage mods from the CLIhttps://commandcode.ai/docs/mods#manage-mods-from-the-cli
Turn a mod into a packagehttps://commandcode.ai/docs/mods#turn-a-mod-into-a-package
Listing a mod on the mods hubhttps://commandcode.ai/docs/mods#listing-a-mod-on-the-mods-hub
Load only some mods from a packagehttps://commandcode.ai/docs/mods#load-only-some-mods-from-a-package
Turn a mod on or offhttps://commandcode.ai/docs/mods#turn-a-mod-on-or-off
Trust and safetyhttps://commandcode.ai/docs/mods#trust-and-safety
Listing a mod on the mods hubhttps://commandcode.ai/docs/mods#listing-a-mod-on-the-mods-hub
Command Code mods hubhttps://commandcode.ai/mods
CommandCodeAI/command-codehttps://github.com/CommandCodeAI/command-code
mods/registry.jsonhttps://github.com/CommandCodeAI/command-code/blob/main/mods/registry.json
commandcode.ai/mods.jsonhttps://commandcode.ai/mods.json
Verify a modhttps://commandcode.ai/docs/mods#verify-a-mod
1. Load it without installinghttps://commandcode.ai/docs/mods#1-load-it-without-installing
2. Confirm it registeredhttps://commandcode.ai/docs/mods#2-confirm-it-registered
3. Exercise every surface it registershttps://commandcode.ai/docs/mods#3-exercise-every-surface-it-registers
Test: block-dangerous-commands guards rm -rfhttps://commandcode.ai/docs/mods#test-block-dangerous-commands-guards-rm-rf
4. Iterate: save, and it reloadshttps://commandcode.ai/docs/mods#4-iterate-save-and-it-reloads
5. Headless check (CI)https://commandcode.ai/docs/mods#5-headless-check-ci
6. List it on the mods hubhttps://commandcode.ai/docs/mods#6-list-it-on-the-mods-hub
Listing a mod on the mods hubhttps://commandcode.ai/docs/mods#listing-a-mod-on-the-mods-hub
Working from the bundled exampleshttps://commandcode.ai/docs/mods#working-from-the-bundled-examples
Runnable exampleshttps://commandcode.ai/docs/mods#runnable-examples
Just ask Command Code to build ithttps://commandcode.ai/docs/mods#just-ask-command-code-to-build-it
Quick starthttps://commandcode.ai/docs/mods#quick-start
Where mods load fromhttps://commandcode.ai/docs/mods#where-mods-load-from
The one rule: hooks mutate, on observeshttps://commandcode.ai/docs/mods#the-one-rule-hooks-mutate-on-observes
Built-in modshttps://commandcode.ai/docs/mods#built-in-mods
Runnable exampleshttps://commandcode.ai/docs/mods#runnable-examples
What mods cannot dohttps://commandcode.ai/docs/mods#what-mods-cannot-do
Reference overviewhttps://commandcode.ai/docs/mods#reference-overview
ModApi referencehttps://commandcode.ai/docs/mods#mod-api-reference
Hooks and eventshttps://commandcode.ai/docs/mods#hooks-and-events
UI surfacehttps://commandcode.ai/docs/mods#ui-surface
Install and share modshttps://commandcode.ai/docs/mods#install-and-share-mods
Listing a mod on the mods hubhttps://commandcode.ai/docs/mods#listing-a-mod-on-the-mods-hub
Verify a modhttps://commandcode.ai/docs/mods#verify-a-mod
Tools// NEXThttps://commandcode.ai/docs/reference/tools
// PREVHookshttps://commandcode.ai/docs/hooks
Join Discordhttps://commandcode.ai/discord
issue on GitHubhttps://github.com/CommandCodeAI/command-code/issues
Discordhttps://commandcode.ai/discord
𝕏https://x.com/MrAhmadAwais
Get helphttps://commandcode.ai/contact
Follow us on Xhttps://x.com/CommandCodeAI
Follow on LinkedInhttps://www.linkedin.com/company/commandcodeai/
Join our Discord serverhttps://commandcode.ai/discord
Follow us on GitHubhttps://github.com/CommandCodeAI/command-code

Viewport: width=device-width, initial-scale=1


URLs of crawlers that visited me.