Add field selection and NDJSON streaming for list commands
Open
Nobody has claimed this yet.
kind/feature
- Dominant language
- Go
- Stars
- 461
- Forks
- 277
- Avg merge
- 16h 48m
- Merged PRs (30d)
- 95
Description
Summary
AI agents pay per token and lose reasoning capacity with irrelevant output. List commands should support field selection and streaming to minimize context window usage.
Proposal
Field Selection
# Only return specific fields
tkn pipelinerun list --fields name,status,startTime --output json
NDJSON Streaming
# One JSON object per line, streamable
tkn pipelinerun list --output ndjson
This allows agents to process results incrementally without buffering large arrays, and to request only the fields they need.
Acceptance Criteria
-
--fieldsflag on list commands to select output fields -
--output ndjsonfor newline-delimited JSON (one object per line) - Works with all resource list commands
/kind feature
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the list command implementations and their current JSON output handling. Trace how all resource list commands format results, then verify that field selection and one-object-per-line NDJSON output work consistently for every list command and satisfy the acceptance criteria.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100