CommonRig docsOpen the app

Docs / Working together / Learnings, skills and rules

Learnings, skills and rules

What agents learn and how you want them to work are cards. Your own agents' cards stand as they land unless you say ask; anything else a person accepts, version by version, and only accepted versions reach an agent.

From draft to served

Your agentCommonRigYouDrafts itlearn_addScans ithidden characters,what runsReads the versionand its digestAcceptsfor the workspace orprojectEach person opts infor a project's cardServes ithints, rules, skillsUses itYour agentCommonRigYouDrafts itlearn_addScans ithidden characters,what runsReads the versionand its digestAcceptsfor the workspace orprojectEach person opts infor a project's cardServes ithints, rules, skillsUses it
A card from an agent's draft to every agent that should get it
KindWhat it isHow it reaches an agent
LearningSomething worth knowingAs a hint, a title and one line, when its keywords match the work
SkillA longer how-toOnly when the agent asks for it by name
ToolWhat a tool is for and how to use itAs a hint
RuleHow you want agents to workIn its own rules block at the start of every session
PackageA setup: hooks, commands, files for one harnessOnly through a one-time code you make on Deploy
Model tiersWhich kind of model for which roleIn a models block at the start
  • Your own agents' cards are accepted for you as they land: a new card your agent files, or a new version of a card that is yours (your personal cards, or one your agents started; in a workspace you own, any card). The trail says auto-accepted: own agent. A version a scan finds anything in waits for you (in a workspace you own, only a refusal or a warning that reads like an instruction), as does one where your agent permissions keep accepting people only, and the tier list always waits. Rules wait too, unless you own the workspace and set your own agents' rules to auto under Setup, Cards and rules: then a rule your own agent writes stands at once, watching until you set its level, bar a scan finding, someone else's version waiting below it, an update to a rule that already enforces, or 'Rules: approve for you' set to deny. Packages wait too, unless you own the workspace and turn on your own agents' packages under Setup, Cards and rules: then a package your own agents push stands at once, and Deploy still makes the code that brings it to a machine.
  • Cards you inherit from the workspace or a project, take from the hub, or copy in ask first. The first time something waits on you, Learnings asks how you want updates like it handled; after that it is under Setup, Cards and rules.
  • A card has one version waiting at most. A newer draft replaces every lower one nobody accepted or turned down: those stay in its history, marked replaced by the newer, and are never offered. The list says which waits and which is accepted, such as v3 waits (v1 accepted).
  • On a version your own agent wrote, the card and its Versions say what happened: auto-accepted for you, or held and why (a place set to ask, your agent permissions, someone else's version below it waiting, or a scan finding). Only you see that note, and your accept clears it.
  • Everything waiting on you leads every Learnings list, the kind pages too, all of it before any paging, and each card with a newer version waiting says so. Select all ticks every one.

For agents learn_recommend card_manage card_curate: learn_recommend says accept or leave on a waiting card with a reason; card_manage accepts, retires or restores where the grid lets you act for your person; card_curate attaches, detaches, copies or exports a project's own cards. Applies when cards wait for a person's yes, or a project's own cards need moving.

Your own say over a project's cards

A project accepting a card says what it offers. Each person then says what they take. Nobody is forced onto anything, and nothing you choose changes anyone else's agents.

You canWhat happens
Accept a card for yourselfYour agents get that version, only in that project. A newer one waits for your yes
Accept allEvery card waiting on you, each listed with its version first
Switch a card, kind or category offYour agents leave it out
Copy a card to your ownA draft of your own, for your other work
Adapt it to your systemYour own copy, and your agent is asked to rewrite it for your machine and tools. You accept the rewrite
  • A card can say what it needs: tools, accounts, models, an operating system or a harness. A card that needs what you lack stays out of your agents' hints.
  • Rules and packages stay as the project owner set them, as they bind every agent. A rule marked required always applies.
  • Search finds your own personal cards too, by title, words or id, for you and nobody else, owners included, and only where your sessions would get them.
  • Your own skill with the same name as a shared one is your variant: your agents get it in its place. Its page shows how it differs from the shared card. A copy remembers the shared version it came from, so when the shared card moves on you are offered its newer words: bring them in as a draft of yours, merged line by line (title, match words and fields too), with any clash marked for you to edit, or keep yours. A draft with marked lines left in it cannot be accepted, and until you accept the merged draft the offer stays open. Edits on neighbouring lines count as a clash. A copy made before this release has no record of where it came from, so it shows the difference but is never offered an update. Either way you choose, and nothing changes until you accept.

Cards tied to one system

A card written on one person's machine often names that machine: a build host, a repo folder, a tool only they have. Bindings keep those names out of the words, so the card works for everyone it fits.

Card fieldWhat it says
BindingsNames the words use, such as ${build_host} or ${repo_root}, each with a type
When a binding is missingSkip (the default): the card stays out of your agents' hints until you have a value. Show: it is served with the name unfilled
ScopeGeneral, general to this kind of setup, owner-specific, or mixed
Needs and fitsTools, accounts, models, operating system or harness it needs
  • Your agent gets your values beside the card, from your own context lines first, then a rig page field of the same name, then the project's and workspace's lines. The card's words never change.
  • A value one of the card's own authors wrote counts only for that author, so neither a teammate's agent nor a co-author is handed someone else's system.
  • A card that needs what you lack, or a binding you have no value for, is left out of your hints and finds, marked not available on your system. It still opens if asked for by id.
  • When an agent reads a card someone else wrote that names a system (bindings, needs, or an owner-specific scope), it is told one fixed line: system-specific, adapt or skip. Never whose system.
  • Lists, the card page and Deploy show chips for each binding and the scope, flagged against what you have.

For agents learn_add get context_set rig_write: learn_add takes bindings, on_missing_binding, scope, needs and fits; get returns the card's bindings with your values and where each came from. On "system-specific: adapt or skip", adapt a copy to your person's setup or leave it. Applies when you write a card that depends on one machine or setup, or read one marked system-specific.

Packages on your machine, and updates

Your own skills and hooks, the workspace's and a project's can all sit on one machine. Your agent keeps a short pointer file at each place it installs: ~/.commonrig/skills.md for your own, one in the workspace folder, one at a project's repo root. Each line is a package's id, title, scope, version and the start of its digest.

  • At the start of a session your agent sends those lines, ids and versions only, and the reply says in one line what is newer, such as: skills: 3 updates wait your yes.
  • Deploy shows a Waiting your yes group: newer versions of what you hold, and packages an owner marked recommended here. Accept one, or every one from the same source in one press. Your agent installs only on your word.
  • A package someone pushes lands as a draft. An owner accepts each version first, then each person brings it in for themselves.
Who sets itWhere
You, in a project (nearest)youthe project's Settings
You, in the workspaceyouyour personal settings
The projectits ownerthe project's Settings
The workspacean ownerSetup, Cards and rules
Pack updates: ask unless someone says auto; the nearest setting wins
  • Auto brings only a newer accepted version of a pack you already said yes to in CommonRig.
  • A new pack, a new source, or a version that adds a part that runs (a hook, script, command or setting) where yours had none always asks.
  • With auto the reply says what was updated, such as tidy-hooks v3 to v4, and each one goes on the trail.
Who sets itWhere
You, for your personal cardsyouSetup, Cards and rules
The project, for its own cardsits ownerthe project's Settings
The workspacean ownerSetup, Cards and rules
Card updates: ask, agent or auto when a newer version of an accepted card comes in
  • A newer version comes from the learning hub, or from an agent filing a better version of a card you accepted.
  • Ask waits on Learnings for a person. Agent lets your agents accept it for you where the agent grid asks first; a deny still stops them. Auto accepts what the hub brings in as it arrives, as the person who said auto, when its scan is clean; an agent's new version still waits.
  • Rules, packages, a pinned big no and the tier list always ask, bar your own agents' rules and packages where you said auto for them, and so does a card you forked, copied or adapted to your own setup, so an update never lands over your own words.

Three more words about your agents' own work:

SettingChoicesWhere
Findings raised for youCovers findings your agents raise and those from machines you set up (an intake device, an Alertmanager source, a GitHub source's failed runs on its own branches). Auto: straight on the board as a ready bug. Agent: another of your agents checks it and accepts or dismisses it. Ask: a person accepts it. Unset is auto in your own Home and ask in a shared workspace; a workspace or project word caps yours. A finding whose words a stranger can write (a GitHub issue, a fork's run, Sentry, a plain JSON webhook) always waits for a person's yes, whatever this says, and no agent accepts itSetup, Findings; a project's under its Settings, Card updates, Findings raised here
Findings: which of your agentsWho raises findings, who claims and fixes them, and who accepts or dismisses them: any of your agents, one harness or one connectionSetup, Findings
Rules and packages: who may accept for youOnly you, any of your agents, any agent but the one that wrote it (the default), or a named person's agents. A copy or move whose writer can't be named always waits for a personSetup, Cards and rules
Who sets itWhere
YouyouSetup, Cards and rules
The projectits ownerthe project's Settings
The workspacean ownerSetup, Cards and rules
Your own agents' cards: auto unless someone says ask; a place's ask holds everyone there

Rules and the guard

On your machinecheckedworkspace rulesAccepted rulemode: log, on or offAgents toldrules block at startServer gatereports, schedules,handoversGuard pulls rulesa saved copy, refreshedbehindGuard hookdeny or ask, never allowOn your machinecheckedworkspace rulesAccepted rulemode: log, on or offAgents toldrules block at startServer gatereports, schedules,handoversGuard pulls rulesa saved copy, refreshedbehindGuard hookdeny or ask, never allow
Where a rule is enforced
  • Only someone holding 'Accept and switch rules' (owners and managers, by default) accepts or switches a rule, or an agent for them where they opened 'Rules: approve for you' on their own row and their word on who may accept for them lets it. Members and agents draft them. A pinned big no binds every agent too, so its accept goes as a rule's.
  • A new rule starts in log: agents are told and nothing is stopped. On lets its check refuse or ask. Off tells nobody.
  • A check can only refuse or ask. Nothing can say allow.

Checked against the code at e28af69c. Site built from f04f4af1.