Patterns

Understanding the conventions Hypr discovers and where they live.

Where Patterns Live

Patterns are not stored in separate files — they are embedded directly in each generated agent, under a ## … Patterns - Detected from Codebase heading, as a numbered list the agent references while it works:

.claude/agents/
  planning-agent.md
  frontend-agent.md   # contains "## Frontend Patterns - Detected from Codebase"
  backend-agent.md

What a Pattern Looks Like

Each pattern is a single numbered rule with a citation of where it was found in your codebase, so the agent can apply it and you can verify it:

1. Component names use PascalCase and are descriptive
   with their function (e.g., `RemoveItemModal`).
   Found in files like `src/components/Modals/RemoveItemModal.tsx`.

Across the agents these rules cover conventions such as:

  • File naming and organization
  • Code structure patterns
  • Import/export conventions
  • Error handling approaches
  • Example code snippets

Updating Patterns

Run /hypr:refresh to re-analyze your codebase and update the pattern rules in your agents, or edit an agent file directly to add or refine a rule.