huashu-design
alchaincyf
Huashu Design 3.0 · 在 agent 里打一句话,拿回能交付的设计:网页 / App 原型 / 可编辑 PPTX / 动画 / 信息图 · 六个候选挑三个方向 · 84 种带样张的风格库 · 越用越懂你的外观账本与设计体检 · HTML-native design skill for Claude Code, Codex, Cursor & any agent
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:joshryandavis/dsh-goal-restart
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
English | 中文
Re-arm persisted same-session goals automatically when the dsh service (re)starts, so the goal-round driver resumes rounds without human intervention.
Why? When an agent is doing long-running work — like developing its own plugins — and the service it lives in gets restarted (crash, launchd respawn, a deliberate bounce), the in-flight goal used to stay stuck until somebody ran
/goal resume. This plugin removes that step.
A dsh goal's durable state (objective, phase, revision, roundsStarted)
lives in the session log and survives restarts. Its activation ("armed")
is deliberately process-local: it is never persisted, and every
agent/session-start edge disarms it. So after the dsh service restarts, an
in-flight goal is replayed as active but stays stopped until someone issues
an explicit resume.
On agent/session-start where payload.source === 'resume' (the session was
just loaded from persistence), it calls ctx.goals.resume(agent, ref) for a
durable-active goal that still has round budget. The stock
goal-round-driver (mounted by dsh-base) then reserves and queues the next
round exactly as it would after a normal human resume — but nobody had to
click anything.
| Situation | Action |
|---|---|
Session rehydrated after a service restart, goal active, budget left |
re-arm (ctx.goals.resume) |
Session started fresh (source: 'startup') |
skip (no goal) |
| Forked session (inherited goal) | skip (in-process lineage) |
Subagent session (origin: subagent) |
skip (in-process lineage) |
Goal paused / blocked / complete |
skip (durable phase wins) |
Goal active but already armed |
skip (idempotent) |
Goal at roundsStarted >= maxGoalRounds |
skip (no budget — raise the cap, then resume) |
dsh plugin --profile <profile> add dsh-goal-restart
Then restart the dsh service so the new bundle is loaded.
In the profile's cordis.patch.yml:
- id: goal-restart
disabled: true
resume mutation (revision +1) into the
session log — the domain's documented reactivation edge, and the same
write a human /goal resume performs.npm test) and a smoke
script (npm run smoke) that need no network and no live process.CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: art。