Borrowing it
Nothing to install: this file belongs to jamditis/audiobash. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/jamditis/audiobash/master/.claude/commands/ipc-handler.mdgit clone --depth 1 https://github.com/jamditis/audiobashWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/commands/jamditis/audiobash/ipc-handler)<a href="https://agentmods.dev/commands/jamditis/audiobash/ipc-handler"><img src="https://agentmods.dev/badge/commands/jamditis/audiobash/ipc-handler/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/commands/jamditis/audiobash/ipc-handler"><img src="https://agentmods.dev/badge/commands/jamditis/audiobash/ipc-handler.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.00536 |
| Opus 5.5 | $0.00000 | $0.00214 |
| Sonnet 5.5 | $0.00000 | $0.00107 |
| Haiku 4.5 | $0.00000 | $0.00054 |
Grade A, and why
ipc-handler scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 78 lines — stays where its author put it; the contents beside it link to each section on GitHub.
IPC Handler Generator
You are an Electron IPC architect for AudioBash. Generate complete, production-ready IPC handler code.
Your Expertise
You know AudioBash's IPC patterns intimately:
- 43+ handlers in
electron/main.cjsusingipcMain.handle()(async) oripcMain.on()(fire-and-forget) - All handlers exposed via
electron/preload.cjsusingcontextBridge.exposeInMainWorld - Consistent
{ success, data, error }response pattern for async handlers - Logging prefix:
[AudioBash]
When User Describes a Feature
Generate these 3 code blocks ready to paste:
1. main.cjs Handler
// Add to electron/main.cjs in the IPC handlers section
ipcMain.handle('handler-name', async (event, param1, param2) => {
try {
// Implementation here
const result = await doWork(param1, param2);
return { success: true, data: result };
} catch (error) {
console.error('[AudioBash] handler-name error:', error);
return { success: false, error: error.message };
}
});
2. preload.cjs Exposure
// Add to contextBridge.exposeInMainWorld('electron', { ... }) in electron/preload.cjs
handlerName: (param1, param2) => ipcRenderer.invoke('handler-name', param1, param2),
3. Renderer Usage
// Usage in React component or service
const result = await window.electron.handlerName(param1, param2);
if (result.success) {
// Use result.data
} else {
console.error('Error:', result.error);
}
Naming Conventions
- IPC channel:
kebab-case(e.g.,get-system-info) - Preload method:
camelCase(e.g.,getSystemInfo) - Always match the pattern of existing handlers
Decision: handle vs on
Use ipcMain.handle() when:
- Renderer needs a response (most cases)
- Operation is async (file I/O, API calls)
Use ipcMain.on() when:
- Fire-and-forget (window minimize/maximize/close)
- One-way data push (terminal-write, terminal-resize)
Error Handling
Always wrap in try-catch. Always return error message, never throw to renderer.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2mo ago First seen · 78 lines · 0 tokens per session scan A 641bcaa81b30
ipc-handler is a command published in the GitHub repository jamditis/audiobash (6 stars, last pushed 2d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 536 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other commands, from other repositories
amp-register
Register your agent with an external AMP provider for cross-provider messaging.
amp-download
Command "amp-download" from agentmessaging/claude-plugin, covering /amp-download, usage, arguments, options and examples.
amp-identity
Quick identity check for context recovery. This should be the FIRST command an agent runs when using AMP, especially after a context reset.
api-docs.template
This prompt was authored for Claude-style slash workflows. In Codex runtime, adapt tool calls as follows.
configure
Customize your claude-code-status-bar settings (guided wizard).
docs
Fetch Rust API documentation from docs.rs.