Help us shape the future of Go! Take the 2026 Go Developer Survey

internal/

directory
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 11, 2026 License: MIT

Directories

Path Synopsis
Package agent resolves provider configuration into a weft.Model and assembles the hmm agent: name, system prompt, core tools, loop policy.
Package agent resolves provider configuration into a weft.Model and assembles the hmm agent: name, system prompt, core tools, loop policy.
Package cli is hmm's command line: flag parsing, stdin handling, the turn pump, session persistence, and exit codes.
Package cli is hmm's command line: flag parsing, stdin handling, the turn pump, session persistence, and exit codes.
Package config loads hmm's set-it-once configuration file — provider, model, and provider keys, so a plain `hmm "question"` needs no flags and no env vars.
Package config loads hmm's set-it-once configuration file — provider, model, and provider keys, so a plain `hmm "question"` needs no flags and no env vars.
Package models lists the models a provider account actually offers — `hmm models`.
Package models lists the models a provider account actually offers — `hmm models`.
Package plugins is hmm's tool library: model-written tools live as subprocesses behind a manifest, are mounted as first-class weft tools via weft.RawTool, and — thanks to weft.ToolSource — a plugin installed mid-run is callable by name in the next step.
Package plugins is hmm's tool library: model-written tools live as subprocesses behind a manifest, are mounted as first-class weft tools via weft.RawTool, and — thanks to weft.ToolSource — a plugin installed mid-run is callable by name in the next step.
Package procs configures subprocess execution so that cancelling a command's context actually bounds the call.
Package procs configures subprocess execution so that cancelling a command's context actually bounds the call.
Package session persists every hmm run as a JSONL file in weft's message wire format: line 1 is a session header, then one weft Message per line, then a final usage line.
Package session persists every hmm run as a JSONL file in weft's message wire format: line 1 is a session header, then one weft Message per line, then a final usage line.
Package textutil trims byte-capped output back to UTF-8 rune boundaries.
Package textutil trims byte-capped output back to UTF-8 rune boundaries.
Package tools defines hmm's core tools: read_file, list_dir, grep, and run_command.
Package tools defines hmm's core tools: read_file, list_dir, grep, and run_command.
Package ui is hmm's Charm layer — every terminal write in the binary goes through it (the rule crush gives its TUI, scaled to an enriched CLI):
Package ui is hmm's Charm layer — every terminal write in the binary goes through it (the rule crush gives its TUI, scaled to an enriched CLI):

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL