360 Secure SkillHub
360 安全技能中心

Hizal End

在代理完成任务、收尾或即将空闲时自触发,调用 hizal 的结束会话工具关闭上下文会话,审阅返回的 SURFACE 记忆块,逐块决定保留、提升为项目级知识/约定或丢弃;提升时可写入知识或约定,并可选择删除原代理记忆块。需要恢复工作则改用 hizal-start。包含可选的记忆块删除操作。

parkerscobey
parkerscobey
热度 16.02
最近更新 2026-05-23 02:25:42
分类:知识依赖:MCP 服务应用场景:笔记整理 / 工作流 / 任务管理

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add hizal-end
Metadata
name
hizal-end
description
Close the agent's context session and consolidate what was learned. Self-triggering — fires when the agent finishes a task, wraps up work, or is about to go idle. Handles the keep/promote/discard review of surfaced memory chunks. Triggers on phrases like "I'm done", "that's it for now", "wrapping up", "let me commit and close out", "finished this task", or any time the agent is ending a work session.

Hizal End

Close your session. Review what surfaced. Let knowledge compound.

End Session

hizal__end_session(session_id="<session-id>")

Review SURFACE Chunks

The session end returns MEMORY chunks tagged for consolidation review. For each chunk, decide:

Keep

Useful personal observation. Leave as AGENT memory. No action needed.

Promote

Valuable for the team. Write it back as a PROJECT chunk:

# For architecture/design decisions
hizal__write_knowledge(project_id="<id>", query_key="<key>", title="<title>", content="<chunk-content>")

# For codebase conventions
hizal__write_convention(project_id="<id>", query_key="<key>", title="<title>", content="<chunk-content>")

Then optionally delete the original AGENT chunk:

hizal__delete_context(project_id="<id>", id="<chunk-id>")

Discard

Noise or one-off observation. Ignore it.

When to End

  • At the end of a work session
  • When switching to a completely different project/task (end old, start new)
  • Before a long break

Session Recovery After End

If you need to resume work later, call hizal-start — it will start a fresh session or resume an existing one.