Skip to content

handoff: write to Argus KB by default, fall back to clipboard#285

Merged
drn merged 2 commits intomasterfrom
argus/The-hand-off-skill-should
Apr 28, 2026
Merged

handoff: write to Argus KB by default, fall back to clipboard#285
drn merged 2 commits intomasterfrom
argus/The-hand-off-skill-should

Conversation

@drn
Copy link
Copy Markdown
Owner

@drn drn commented Apr 28, 2026

Handoff prompts now save as YAML-frontmatter markdown to memory/handoff/-.md in the Argus knowledge base so the receiving agent can fetch them with kb_read or kb_list across thread boundaries. The clipboard path remains as the fallback when the Argus KB MCP server isn't running.

The skill sanitizes slugs to prevent path traversal, uses second-level timestamps + per-invocation temp files to avoid collisions, and specifies a primary tool name (mcp__argus__kb_ingest) with a documented alternate (mcp__argus-kb__kb_ingest) for harnesses that register the server under either name.

Co-Authored-By: Claude noreply@anthropic.com

drn added 2 commits April 28, 2026 01:11
Save handoffs as markdown files under memory/handoff/ in the Argus KB so
the receiving agent can pull them with kb_read or kb_search across thread
boundaries. Only fall back to pbcopy when the KB tool is unavailable.
- Require YAML frontmatter (title, tags) — Argus KB schema mandates it.
- Sanitize the slug to lowercase kebab-case so a hostile title can't
  traverse out of memory/handoff/.
- Switch to seconds in the timestamp so two same-minute invocations
  don't collide on the same path.
- Use a timestamped temp file (/tmp/handoff-<ts>.md) instead of a
  fixed name so concurrent invocations don't overwrite each other.
- Specify a primary tool name (mcp__argus__kb_ingest) and document
  the alternate (mcp__argus-kb__kb_ingest) instead of asking Claude
  to introspect which is registered — it can't.
- Replace the escaped-backtick confirmation template with prose so
  it survives layered markdown quoting.
- Add a date-failure fallback (random hex suffix).
- Document the receiving-agent UX: kb_list("memory/handoff/") sorts
  by timestamp prefix so the latest is highest-sorted.
@drn drn merged commit 10e6004 into master Apr 28, 2026
@drn drn deleted the argus/The-hand-off-skill-should branch April 28, 2026 17:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant