hono-architect

hono-architect is an agent for Claude Code from smicolon/ai-kit. It costs 35 tokens per session (1,473 once invoked), scanned A, original, MIT.

An architecture guide for Hono, a TypeScript web framework for building APIs that run close to users on edge platforms. It covers route structure, validation, middleware, storage bindings, and typed client communication.

In plain words
What is it for?
Use it to plan Hono routes, request validation, authentication, logging, CORS, database bindings, and type-safe API clients.
Why use it?
It helps turn API requirements into a consistent design across Bun and Cloudflare Workers.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is import type { Env } from '../types/bindings'.

Good fit Use it to plan Hono routes, request validation, authentication, logging, CORS, database bindings, and type-safe API clients.

Compare 6 agents from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/smicolon/ai-kit
agentmods
npx agentmods add agents/smicolon/ai-kit/hono-architect

Made for: Claude Code.

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 hono-architect

README.md
[![agentmods](https://agentmods.dev/badge/agents/smicolon/ai-kit/hono-architect/github.svg)](https://agentmods.dev/agents/smicolon/ai-kit/hono-architect)
Your own site
<a href="https://agentmods.dev/agents/smicolon/ai-kit/hono-architect"><img src="https://agentmods.dev/badge/agents/smicolon/ai-kit/hono-architect/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.

agentmods 80×15 button for hono-architect

Your own site · 80×15
<a href="https://agentmods.dev/agents/smicolon/ai-kit/hono-architect"><img src="https://agentmods.dev/badge/agents/smicolon/ai-kit/hono-architect.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 35 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,473 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00035 $0.01473
Opus 5 $0.00017 $0.00737
Sonnet 5 $0.00007 $0.00295
Haiku 4.5 $0.00003 $0.00147

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

Security

Grade A, and why

hono-architect 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 6d 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.

packs/hono/agents/hono-architect.md · 241 lines

How it starts

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

Hono Architect

You are a senior Hono architect specializing in Edge-first API design.

Current Task

Analyze the request and provide architectural guidance for Hono API development.

Tech Stack Context

  • Framework: Hono (ultrafast Edge framework)
  • Primary Runtime: Bun
  • Deployment: Cloudflare Workers
  • Language: TypeScript (strict mode)
  • Validation: Zod + @hono/zod-validator
  • Client: hc (type-safe RPC client)

Your Role

  1. Analyze Requirements: Understand the API domain
  2. Design Route Structure: Plan modular routing with app.route()
  3. Design Types: Plan TypeScript types and Zod schemas
  4. Plan Middleware: Identify authentication, logging, CORS needs
  5. Design Bindings: Plan Cloudflare KV, D1, R2 usage
  6. Plan RPC: Design type-safe client-server communication

Architecture Principles

Project Structure

src/
├── routes/              # Route handlers organized by resource
│   ├── users.ts         # /api/users routes
│   ├── posts.ts         # /api/posts routes
│   └── index.ts         # Route aggregator
├── middleware/          # Custom middleware
│   ├── auth.ts          # Authentication
│   ├── logger.ts        # Request logging
│   └── index.ts         # Barrel export
├── validators/          # Zod schemas
│   ├── user.schema.ts
│   └── post.schema.ts
├── types/               # TypeScript types
│   ├── bindings.ts      # CF Worker bindings
│   └── api.ts           # API types
├── lib/                 # Shared utilities
│   ├── errors.ts        # Custom errors
│   └── utils.ts         # Helpers
└── index.ts             # App entry point

Bindings Type Definition

// types/bindings.ts
export type Env = {
  Bindings: {
    // Cloudflare bindings
    DB: D1Database
    KV: KVNamespace
    BUCKET: R2Bucket
    // Environment variables
    API_KEY: string
    JWT_SECRET: string
  }
  Variables: {
    // Request-scoped variables set by middleware
    user: User
    requestId: string
  }
}

Read the full file on GitHub · 241 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. 6d ago First seen · 241 lines · 35 tokens per session scan A fc4c921e4ea3

Subscribe to this mod's changes

hono-architect is an agent published in the GitHub repository smicolon/ai-kit (6 stars, last pushed 6d ago), licensed MIT. It adds 35 tokens to every session and 1,473 once invoked, about $0.0002 per session on Opus 5. 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-09-03.

Related

Other agents, from other repositories

.NET Self-Learning Architect

Senior .NET architect for complex delivery: designs .NET 6+ systems, decides between parallel subagents and orchestrated team execution, documents lessons learned, and captures durable project memory for future work.

archubbuck/workspace-architect · 46 tokens

Azure AVM Terraform mode

Create, update, or review Azure IaC in Terraform using Azure Verified Modules (AVM).

archubbuck/workspace-architect · 25 tokens

aws-serverless-architect

Provide expert AWS Serverless Architect guidance focusing on event-driven architectures, Lambda, API Gateway, and serverless best practices.

archubbuck/workspace-architect · 30 tokens

service-mesh-expert

Expert service mesh architect specializing in Istio, Linkerd, and cloud-native networking patterns. Masters traffic management, security policies, observability integration, and multi-cluster mesh configurations. Use PROACTIVELY for service mesh architecture, zero-trust networking, or microservices communication…

wshobson/agents · 63 tokens

serv

Designs serverless architectures for Lambda, Cloud Functions, and Cloud Run — cold start mitigation, event-driven wiring, cost modeling, and IaC via SAM or Serverless Framework. Use when building or auditing serverless workloads. Trigger with "design a serverless architecture", "optimize my Lambda cold starts".

jeremylongshore/tons-of-skills-marketplace · 64 tokens

integration-engineer

Integration engineer. Connects the chatbot to messaging channels (Slack, KakaoTalk, web) and implements integration with external APIs and databases. Responsible for deployment and infrastructure.

revfactory/harness-100 · 38 tokens