source-command-handoff

A handoff workflow that creates one standard document describing work done in the current session and checks that document afterward.

In plain words
What is it for?
It is for handing a task from one model to Claude, Gemini, or Codex, including the task summary, current state, next step, workspace, and handoff identifier.
Why use it?
It helps another AI model or session continue work without reconstructing the task from the entire conversation.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/baek-labs/hames/source-command-handoff
Any agent
npx skills add baek-labs/hames --skill source-command-handoff
Clone the repo
git clone --depth 1 https://github.com/baek-labs/hames

Made for: Claude Code, Codex.

Per session 22 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 609 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00022 $0.00609
Opus 5 $0.00011 $0.00304
Sonnet 5 $0.00004 $0.00122
Haiku 4.5 $0.00002 $0.00061

Measured 2d ago against content hash fc937c0978ff, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

source-command-handoff scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.codex/skills/source-command-handoff/SKILL.md · 81 lines

How it starts

The opening of the file, as written. The whole thing — 81 lines — stays where its author put it; the contents beside it link to each section on GitHub.

source-command-handoff

Use this skill when the user asks to run the migrated source command handoff.

Command Template

/handoff

Usage: /handoff <target_model>

Examples:

  • /handoff gemini
  • /handoff codex
  • /handoff claude

Flow

Step 1 — Confirm target model

  • Read the user-provided argument and extract the target model (claude, gemini, or codex).
  • If no target model is given, ask which model should receive the handoff.

Step 2 — Summarize the current session From the active conversation and working context, prepare:

  • task_summary
  • current_state
  • next_step
  • source_model
  • source_workspace
  • handoff_id in the format HAMES-{YYYYMMDD}-{KEYWORD} or SESSION-{YYYY-MM-DD}-{LETTER}

source_workspace must be the real workspace where the work happened. Do not use AI_COMM as the source workspace.

Step 3 — Create the handoff file

powershell -NoProfile -ExecutionPolicy Bypass -File arsenal/create_handoff.ps1 `
  -HandoffId "<handoff_id>" `
  -TargetModel "<target_model>" `
  -SourceModel "<source_model>" `
  -SourceWorkspace "<source_workspace>" `
  -TaskSummary "<task_summary>" `
  -CurrentState "<current_state>" `
  -NextStep "<next_step>"

create_handoff.ps1 builds the handoff document directly from these arguments. Do not depend on .hames_context.json.

Step 4 — Refresh target bootstrap only if needed

For gemini:

powershell -NoProfile -ExecutionPolicy Bypass -File arsenal/start_hames_gemini.ps1 `
  -Task "<task_summary>" `
  -TargetPath "<source_workspace>" `
  -Handoff

For codex:

powershell -NoProfile -ExecutionPolicy Bypass -File arsenal/start_hames_codex.ps1 `
  -Task "<task_summary>" `
  -TargetPath "<source_workspace>" `
  -Handoff

For claude, skip bootstrap generation.

Step 5 — Validate

powershell -NoProfile -ExecutionPolicy Bypass -File arsenal/validate_handoff.ps1 `
  -HandoffFile "ai_comm/_Inbox/Handoff_<handoff_id>.md"

Read the full file on GitHub · 81 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 81 lines · 22 tokens per session scan A fc937c0978ff

Subscribe to this mod's changes

source-command-handoff is a skill published in the GitHub repository baek-labs/hames (5 stars, last pushed 1mo ago), licensed MIT. It adds 22 tokens to every session and 609 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

代码审查员

专业代码审查专家,提供建设性、可操作的反馈,聚焦正确性、可维护性、安全性和性能,而非代码风格偏好。.

KongFangXun/sofagent · 40 tokens

release-gate-loop

发版前自动验证闸门——V 验证 + F 修复循环(verdict FAIL → F 改代码 → 跑 audit → V 重验),最大 3 轮直到 PASS。纯只读验证 + 最小修复。.

KongFangXun/sofagent · 59 tokens

fresh-eyes-loop

发布后独立质量循环——A/B 双盲 12 视角 fresh-eyes 审查 + 修复 + 验证,每轮新 session 保证零上下文,连续 2 轮无 P0/P1 即停。.

KongFangXun/sofagent · 58 tokens

sofagent-fde

前线部署与知识工程专家。梳理企业业务流、识别 AI 节点、构建 ontology 本体数据、交付离场。 部署完成后转为持续优化模式(sustain),自动读 audit 报告趋势生成优化报告。 不写应用代码——把企业业务规则、组织架构、系统边界转译成 sofagent 的数据层和约束层。.

KongFangXun/sofagent · 93 tokens

sofagent-audit

收到用户任务后,不要自己执行——用 Bash tool 把任务交给 DeepAgents 编排引擎:.

KongFangXun/sofagent · 43 tokens

sofagent

FDE Skill——帮 FDE(前线部署工程师)更好完成企业 AI 落地的方法论 Skill。约束 Agent 行为、审计每次变更、沉淀经验。 底层实现叫约束层——一个层四种能力:注入·审计·回溯·进化。FORGE 自迭代工具链是内部开发工具。 内置持续优化模式(sustain),自动读 audit 报告趋势生成优化报告。.

KongFangXun/sofagent · 108 tokens