Relationships
#4954 Add built-in JSON query support to the Swamp CLI
Opened by randomfrequency · 11/20/2026
Codex and other CLI agents often need to extract a few fields from Swamp's JSON output. Today this typically requires piping commands to an external tool such as jq. In managed environments, shell pipelines can trigger escalation prompts, and allowing those pipelines through automatic approvals may require broader shell configuration than users consider safe.
Please consider adding a built-in JSON query language to Swamp, such as JMESPath or a similarly compact, well-defined alternative. It could be exposed as a global option on commands that support --json (for example, --query 'issues[].{id:number,title:title}') or as a standalone swamp data/json query command.
Useful capabilities would include selecting nested fields, projecting arrays, filtering records, and returning JSON without invoking a shell or external executable. Query syntax errors should identify the failing expression clearly. A documented query option would give agents and scripts a safe, composable way to consume structured CLI output while retaining Swamp's own command and approval boundaries.
Open
No activity in this phase yet.
Sign in to post a ripple.