service_shrimp.nu — hero_shrimp lifecycle module #155
Labels
No labels
prio_critical
prio_low
type_bug
type_contact
type_issue
type_lead
type_question
type_story
type_task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lhumina_code/hero_skills#155
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Add
service_shrimp.nuper the tracker in #75. Module exposesinstall | start [--reset] | stop | statusfor thehero_shrimpstack.Scope
tools/modules/services/service_shrimp.nunu_serviceandnu_service_useskills.service_codescalers.nu— user-level Rust multi-binary that selfstarts via hero_proc; same shape as the hero_shrimp manager.hero_shrimp.Service-specific notes
cargo build --release.~/hero/bin/:hero_shrimp,hero_shrimp_server,hero_shrimp_cli,hero_shrimp_ui(per the repo'sbuildenv.sh::BINARIES).hero_shrimpis the lifecycle manager — it registers and startshero_shrimp_server/hero_shrimp_uivia thehero_proc_service_selfstartpattern.--root.~/hero/var/sockets/hero_shrimp/(rpc.sock,admin.sock,ui.sock) — already canonical.$SHRIMP_DATA_DIR(default~/hero/var/data/hero_shrimp/).$SHRIMP_HOME/secrets.env:OPENROUTER_API_KEYSis the bundled default;OPENAI_API_KEYS,ANTHROPIC_API_KEYS,GROQ_API_KEYS,SAMBANOVA_API_KEYSare also honoured. Daemon boots without one but the first chat fails with "no providers configured".shrimp.yml(channels, models, backends) — auto-discovered, with a compiled-in default. The nu module shouldn't generate this — let users opt in.hero_shrimp/deploy/shrimp-daemon.serviceshows the lifecycle shape to mirror.Acceptance criteria
use services/mod.nu *makesservice_shrimpavailable.service_shrimp installclones the repo, runs the appropriate build, and copies binaries to~/hero/bin/.service_shrimp start [--reset]registers with hero_proc and becomes healthy.service_shrimp statusreports the state.service_shrimp stopcleanly unregisters.startoutput prints sockets / UI URL / a short test plan, per thenu_service_useskill.References
nu_service,nu_service_usehero_proc_service_selfstartservice_shrimp.nu — hero_shrimp (Bun/TS runtime) lifecycle moduleto service_shrimp.nu — hero_shrimp lifecycle module