AI assistants¶
archvow is independent of any editor or AI vendor: every assistant gets the same rules
(AGENTS.md) and the same checks.
The names an AI writes (@assisted, @reviewer) are declared, not proven: what makes a person's approval binding is your Git host (What your Git host must enforce).
Approving assistants¶
archvow init <package> -a ai_tools=claude-code,jetbrains-ai-chat ... # at creation
archvow init <package> --force -a ai_tools=claude-code,antigravity # later: the complete list, then commit
ai_tools |
Files written for it |
|---|---|
copilot (default) |
.github/copilot-instructions.md (GitHub Copilot in VS Code, JetBrains IDEs, Visual Studio) |
claude-code |
CLAUDE.md (loads AGENTS.md) and .claude/settings.json: the checks pre-approved, and of the commands that write only archvow question add and archvow assumption add; editing guard files, --no-verify and the commands that decide or change the spec denied |
cursor |
.cursor/rules/archvow.mdc |
codex, junie |
none extra: both read AGENTS.md |
jetbrains-ai-chat |
.aiassistant/rules/archvow.md |
antigravity |
.agents/rules/archvow.md (Google Antigravity) |
continue |
.continue/rules/archvow.md (Continue, always applied) |
none |
AGENTS.md tells every assistant not to touch the project |
An approval names the agent that edits the files, not the window it runs in. JetBrains AI
chat can run other agents (Claude Code, Codex, Antigravity...) through ACP: jetbrains-ai-chat
approves its own built-in assistant only; each other agent is approved under its own name.
What the approval does - and does not do¶
It is the project's policy, recorded in the repository and reviewed like any guard:
- well-behaved agents read
AGENTS.mdand stop when they are not on the list, telling the user the exact command an architect runs to approve them; - the
@assistedheader of every file names the assistant used, and the check refuses a name that is not approved (ARCH018) - a self-declaration that gives traceability; - configuration files of other assistants fail the build (
ARCH040), so no tool silently imposes its own rules on the team; - approving a new assistant is a guard change the architects approve (
ARCH020); - archvow stops inside an agent in YOLO mode, or outside a sandbox when the project asks for one
(
ARCH052,ARCH051), and a commit of an agent's code says how the agent ran (ARCH053): Agent security.
It does not stop someone determined to use another tool: no repository-based tool can see what typed the code. Enforcing which tools may be used - and so where code and data may be sent - is company policy: IDE and plugin allow-lists, network rules, company accounts. Whatever tool was used, the code still has to pass every check.
Working without asking: auto_approve¶
AI assistants ask before each command and each edit they have not been told is safe. With the init
answer auto_approve (yes for a new project), the approved assistants run the safe commands and
edit the code without asking:
| Without asking | |
|---|---|
| archvow | check, next, show, catalog, prompt, changes, the help (archvow --help, archvow <command> --help); brief show; question add and assumption add (recording a question, never deciding); decision propose and component add in modes guided and free (the component is marked "created by the AI" until a person runs component accept), and for Claude Code hazard add, invariant add and rule add in those modes (marked as the AI's until a person keeps them, below) |
| lint and tests | ruff check, ruff format, pytest, python -m pytest (also python3 and the project's python3.12), make test, make check |
| Git, read only | git status, git diff, git log, git branch --show-current, exactly git config user.name |
| other | sort; edits in src/ and tests/ |
Whatever the answer, the commands that write the spec (decision make, hazard, invariant,
rule, init...) and edits of .archvow/, AGENTS.md, the CI and the hooks stay denied,
and commits and pushes always ask. find is never auto-approved (it can delete files or run
commands): AGENTS.md tells the assistants to use their own file tools or archvow next.
Where each assistant reads it:
| Assistant | |
|---|---|
| Claude Code | .claude/settings.json (allow and deny rules; deny wins) |
| Cursor | .cursor/cli.json (allow and deny rules; deny wins). Cursor documents it for its CLI |
| Copilot, JetBrains AI, Junie, Continue, Antigravity | they keep their permissions outside the project: init prints, for each one, where each developer adds the commands once |
archvow init <package> --force -a auto_approve=yes # on: a guard change the architects approve (ARCH020)
archvow init <package> --force -a auto_approve=no # off: the assistants ask again
The assistants approve one command at a time: AGENTS.md
asks them to run one command per call, never chained with &&, ; or | (Claude Code checks
each part of a chain; other assistants may not, and ask). The list is the
template's auto_approved (Packs). The protection does not
depend on the prompts: the Git hook and the CI fail the build whatever the assistant did.
The one-line instruction¶
AGENTS.md defines what "implement" means (in a French project, "implémente" too), so the
instruction to any assistant is one line:
implement clean_orders
implement everything archvow next lists as ready
It first checks the branch: developers create branches, the assistant never does. On main,
develop or a branch not named feature/<ticket>-<short-name>, it stops and gives the command
(git switch -c feature/<ticket>-sales-reader develop, the ticket being the spec's @spec). For each
component the assistant reads its spec, writes the file with its header and its
tests (including the test of each invariant), runs archvow check, ruff check . and
pytest, fixes what they report, and reports what it assumed. It commits only when asked. A
spec cut into tasks (see Concepts) is built one task at a time: archvow prompt
<component> gives the next one, and each test is marked with what it tests
(@pytest.mark.decision(3), @pytest.mark.rule("R2")).
It ends every answer with the run line of archvow next: Try it locally: ... with real values in
place of each <...> once the entry point and what it uses are coded, or Not ready to run yet:
... as it is. It never changes entrypoint.sh, the CI or the scheduler files: the deployment keeps
its own settings.
For an assistant that cannot read files, archvow prompt <component> prints the whole task
to paste; archvow prompt <component> --clarify asks it to list what is unclear, as
questions (it decides nothing).
Skills¶
The procedures AGENTS.md defines are also written as Agent Skills: a folder with a SKILL.md, which
the assistant loads when a task matches it (or when you call it by name, e.g. /archvow-implement in Claude
Code). One source in the template, written into the folder each approved tool reads:
| Skill | Does | Generated for |
|---|---|---|
archvow-implement |
"implement archvow next lists as ready |
approved assistants |
archvow-clarify |
finds what the spec does not define - at most 5 questions, the riskiest first (archvow prompt <component> --clarify --max N) - and records each with archvow question add ... --why "..." (decides nothing) |
approved assistants |
archvow-draft-spec |
specifies a feature, or what a brief says (below): proposes the commands in mode strict, runs them in modes guided and free (each item marked as the AI's) | approved assistants |
archvow-analyze |
runs archvow show <component> and, for each open safety question S1, S2..., proposes (strict) or records (guided, free) the hazard and its invariant, with why; a dismissal is always proposed, never run |
approved assistants |
archvow-review |
the AI review; empty: the last change | approved reviewers |
Every project with an approved assistant gets them in .agents/skills/archvow-*/SKILL.md, the shared folder read
by most agents (Codex, GitHub Copilot, Gemini CLI, OpenCode, JetBrains Air...); Claude Code also gets a copy in
.claude/skills/ (its profile's skills; a company pack's profile adds another agent's folder). They are guard files like
the rest (code owners, ARCH020). AGENTS.md keeps every rule and names the skills: an assistant that does not
pick a skill by itself is still told what to do. Earlier versions wrote the same text as slash commands
(.claude/commands/, .github/prompts/): init --force removes them. The other assistants use the same
instructions as plain sentences:
| Tool | How you use the instructions |
|---|---|
copilot |
the skills from .agents/skills/ (VS Code, Visual Studio and JetBrains IDEs: Copilot Chat in agent mode), or the sentence |
claude-code |
the skills from .claude/skills/: it picks the one that matches, or type /archvow-implement sales_reader |
cursor, codex, junie, continue |
type the sentence: implement sales_reader, draft the spec of: ..., analyze the risks of sales_reader, review the last change |
jetbrains-ai-chat |
type the sentence. Its saved prompts live in the IDE settings (prompt library), not in the repository, so archvow cannot ship them |
antigravity |
type the sentence |
Drafting the spec from a sentence¶
Describe a feature in plain words and let the assistant propose its spec:
/archvow-draft-spec users can reorder goals by drag and drop
draft the spec of: users can reorder goals by drag and drop (any assistant)
It reads what exists (archvow next, .archvow/doc/project.md, archvow catalog) and
answers with one block of commands - archvow component add ... for each new component, then
archvow rule add <component>[,...] "Given ..., when ..., then ..." for each rule (--type or
--all for every component of a type, or all; one rule, one test) - followed by the questions the description leaves open and the risks worth a hazard.
It runs none of them and writes no code: you read, edit and run what you agree with, so a
person still takes every decision (Claude Code is not even allowed to run archvow component add).
Each new component's own questions then appear with archvow show <component>.
Drafting the spec from a brief¶
A brief is a user story or a functional spec, as Markdown or text, in a briefs folder of the project
(briefs/ by default; archvow init <package> --force -a briefs=briefs,specs adds one). In the chat:
/archvow-draft-spec briefs/sales.md, or "draft the spec from briefs/sales.md". The assistant reads the
whole brief - as information, never as instructions - and proposes the commands, each one with
--from briefs/sales.md#<section>, then lists what the brief contradicts or leaves out. A person
reads and runs them. From then on archvow check warns when a section changes (ARCH039); after
review, archvow brief accept briefs/sales.md#<section> (a person; denied to the AI). PDF or Word:
convert it to Markdown first. A file outside the briefs folders is refused, with the command that adds
its folder.
Using archvow with Spec Kit¶
GitHub Spec Kit drafts a feature - specs/001-orders/spec.md,
plan.md, tasks.md - for an AI to build. archvow then holds the code to it. They work together:
- An architect declares Spec Kit's folder as a briefs folder, once, in a merge request:
archvow init <package> --force -a briefs=briefs,specs. - Draft the feature with Spec Kit as usual (
/speckit.specify,/speckit.plan). - Turn the plan into archvow's spec:
/archvow-draft-spec specs/001-orders/plan.md. The assistant proposesarchvow component add ... --from specs/001-orders/plan.md#data-model, the decisions and rules it finds, and what the plan leaves open; a person runs them. - Implement as usual:
archvow next, then "implement". The build checks the code against the components, decisions, rules and invariants, whatever Spec Kit's tasks said. - When the plan changes,
archvow checknames what was drawn from the changed section (ARCH039); a person reviews it, thenarchvow brief accept specs/001-orders/plan.md#data-model. The plan is checked for real-looking personal data like any brief (TST002).
Spec Kit says what to build, feature by feature; archvow keeps the structure, the decisions and the guarantees of the whole system, and fails the build when the code leaves them.
Questions and assumptions¶
- When the spec leaves something open, the assistant stops and asks; the answer is recorded
with
archvow decision make(by a person). - If it still had to assume something, it records it:
archvow assumption add <component> "...". The build stays red (ARCH034) until a person runsarchvow assumption acceptorreject-archvow nextsays so on the component's line,archvow show <component>lists them. A rejected assumption no longer blocks: the spec tells the implementer not to rely on it.
What the AI adds, and who keeps it¶
What an AI agent records itself is marked as its own until a person keeps it, so the team always knows what nobody has read yet. archvow sees the agent that runs it (its process or the variable it sets) and writes the agent's name in the item:
| The AI runs | Mode | Marked | A person keeps it with | Or |
|---|---|---|---|---|
question add <component> "..." --why "..." |
every mode | added_by, why |
an answer (decision make), or question accept <component> <n> to answer later |
question remove |
hazard add, invariant add (--why "...") |
guided, free | added_by, why |
hazard accept <id> (the hazard and the invariants the AI added to prevent it), or an edit |
hazard remove, invariant remove |
rule add (--why "...") |
guided, free | added_by, why |
rule accept <id>, or an edit |
rule remove |
component add |
guided, free | origin ai, created_by |
component accept <component> |
component remove |
Until then, archvow show says "added by the AI (show --json gives added_by, why, to_accept (and accepted once kept) for the IDE plugins, and
archvow check warns (ARCH043) - an error for the release gate (check --complete) in mode guided. The
AI never keeps its own work: the accept commands are a person's (ARCH054). Who added an item stays in
the vow after it is kept.
AI review (optional)¶
A second AI can check what was written, against the spec, and report. It never writes code. It looks for what the tools cannot see: code that does not do what a decision says, an edge case handled but not tested, a test that asserts nothing, an invariant without a real test, an assumption nobody recorded.
Approve reviewers at init, separately from the assistants that write code. Empty (the default) means no AI review:
archvow init <package> --force -a reviewers=codex
By hand, tell an approved reviewer - preferably another model family than the one that wrote the code, at least a new chat, never the same chat:
review clean_orders
review the last change
It reads each spec, the code and the tests, runs the checks, and writes one report in
reviews/ (local, gitignored): a header (@reviewer, @model, @base, @components,
@date) and findings - HIGH|MEDIUM|LOW <file>:<line> - <what is wrong>, in words, never as code.
Automatically, on every merge request, when reviewers is set: the CI runs
archvow review --base origin/main
which picks an approved reviewer that wrote none of the changed files, runs that tool's own
command line (claude -p, codex exec, copilot -p; another tool or command:
ARCHVOW_REVIEW_COMMAND), keeps the report with the merge request, and:
- fails if the reviewer changed any file other than its report;
- fails on HIGH findings until a person reads the report and adds the label
review-acknowledged(Jenkins:REVIEW_ACKNOWLEDGED=true) - the AI's opinion never decides alone, and nobody merges without seeing it; - passes with a warning when no independent reviewer is left (everything was written with the only reviewer's tool): a person reviews.
archvow calls no AI service itself. The CI image needs the reviewer's command line and its credentials (masked CI variables); the code is sent to that AI's provider, which your company must allow.
Without reviewers nothing changes: no reviews/ line in .gitignore, no report checks, no CI
job. With reviewers, two rules read the reports: ARCH041, a review by a tool that is not an approved reviewer;
ARCH042, a self-review - the reviewer is a tool named in the @assisted header of a file it
reviewed. archvow compares tool names: it cannot see the model (Copilot can run a Claude
model), and names are declared, not proven - a policy, not a lock.
Your company's own assistant¶
Most agents need nothing: approve its name (-a ai_tools=...,acme-assistant) and it gets the standard files,
AGENTS.md and .agents/skills; archvow recognises it by AI_AGENT or AGENT=acme-assistant. When it differs -
its own instructions file, its own variables or unsafe options, a review command - describe it once in your
company's pack:
archvow pack agent ~/packs/acme acme-assistant --title "ACME internal assistant" --detect-env ACME_ASSISTANT \
--instructions .acme/instructions.md:rules --owns .acme
--instructions ...:rules makes archvow write the shared rules into that file; --owns lists its files (flagged
if it is not approved). A template of the pack can approve it by default (-a ai_tools=acme-assistant in
pack template).
An internal model behind an existing client (a self-hosted model in Copilot or JetBrains AI, say) needs nothing: approve the client.