research-mode — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited research-mode (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
/research-mode — Enable research mode, then prompt for a topic/research-mode <topic> — Enable research mode and start researching the topic/research-mode continue — List existing research docs and resume one/research-mode off — Disable research mode| Tool | Hook config location / equivalent | Script format argument |
|---|---|---|
| Claude Code | ~/.claude/settings.json | _(none — default)_ |
| Copilot | ~/.copilot/hooks.json | copilot |
| Pi | Bundled active-mode extension in .pi/agent/extensions/active-mode/ | _(extension-driven)_ |
Claude Code and Copilot support the bundled PostToolUse and SessionStart hook scripts directly. Pi does not use the same standalone hook configuration files in this repository's starter config. Instead, this starter config now ships a Pi-native active-mode extension that reads .ai/.active-mode, clears stale flags on fresh session start, injects reminder context before LLM calls, and shows mode status in the UI. If that extension is not installed, fall back to manual document updates.
If you cannot determine which tool you are, ask the user.
If the argument is "off", skip this step and go directly to Step 2.
Otherwise:
bash {skill-dir}/scripts/check-hooks.sh and parse the structured output.bash {skill-dir}/scripts/check-hooks.sh copilot and parse the structured output.active-mode extension instead of standalone hook files. If that extension is installed, research mode gets equivalent reminder/cleanup behaviour automatically. Otherwise research mode will rely on manual update discipline only. Then continue to Step 2.For Claude Code and Copilot:
Parse the arguments:
{repo root}/.ai/.active-mode with: mode: research
topic: (awaiting input)
document: (pending)
started: {yyyy-mm-dd HH:mm}topic: line, then continue to Step 3b.{repo root}/.ai/.active-mode with: mode: research
topic: {the research topic}
document: (pending)
started: {yyyy-mm-dd HH:mm}If it already exists (from Step 3a), update the topic: line.
persist skill to begin researching the topic.persist skill creates the research document, update the flag file's document: line with the file path./research-mode off when done. Research mode will be auto-disabled by starting a new session when supported by your harness configuration."/rename {task-name} to rename this conversation." where {task-name} is the document filename with the date prefix and .md suffix removed./name {task-name} to name this conversation." where {task-name} is the document filename with the date prefix and .md suffix removed.{repo root}/.ai/research/..md files, stop and tell the user: "No existing research docs found in .ai/research/. Use /research-mode <topic> to start a new one."ls "{repo root}/.ai/research/" via Bash.{yyyy-mm-dd} filename prefix sorts correctly lexicographically). 1. 2026-04-10 auth-middleware-analysis.md
2. 2026-04-08 retry-strategies.md.md suffix).{topic} from the filename by removing the {yyyy-mm-dd} prefix and .md suffix.{repo root}/.ai/.active-mode with: mode: research
topic: {topic}
document: {full path to the selected doc}
started: {yyyy-mm-dd HH:mm}{document path}. Use /research-mode off when done. Research mode will be auto-disabled by starting a new session when supported by your harness configuration."/rename {task-name} to rename this conversation." where {task-name} is the document filename with the date prefix and .md suffix removed./name {task-name} to name this conversation." where {task-name} is the document filename with the date prefix and .md suffix removed.While research mode is active, if your harness has PostToolUse hook support configured, the hook outputs reminders after each tool use. When you see these reminders:
{repo root}/.ai/.active-modeFor harnesses with SessionStart hook support configured, stale flag files from previous sessions are cleared automatically. In Pi, the bundled active-mode extension clears stale flags on fresh session start when installed. Without that extension, delete a stale .ai/.active-mode file before re-enabling research mode if one is left behind.
Research mode relies on two hooks to function fully. Without the PostToolUse hook, only the persist skill's built-in continuous update behaviour and Step 4 above apply.
Step 1 runs scripts/check-hooks.sh to verify configuration automatically for Claude Code and Copilot. If that reports STATUS: NO or STATUS: PARTIAL, offer to add the missing hooks using the appropriate format below.
Merge into ~/.claude/settings.json:
{
"hooks": {
"PostToolUse": [
{
"matcher": "",
"hooks": [
{
"type": "command",
"command": "bash ~/.claude/skills/research-mode/scripts/research-mode-hook.sh"
}
]
}
],
"SessionStart": [
{
"matcher": "",
"hooks": [
{
"type": "command",
"command": "bash ~/.claude/skills/research-mode/scripts/clear-mode.sh"
}
]
}
]
}
}Merge into ~/.copilot/hooks.json:
{
"hooks": {
"postToolUse": [
{
"type": "command",
"bash": "~/.copilot/skills/research-mode/scripts/research-mode-hook.sh copilot"
}
],
"sessionStart": [
{
"type": "command",
"bash": "~/.copilot/skills/research-mode/scripts/clear-mode.sh copilot"
}
]
}
}Note: Thecopilotargument tells the scripts to output JSON withadditionalContextfor Copilot's context injection format.
This repository's Pi starter config includes the active-mode extension under .pi/agent/extensions/active-mode/. That extension uses Pi lifecycle events:
session_startbefore_agent_start and contextctx.ui.setStatus()If that extension is installed, planning mode gets equivalent reminder and stale-flag cleanup behaviour automatically. If it is not installed, use manual document updates.
active-mode extension provides the equivalent behaviour without standalone hook files./research-mode at the start of the new session.~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.