About this mod
hitokoto: A Hitokoto Above the Claude Code Input Box
Simplified Chinese · English
Displays a Hitokoto above the input box: poetry, literature, anime quotes, or philosophical one-liners, with the author and source faintly shown after it. Read one while waiting for Claude to work.

Features
- One-liner plus source: The sentence is followed by the author and source; click the
↻at the end to change to another one (this button is absent indailymode). - Four refresh modes: interval (default every 30 minutes), daily (same sentence for all sessions, new one after midnight), per session, per prompt.
- Filter by category: You can request only categories like poetry, literature, philosophy, etc.
- Saves bandwidth, never blank: No request when the bar is hidden; only one request at a time; 10 seconds without response counts as failure; the last fetched sentence is saved and displayed directly in new sessions or when offline, so it's never blank.
- No requests in
claude -pand SDK.
Installation
claude plugin marketplace add hoobnn/hoobnn-agent-mods
claude plugin install hitokoto@hoobnn-agent-mods
Commands
/hitokoto: Immediately change to another one (indailymode, replaces today's sentence)./hitokoto off,/hitokoto on: Hide or show the bar. This setting is written back to/configand persists across sessions; when re-shown, a new sentence is fetched first.
Options
Modify in /config, or write in pluginConfigs in ~/.claude/settings.json:
| Option | Effect | Default |
| --- | --- | --- |
| visible | Show the bar (what /hitokoto off / on changes) | On |
| refreshMode | interval timed change, daily one per day, session one per session, prompt one per message | interval |
| categories | Hitokoto category letters, comma-separated, leave empty for no limit. a anime, b manga, c games, d literature, e original, f internet, g other, h film/TV, i poetry, j NetEase Cloud, k philosophy, l jokes, e.g. d,i,k | Empty |
| intervalMinutes | Minutes between changes in interval mode (at least 1) | 30 |
| language | Language for /hitokoto replies and errors: auto, en, zh-Hans, zh-Hant, ja, ko, es, fr, de, pt-BR, ru (the sentence itself is Chinese) | auto |
When language is auto, it follows Claude Code's language setting and system locale in order, falling back to English if neither is available.
Related mods
hoobnn-agent-mods also includes a status bar HUD (hud), task progress bar (todo-bar), turn receipt (receipt), running animation and pet (spinner), and Tailscale node status (ts-band), which can be used together.
Development
hooks/register.tsx: Hooks (language at session start,/hitokotoand the refresh schedule for each mode, commands and the bar).hooks/config.ts: Options, read once into a typedConfig.hooks/parse.ts: Parsing of the API endpoint and response content, source and local date.hooks/i18n.ts: Text for each language.hooks/kit/: A copy ofclaude-code/kit; runscripts/sync-kit.shafter modifying source files.
