Share Agent Output as a Public Link with Claude Code and AgentPatch Paste
Claude Code produces a lot of useful output: analysis writeups, structured data, formatted summaries, generated content. That output lives in your terminal unless you do something with it. The AgentPatch Paste tool gives Claude Code a way to publish that content to a public URL in one step — no clipboard gymnastics, no separate upload service.
Why This Matters
When you’re working with Claude Code and want to share something it produced — with a colleague, in a ticket, on a Slack thread — the agent can’t hand you a link. It can only hand you text. Getting that text into a shareable URL requires you to step outside the workflow.
With the Paste tool available through AgentPatch, Claude Code can call the tool itself. Content goes up, URL comes back, all in the same turn. Pastes support text/plain, text/html, and application/json. They expire automatically between 1 and 7 days. At 25 credits per call, it’s cheap enough to use as a routine part of reporting workflows.
Setup
Alternatively, you can install the AgentPatch plugin for Claude Code:
/plugin marketplace add fullthom/agentpatch-claude-skill
/plugin install agentpatch@agentpatch
This teaches Claude Code how to discover and use AgentPatch tools automatically.
Example
You’re doing a code review session with Claude Code and ask it to audit a module:
“Audit the auth module in src/auth/ for security issues. Look at input validation, token handling, and session management. Give me a detailed report.”
Claude Code reads through the files and produces a structured security report. You want to share it with your team without copying a wall of text into your issue tracker.
“Upload that report as a paste with a 7-day expiry and give me the URL.”
Claude Code calls the AgentPatch Paste tool with the report content, content type text/plain, and TTL set to 7 days. The tool returns:
https://agentpatch.ai/paste/a1b2c3d4e5f6
You drop that link into your GitHub issue. Anyone on the team can open it in a browser — no auth, no account needed. It disappears after a week.
Now you want the same data in a machine-readable format for your internal tooling:
“Reformat that report as a JSON object with fields for ‘severity’, ‘location’, and ‘description’ for each finding. Upload it as a paste.”
Claude Code restructures the findings, calls the Paste tool with application/json, and returns a second URL. Your internal dashboard can fetch from that URL directly during the 7-day window.
You can chain this into longer workflows too:
“Run the full test suite, collect the output, and create a paste of the results. Add the link to LAST_RUN.md.”
Claude Code runs the tests, captures stdout, creates the paste, and writes the URL to the file. One instruction, no manual steps.
Wrapping Up
Paste is a small tool that removes a real friction point — turning agent output into something shareable. Combined with Claude Code’s ability to read files, run commands, and write code, it opens up reporting and handoff patterns that would otherwise require manual work. The same AgentPatch connection also unlocks web search, email, image generation, and more. Visit agentpatch.ai to see the full marketplace.