agents.writerslogic.com/api/v1/path-rules
Evaluates up to 25 file paths against the text of a .gitignore, a CODEOWNERS file or a list of glob patterns and reports, per path, whether it matched, the winning rule's line and pattern, and why (last match wins, directory-only rules, negation, a re-include blocked by an excluded parent directory, CODEOWNERS owner lists). Optional per-path expectations turn it into a pass/fail check, and CODEOWN
POST
https://agents.writerslogic.com/api/v1/path-rulesUptime100% of 3 checks in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
// npm install fourohtwo
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://agents.writerslogic.com/api/v1/path-rules", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"kind":"gitignore","paths":[{"path":"build/out.js"},{"path":"keep.log"},{"path":"vendor/keep","isDir":true}],"rules":"build/\n*.log\n!keep.log\n/vendor/*\n!/vendor/keep"}),
});
console.log(await res.json());Example input
{
"kind": "gitignore",
"paths": [
{
"path": "build/out.js"
},
{
"path": "keep.log"
},
{
"path": "vendor/keep",
"isDir": true
}
],
"rules": "build/\n*.log\n!keep.log\n/vendor/*\n!/vendor/keep"
}