Genuinely valuable experience for developers opening the dashboard to refactor code or port Wikifier to another agent platform. Aligns with frozen P1 architecture + P7 wiring. All within P6 budget/scale constraints. Pure static HTML + vanilla JS.
⚠ This map describes the Wikifier *tool's own source* (for people refactoring or porting Wikifier itself). It is *not* the file tree or wiki of whatever project you may have opened this file in.
Key implementation files + one-line purposes (from *.wiki.md + current structure after org + human layer work). For the *current project's* agent wiki (chart + files + descriptions), use index.html after running wikifier update-maps / check-changes in that project. diagnostics.html is deliberately not copied into target project roots.
| Cat | Shell / CLI | MCP Tool | Source File:Line | .wiki.md | Scale / Port Notes | |
|---|---|---|---|---|---|---|
| Core | check-changes | check_changes() | sh:1806 / server:319 | — | Delta; first action | |
| Core | health [--dir X] [json] | health(dir,format="json") | health.py:16 / server:481 | health.py.wiki.md | Dir filter core; R1 essential | |
| Core | update-maps [--full] | update_maps(full=False) | sh:1936 / server:440 | — | R1: incremental only on large | |
| Core | validate | validate() | server:625 | — | Health + integrity | |
| Edit | record-change <f> "<reason>" | record_change(file,reason) | server:353 | — | MANDATORY after every refactor | |
| Edit | mark-green <f> | mark_green(file) | server:396 | — | Close the loop | |
| Edit | prepare-edit <f> | prepare_edit(file) | server:417 | — | Stage mtime (P7 robust) | |
| Inspect | journal [date] | journal(date,format="json") | server:649 | — | Audit trail | |
| Inspect | issues | issues(severity="high") | server:670 | — | Logged_issues/ | |
| Wiki | (MCP) get_file_wiki | get_file_wiki(file,format="json") | server:1104 | server.py.wiki.md | Purpose pane + porting | |
| Intel | (MCP) get_dependencies | get_dependencies(file,format="json") | server:695 | — | Forward edges | |
| Intel | (MCP) get_cycles | get_cycles(analysis=true) | server:931 (Tarjan+CIABRE) | — | Heavy; full view here | |
| Agent | (MCP) get_project_status | get_project_status() | server:1328 | — | Best first call for humans | |
| Agent | (MCP) suggest_next_actions | suggest_next_actions() | server:1407 | — | Top workflow per skills/run.md | |
| Agent | (MCP) get_files_needing_attention | get_files_needing_attention() | server:1269 | — | Red/Yellow for refactors | |
| Setup | init --target /path | N/A | sh:2172 | — | External monorepo bootstrap | |
| Daemon | monitor & | N/A | sh:1926 | — | Background heartbeat + lock |
From real dogfooding (R3, M2-Rem-08, ConsistencyHub 577-file + extrapolated) + R1 hardening in sh + contracts + visual:
The visual layer (index.html + diagnostics.html) is the easiest part to port or fork for your own project dashboard:
/* SHARED (from index.html + diagnostics): defensive fetch + parsers */
async function safeFetch(path, fallback = '') { ... } // AbortController + timeout
function parseHealthMd(md) { ... } // line-based | table tolerant of R1
/* HUMAN PORT NOTE: duplicate the above two + renderHealthTable + R1 detection
(libraryMd.includes('R1 Scale') || rows.length > 300) then set caps + banners.
Command surface is pure data + clipboard toasts — replace the array with your cmds.
Expose window.yourWiring for diagnostics parity. No build step. */
Header, badges, intel-card, command-btn, status-pill styles are intentionally duplicated (small) with comments so each file is independently forkable. Tailwind script + mermaid only on load. Keyboard 'R' + '/' filter patterns are cheap wins.
For other agent platforms: keep the two-page split, command copy surface (your equivalent of shell + MCP XML), and the "For Human..." hub as-is — just re-point the data sources and command strings.
prepare_edit → edit → record_change "reason" → update/create *.wiki.md → mark-green