How anush273/meridian-support-draft-agent works
Meridian is a small CLI tool that prepares a support-reply draft for one fictional case and prints it for human review; it does not take action on the customer’s behalf. The workflow selects a case, assembles facts and policy instructions, applies deterministic checks, optionally calls a configured model, validates the result, and prints it. Its key branches include local Ollama and cloud OpenRouter backends, prerecorded offline demos, and a safe unavailable result. Relationships not visible in the sampled source are based on README descriptions.
Main entry points: app.py CLI and orchestration · setup_env.py Interactive setup · cases.json Support cases · task.md Drafting task
Components 18
CLI and review
- CLI and orchestration
app.py
Case and policy context
- Support cases
cases.json - Drafting task
task.md - Term definitions
definitions.md - Output contract
contractDefinitions.md - Business policy
policy.md - Evidence map
evidence_map.json
Draft resolution
- Deterministic checks
app.py - Backend selection
app.py - Response validation
app.py - Safe unavailable result
app.py - Offline demo results
demo_outputs.json
Backend configuration
- Interactive setup
setup_env.py - Backend settings example
.env.example
Other components
- Human reviewer
- Terminal
- Ollama model service
- OpenRouter service
Connections 19
- Human reviewer → CLI and orchestration: selects case
README.md - CLI and orchestration → Support cases: loads case
README.md - CLI and orchestration → Drafting task: loads and adapts
README.md - CLI and orchestration → Term definitions: loads context
README.md - CLI and orchestration → Output contract: loads contract
README.md - CLI and orchestration → Business policy: loads policy
README.md - CLI and orchestration → Evidence map: loads and checks
README.md - CLI and orchestration → Deterministic checks: resolves case
README.md - Deterministic checks → Backend selection: calls when needed
README.md - Backend selection → Ollama model service: calls model
README.md - Backend selection → OpenRouter service: calls model
README.md - CLI and orchestration → Offline demo results: loads in demo mode
README.md - CLI and orchestration → Response validation: validates response
app.py - Response validation → Safe unavailable result: falls back on failure
README.md - Deterministic checks → Safe unavailable result: returns on failure
README.md - CLI and orchestration → Terminal: prints sections
README.md - Terminal → Human reviewer: shows draft
README.md - Human reviewer → Interactive setup: configures backend
README.md - Interactive setup → Backend settings example: uses settings
README.md