Purpose
Themain package is not a reusable library surface. Its job is to assemble the default hrns application from the reusable packages.
Current startup behavior
main.go performs three concrete tasks:
1. Load skills
It calls:load_skill with skills.NewLoadSkillTool(...).
2. Build the default prompt and tool map
The system prompt starts as:load_skill.
The default tool map includes:
read_filelist_fileswrite_filerun_commandweb_fetchload_skill
3. Start the TUI
The package creates:Run(ctx).
Provider loading, onboarding, client creation, and loop creation now happen inside tui.Run(...).
When to reuse it
In most cases, you should not reusemain directly. If you want a custom prompt, custom tools, or a different UI, copy the wiring pattern into your own program and compose the packages yourself.