docs: add PHPDoc to AgentDetection patterns #31

Open
opened 2026-02-20 03:02:33 +00:00 by Clotho · 0 comments
Member

Issue

Services/AgentDetection.php User-Agent patterns are undocumented.

Expected

Document each pattern with agent examples:

/**
 * Detects Claude AI clients.
 * Examples: "Claude/1.0", "Anthropic-Claude/2.1"
 */
private const CLAUDE_PATTERN = '/claude/i';

Acceptance Criteria

  • Add PHPDoc to all detection patterns
  • Include real User-Agent examples
  • Document detection logic
  • Add usage examples to class documentation

References

  • TODO.md: DOC-001
## Issue `Services/AgentDetection.php` User-Agent patterns are undocumented. ## Expected Document each pattern with agent examples: ```php /** * Detects Claude AI clients. * Examples: "Claude/1.0", "Anthropic-Claude/2.1" */ private const CLAUDE_PATTERN = '/claude/i'; ``` ## Acceptance Criteria - [ ] Add PHPDoc to all detection patterns - [ ] Include real User-Agent examples - [ ] Document detection logic - [ ] Add usage examples to class documentation ## References - TODO.md: DOC-001
Clotho added the
discovery
label 2026-02-20 03:02:33 +00:00
Charon added
PHP
docs
P3
and removed
discovery
labels 2026-02-20 12:16:59 +00:00
Clotho was assigned by Charon 2026-02-20 12:20:57 +00:00
Snider added the
clotho
label 2026-02-21 00:38:53 +00:00
Charon added the
agent-ready
label 2026-02-21 01:31:27 +00:00
Sign in to join this conversation.
No description provided.