Skip to main content

Examples

This page provides an overview of all available extension examples in the AiderDesk repository. Each example demonstrates different capabilities and patterns you can use in your own extensions.

All Examples

ExtensionDescriptionCapabilitiesStructure
wakatime.tsTracks coding activity by sending heartbeats to WakaTimeonLoad, onPromptStarted, onPromptFinished, onToolFinished, onFilesAddedSingle file
pirate.tsAdds a Pirate agent that speaks like a swashbuckling sea dogonLoad, getAgents, onAgentProfileUpdatedSingle file
generate-tests.tsAdds /generate-tests command to generate unit tests for filesonLoad, getCommandsSingle file
theme.tsAdds /theme command to switch AiderDesk themesonLoad, getCommandsSingle file
plan-mode.tsAdds a Plan mode that enforces planning before codingonLoad, getModes, onAgentStartedSingle file
protected-paths.tsBlocks file operations on protected paths (.env, .git/, node_modules/)onLoad, onToolCalledSingle file
permission-gate.tsPrompts for confirmation before running dangerous bash commandsonLoad, onToolCalledSingle file
ultrathink.tsDetects "ultrathink" / "think hard" and increases reasoning effortonLoad, onAgentStartedSingle file
external-rules.tsIncludes rule files from Cursor, Claude Code, and Roo CodeonLoad, onRuleFilesRetrievedSingle file
sound-notification.tsPlays a "Jobs Done" sound when a prompt finishesonLoad, onPromptFinishedSingle file
sandboxOS-level sandboxing for bash commands using @anthropic-ai/sandbox-runtimeonLoad, onUnload, onTaskInitialized, onTaskClosed, onToolCalledFolder
rtkRewrites shell commands to RTK equivalents, reducing token usage by 60-90%onLoad, getCommands, onToolCalledFolder
redact-secretsRedacts secret values from .env* files in file read resultsonLoad, onProjectOpen, onToolFinishedFolder
chunkhound-searchProvides chunkhound-search tool for semantic code searchonLoad, onUnload, onProjectOpen, onToolFinished, getToolsFolder
chunkhound-on-semantic-search-toolOverrides power---semantic_search to use ChunkHoundonLoad, onUnload, onProjectOpen, onToolCalled, onToolFinishedFolder
tree-sitter-repo-mapEnhanced repository map using tree-sitter parsing with PageRank-based symbol rankingonLoad, onAgentStarted, getCommandsFolder

Using Examples

Download a Single-File Example

# Download to global extensions
curl -o ~/.aider-desk/extensions/sound-notification.ts \
https://raw.githubusercontent.com/hotovo/aider-desk/main/packages/extensions/extensions/sound-notification.ts

Clone a Folder Example

# Clone and copy
git clone --depth 1 https://github.com/hotovo/aider-desk temp-aider
cp -r temp-aider/packages/extensions/extensions/sandbox ~/.aider-desk/extensions/
cd ~/.aider-desk/extensions/sandbox
npm install
rm -rf temp-aider

Use as Template

Copy an example that matches your needs and modify it:

  1. Choose an example with similar capabilities
  2. Copy it to your extensions directory
  3. Modify the class name and implementation
  4. Update the metadata
  5. Save and test (hot reload applies changes automatically)