Skip to main content

Prompt management

The prompt tools are the code-first prompt workflow with local file discovery replaced by inline content: prompt bodies travel as arguments, and the returned key → {promptId, versionId} mapping plus content hashes is the lockfile replacement — persist it client-side. moda prompts init, status, and --watch are local-file workflows and stay CLI-only. The prompt tools accept tenant_id (string, optional) where noted: the tenant to operate on, defaulting to the tenant embedded in the signed API key and required only for legacy unsigned keys.

prompts_sync

Pushes prompt definitions (content inline) to the Moda prompt registry, minting new versions for changed content, and returns the server’s synced list plus each prompt’s content hash computed with the CLI’s exact canonicalization. The sync is a full push with no explicit delete list: keys absent from prompts are conveyed as implicitly removed, so send the complete set every time.
Arguments
CLI: moda prompts sync

prompts_diff

Previews what a sync would change by running the same POST /prompts/sync with dryRun forced to true — the server-computed replacement for moda prompts status/diff, which compare local file hashes against a local lockfile. Never writes registry versions.
Arguments
CLI: moda prompts status / diff

prompts_promote

Points a registry label (dev, staging, or prod) at a specific prompt version — the final step after prompts_sync hands you a versionId. Promoting overwrites the label’s current assignment, and a prod promotion redirects live traffic immediately, so confirm the version first.
Arguments
CLI: moda prompts promote

Skills

The MCP skill tool takes SKILL.md content inline as arguments: discovering skill files under .claude/skills/ is the client’s job.

skills_push

Pushes user-authored skills (SKILL.md content inline) to the Moda skill registry, minting new versions for changed content. This is moda skills push with local .claude/skills/**/SKILL.md discovery replaced by arguments; the CLI’s managed AGENTS.md upsert is a local file write and stays CLI-only. Unchanged content is a server-side no-op.
Arguments
CLI: moda skills push

Harness

The harness tools cover the server-side halves of the harness workflow: uploading, deleting, and reading hosted analysis runs. Producing the graph and report requires the local repo, so moda harness scan/analyze/approve/validate-report stay CLI-side.

harness_sync

Uploads a harness graph — and optionally an approved analysis report (the CLI’s --from-report form) — to the tenant’s harness registry. The backend’s 2,000,000-byte graph limit is enforced client-side before the POST, and dry_run previews without writing.
Arguments
CLI: moda harness sync

harness_delete

Permanently deletes a harness from the tenant — including every synced version, agent, artifact, and relationship under it — and returns the server’s deleted counts. There is no undo, which is why the CLI demands --yes and this tool demands confirm: true.
Arguments
CLI: moda harness delete

harness_analyze_status

Reads the status, progress, and (when completed) results of a hosted harness analysis run. Starting a remote analysis requires a source snapshot built from the local repo, so kicking one off is CLI-only (moda harness analyze --remote prints the run id this tool takes); this is the read half that moda harness pull uses. Server-controlled progress strings are sanitized of ANSI/control characters before being returned.
Arguments
CLI: moda harness pull

Additional CLI parity entries

CLI-only commands