.ccex extensionA .ccex file is just a ZIP archive renamed to .ccex. It must follow this layout:
.json as long as it's at the root of the archive (not inside a folder).The metadata JSON tells Coder Copilot about your extension.
// metadata.json { "name": "my-extension", "author": "YourName", "description": "What this extension does.", "category": ["Utility"], "links": { "github": "https://github.com/you/repo", "npmjs": "https://npmjs.com/package/pkg", "website": "https://yoursite.com" } }
name author description category
Supported platforms: github, npmjs, website. All are optional.
This is the script Coder Copilot runs when your extension loads. It executes inside the renderer (browser) context, so you have full access to the DOM.
// extension/bin/extension.js (function () { 'use strict'; function init() { // your code here โ DOM is ready console.log('[my-extension] Hello!'); } if (document.readyState === 'loading') { document.addEventListener('DOMContentLoaded', init); } else { init(); } })();
(function(){ ... })() to avoid polluting the global scope.The simplest way to restyle the app is to inject a <style> tag directly from your script. This is the most reliable method โ no file path issues.
const CSS = ` .input-shell { border-color: red !important; } `; const style = document.createElement('style'); style.id = 'my-extension-styles'; style.textContent = CSS; document.head.appendChild(style);
/* Prompt input wrapper (border, glow) */ .input-shell { } /* The textarea itself */ #msg-input { } /* Send button */ #send-btn { } /* Sidebar */ #sidebar { } /* Chat messages area */ #messages { } /* Top model picker bar */ #topbar { }
ZIP your files, then rename the .zip to .ccex. Make sure metadata.json is at the root of the archive.
# From inside your extension folder:
Compress-Archive -Path metadata.json, extension -DestinationPath my-extension.zip
Rename-Item my-extension.zip my-extension.ccex
zip -r my-extension.ccex metadata.json extension/
metadata.json is at the root, not inside a subfolder.Open Coder Copilot โ Extensions tab โ click + โ pick your .ccex file โ toggle it on โ restart the app.
Errors are saved to:
%APPDATA%\Coder Copilot\extension-errors.log
You can also open DevTools (Ctrl+Shift+I) and check the Console for [extensions] log lines.
Coder Copilot โ Extension SDK ยท CodeStuff