Codebase intelligence for AI and humans: code health scores, auto-generated docs, git analytics, dead code detection, and architectural decisions via MCP.
Python aicode-complexitycode-healthcode-intelligencecode-qualitydead-codedeveloper-toolsdocumentationgit-analyticsmcpopen-sourcepythonrefactoringstatic-analysistechnical-debt
{
"project": {
".codex/config.toml": {
"content": "[mcp_servers.repowise]\ncommand = \"repowise\"\nargs = [\"mcp\"]\ncwd = \"{REPO}\"\nstartup_timeout_sec = 20\n\n[features]\nhooks = true\n",
"newlines": "platform"
},
".codex/hooks.json": {
"content": "{\n \"hooks\": {\n \"SessionStart\": [\n {\n \"matcher\": \"startup|resume|clear\",\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"repowise-augment --client codex\",\n \"timeout\": 10,\n \"statusMessage\": \"Loading repowise context...\"\n }\n ]\n }\n ],\n \"PostToolUse\": [\n {\n \"matcher\": \"Bash|shell_command\",\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"repowise-augment --client codex\",\n \"timeout\": 10,\n \"statusMessage\": \"Checking repowise freshness...\"\n }\n ]\n },\n {\n \"matcher\": \"apply_patch|Edit|Write\",\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"repowise-augment --client codex\",\n \"timeout\": 10,\n \"statusMessage\": \"Checking repowise freshness...\"\n }\n ]\n }\n ]\n }\n}\n",
"newlines": "platform"
},
".github/copilot-instructions.md": {
"content": "<!-- REPOWISE_DISTILL:START \u2014 Do not edit below this line. Auto-generated by Repowise. -->\n### Output Distillation\n\n- Prefer `repowise distill <cmd>` for noisy commands: test runs, builds, `git status`/`log`/`diff`, searches, file listings. It runs the command unchanged (exit code preserved) and prints a compact, errors-first rendering; every error line survives.\n- Output may contain a marker like `[repowise#a1b2c3d4e5f6: 230 lines omitted (~6.1k tokens); restore: repowise expand a1b2c3d4e5f6]`. The omitted content is fully preserved: run `repowise expand <ref>` to retrieve it, or `repowise expand <ref> -q <regex>` for just the matching lines.\n- Never re-run a command to see omitted output; expand the marker instead.\n- For structure-level questions about a large indexed file (\"what's in here\", \"which function handles X\"), `get_context([\"path\"], include=[\"skeleton\"])` returns the file with bodies elided (every signature plus the bodies of the most central symbols) at a fraction of the cost of a full Read.\n<!-- REPOWISE_DISTILL:END -->\n",
"newlines": "lf"
},
".mcp.json": {
"content": "{\n \"mcpServers\": {\n \"repowise\": {\n \"command\": \"repowise\",\n \"args\": [\n \"mcp\",\n \"{REPO}\",\n \"--transport\",\n \"stdio\"\n ],\n \"description\": \"repowise: codebase intelligence \\u2014 docs, graph, git signals, dead code, decisions\"\n }\n }\n}\n",
"newlines": "platform"
},
".repowise/config.yaml": {
"content": "editor_files:\n claude_md: false\n agents_md: false\n",
"newlines": "platform"
},
".repowise/mcp.json": {
"content": "{\n \"mcpServers\": {\n \"repowise\": {\n \"command\": \"repowise\",\n \"args\": [\n \"mcp\",\n \"{REPO}\",\n \"--transport\",\n \"stdio\"\n ],\n \"description\": \"repowise: codebase intelligence \\u2014 docs, graph, git signals, dead code, decisions\"\n }\n }\n}\n",
"newlines": "platform"
},
".vscode/extensions.json": {
"content": "{\n \"recommendations\": [\n \"repowise-dev.repowise\"\n ]\n}\n",
"newlines": "platform"
},
".vscode/mcp.json": {
"content": "{\n \"servers\": {\n \"repowise\": {\n \"type\": \"stdio\",\n \"command\": \"repowise\",\n \"args\": [\n \"mcp\",\n \"{REPO}\",\n \"--transport\",\n \"stdio\"\n ],\n \"description\": \"repowise: codebase intelligence \\u2014 docs, graph, git signals, dead code, decisions\"\n }\n }\n}\n",
"newlines": "platform"
},
"AGENTS.md": {
"content": "# AGENTS.md\n\n<!-- Add your project instructions above or below the Repowise section. Repowise only updates the managed section between markers. -->\n\n<!-- REPOWISE_DISTILL:START \u2014 Do not edit below this line. Auto-generated by Repowise. -->\n### Output Distillation\n\n- Prefer `repowise distill <cmd>` for noisy commands: test runs, builds, `git status`/`log`/`diff`, searches, file listings. It runs the command unchanged (exit code preserved) and prints a compact, errors-first rendering; every error line survives.\n- Output may contain a marker like `[repowise#a1b2c3d4e5f6: 230 lines omitted (~6.1k tokens); restore: repowise expand a1b2c3d4e5f6]`. The omitted content is fully preserved: run `repowise expand <ref>` to retrieve it, or `repowise expand <ref> -q <regex>` for just the matching lines.\n- Never re-run a command to see omitted output; expand the marker instead.\n- For structure-level questions about a large indexed file (\"what's in here\", \"which function handles X\"), `get_context([\"path\"], include=[\"skeleton\"])` returns the file with bodies elided (every signature plus the bodies of the most central symbols) at a fraction of the cost of a full Read.\n<!-- REPOWISE_DISTILL:END -->\n",
"newlines": "lf"
}
},
"user": {
".claude/settings.json": {
"content": "{\n \"mcpServers\": {\n \"repowise\": {\n \"command\": \"/pinned/bin/repowise\",\n \"args\": [\n \"mcp\",\n \"{REPO}\",\n \"--transport\",\n \"stdio\"\n ],\n \"description\": \"repowise: codebase intelligence \\u2014 docs, graph, git signals, dead code, decisions\"\n }\n },\n \"hooks\": {\n \"PostToolUse\": [\n {\n \"matcher\": \"Grep|Glob|Read|Edit|Write|mcp__.*[Rr]epowise.*__.*\",\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"if command -v repowise-augment >/dev/null 2>&1; then exec repowise-augment; fi\",\n \"timeout\": 10,\n \"statusMessage\": \"Checking codebase context...\"\n }\n ]\n },\n {\n \"matcher\": \"Bash|PowerShell\",\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"input=$(cat); case \\\"$input\\\" in *\\\"git commit\\\"*) if command -v repowise-augment >/dev/null 2>&1; then printf \\\"%s\\\" \\\"$input\\\" | repowise-augment; fi;; esac\",\n \"timeout\": 10,\n \"statusMessage\": \"Checking for a decision to record...\"\n }\n ]\n }\n ],\n \"SessionStart\": [\n {\n \"matcher\": \"startup|resume|clear\",\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"if command -v repowise-augment >/dev/null 2>&1; then exec repowise-augment; fi\",\n \"timeout\": 10,\n \"statusMessage\": \"Loading repowise context...\"\n }\n ]\n }\n ],\n \"PostToolUseFailure\": [\n {\n \"matcher\": \"Read|Edit|Write|Grep|Glob|NotebookEdit\",\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"if command -v repowise-augment >/dev/null 2>&1; then exec repowise-augment; fi\",\n \"timeout\": 10,\n \"statusMessage\": \"Checking codebase context...\"\n }\n ]\n }\n ],\n \"PreToolUse\": [\n {\n \"matcher\": \"Bash|PowerShell\",\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"repowise-rewrite\",\n \"timeout\": 5,\n \"statusMessage\": \"Distilling command output...\"\n }\n ]\n }\n ]\n },\n \"env\": {\n \"ENABLE_TOOL_SEARCH\": \"true\"\n },\n \"permissions\": {\n \"allow\": [\n \"Bash(repowise distill:*)\",\n \"PowerShell(repowise distill:*)\"\n ]\n }\n}\n",
"newlines": "platform"
},
".codex/hooks.json": {
"content": "{\n \"hooks\": {\n \"PreToolUse\": [\n {\n \"matcher\": \"Bash|shell_command\",\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"repowise-rewrite --agent codex\",\n \"timeout\": 5,\n \"statusMessage\": \"Distilling command output...\"\n }\n ]\n }\n ]\n }\n}\n",
"newlines": "platform"
},
"AppData/Roaming/Claude/claude_desktop_config.json": {
"content": "{\n \"mcpServers\": {\n \"repowise\": {\n \"command\": \"/pinned/bin/repowise\",\n \"args\": [\n \"mcp\",\n \"{REPO}\",\n \"--transport\",\n \"stdio\"\n ],\n \"description\": \"repowise: codebase intelligence \\u2014 docs, graph, git signals, dead code, decisions\"\n }\n }\n}\n",
"newlines": "platform"
}
}
}