Files
state-hub/workplans/STATE-WP-0055-statehub-register-cli.md
tegwick cfa3241aed Normalize agent instructions and workplan frontmatter (STATE-WP-0067)
- Align agent files with on-disk workplan prefixes (infer from workplan ids)
- Set workplan domain to registered domain_slug; add topic_slug where applicable
- Repair frontmatter delimiter formatting; migrate legacy task status literals
- Regenerate AGENTS.md, CLAUDE.md, and .claude/rules from State Hub templates
2026-06-22 23:16:28 +02:00

35 lines
991 B
Markdown

---
id: STATE-WP-0055
type: workplan
title: "StateHub register CLI"
domain: infotech
repo: state-hub
status: finished
owner: codex
topic_slug: custodian
created: "2026-06-04"
updated: "2026-06-04"
state_hub_workstream_id: "eee82afc-a902-48a2-8187-8dae31d05300"
---
# StateHub register CLI
Implement a convenient `statehub register` command that can be run from an
established local repository to register it with State Hub and prime it for
Codex agent work.
## Implement register command
```task
id: STATE-WP-0055-T01
status: done
priority: high
state_hub_task_id: "83d14bd4-301e-4e8a-9a6c-5f6586c5b070"
```
Added a `statehub register` CLI entrypoint backed by `llm-connect` inference.
The command inspects the target repo, derives or confirms repo intent, creates
`INTENT.md` when absent, writes State Hub agent files and an initial workplan,
registers the repo and local host path through the State Hub API, and leaves
clear operator follow-up for `make fix-consistency REPO=<slug>`.