init

init is a command for Claude Code from naporin0624/claude-plugin-hono-electron. It costs 11 tokens per session (1,648 once invoked), scanned A, original, MIT.

A setup command for type-safe communication between the main and interface processes of an Electron app, using Hono RPC and TypeScript.

In plain words
What is it for?
Use it to verify prerequisites, install Hono and validation packages, and create shared, main-process, and renderer client files for IPC services.
Why use it?
It creates a shared structure and validation layer so calls between the two Electron sides can use consistent types and checked input.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: positional $N argument.

Part of the hono-electron-ipc plugin — 6 skills, 7 commands shipped together

Good fit Use it to verify prerequisites, install Hono and validation packages, and create shared, main-process, and renderer client files for IPC services.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/naporin0624/claude-plugin-hono-electron/init
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/naporin0624/claude-plugin-hono-electron

Made for: Claude Code.

Or install hono-electron-ipc, the plugin that ships this one along with the rest of its 6 skills, 7 commands.

Wrote 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.

agentmods badge for init

README.md
[![agentmods](https://agentmods.dev/badge/commands/naporin0624/claude-plugin-hono-electron/init.svg)](https://agentmods.dev/commands/naporin0624/claude-plugin-hono-electron/init)
Your own site
<a href="https://agentmods.dev/commands/naporin0624/claude-plugin-hono-electron/init"><img src="https://agentmods.dev/badge/commands/naporin0624/claude-plugin-hono-electron/init.svg" alt="Measured on agentmods" height="20"></a>
Per session 11 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,648 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00011 $0.01648
Opus 5 $0.00005 $0.00824
Sonnet 5 $0.00002 $0.00330
Haiku 4.5 $0.00001 $0.00165

Measured 8d ago against content hash 990c010cd03e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

init scanned grade A with 1 finding 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 8d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

async fetch(input, init) {
commands/init.md · 261 lines

How it starts

The opening of the file, as written. The whole thing — 261 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Initialize Hono Electron IPC Architecture

Set up type-safe IPC communication using Hono RPC for this Electron application.

Arguments

  • $1 (optional): Source directory path (default: src)

Prerequisites Check

Before setting up, verify:

  1. This is an Electron project (check for electron in package.json)
  2. TypeScript is configured
  3. Determine package manager (pnpm, npm, or yarn)

Installation Steps

1. Install Dependencies

Install required packages:

# Using detected package manager
pnpm add hono @hono/zod-validator zod
# or
npm install hono @hono/zod-validator zod

2. Create Directory Structure

Create the following directories:

src/
├── shared/
│   └── callable/
│       ├── index.ts          # Factory and app creation
│       └── types.d.ts        # Type export for client
├── main/
│   └── callable/
│       └── index.ts          # Service injection
└── renderer/
    └── src/
        └── adapters/
            └── client.ts     # Custom hc client

3. Create Factory File

Create src/shared/callable/index.ts:

import { createFactory } from 'hono/factory';
import { logger } from 'hono/logger';

// Define your services here
// These will be injected from the main process
type Services = {
  // Add your service interfaces here
  // example: userService: UserService;
};

type Variables = {
  services: Services;
};

export type HonoEnv = {
  Variables: Variables;
};

type ExternalDependencies = {
  services: Services;
};

const factory = (variables: ExternalDependencies) =>
  createFactory<HonoEnv>({
    initApp(app) {
      // Optional: Add request logging
      app.use(logger());

      // Inject services into Hono context
      app.use((c, next) => {
        c.set('services', variables.services);
        return next();
      });
    },
  });

export const createApp = (...args: Parameters<typeof factory>) => {
  return factory(...args).createApp();
  // Routes will be registered here using .route()
  // Example:
  // .route('/users', users.routes)
  // .route('/auth', auth.routes)
};

Read the full file on GitHub · 261 lines

Changes

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.

  1. 8d ago First seen · 261 lines · 11 tokens per session scan A 990c010cd03e

Subscribe to this mod's changes

init is a command published in the GitHub repository naporin0624/claude-plugin-hono-electron (3 stars, last pushed 7mo ago), licensed MIT. It adds 11 tokens to every session and 1,648 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.