Quoth Integration
Persisting live docs for learned patterns
Quoth Integration
Persisting and retrieving learned patterns through the Quoth knowledge base.
Overview
Quoth is live documentation that the AI reads from AND writes to. Unlike static docs, Quoth evolves as the AI learns from failures and discoveries:
- Test patterns and best practices (retrieved before writing tests)
- Page Object definitions (reused across tests)
- Common selectors and anti-patterns (learned from failures)
- Project-specific conventions (accumulated knowledge)
Key concept: Patterns persist across sessions. What the AI learns today helps it write better tests tomorrow.
Authentication
On first use, authenticate at:
https://quoth.ai-innovation.site/
Available Tools
quoth_search_index
Search for patterns and documentation:
quoth_search_index({ query: "login form patterns" })
quoth_read_doc
Read a specific document:
quoth_read_doc({ docId: "login-patterns" })
quoth_guidelines
Get coding guidelines:
quoth_guidelines({ mode: "playwright" })
Automatic Integration
Triqual's hooks provide recommendations (not mandates):
- Before writing tests: Recommends searching Quoth for relevant patterns
- After failures: Suggests looking up error handling strategies
- Pattern learning: The
pattern-learneragent proposes documentation updates
Hook Behavior
When you write a .spec.ts file, you'll see:
[Triqual] Writing test file detected.
Recommended steps before proceeding:
1. Search for existing patterns
2. Check for similar tests
3. Review results and reuse existing Page Objects
These are suggestions - you decide whether to follow them.
Manual Usage
Search for patterns anytime:
// In your workflow
quoth_search_index({ query: "login form validation" })
The Learning Loop
Quoth is the memory of the autonomous learning loop:
┌─────────────┐ ┌─────────────┐ ┌─────────────┐
│ QUOTH │ │ PLAYWRIGHT │ │ EXOLAR │
│ │ │ MCP │ │ │
│ Persisting │◀────────│ AI verifies │────────▶│ AI fetches │
│ live docs │ │ app behavior│ │ CI results, │
│ for patterns│ │ autonomously│ │ logs, trends│
└─────────────┘ └─────────────┘ └─────────────┘
▲ │ │
│ │ │
└───────── PATTERN LEARNER (learns from both) ──┘
How Patterns Accumulate
- Test fails → AI investigates with Playwright MCP
- Root cause found → AI checks Exolar for similar issues
- Pattern identified → pattern-learner proposes Quoth update
- Pattern stored → Future tests benefit from learned knowledge
Pattern Persistence
Unlike ephemeral session context, Quoth patterns:
- Persist across sessions - Knowledge isn't lost
- Improve over time - Each failure teaches something
- Share across team - Everyone benefits from discoveries
- Version controlled - Changes are trackable
Best Practices
- Search Quoth before writing any new test code
- Document successful patterns immediately
- Update anti-patterns when you find fragile tests
- Let the
pattern-learneragent propose updates from repeated failures - Review pattern-learner proposals before accepting