/install agentfiles
AgentFiles
Use this skill for runtime-facing AgentFiles work:
- publish files or text as artifacts
- fetch artifact content or metadata
- search or list recent artifacts
- create share links
- verify the current principal with
whoami - run polling
watchloops for sidecars or wrappers
Do not reimplement AgentFiles API calls inside the skill unless the user explicitly asks for a direct API path. This skill is a thin wrapper around the existing CLI.
Workflow
- Run AgentFiles commands directly:
agentfiles \x3Csubcommand> .... - Pass argv directly. Never build shell strings around AgentFiles commands.
- If a command needs auth or namespace context, start with
agentfiles whoamioragentfiles config --show. - Prefer
agentfiles setupfor default onboarding. Useconnect \x3Cruntime>only when the user wants a dedicated runtime credential. - For
watch, remember that V1 is polling-only. Readreferences/runtime-notes.mdwhen you need caveats or troubleshooting.
Common Patterns
- Verify auth:
agentfiles whoami - Show config:
agentfiles config --show - Publish text:
agentfiles publish --content "..." --title "..." - Publish file:
agentfiles publish ./path/to/file -n \x3Cnamespace> --title \x3Ctitle> - Fetch content:
agentfiles get \x3Cartifact-id> - Fetch metadata:
agentfiles get \x3Cartifact-id> --meta - Search:
agentfiles search "\x3Cquery>" -n \x3Cnamespace> - List:
agentfiles list -n \x3Cnamespace> - Share:
agentfiles share \x3Cartifact-id> - Watch:
agentfiles watch -n \x3Cnamespace> --json
Handoff
- Hand off with content:
agentfiles handoff codex --content "Please review this patch" - Pipe content:
echo "review notes" | agentfiles handoff codex - Thread a conversation:
agentfiles handoff codex --content "..." --thread pr7-review - Reply back:
agentfiles handoff claude_code --reply-to-artifact-id \x3Cid> --content "Looks good" - Hand off a file:
agentfiles handoff codex ./review.md - Search a thread:
agentfiles search "pr7-review" -n \x3Cnamespace>
Some runtimes may expose this as /handoff. Slash syntax is sugar, not a dependency.
Read references/commands.md for the command matrix. Read references/runtime-notes.md for auth, browser-based connect, polling caveats, and sandbox/network notes.
Behavior
- Prefer an installed
agentfilesbinary onPATH. - If it is unavailable, fall back to the published
agentfiles-clipackage through npm. - Expect network approval when npm needs to download the published CLI package.
- Keep
setupas the default onboarding path andconnectas the advanced/manual path. - Credentials should come from the browser-approved CLI flow and the local
~/.attach/config.jsonfile. - Do not ask the user to paste API keys into the skill or inline them in commands unless they explicitly choose the manual env-based path.
- Preserve CLI behavior. Do not reinterpret command output unless the user asks for a reformatted result.
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install agentfiles - After installation, invoke the skill by name or use
/agentfiles - Provide required inputs per the skill's parameter spec and get structured output
What is AgentFiles?
Use this skill when you need to publish, fetch, search, list, share, or watch AgentFiles artifacts from Codex, Claude Code, OpenClaw, or other agent runtimes... It is an AI Agent Skill for Claude Code / OpenClaw, with 141 downloads so far.
How do I install AgentFiles?
Run "/install agentfiles" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is AgentFiles free?
Yes, AgentFiles is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does AgentFiles support?
AgentFiles is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created AgentFiles?
It is built and maintained by hammadtq (@hammadtq); the current version is v1.0.2.