hub_card_set
Create or update a project card from just a name and digest, no folder or git checkout needed. Patch one stale line with replace or appendLine instead of rewriting the whole digest.
Instructions
Create or update a project card from just a name and a digest — no folder needed (unlike hub_sync). Use it to capture a project that is not a local git checkout, e.g. when harvesting a dialog. Preserves any hand-written frontmatter and Facts. To fix ONE stale line without touching the owner's framing, patch instead of replacing: replace: [{from, to}] and/or appendLine — a from that is not in the digest is an error, not a silent no-op.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| by | Yes | the function you are performing, e.g. "dev-hubd". NOT which model you are — that is read from the transcript, and many sessions share a model. NOT a queue role either: a role is a mailbox (see hub_queue_wait), this is who is at it. | |
| digest | No | the card digest: 3-6 lines of current state (replaces the whole text — omit it when patching) | |
| project | Yes | project name or slug | |
| replace | No | patch: exact substrings to swap, each must occur exactly once in the current digest | |
| appendLine | No | patch: one line to add at the end of the current digest |