Problem
"other" is currently the largest category at 30% of sessions (59 sessions). This suggests the classifier is missing a significant cluster of user behavior.
Proposed addition
Add a "legal" category to _CLUSTERS in hermes_hud/collectors/patterns.py:
("legal", ["affidavit", "exhibit", "pleading", "brief", "court", "filing", "cpr", "rule ", "defendant", "claimant", "injunction", "discovery", "deposition", "ECSC", "application notice", "witness"]),
Rationale
Users with litigation workloads would have many sessions involving court documents, evidence review, legal research, and filing preparation. These sessions are currently lumped into "other" because the existing keywords don't cover legal terminology.
Impact
- Would reclassify a meaningful portion of the "other" bucket
- Gives legal users better visibility into their agent usage patterns
- Aligns with Hermes' documented ECSC litigation capabilities
Placement
Put "legal" near the top of _CLUSTERS (after "git ops") so it matches before "other" as a fallback.
Files to modify
hermes_hud/collectors/patterns.py (line 23 area)
hermes_hud/models.py if any constants need updating
Problem
"other" is currently the largest category at 30% of sessions (59 sessions). This suggests the classifier is missing a significant cluster of user behavior.
Proposed addition
Add a "legal" category to
_CLUSTERSinhermes_hud/collectors/patterns.py:Rationale
Users with litigation workloads would have many sessions involving court documents, evidence review, legal research, and filing preparation. These sessions are currently lumped into "other" because the existing keywords don't cover legal terminology.
Impact
Placement
Put "legal" near the top of
_CLUSTERS(after "git ops") so it matches before "other" as a fallback.Files to modify
hermes_hud/collectors/patterns.py(line 23 area)hermes_hud/models.pyif any constants need updating