Skip to content

feat: Embed search parameters in --show-metadata Query section#180

Merged
holmboe merged 1 commit intomasterfrom
feat/embed-search-params-in-metadata
Mar 30, 2026
Merged

feat: Embed search parameters in --show-metadata Query section#180
holmboe merged 1 commit intomasterfrom
feat/embed-search-params-in-metadata

Conversation

@holmboe
Copy link
Copy Markdown
Contributor

@holmboe holmboe commented Mar 30, 2026

Summary

  • When --show-metadata is active, each task's Metadata section now includes a Query key containing the original search parameters (tag, updated_after, etc.)
  • Enables downstream tools (e.g., weav templates) to pick up search context from the data itself, eliminating the need to pass the same arguments to both phabfive and the consumer

Before:

BOARDS=dynamist-documents,developer-experience
phabfive maniphest search --updated-after 14 --tag $BOARDS \
  | weav projectloop.md.j2 --data tasks=- --keyval boards=$BOARDS

After:

phabfive --format yaml maniphest search --updated-after 14 \
  --tag dynamist-documents,developer-experience --show-metadata \
  | weav projectloop.md.j2 --data tasks=-

Example output with --show-metadata:

  Metadata:
    MatchedBoards: [...]
    MatchedPriority: false
    MatchedStatus: false
    Query:
      tag: dynamist-documents,developer-experience
      updated_after: '14'

Test plan

  • Run phabfive --format yaml maniphest search --updated-after 14 --tag dynamist-documents --show-metadata and verify Query appears in each task's Metadata
  • Run without --show-metadata and verify output is unchanged
  • Run uv run pytest — all 332 tests pass

🤖 Generated with Claude Code

When --show-metadata is active, each task's Metadata section now includes
a Query key with the original search parameters (tag, updated_after, etc.).
This allows downstream tools like weav templates to pick up search context
without requiring duplicate arguments.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@holmboe holmboe merged commit c360ed3 into master Mar 30, 2026
17 checks passed
@holmboe holmboe deleted the feat/embed-search-params-in-metadata branch March 30, 2026 11:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant