Skip to content

Commit 1e124f2

Browse files
committed
Clarify jq-first JSON processing guidance
Prefer jq-based JSON filtering over one-off Python parsing, and steer gh JSON queries toward the built-in --jq flag. Made-with: Cursor
1 parent 80734e3 commit 1e124f2

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

AGENTS.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ guide for package-specific conventions and workflows.
2626
- If `pixi` is available for this repo, prefer `pixi run ...` or the matching
2727
`pixi` task over invoking raw `python`, `pytest`, `pip`, or similar tools
2828
directly so commands run in the repository-managed environment.
29+
- When extracting or transforming JSON in shell workflows, prefer `jq` over
30+
one-off Python parsing. For `gh` commands that return JSON, prefer the
31+
built-in `--jq` flag instead of piping the output into `python`.
2932
- When multiple tool calls can be parallelized (e.g., todo updates with other
3033
actions, file searches, reading files), make these tool calls in parallel
3134
instead of sequential. Avoid single calls that might not yield a useful

0 commit comments

Comments
 (0)