Consensus logo

Consensus

Community
Integralist
consensus

Cross-model review of an assessment and its implementation, with discussion rounds and user approval gates. Use when a complex design or implementation needs independent review from other AI CLIs.

Overview

PublisherIntegralist
Repositoryagent-skills
Skill nameconsensus
Stars
26
Forks
1
Bundled files
Instructions only
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by Integralist on GitHub. Read the source before you install it.

Installation

Install the Consensus AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/Integralist/agent-skills/tree/main/archive/skills/consensus
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Integralist/agent-skills.git /tmp/agent-skills
mkdir -p .claude/skills
cp -r /tmp/agent-skills/archive/skills/consensus .claude/skills/consensus
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Consensus in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Consensus on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Consensus is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Consensus

You're the host agent. Use one or more consulting agents, other AI CLIs run headlessly, as second reviewers of your assessment and your implementation, with the user approving at a gate between phases. Advance a phase only when every consultant has reviewed, discussion has converged or hit its cap, and the user has approved.

Workflow. Use the variant the user asked for, and confirm one before setup if they didn't: full (phase A and its gate, then phase B and its gate), assessment-only (phase A to its gate, no implementation), or implementation-only (phase B against an assessment or plan the user has approved). Single-agent can modify any of them: cheaper and less diverse, with the same phases and gates.

Setup

