DashClaw
AGENTS.md310 starsChanged 7 months agoMITView on GitHub
The previous desloppify integration and mandatory pre-push rule have been disabled. Before any UI, design, copy, or marketing/visual change, read .impeccable.md at the repo root first. It is the canonical design context: users, brand personality, aesthetic direction, 4 anti-references, and the 7 tiebreaker principles (evidence over decoration; brand orange as signal not noise; calm under pressure; token-first; developer-reader first; WCAG 2.1 AA floor; four anti-references guardrail). Never hardcode hex values — use the CSS tokens in app/globals.css and the Tailwind…
- Reads credentials
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository20 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- dashclaw-governanceSkill
- gitnexus-cliSkill
- gitnexus-debuggingSkill
- gitnexus-exploringSkill
- gitnexus-guideSkill
- gitnexus-impact-analysisSkill
- gitnexus-refactoringSkill
- c--projects-dashclaw-route-changesSkill
- dashclaw-governanceSkill
- dashclaw-shipSkill
- dashclaw-weeklySkill
- gitnexus-cliSkill
- gitnexus-debuggingSkill
- gitnexus-exploringSkill
- gitnexus-guideSkill
- gitnexus-impact-analysisSkill
- gitnexus-refactoringSkill
- reproSkill
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
14 rules. About 0 are common, 2 are distinctive, and 12 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
12
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 23
MUST run impact before editing: Use impact({target: "symbolName", direction: "upstream"}) or node .gitnexus/run.cjs impact "symbolName" …
- Very specific: line 24
MUST analyze graph changes before committing: Use detect_changes({scope: "all"}) (MCP) or node .gitnexus/run.cjs detect-changes --scope all …
- Very specific: line 25
MUST warn on HIGH/CRITICAL risk pre-edit.
- Distinctive: line 32
NEVER edit a function, class, or method before MCP/CLI impact analysis.
- Very specific: line 33
NEVER ignore HIGH or CRITICAL risk warnings from impact analysis, and never read UNKNOWN as an all-clear — it means the walk could not …
- Very specific: line 34
NEVER rename symbols with find-and-replace — use rename which understands the call graph.
- Distinctive: line 35
NEVER commit before MCP/CLI graph change analysis.
- Very specific: line 66
Model/provider drift: update app/lib/providers/providerRegistry.ts and run npm run pricing:refresh.
- Very specific: line 67
DashClaw MCP env: only DASHCLAW_URL + DASHCLAW_API_KEY (+ optional DASHCLAW_AGENT_ID).
- Very specific: line 115
Search: call search_codebase(query="...") when locating where a concept, symbol, feature, or behavior is implemented.
- Very specific: line 141
Call dashclaw_session_start via the dashclaw MCP server with your agent id (codex) and a one-sentence workspace description.
- Very specific: line 144
Read the dashclaw://policies MCP resource and call the dashclaw_capabilities_list tool to learn what rules govern you and what capabilities …
- Very specific: line 151
Call dashclaw_guard with the action you intend to take.
- Very specific: line 174
Call dashclaw_record with the action id (from dashclaw_guard or from a PostToolUse-emitted breadcrumb) and the outcome (success, failure, …
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Tooling Note
The previous desloppify integration and mandatory pre-push rule have been disabled.
Reason:
- the external tool is currently unstable in this environment,
- it should not block normal development or commits until it is repaired and reintroduced intentionally.
Design Context
Before any UI, design, copy, or marketing/visual change, read .impeccable.md at the repo root first. It is the canonical design context: users, brand personality, aesthetic direction, 4 anti-references, and the 7 tiebreaker principles (evidence over decoration; brand orange as signal not noise; calm under pressure; token-first; developer-reader first; WCAG 2.1 AA floor; four anti-references guardrail). Never hardcode hex values — use the CSS tokens in app/globals.css and the Tailwind theme extension.
<!-- gitnexus:start -->GitNexus — Code Intelligence
This project is indexed by GitNexus as DashClaw (32131 symbols, 63068 relationships, 786 execution flows).
Index stale? Run
node .gitnexus/run.cjs analyze --index-onlyfrom the project root — it auto-selects an available runner. No.gitnexus/run.cjsyet? Bootstrap withnpx,bunx, orpnpm dlx— e.g.bunx gitnexus@latest analyze(npm 11 npx crash; #1939).
Always Do
- MUST run impact before editing. Use
impact({target: "symbolName", direction: "upstream"})ornode .gitnexus/run.cjs impact "symbolName" --direction upstream --repo .; report callers, processes, and risk. Never substitute grep for graph analysis. - MUST analyze graph changes before committing. Use
detect_changes({scope: "all"})(MCP) ornode .gitnexus/run.cjs detect-changes --scope all --repo .(CLI fallback).partial: trueortruncated: trueis not a clean check — a zero means unseen, not unaffected; re-run it. For regression review:detect_changes({scope: "compare", base_ref: "main"})ornode .gitnexus/run.cjs detect-changes --scope compare --base-ref "main" --repo .. - MUST warn on HIGH/CRITICAL
riskpre-edit; never useriskSharedAxesto waive a HIGH/CRITICALriskwarning. Compare File/symbol: MCP File omits axes; Graph-RAG expands File. - MUST treat
risk: UNKNOWNas unresolved, not as low. An empty caller set is not evidence the symbol is unused — it can also mean the callers are not resolvable by the index (plain-object property access, dynamic dispatch, cross-language calls).impactpairsUNKNOWNwith ariskNotesaying so. Confirm with a text search before treating the symbol as safe to change or delete; do not proceed on the strength of a zero. - MUST use
query({search_query: "concept"})for concepts/flows,context({name: "symbolName"})for a named symbol, orimpactfor blast radius, on read-only callers, dependencies, imports, or execution flow. Graph first; text search only for empty/UNKNOWN/literals. - For security review,
explain({target: "fileOrSymbol"})lists taint findings (source→sink flows; needsanalyze --pdg).
Never Do
- NEVER edit a function, class, or method before MCP/CLI impact analysis.
- NEVER ignore HIGH or CRITICAL risk warnings from impact analysis, and never read
UNKNOWNas an all-clear — it means the walk could not answer, which is the one verdict that requires confirming by other means. - NEVER rename symbols with find-and-replace — use
renamewhich understands the call graph. - NEVER commit before MCP/CLI graph change analysis.
Resources
| Resource | Use for |
gitnexus://repo/DashClaw/context | Codebase overview, check index freshness |
gitnexus://repo/DashClaw/clusters | All functional areas |
gitnexus://repo/DashClaw/processes | All execution flows |
gitnexus://repo/DashClaw/process/{name} | Step-by-step execution trace |
CLI
| Task | Read this skill file |
| Understand architecture / "How does X work?" | .claude/skills/gitnexus-exploring/SKILL.md |
| Blast radius / "What breaks if I change X?" | .claude/skills/gitnexus-impact-analysis/SKILL.md |
| Trace bugs / "Why is X failing?" | .claude/skills/gitnexus-debugging/SKILL.md |
| Rename / extract / split / refactor | .claude/skills/gitnexus-refactoring/SKILL.md |
| Tools, resources, schema reference | .claude/skills/gitnexus-guide/SKILL.md |
| Index, status, clean, wiki CLI commands | .claude/skills/gitnexus-cli/SKILL.md |
<!-- gitnexus:end -->DashClaw essentials + agent-log lessons (2026-06-05, for Codex)
The global ~/.codex/AGENTS.md covers core behavior; these are DashClaw-specific and not otherwise in this file:
- Before "done", run and READ:
npm run lint && npm run typecheck && npx vitest run && npx next build(full vitest — targeted runs miss cross-file regressions). CI also gatescontracts:check,openapi:check,api:inventory:check,route-sql:check,version:check,version:sync:check. - One shared version across
package.json,sdk/package.json,sdk-python/pyproject.toml— bump withnpm run version:set <x.y.z>; never hardcode a version (version:checkfails the build). The version number advances on every ship; republish the SDKs (npm run release:sdks) only when the SDK source actually changed — a platform-only release bumps the number but leaves npm/PyPI at the last SDK release. - No direct SQL in
app/api/**/route.js— go throughapp/lib/repositories/*.repository.js(route-sql:checkblocks regressions). - Model/provider drift: update
app/lib/providers/providerRegistry.tsand runnpm run pricing:refresh; verify current model ids before wiring (gpt-5.x-codexids drift and crash the bot). - DashClaw MCP env: only
DASHCLAW_URL+DASHCLAW_API_KEY(+ optionalDASHCLAW_AGENT_ID);org_idis not needed for MCP. - Plugin parity: mirror new capabilities across claude-code / codex / Hermes plugins. Don't cosmetically rename
.jsx↔.js. - Design changes: read
.impeccable.mdfirst (see Design Context above).
<!-- REPOWISE_AGENTS:START — Do not edit below this line. Auto-generated by Repowise. -->Repowise Codebase Context For DashClaw
This repository is indexed by Repowise. Use the Repowise MCP tools for codebase orientation, discovery, implementation context, modification risk, design rationale, and cleanup planning. MCP data reflects the last index run; verify against source files before editing.
Last indexed: 2026-09-05 (commit 010defdc). Confidence: 100%.
Architecture
This repository is an agent-governance and documentation platform end-to-end: it ingests code and policy inputs (source files, contracts, and governance/policy configuration), runs an indexing + analysis pipeline (AST/code parsing, dependency/policy checks, and tool-backed MCP operations), and produces governed agent artifacts (SDKs, an MCP server with tools, and example agent workflows) plus developer-facing outputs (web/UI-ready modules and generated documentation surfaces).
Key Modules
| Module | Purpose | Owner |
app | The app module is the **React/Next.js front-end layer of repowise’s… | - |
__tests__/unit | The tests/unit module is the unit-testing stage of repowise’s generation… | - |
app/components | The app/components module is the UI composition layer in repowise’s web… | - |
app/lib | The app/lib module is a Core Service Layer support layer in repowise’s backend… | - |
application | The Application (top-level) module is the entry-stage orchestration layer… | - |
app/api/_archive | The api/_archive module is the archival API layer in repowise’s larger… | - |
scripts | The scripts module is the application-layer orchestration toolkit for… | - |
.claude | The .claude module is a **repository intelligence and command-safety… | - |
sdk-python | The sdk-python (Application) module is the **application-layer… | - |
examples | The examples module is the entry-stage “application-layer” showcase in… | - |
Entry Points
scripts/_db.mjsmcp-server/server.jsonapp/lib/notification-adapters/index.tsscripts/_load-env.mjsapp/lib/demo/demoMiddleware.actions.tsapp/lib/plain-language/index.tsscripts/living-merge/manifest.tsapp/lib/demo/demoMiddleware.sessions.tsscripts/lib/run-pre-commit-checks.mjslivingcode/__main__.py
Risk Hotspots
| File | Churn | 90d Commits | Owner |
public/guides/platform-guide-data.json | 100.0th percentile | 59 | Wes Sander |
mcp-server/lib/routes-inventory.generated.json | 100.0th percentile | 34 | Wes Sander |
docs/maintainer-log.md | 99.9th percentile | 117 | Wes Sander |
app/lib/doctor/generated/last-snapshot.json | 99.9th percentile | 71 | Wes Sander |
app/lib/doctor/generated/shape.json | 99.9th percentile | 71 | Wes Sander |
Repowise MCP Workflow
- Overview: call
get_overview()at the start of an unfamiliar task to orient on architecture, modules, entry points, and tech stack. - Search: call
search_codebase(query="...")when locating where a concept, symbol, feature, or behavior is implemented. - Context: call
get_context(targets=["path/or/symbol", "..."])for enriched docs, ownership, decisions, callers, and related files before relying on raw source alone. - Risk: call
get_risk(targets=["path/to/file.py"])before modifying shared utilities, public APIs, hotspots, high-coupling modules, or files with unknown dependents. - Why: call
get_why(query="...")before architectural changes or when the user asks why code is structured a certain way. - Dead code: call
get_dead_code(safe_only=true)before cleanup or removal work; treat lower-confidence findings as candidates to investigate. - Connections: call
get_dependency_path(source="...", target="...")when tracing how modules connect. - Diagrams: call
get_architecture_diagram(scope="...")when a visual structure would clarify the change.
Commands
- Build:
npm run build - Test:
npm run test - Lint:
npm run lint - Dev:
npm run dev - Typecheck:
npm run typecheck
<!-- REPOWISE_AGENTS:END --><!-- >>> dashclaw start — managed block, do not edit by hand -->DashClaw Governance Protocol
You are governed by DashClaw. Before any non-trivial action, follow this protocol so a human reviewer (and the audit log) can trust your work.
Session start
- Call
dashclaw_session_startvia thedashclawMCP server with your agent id (codex) and a one-sentence workspace description. This groups all your actions for tracking in Approvals. - Read the
dashclaw://policiesMCP resource and call thedashclaw_capabilities_listtool to learn what rules govern you and what capabilities are registered. Treat unknown action types as high-risk by default.
Before each risky action
Call dashclaw_guard with the action you intend to take. You will get
back one of four decisions:
allow— proceed; calldashclaw_recordafterward with the outcome.warn— proceed with caution; include the warning context in yourdashclaw_recordcall.block— stop. Report the block reason to the user and do not attempt the action through another path.require_approval— calldashclaw_wait_for_approvaland wait. Don't poll faster than the tool already does.
Risky actions include: shell commands that write or delete, file edits outside the project root, network requests, package installs, deploys, and any external API call you have not used in this session before.
The PreToolUse hook installed by dashclaw install codex will guard
Bash, Edit, Write, and MultiEdit automatically. The guidance above is
still required for tool calls that fall outside that matcher (MCP tool
invocations, agent-internal capabilities) so DashClaw's audit trail
covers them too.
After each action
Call dashclaw_record with the action id (from dashclaw_guard or from
a PostToolUse-emitted breadcrumb) and the outcome (success,
failure, or partial). This is what makes the decision replayable.
This instance
DashClaw: https://my-dashclaw.vercel.app
<!-- <<< dashclaw end --><!-- BEGIN:nextjs-agent-rules -->This is NOT the Next.js you know
This version has breaking changes — APIs, conventions, and file structure may all differ from your training data. Read the relevant guide in node_modules/next/dist/docs/ (resolved from this file's directory; in monorepos the next package may not be visible from the repo root) before writing any code. Heed deprecation notices.
This block is written and re-added by next dev — verify at node_modules/next/dist/server/lib/generate-agent-files.js. Removing it from a diff only re-creates the uncommitted change; committing it with your work keeps the tree clean.
<!-- END:nextjs-agent-rules -->Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

