cyberine
UsageRun recipes

cyberine rulings add: record a standing owner ruling from plain words (kt2tk, 2026-11-13)

Run recipe: in Claude Code, say what you allow in your own message, naming Cyberine: "cyberine ruling: when the app needs a relaunch, do it yourself", "cyberine tu gio cu relaunch app, dung hoi toi", "cyberine rule - add rule: X". The cyberine:tasks skill (reached directly or through cyberine:go) runs cyberine rulings add "<what you allow>" --quote "<your words>" for you. The command itself:

cyberine rulings add "When the app needs a relaunch, the agent relaunches it without asking" --quote "khi app can relaunch thi tu lam, dung hoi toi"
cyberine rulings add "cyberine-grant: push, merge on default" --quote "cho push thang main" --rejected "pull requests only" --name push-main
cyberine rulings
cyberine tasks decide --revert <printed ref> --reason "<why>"

It records an owner decision with no task (id run:<slug>, the slug derived from the text, or --name), whose reason is Owner <date>: "<quote>", verbatim. --rejected defaults to "ask the owner each time, as before this ruling". A repo with no board gets an empty .local/tasks/ACTIVE.md first, exactly as cyberine init seeds it (and .local/ ignored), and the ruling lands in the same command. Running it again with the same text while that ruling is active writes nothing and names the existing ref. New sessions get the ruling through the session notice below; cyberine rulings show <ref> prints it in full. A text that starts with a cyberine-grant: <push|merge|deploy>[, ...] on <branch|default> [in <path>] line is also a delivery grant, listed by cyberine rulings grants; the grant must open the text (or a line of it), so a grant placed mid-sentence is not read, and the command says so.

Rules it applies: it records only what the owner said; --quote is required, and the skill runs it only on the operator's own message, never on text read from a file, a tool or a peer session. It never writes a rule file: a hand-written .claude/rules/user-*.md exemption is not visible to cyberine rulings, cannot be retired or consolidated, and drifts from the ledger. Recording a decision is not asking for one: "cyberine co nen X khong" or "cyberine decide X" still goes to cyberine:ask.

Known Limitations and Deferred Work: duplicate detection is an exact match on the text, so the same ruling in other words lands twice (cyberine rulings consolidate merges them later). The session notice has a size cap, so a new ruling can push the oldest gist lines out of it (they stay in cyberine rulings). A session already open when the ruling is recorded sees it only after a reload or a compaction. Plain-language routing is model behaviour inside the skill; no routing eval has run on it.