Repository navigation
feat: add --project and --exclude filters for project-level filtering - #52
Merged
Merged
Conversation
mallek
force-pushed
the
feature/project-filter
branch
from
April 16, 2026 18:22
4440fda to
84e562c
Compare
Adds two new repeatable flags to all commands (report, today, month, status, export): - --project <name>: include only projects matching name (substring, case-insensitive) - --exclude <name>: exclude projects matching name (substring, case-insensitive) Both flags can be specified multiple times to match multiple projects. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
mallek
force-pushed
the
feature/project-filter
branch
from
April 16, 2026 21:54
84e562c to
67c504a
Compare
AgentSeal
pushed a commit
that referenced
this pull request
Apr 16, 2026
feat: add --project and --exclude filters for project-level filtering
Collaborator
|
Merged, thanks for the contribution! Added two follow-up commits on top before merging:
Landed in main as 87210da. Will be in the next release. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Addresses #12 (item 1 — per-project drill-down).
Summary
Adds two new repeatable CLI flags to all commands (
report,today,month,status,export):--project <name>— include only projects matching name (case-insensitive substring match)--exclude <name>— exclude projects matching name (case-insensitive substring match)Both flags are repeatable to match multiple projects:
Filters can be combined with the existing
--providerflag.Motivation
When tracking multiple projects, it's useful to isolate costs to a specific project or hide noisy projects from aggregate totals. The
--providerflag exists for tool-level filtering, but there was no way to filter by project.Changes
src/parser.ts— newfilterProjectsByName()function supporting include/exclude arrayssrc/cli.ts—--projectand--excludeoptions on all commands, repeatable via Commander collect patternsrc/dashboard.tsx— thread filters through to interactive dashboard and reload callbacksREADME.md— documented project filtering with examplesTest plan
status --format jsontotals match:--project X+--exclude X≈ unfiltered total--exclude a --exclude bexcludes both--project a --project bincludes both--helpshows new flags on all commandstsup🤖 Generated with Claude Code