Harness-agnostic CLI for accepting secrets without exposing them to an AI agent's chat context. Stores secrets in macOS Keychain and provides safe retrieval mechanisms.
pst-cli is a specialized secret-management tool with clear, security-focused design. All 9 tools have descriptions and input schemas with type definitions. Naming is verb-first and action-oriented (set, get, paste, exec, rm, list, exists, shape, help). However, descriptions are terse (10-80 chars, well below the 50-200 char LLM-optimized baseline), parameter descriptions lack detail on constraints and formats, and output schemas are not documented. Error handling is present but minimal, no recovery guidance or actionable error messages. The tool is well-architected for its domain (secrets management) but lacks the depth of documentation and error context expected in production agent tools.
Inject secret value as $PST_VALUE environment variable, run command. Value scoped to child process only.
Quiet check whether a secret exists. Exit 0 if set, 1 if not. No output.
Retrieve and print secret value to stdout. Caller responsible for safe piping to avoid exposure in transcripts.
Display help text and usage information.
List all secret names stored in the keychain service, one per line, sorted.
Read clipboard, trim whitespace, store to keychain under a given name, then clear the pasteboard.
Delete a secret from keychain. Silent — both 'deleted' and 'wasn't there' are fine.
Silent prompt (TTY) or stdin (pipe), trim, store secret to keychain under a given name.
Descriptions are too terse (10-80 chars vs. 50-200 char baseline). LLMs cannot determine when to select tools or understand nuanced behavior. E.g., 'pst list' is '5 words, 50 chars', lacks context on output format, use cases, or when to call it.
Output schemas are not documented. Callers cannot infer what fields to expect from pst list (is it JSON array? newline-delimited strings?), pst shape (what fields in the metadata?), or pst exec (stdout/stderr/exit code structure?). This forces agents to guess or fail.
Parameter descriptions lack constraint details. The 'name' parameter appears in 7 tools with identical description 'Secret name (must match [A-Za-z][A-Za-z0-9_-]*, max 256 chars)', good, but 'command' and 'args' in pst exec lack format guidance. 'args' is described as 'Optional command arguments' with no type hint (array of strings? single string?).
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | D | 51 | 2026-07-28+ | v2 |
Safe diagnostic. Prints metadata only — length, service, and known PUBLIC prefix (e.g. rnd_). Never prints random bytes of the value.
Error handling lacks recovery guidance. Tools return exit codes (0/1) and terse messages ('❌ empty or whitespace-only value, not stored') but do not guide the agent on next steps. E.g., if pst set fails, should the agent retry, ask the user, or call a different tool?
No tool annotations (readOnlyHint, destructiveHint, idempotentHint). Agents cannot infer which tools are safe to retry (pst get is idempotent; pst rm is destructive). This is a current MCP spec feature (2026-07-28) that should be present.