Safiullah-Rahu

Matchpoint — AI skill for Claude Code

AI community

Multi-agent harness for accounts-payable invoice exceptions: state graph, tool calling, policy RAG, human-in-the-loop, model routing, guardrails, tracing and evals (pass^k, chaos, faulty-model ablatio.

How to install Matchpoint

This entry records only its repository, not the path inside it, so there is no exact command to give. Open Safiullah-Rahu/matchpoint and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Matchpoint does

Multi-agent harness for accounts-payable invoice exceptions: state graph, tool calling, policy RAG, human-in-the-loop, model routing, guardrails, tracing and evals (pass^k, chaos, faulty-model ablations).

Alternatives in AI

  • Axonhub — ⚡️ Open-source AI Gateway — Use any SDK to call 100+ LLMs 3.2k ★
  • AI Engineer Portfolio Projects — 85+ buildable AI engineering portfolio projects for 2026, grouped by theme (RAG, agents, evals, fine-tuning, m 105 ★
  • Harness Autonomy — Run the decidable checks an auto-merge policy can trust: block and policy rules only, no heuristics, no LLM 32 ★

README

Matchpoint

[![ci](https://github.com/Safiullah-Rahu/matchpoint/actions/workflows/ci.yml/badge.svg)](https://github.com/Safiullah-Rahu/matchpoint/actions/workflows/ci.yml) ![python](https://img.shields.io/badge/python-3.11%20%7C%203.12-blue) ![license](https://img.shields.io/badge/license-MIT-green)

**A multi-agent harness for accounts-payable invoice exceptions, built the way production agents need to be built:** a deterministic state graph with LLM agents inside it, tool calling with least privilege, policy RAG with grounded citations, human-in-the-loop approval, model routing with retries and fallbacks, prompt-injection and fraud controls, OpenTelemetry-style tracing, and an eval suite that measures reliability (pass^k), safety and the effect of each control.

Runs fully offline with a deterministic reference model (no key, no cost), and on Claude when `ANTHROPIC_API_KEY` is set. On Claude (Haiku, Sonnet and Opus 5.5), one variant of each of the 13 scenarios passes live, 13/13, at about $0.07 per invoice.

![Matchpoint: a live Claude run resolving a price-variance exception](docs/img/run.png)


The business problem

When a supplier invoice fails the automatic three-way match (PO ↔ goods receipt ↔ invoice), it lands in an exception queue. An AP specialist then works the case: compare quantities and prices, check the vendor master, look for duplicates, read the policy manual, decide (pay, hold, request a credit memo, reject, escalate), write to the vendor, and leave an audit trail. It is high-volume, rules-plus-judgment work, which makes it a good candidate for agents. It also moves money, which is exactly where business-email-compromise fraud and prompt injection aim.

Matchpoint handles that queue end to end on a synthetic ERP with 52 labelled exception invoices (13 scenarios × 4 variants), including bank-detail fraud, duplicates in disguise, invoices above the approval limit, and vendor notes that try to instruct the agent.

What it demonstrates

|