Agent CLI To API Migration with Claude Code: Artifact Delivery
A production playbook for agent CLI to API migration in cross-industry operations using Claude Code: artifact delivery, run-scoped inputs, logs, typed results, and artifacts.
Audience: Developer tools teams productizing a local CLI
The problem
Developer tools teams productizing a local CLI need agent CLI to API migration to run repeatedly against CLI commands, workspace files, auth, and output expectations. In cross-industry operations, the pain is not one good answer; it is repeatability, auditability, exception handling, and evidence that survives handoff.
Implementation path
Require Claude Code to write customer-visible files under /skill/output/artifacts, validate filenames and sizes, then return signed artifact metadata in argo.result.v1.
Tradeoffs and failure modes
Artifact policy constrains file output, but customers receive files that are durable, typed, and safe to download. For agent CLI to API migration, the practical test is whether a second run can be debugged, retried, and consumed by a product without reading the raw agent transcript.
Artifact manifest
artifacts:
- agent-cli-to-api-summary.md
- agent-cli-to-api-evidence.csv
- agent-cli-to-api-review.json
signed_urls: true
retention: org_policy
Run this on Argo