Skip to content

Extending Hya: Overview

You can customize almost every part of Hya—its instructions, slash commands, tools, subagents, multi-step workflows, approval logic, and terminal UI—without forking or recompiling Hya.

Use this page to pick the lightest tool that solves your problem.


Which extension mechanism should I pick?

What you want to do Reach for Code required? Where it lives
Teach Hya rules that apply to every chat in a repo AGENTS.md None (Markdown) <repo>/AGENTS.md or ~/.config/hya/AGENTS.md
Give Hya domain knowledge loaded only when needed Skills None (Markdown) .hya/skills/<name>/SKILL.md
Save a reusable prompt you trigger with /name Custom Commands None (Markdown) .hya/commands/<name>.md
Connect existing external tools (GitHub, DBs, browsers) MCP Servers None (config.toml) ~/.config/hya/config.toml [mcp.<name>]
Run a repeatable multi-agent pipeline (plan → code → review) Workflows None (*.hya.md + flowchart TD) .hya/workflows/*.hya.md or inside a Bundle
Ship custom Agents, Tools, Hooks, APIs, or Claude plugins as one package Bundles (.hyabundle) YAML + optional JS/TS or Rust ~/.local/share/hya/bundles/ or .hya/bundles/
Build compiled Rust native bundles with tools, services, hooks, reducers, or drivers Native Bundle Runtime ABI v2 Rust (four-crate ABI SDK: hya-runtime-abi) .hyabundle (runtime.kind: native)
Intercept tool calls, rewrite model requests, or add custom approval modes Plugins & Hooks TypeScript (Bun) or any stdio JSON-RPC binary Inside a Bundle or config.toml [plugins.<id>]
Add custom UI panels, dynamic panes, status items, or tool-card renderers to the TUI TUI Extensions TypeScript (@hya/tui-sdk v2) tui: section inside a Bundle
Embed or drive Hya from your own web app, bot, or CLI hya.v2 API & SDK HTTP/JSON+SSE, gRPC, or Rust hya-sdk Your own client process

Start small, grow when needed

  1. Start with Markdown. 80% of team customizations need nothing more than a 50-line AGENTS.md, two or three .hya/commands/*.md shortcuts, and a SKILL.md for tricky subsystems.
  2. Step up to Workflows (*.hya.md) when you want Hya to follow an explicit multi-stage graph where a reviewer verifies an implementer’s work instead of letting one agent grade its own homework.
  3. Package a .hyabundle when you want to distribute custom agents, Bun/Rust tools, lifecycle hooks, custom HTTP endpoints, or TUI panels to teammates in a single verified file (hya bundle install team-pack.hyabundle).

A bundle you write gets the same entry points as Hya’s own first-party bundles: they load through the same Native ABI v2 and @hya/tui-sdk v2 path, with no private hook into the core. bundles/examples/mini-agents, built against hya-runtime-abi and @hya/tui-sdk alone, replaces hya/multi-agent’s task tool and child session under hya --bare (see Bundles).

Already built plugins for Claude Code? You don’t have to rewrite them—install them straight into Hya with:

Terminal window
hya bundle install --claude ./my-claude-plugin

See Developing, Installing & Publishing Bundles for details.