About Rigour
Rigour is an MCP server published by rigour-labs in the Developer Tools category: the immune system for AI coding agents. Conduid read 36 tools from its source: grep, read_file, rigour_agent_deregister, rigour_agent_register, rigour_brief, rigour_cache_stats and 30 more. No package is published for it, so it installs from a source checkout.
The repository has 29 stars and 1 forks, is licensed MIT, and its last commit was on 1 Dec 2026. The latest release is v7.0.13 (16 Oct 2026): Memory's numbers and filter chips count the same lessons; JSON lines measure a tab as 2 columns and keep CRLF endings (c2fb35e) re-pinning a version in a committed JSON… It follows v7.0.12 (16 Oct 2026), and the 5 most recent releases go back to v7.0.9 (16 Oct 2026). It passes 4 of the 6 static checks Conduid ran on the repository; it does not pass No dynamic code execution and Scoped permissions. Its topics include agentic-workflow, developer-productivity, guardrails, cli, devtools and code-quality.
Install
git clone https://github.com/rigour-labs/rigourTools (36)
grepSearch tracked files with an extended regular expression. Returns path:line:text matches.| Parameter | Type | Description |
|---|---|---|
| path_glob | string | Optional pathspec, e.g. "src/**/*.ts". |
| pattern * | string |
read_fileRead lines of a repository file, numbered. Use it to check callers, callees, types and constants before claiming a defect.| Parameter | Type | Description |
|---|---|---|
| end_line | integer | Last line (at most ${MAX_READ_LINES} lines per call). |
| path * | string | Repository-relative path. |
| start_line | integer | First line, 1-based (default 1). |
rigour_agent_deregisterDeregister an agent from the multi-agent session. Use when an agent completes its work or needs to release its scope for another agent.| Parameter | Type | Description |
|---|---|---|
| agentId * | string | ID of the agent to deregister. |
rigour_agent_registerRegister an agent in a multi-agent session. Use this at the START of agent execution to claim task scope and enable cross-agent conflict detection. Required for Agent Team Governance.| Parameter | Type | Description |
|---|---|---|
| agentId * | string | Unique identifier for this agent (e.g., 'agent-a', 'opus-frontend'). |
| taskScope * | array | Glob patterns defining the files/directories this agent will work on (e.g., ['src/api/**', 'tests/api/**']). |
rigour_briefBefore writing: with goal, the team's rules, lessons and settled points for the task (max 10, cited); with only files, its word on each file you will edit. A [must] you break blocks at review.| Parameter | Type | Description |
|---|---|---|
| files | array | Optional. Files the task will touch. |
| goal | string | What the task is for: the request or the ticket summary. |
rigour_cache_statsReturns detailed performance stats across all 4 cache layers (exact hits, semantic hits, partial hits, misses, hit rate, tokens served from cache).rigour_checkRun quality gate checks on the project. MUST be called before declaring any coding task complete. By default it judges your change as the stop hook and push gate will: FAIL means something in it must be fixed. **Always show the user the headline summary from this tool's output** — it tells them what Rigour caught. If FAIL, call rigour_get_fix_packet for what to fix, with exact file:line.| Parameter | Type | Description |
|---|---|---|
| apiBaseUrl | string | Custom API base URL for self-hosted/proxy deep endpoints. |
| apiKey | string | Optional cloud API key for deep analysis. |
| deep | string | Deep mode: 'off' (default), 'quick' (deep enabled with lite model), 'full' (deep enabled, combine with pro=true for full deep model). |
| files | array | Optional file paths (relative to cwd) to limit scan scope for both deterministic and deep checks. |
| modelName | string | Override cloud model name for deep analysis. |
| pro | boolean | Use full deep model (Qwen2.5-Coder-1.5B) instead of lite (Qwen2.5-Coder-0.5B) when deep is enabled. |
| provider | string | Cloud provider for deep analysis (claude, openai, gemini, groq, mistral, together, deepseek, ollama, etc.). |
| scope | string | 'change' (default): your change, as the stop hook judges it. 'repo': the whole repository, for an audit, not a fix loop. |
rigour_check_deepRun quality gates WITH deep LLM-powered analysis. Three-step pipeline: AST extracts facts → LLM interprets → AST verifies. Local-first by default (Qwen2.5-Coder-0.5B lite sidecar), or bring your own API key for any cloud provider.| Parameter | Type | Description |
|---|---|---|
| apiBaseUrl | string | Custom API base URL for self-hosted or proxy endpoints. |
| apiKey | string | API key for cloud LLM provider. If provided, uses cloud instead of local sidecar. |
| modelName | string | Override the default model name for the chosen provider. |
| pro | boolean | Use full deep model (Qwen2.5-Coder-1.5B) instead of default lite model (Qwen2.5-Coder-0.5B). |
| provider | string | Cloud provider name (e.g., 'claude', 'openai', 'gemini', 'groq', 'mistral', 'together', 'fireworks', 'deepseek', 'perplexity', 'ollama', 'lmstudio'). Default: 'claude' when apiKey is provided. |
rigour_check_patternCALL THIS BEFORE creating any new function, component, hook, or class. Checks if it already exists in the codebase (prevents duplication), checks for known security vulnerabilities, and BLOCKS writes to protected paths (.github/, CI/CD configs, rigour.yml). Always pass the target file path.| Parameter | Type | Description |
|---|---|---|
| file | string | Target file path (relative to cwd) where the code will be written. Used to enforce protected path rules — writes to .github/, rigour.yml, etc. will be BLOCKED. |
| intent | string | What the code is for (e.g., 'format dates', 'user authentication'). |
| keywords | array | Optional. Words for what it does, e.g. ['retry', 'backoff']. |
| name * | string | The name of the function, class, or component you want to create. |
| signature | string | Optional. The signature you plan to write, e.g. '(items: T[], size: number) => T[][]'. Matches existing code by shape, not only by name. |
| type | string | The type of pattern (e.g., 'function', 'component', 'hook', 'type'). |
rigour_checkpointRecord a quality checkpoint during long-running agent execution. Use periodically (every 15-30 min) to enable drift detection, quality monitoring, and compact subagent handoffs. Triggers incremental pattern index refresh when filesChanged is provided. Essential for GPT-5.3 coworking mode — call BEFORE rigour_handoff to compress context under 2K tokens.| Parameter | Type | Description |
|---|---|---|
| agentId | string | Optional agent ID for checkpoint packet binding. |
| filesChanged | array | List of files modified since last checkpoint. Triggers incremental index refresh. |
| progressPct * | number | Estimated progress percentage (0-100). |
| qualityScore * | number | Self-assessed quality score (0-100). Be honest - artificially high scores trigger drift detection. |
| summary * | string | Brief description of work done since last checkpoint. |
| taskId | string | Optional task ID for checkpoint metrics. |
rigour_context_explainAudits why specific files/services were included or excluded, cache hit/miss status, invalidation reasons, and prior agent requests.| Parameter | Type | Description |
|---|---|---|
| target * | string | File path, service name, or query term to explain. |
| taskId | string | Optional Task ID to restrict audit trace. |
rigour_context_scopeCALL THIS BEFORE reading source files. Returns a minimal editScope (3-10 files) with signatures from the pattern index instead of full file bodies. Uses semantic search when embeddings are available. If index is missing, instructs to call rigour_index first. Highest-impact token saver in the Rigour protocol.| Parameter | Type | Description |
|---|---|---|
| agentId | string | Optional agent ID for context telemetry attribution. |
| limit | number | Maximum number of pattern matches to return (default: 10). |
| query * | string | Natural-language description of what you need to work on (e.g. 'add priority field to task service'). |
| taskId | string | Optional task ID for context telemetry attribution. |
rigour_context_statsReturns context retrieval efficiency, candidate tokens vs returned tokens, potential avoided tokens, cache hit rate, and repeated reads prevented.| Parameter | Type | Description |
|---|---|---|
| taskId | string | Optional Task ID (e.g. 'CTP-142') to filter statistics. |
rigour_deep_statsGet deep analysis statistics from SQLite storage. Returns recent scan scores, top issues, and score trends for a repository.| Parameter | Type | Description |
|---|---|---|
| limit | number | Number of recent scans to return (default: 10). |
rigour_explainExplain WHY quality gates failed in human-readable language. Use this to understand the reasoning behind each violation before fixing. For machine-readable fix instructions, use rigour_get_fix_packet instead.rigour_forgetRemove a stored memory by key.| Parameter | Type | Description |
|---|---|---|
| key * | string | Key of the memory to remove. |
| scope | string | Which memory to remove it from. Default: repo. |
rigour_get_configReturns the current Rigour configuration (rigour.yml) for agent reasoning.rigour_get_fix_packetAfter rigour_check FAILs: your change's must-fix items (they block you), then optional notes, paged, each with file:line and the fix. Stay in your change unless a must-fix item names a file. Page with next_offset; re-run rigour_check.| Parameter | Type | Description |
|---|---|---|
| limit | integer | Violations per page (default 5, maximum 10). |
| offset | integer | Zero-based violation offset. Start at 0, then use the next offset in the response. |
rigour_handoffHandoff task to another agent in a multi-agent workflow. Use when delegating a subtask or completing your scope. Enables verified handoff governance.| Parameter | Type | Description |
|---|---|---|
| context | string | Additional context for the receiving agent. |
| filesInScope | array | Files relevant to the handoff. |
| fromAgentId * | string | ID of the agent initiating the handoff. |
| taskDescription * | string | Description of the task being handed off. |
| toAgentId * | string | ID of the agent receiving the handoff. |
rigour_handoff_acceptAccept a pending handoff from another agent. Use to formally acknowledge receipt of a task and verify you are the intended recipient.| Parameter | Type | Description |
|---|---|---|
| agentId * | string | ID of the accepting agent (must match toAgentId in the handoff). |
| handoffId * | string | ID of the handoff to accept. |
rigour_hooks_checkRun the fast hook checker on specific files. Same checks that run inside IDE hooks (Claude, Cursor, Cline, Windsurf). Catches: hardcoded secrets, hallucinated imports, command injection, file size. Completes in <100ms. NEW: Pass 'text' param for DLP mode — scans user input for credentials (AWS keys, API tokens, database URLs, private keys, JWTs) before agent processing.| Parameter | Type | Description |
|---|---|---|
| agent | string | Agent name for DLP audit trail (e.g., 'claude', 'cursor'). Only used in DLP mode. |
| files | array | List of file paths (relative to cwd) to check. |
| text | string | Text to scan for credentials (DLP mode). When provided, scans text instead of files. Use this to validate user input before agent processing. |
| timeout | number | Optional timeout in milliseconds (default: 5000). |
rigour_hooks_initGenerate hook configs for AI coding tools (Claude, Cursor, Cline, Windsurf). Installs real-time quality checks and non-blocking DLP credential warnings by default. Pass dlp=false to disable DLP hooks only.| Parameter | Type | Description |
|---|---|---|
| dlp | boolean | Generate DLP hooks for pre-input credential warnings (default: true). Set false to skip DLP hooks. |
| dryRun | boolean | Preview changes without writing files (default: false). |
| force | boolean | Overwrite existing hook files (default: false). |
| tool * | string | Target tool: 'claude', 'cursor', 'cline', or 'windsurf'. |
rigour_indexBuild or update the Rigour pattern index (.rigour/patterns.json). CALL THIS when the index is missing or stale — before rigour_context_scope or rigour_check_pattern. One AST pass extracts functions, classes, routes, and signatures for reuse, embedded locally so rigour_check_pattern can match by intent; semantic=false skips the embeddings.| Parameter | Type | Description |
|---|---|---|
| force | boolean | Force a full rebuild instead of incremental update. Default: false. |
| output | string | Custom path for the index file. |
| semantic | boolean | Embed patterns so an intent can find them (local Transformers.js model). Default: true; false records an explicit opt-out. |
rigour_list_gatesLists all configured quality gates and their thresholds for the current project.rigour_mcp_get_settingsGet Rigour MCP runtime settings for this repository (.rigour/mcp-settings.json).rigour_mcp_set_settingsSet Rigour MCP runtime settings for this repository. Currently supports deep_default_mode: off | quick | full.| Parameter | Type | Description |
|---|---|---|
| deep_default_mode * | string | Default deep mode applied to rigour_check when deep is not passed. |
rigour_recallLoad stored conventions. At the START of a task, call it with 'query' describing the task to get the few memories that match by meaning, plus promoted team knowledge when team mode is on. With 'key' it returns that memory; with neither, every repository and user memory.| Parameter | Type | Description |
|---|---|---|
| key | string | Optional. Key of specific memory to retrieve. |
| query | string | Optional. What you are about to do, e.g. 'add retry to the payments client'. Returns the closest memories by meaning. |
rigour_rememberStore an instruction or convention to remember across sessions. Provide 'key' (short snake_case) and 'value' (the full text). scope: 'repo' (default, this repository), 'user' (all your repositories), or 'team' (this repository, and shared as a team candidate that teammates' agents receive once a person promotes it). Values containing credentials are refused.| Parameter | Type | Description |
|---|---|---|
| key * | string | A short snake_case identifier for this memory, e.g. 'api_response_format', 'naming_convention', 'testing_strategy'. This is used to retrieve the memory later. |
| scope | string | Where the memory applies. Default: repo. |
| value * | string | The full instruction or convention text to persist. This is the content that will be recalled in future sessions. |
rigour_reviewReview the change you just made before calling it done: runs Rigour's gates and keeps only findings on changed lines, each with file, line and a suggested fix. With no diff it reads your uncommitted work from git (new files included); pass base to review the whole branch (e.g. 'main'). Same verdict as `rigour review` in CI.| Parameter | Type | Description |
|---|---|---|
| base | string | Review this branch against a base ref instead of uncommitted work, e.g. 'main'. |
| diff | string | A unified diff to review instead of reading git. Rarely needed. |
| files | array | Review exactly these files instead of the ones the change touches. |
| mode | string | "agent": also return review_task, the risky changed functions for you to review yourself, with what to check in each. No model is called by Rigour. |
rigour_review_ackRecord that you reviewed a function from rigour_review's review_task: verdict "fixed" (you fixed a defect) or "no_issue", with a note saying what you checked. Covers the function's current code only; editing it later puts it back in the task.| Parameter | Type | Description |
|---|---|---|
| file * | string | Repository-relative path, as in review_task. |
| function * | string | Function name, as in review_task. |
| note * | string | What you checked, e.g. 'callers pass a non-empty cursor; upsert conflict key matches the unique index'. |
| verdict * | string |
rigour_reviewer_verdictWhat the model reviewer last decided for this branch: the confirmed items to fix (with id, file:line, consequence and evidence), the disputed ones that are not work, which mode ran, and whether the verdict is for the current commit. Read-only: never runs a model, never dismisses.rigour_runExecute a command under Rigour supervision. This tool can be INTERCEPTED and ARBITRATED by the Governance Studio.| Parameter | Type | Description |
|---|---|---|
| command * | string | The command to run (e.g., 'npm test', 'pytest'). |
| silent | boolean | If true, hides the command output from the agent. |
rigour_run_supervisedRun a command under FULL Supervisor Mode. Iteratively executes the command, checks quality gates, and returns fix packets until PASS or max retries reached. Use this for self-healing agent loops.| Parameter | Type | Description |
|---|---|---|
| command * | string | The agent command to run (e.g., 'claude "fix the bug"', 'aider --message "refactor auth"'). |
| dryRun | boolean | If true, simulates the loop without executing the command. Useful for testing gate checks. |
| maxRetries | number | Maximum retry iterations (default: 3). |
rigour_security_auditRuns a live security audit (CVE check) on the project dependencies.rigour_statusQuick PASS/FAIL check with JSON-friendly output for polling current project state.rigour_task_costRigour's estimate of the context and cost its scoped reads avoided for a task, beside any model usage recorded for it.| Parameter | Type | Description |
|---|---|---|
| taskId | string | Optional Task ID (e.g. 'CTP-142') to filter cost stats. |
Security checks
Static checks derived from the repository 10 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 2.4K words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by pnpm-lock.yaml.
- !No dynamic code executionScanned 593 source files and found 10 calls to eval or shell execution, in packages/rigour-core/src/firewall/typed-command.ts:41, packages/rigour-core/src/gates/deprecated-apis-rules-lang.ts:50 and packages/rigour-core/src/gates/deprecated-apis-rules-node.ts:177 among others. Review how tool inputs reach them before granting credentials.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
What the source scan found
- Transport
- stdiopackages/rigour-mcp/src/gateway/server.ts:2
- Starts other programs
- 127 callspackages/rigour-cli/src/commands/brief.ts:118, packages/rigour-cli/src/commands/brief.ts:124, packages/rigour-cli/src/commands/demo.ts:90
- Outbound network calls
- 17 callspackages/rigour-cli/src/commands/demo-injections.ts:69, packages/rigour-cli/src/commands/demo-injections.ts:175, packages/rigour-cli/src/commands/demo-scaffold.ts:79
- Writes or deletes files
- 238 callspackages/rigour-cli/src/commands/brief.ts:161, packages/rigour-cli/src/commands/brief.ts:162, packages/rigour-cli/src/commands/check.ts:45
- Lockfile
- pnpm-lock.yaml
Pattern matches on the source text of 593 files: places to read, not proof of what the code does at run time.
Releases
README
The repository's README runs to about 2.4K words, fetched a month ago. The original in the repository is authoritative.
Read full README