Consultants. Use the CLIs the user names ("use agy and codex"). Otherwise detect them with command -v agy gemini codex claude copilot, excluding the host. Prefer agy (Google Antigravity, the Gemini CLI's successor) and skip gemini when both exist, to avoid duplicate Google coverage. If several are found and the user has no preference, ask, defaulting to all of them. If none are found, tell the user and ask whether to install one or go ahead without consensus; never skip consultation silently.

  • agy -p "<prompt>": reads stdin, appended to the prompt.
  • gemini -p "<prompt>" --output-format text: reads stdin; use a single-quoted heredoc for the prompt body.
  • codex: check codex --help before first use.
  • claude -p "<prompt>": reads stdin; an independent-context reviewer whatever the host.
  • copilot -p "<prompt>" --allow-all-tools: GitHub Copilot CLI. --allow-all-tools is required headless, -p doesn't read stdin so put the diff in the prompt body, and --model <id> pins a model.
  • Any other CLI: find its non-interactive prompt flag in <cli> --help rather than guessing.

Prerequisites. At least one consultant on PATH and the repo checked out locally, so git diff means something. Consultants send content to third-party APIs, so redact secrets, .env files, credentials, private keys, or anything you wouldn't paste into a third-party service, or ask the user before sending.

Secondary lenses. In A3 and B2, give each consultant one lens on top of the full core focus, cycling when there are more consultants than lenses: evidence gaps and known unknowns; failure modes and hidden costs; the strongest success case and what to preserve; alternatives that change the trade-off; process, reversibility, and the smallest useful next step.

Phase A: assessment

  1. Discover, in up to three rounds of reading code, tests, recent commits, and convention files. Round 1 forms a hypothesis; round 2 attacks it (what it assumes, which edge cases break it, whether the rejected alternative was dropped for a concrete reason); round 3 runs only if round 2 found material gaps. If the plan has fuzzy terms or hasn't been tested against the domain model, run the grill-with-docs skill here with the user. If only a legacy CONTEXT.md exists, use it and warn the user with ⚠️ to rename it to GLOSSARY.md. Done at the first round with no new findings.

  2. Write the assessment, specific enough to review: not "we will add a cache" but "in-process LRU keyed by (tenant_id, query_hash), capacity 10k, TTL 5m, in internal/cache/query.go". For a written plan or doc, run the critique skill on your draft first, so consultants spend their attention on harder problems. Done when it follows this shape:

    txt
    ## Problem
    <task in your own words, with constraints>
    
    ## Proposed approach
    <plan with specific files / functions / changes>
    
    ## Key decisions and trade-offs
    <each non-obvious choice with rejected alternatives and concrete reasons>
    
    ## Risks and open questions
  3. Consultant review. Send each consultant the review prompt in parallel, so each reaches its own view first, with the A3 focus, its lens, and the assessment. Merge duplicate findings into one stronger finding, noting who raised it. Mark each finding accept, reject with reason (a concrete fact: file, behaviour, constraint, number), or defer to user (a judgment call). Done when every finding is marked.

  4. Discuss, up to two rounds per consultant: send the rebuttal prompt only to those whose findings you rejected. Carry a disagreement between two consultants into the gate rather than resolving it yourself. Done when each dispute has converged or hit the cap.

  5. Gate. Show the revised assessment, which reviewers contributed what, and an evidence ledger separating verified facts, assumptions, and unknowns. Show unresolved positions side by side, each classed as a factual dispute, a value or trade-off dispute, or missing evidence; investigate factual ones where you can, and leave value disputes to the user rather than researching them. Then stop: implementation waits for approval. Loop back to step 2 or 3 if the user wants changes, and stop entirely if they decline. Done when the user approves.

Phase B: implementation

  1. Implement the approved assessment or plan, then review your own diff with the code-review skill, so consultants focus on cross-model disagreement rather than the obvious. Done when the relevant tests, lint, and build pass, or the user accepts a documented blocker.
  2. Consultant review. Pipe the diff to each consultant on stdin, which avoids quoting problems, with the review prompt, the B2 focus, its lens, and the approved artifact for intent. Merge and mark findings as in A3. Done when every finding is marked.
  3. Discuss as in A4, then apply the accepted findings and rerun every check those edits affect. Done when every finding is accepted, rejected with evidence, or unresolved, and the required checks pass or the user accepts the blocker.
  4. Gate. Present the final diff for the user to read with git diff, the checks and their results, the fixes attributed by consultant, and unresolved positions side by side. Then stop; the user does the final review. Done when that's presented.

Prompts

A3 focus: whether the approach solves the stated problem; missed edge cases and failure modes; wrong assumptions about the codebase, libraries, or external systems; underweighted hidden complexity; alternatives rejected without a concrete reason; missing risks; and the strongest part worth keeping.

B2 focus: correctness and edge cases; race conditions; security (injection, auth, secrets, fail-secure defaults, trust-boundary validation); tests of failure modes, not just the happy path; convention compliance; comment quality (a cold reader understands it, no LLM voice); and "compute, don't justify": every throttle, retry, batch, timeout, and TTL has a number with an operational reason.

Review prompt (A3 and B2):

txt
**Review-only — do not modify code or run tools that change state.** Produce written findings only. Do not edit files, run build/test/format commands, create commits, or otherwise change the workspace. The host agent owns all implementation. Read-only investigation (file reads, `grep`, `--help`) is fine. Respond with text only.

You are a senior engineer reviewing {artifact_label}. Be specific and rigorous.

Before critiquing, independently state:
- Your recommended approach
- Your confidence (high / medium / low)
- The decisive evidence
- The most important unknown

Focus:
{focus}

Secondary lens:
{secondary_lens}

Identify the strongest part of the proposal and what should be preserved before
listing problems. Categorize each finding as Critical / Important / Minor. Cite
a specific file, function, or line so the author can act on it. Separate
verified facts, assumptions, and unknowns. Do not rubber-stamp — only conclude
"looks solid" after attempting each focus area.

{artifact_label} under review:
---
{artifact}
---

Rebuttal prompt (A4 and B3):

txt
**Review-only — do not modify code or run tools that change state.** Discussion round; respond with text only. Read-only investigation is fine.

Earlier you reviewed:
---
<artifact>
---

You raised:
---
<that agent's findings>
---

My response per finding:
---
<accepted | rejected because <concrete reason>>
---

For each finding I rejected, do you accept my reasoning, or still disagree? If still disagreeing, give your strongest counter-argument grounded in a specific fact (file, behavior, constraint). If you accept all my reasoning, say so explicitly.

Invocation (agy in B2, diff on stdin; replace main with the real base branch, add --output-format text for gemini, and for a CLI that doesn't read stdin, put the diff in the prompt body, minding quoting and size):

bash
MERGE_BASE=$(git merge-base main HEAD)
git diff "$MERGE_BASE"...HEAD | agy -p "$(cat <<'PROMPT'
<the review prompt above, with {focus} and {artifact} substituted>
PROMPT
)"

Discipline

  • Every claim is a hypothesis until verified, yours and theirs. Memory against memory isn't a rebuttal: cite a grep result, --help output, a doc fetched this session, or behaviour seen in a real run. Spot-check both sides: a claimed flag means running --help, "line N has a bug" means reading line N.
  • Same bar both ways. Consultants have no memory of the diff, so they're likelier than you to catch a miss and likelier to make things up.
  • Judge each finding on its own; five findings aren't five accepts. Hold your position when you can't state a fact that beats the consultant's, and let it go to unresolved.
  • Show disagreements between consultants side by side rather than blending them. Facts need evidence, values and trade-offs need the user, and unknowns need the smallest step that would resolve them.
  • Never write a consultant's response yourself. If a CLI fails (network, quota, syntax, prompt size), show the error and ask whether to retry, drop that consultant, or go ahead without consensus.

Frequently asked questions

What does the Consensus AI skill do?

Cross-model review of an assessment and its implementation, with discussion rounds and user approval gates. Use when a complex design or implementation needs independent review from other AI CLIs.

Why use Consensus on TypingMind?

Because you install it once and use it with any model. Consensus is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Consensus in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/Integralist/agent-skills/tree/main/archive/skills/consensus. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Consensus?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Consensus?

As many as you like. As long as a model supports skills, you can use Consensus with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Consensus AI skill free?

It is published on GitHub by Integralist. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