Valis — Decision Intelligence for Dev Teams
Capture, search, and enforce architectural decisions across AI coding sessions. One shared memory across Claude, Perplexity, Gemini, Cursor — install once, every agent sees the same decisions.
Install — three paths
A. Let your agent install it for you (recommended for Claude Code)
Paste this into Claude Code:
Install Valis in this project. Read https://github.com/Todmy/valis-plugin/blob/main/README.md and run every step — both the CLI install (via your Bash tool) and the plugin install (via your SlashCommand tool) — then run /valis:init for me.
The agent will:
- Run
npm install -g valis-cli via its Bash tool
- Run the two
/plugin commands via its SlashCommand tool
- Run
/valis:init so you finish on the project picker
For Cursor / Codex / Gemini CLI — those harnesses don't have the /plugin system. Use path C below, or paste:
Install Valis CLI globally: npm install -g valis-cli, then run valis init for me.
Why both pieces (CLI + plugin) are needed: the plugin ships slash commands + remote MCP wiring; the CLI ships the local hook subprocesses (valis hook session-start, valis hook pre-compact, …) that the plugin's hook scripts delegate to. Installing only the plugin gives you the slash commands but disables the hook surface (capture reminder, pre-compact capture gate, self-heal).
B. Manual — three commands
# 1. CLI (provides the hook binaries the plugin delegates to)
npm install -g valis-cli
# 2. Plugin (in Claude Code)
/plugin marketplace add Todmy/valis-plugin
/plugin install valis@valis-plugin
/valis:init
OAuth login happens automatically on first MCP call.
C. Other agents (Cursor / Codex / Gemini CLI / OpenCode)
npm install -g valis-cli
valis init # writes the stdio MCP config for your IDE
valis init auto-detects the installed harness and writes the right config file. Restart the agent — valis_* tools appear in its tool list.
What it does
Valis keeps your team's architectural decisions, constraints, and patterns in a shared knowledge base. The AI agent checks this knowledge before making decisions and stores new ones after. Same memory works across Claude Code, Perplexity, Gemini CLI, Cursor, Codex — one decision recorded in any agent is visible in all the others.
- SessionStart hook — runs local self-heal so the install stays healthy across plugin/CLI version drift
- UserPromptSubmit hook — token-density-scheduled capture reminder; periodically nudges the agent to store decisions made in the last few turns
- PreCompact hook — capture gate: blocks
/compact until the agent has stored conversation decisions, then auto-resumes (v0.5.2+)
- 10 slash commands — guided workflows for common operations
Commands
| Command | What it does |
|---|
/valis:init | Connect this repo to a Valis project (creates .valis.json) |
/valis:status | Show connection, auth, project info |
/valis:store | Store a decision with guided classification |
/valis:search | Search team knowledge base |
/valis:before-task | Load relevant context before starting work |
/valis:check | Run the team's enforcement check against your working-tree diff before committing |
/valis:extract | Extract decisions from a folder of documents |
/valis:add-command | Create a KB-backed persona command |
/valis:lifecycle | Promote, deprecate, or supersede decisions |
Cross-harness skills (claude.ai web, Cursor, Codex, Gemini CLI, Goose, OpenCode)
The slash commands above are Claude Code-specific. For other harnesses,
the same workflows ship as AAIF SKILL.md files in skills/valis/. They
work in any runtime that honors the AAIF spec — including claude.ai web
via the /skill-creator flow.
| Skill | Purpose |
|---|
valis-capture | Dedup-check + store an architectural decision |
valis-find | Surface existing precedent before adding a new pattern |
valis-check | Shift-left enforcement against working-tree diff |
valis-import | Bulk-import a folder of architectural notes |
valis-triage | Walk the proposals queue; promote or dismiss |
valis-recall | Search across all accessible projects (catches silent miss) |
valis-ci | Set up GitHub Actions for PR-time enforcement |
See skills/valis/README.md for setup per harness.
Setup
Both flows assume npm install -g valis-cli is already done (or that you used path A above and let the agent install it). Without the CLI the slash commands still work, but hooks (capture reminder, pre-compact gate, self-heal) are no-ops.
New project (owner)
/plugin marketplace add Todmy/valis-plugin
/plugin install valis@valis-plugin
/valis:init # pick or create your project
Then in your shell:
git add .valis.json && git commit -m "add valis config"
Existing project (team member)