Skip to content

Latest commit

 

History

303 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Clairvoyance

Ask DeepWiki codecov License: MIT

English | 日本語 | 简体中文 | 한국어

A force multiplier for agent-to-human handoffs, turning work into evidence-backed decisions humans can trust.

Clairvoyance is a Claude Code plugin: a set of Agent Skills that an agent loads when it needs to hand a decision back to a human. Each handoff makes state visible by inspection — evidence, system context, options, risks, reversibility, and a recommended next move — so the human can approve, reject, or safely disagree.

Skills

Skill Use when
using-clairvoyance SessionStart bootstrap router. Picks one handoff skill below; injected by the SessionStart hook.
clairvoyance A human-owned choice blocks the agent: decision, approval, deferral, rollback, or 2–3 prepared options.
review-verdict A PR, commit, branch, working tree, or merge candidate needs a readiness verdict with evidence.
architecture-tradeoff A system-level architecture decision between options, boundaries, dependencies, or failure modes.
decision-coaching A human asks for LGTM / rubber-stamp on ambiguous, noisy, or architecture-poor input.
adaptive-coaching A person asks to reflect on their own recurring patterns in any domain where adaptive work is an appropriate frame. Logs recurring capability gaps as anonymous local signal and, only on that request and with enough signal, delivers an opt-in reflection quiz.
visual-handoff The person explicitly asks to visualize a handoff, plan, or system state. Layers a reproducible text-sourced diagram (Mermaid first) onto whichever handoff skill is routed; never replaces it, never fires unrequested.
human-harness The human harness: a human gives a high-blast-radius, irreversible, or compliance-violating instruction. Instead of executing, it stops and presses the human to confirm intent one question at a time to catch human error before it lands.
session-handoff A clean restart beats trusting the harness's compaction, repository gates limit what this session can change, or work is unfinished — the next session needs a paste-ready prompt (an attached Markdown file) to resume.
workflow-budget A multi-agent workflow is about to launch. Elicits a hard token budget first — estimate, then 2–3 prepared choices with a recommendation — and enforces it via a PreToolUse gate plus an in-script spend guard.

Each handoff branches by stakes: reversible, low-risk calls get a compact Verdict + Next Move; irreversible or contested calls get the full handoff.

session-handoff is different — it hands off to the next agent session, not a human. See docs/session-handoff.md for why it exists and when to prefer it over the harness's automatic compaction.

Install

Clairvoyance ships one plugin tree with a manifest for each runtime (.claude-plugin/ and .codex-plugin/), so the same skills install through whichever path your agent uses.

Claude Code

Add the marketplace and install the plugin:

/plugin marketplace add tvna/clairvoyance
/plugin install clairvoyance

Codex

Add the repository marketplace and install the plugin with the Codex CLI:

codex plugin marketplace add tvna/clairvoyance
codex plugin add clairvoyance

The repository marketplace lives at .agents/plugins/marketplace.json, and Codex reads the .codex-plugin/plugin.json manifest.

apm (any supported agent)

microsoft/apm installs Clairvoyance as a marketplace plugin and deploys its skills into every agent it detects (Claude Code, Codex, and more):

apm install tvna/clairvoyance

To pin it for a project, add the dependency to your apm.yml and run apm install:

dependencies:
  apm:
    - tvna/clairvoyance

What the hooks do

The plugin registers a SessionStart hook that injects the using-clairvoyance bootstrap skill (and the operator's native language) at session start, clear, and compaction. Claude Code reads hooks/hooks.json and Codex reads hooks/codex-hooks.json; both route through the same hooks/run-hook.cmd wrapper, differing only in the plugin-root variable each runtime substitutes. Claude Code additionally registers a UserPromptSubmit hook that re-asserts the operator's language on every turn, so it can't drift across a long session the way a single SessionStart injection can. See docs/hooks.md.

Repository layout

The plugin lives at the repository root (source: "./"), the layout apm requires — it deploys skills from skills/ and hooks from hooks/ at the package root. Only those primitives are deployed into a consumer's agent; tests, tooling, CI, docs, and eval suites are carried in the repository for development but never deployed. See docs/repository-layout.md for the full tree.

Development

  • Validate skills: waza check (static; no eval backend or quota required).
  • Run evals: waza run — see docs/evaluations.md for the execution backend and what to do when its quota is exhausted.
  • CI validates JSON manifests and hook scripts on every pull request — no external services needed. The script test suite runs with coverage; the gate is local (--cov-fail-under=100 in pyproject.toml) and results are also reported to Codecov for trend history (informational, never blocking).

Versioning and releases

The repository ships more than one product, so versions are product-scoped: the plugin bundle is versioned as plugin-vX.Y.Z, the managed backend as server-vX.Y.Z, the admin UI as ui-vX.Y.Z, and composed deployment topology as compose-vX.Y.Z. Each line is Semantic Versioning automated with semantic-release from Conventional Commits; the git tag is the source of truth. The plugin release writes the version into both the Claude Code and Codex plugin.json manifests, kept in lockstep. Legacy bare vX.Y.Z tags are historical plugin tags. This model is being rolled out in stages -- see docs/versioning.md for what is live vs. staged.

Contributing

See CONTRIBUTING.md. Commits must follow Conventional Commits — they drive the automated version bump.

License

MIT. See LICENSE.

About

A force multiplier for agent-to-human handoffs, turning work into evidence-backed decisions humans can trust.

Topics

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Used by

Contributors

Languages