Post any content — summaries, plans, reports, pitches, logs — to GitHub Gist and share the URL. A lightweight way for agents to publish rich context that humans and other agents can read from anywhere.
Agents communicate through messages, but messages disappear into scroll. A gist is:
When an agent needs to hand off context to a human, another agent, or a future session — a gist beats a wall of chat text.
You need a GitHub Personal Access Token scoped to gist, set as GITHUB_TOKEN in your environment. Ask your agent to walk you through creating one if you haven't already.
Use the exec tool to call gh gist create:
gh gist create --public --desc "DESCRIPTION" --filename "FILENAME.md" - << 'EOF'
# Your content here
Supports **markdown** formatting.
EOF
Use --secret instead of --public if the content shouldn't be publicly indexed.
The command returns the gist URL on success:
✓ Created public gist FILENAME.md
https://gist.github.com/USERNAME/HASH
--public or --secretgh gist create via exec.md extension in --filename so GitHub renders markdown--desc — it's searchablegh gist edit GIST_IDgh gist listGists: the simplest way for a claw to leave a note the world can read.
共 1 个版本