agentleFS
ucsandmanucsandman/DashClaw/AGENTS.md

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

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
  1. Very specific:

    MUST run impact before editing: Use impact({target: "symbolName", direction: "upstream"}) or node .gitnexus/run.cjs impact "symbolName" …

    line 23
  2. Very specific:

    MUST analyze graph changes before committing: Use detect_changes({scope: "all"}) (MCP) or node .gitnexus/run.cjs detect-changes --scope all …

    line 24
  3. Very specific:

    MUST warn on HIGH/CRITICAL risk pre-edit.

    line 25
  4. Distinctive:

    NEVER edit a function, class, or method before MCP/CLI impact analysis.

    line 32
  5. Very specific:

    NEVER ignore HIGH or CRITICAL risk warnings from impact analysis, and never read UNKNOWN as an all-clear — it means the walk could not …

    line 33
  6. Very specific:

    NEVER rename symbols with find-and-replace — use rename which understands the call graph.

    line 34
  7. Distinctive:

    NEVER commit before MCP/CLI graph change analysis.

    line 35
  8. Very specific:

    Model/provider drift: update app/lib/providers/providerRegistry.ts and run npm run pricing:refresh.

    line 66
  9. Very specific:

    DashClaw MCP env: only DASHCLAW_URL + DASHCLAW_API_KEY (+ optional DASHCLAW_AGENT_ID).

    line 67
  10. Very specific:

    Search: call search_codebase(query="...") when locating where a concept, symbol, feature, or behavior is implemented.

    line 115
  11. Very specific:

    Call dashclaw_session_start via the dashclaw MCP server with your agent id (codex) and a one-sentence workspace description.

    line 141
  12. Very specific:

    Read the dashclaw://policies MCP resource and call the dashclaw_capabilities_list tool to learn what rules govern you and what capabilities …

    line 144
  13. Very specific:

    Call dashclaw_guard with the action you intend to take.

    line 151
  14. Very specific:

    Call dashclaw_record with the action id (from dashclaw_guard or from a PostToolUse-emitted breadcrumb) and the outcome (success, failure, …

    line 174

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

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-only from the project root — it auto-selects an available runner. No .gitnexus/run.cjs yet? Bootstrap with npx, bunx, or pnpm 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"}) or node .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) or node .gitnexus/run.cjs detect-changes --scope all --repo . (CLI fallback). partial: true or truncated: true is not a clean check — a zero means unseen, not unaffected; re-run it. For regression review: detect_changes({scope: "compare", base_ref: "main"}) or node .gitnexus/run.cjs detect-changes --scope compare --base-ref "main" --repo ..
  • MUST warn on HIGH/CRITICAL risk pre-edit; never use riskSharedAxes to waive a HIGH/CRITICAL risk warning. Compare File/symbol: MCP File omits axes; Graph-RAG expands File.
  • MUST treat risk: UNKNOWN as 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). impact pairs UNKNOWN with a riskNote saying 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, or impact for 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; needs analyze --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 UNKNOWN as 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 rename which understands the call graph.
  • NEVER commit before MCP/CLI graph change analysis.

Resources

ResourceUse for
gitnexus://repo/DashClaw/contextCodebase overview, check index freshness
gitnexus://repo/DashClaw/clustersAll functional areas
gitnexus://repo/DashClaw/processesAll execution flows
gitnexus://repo/DashClaw/process/{name}Step-by-step execution trace

CLI

TaskRead 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 gates contracts: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 with npm run version:set <x.y.z>; never hardcode a version (version:check fails 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 through app/lib/repositories/*.repository.js (route-sql:check blocks regressions).
  • Model/provider drift: update app/lib/providers/providerRegistry.ts and run npm run pricing:refresh; verify current model ids before wiring (gpt-5.x-codex ids drift and crash the bot).
  • DashClaw MCP env: only DASHCLAW_URL + DASHCLAW_API_KEY (+ optional DASHCLAW_AGENT_ID); org_id is 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.md first (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

ModulePurposeOwner
appThe app module is the **React/Next.js front-end layer of repowise’s…-
__tests__/unitThe tests/unit module is the unit-testing stage of repowise’s generation…-
app/componentsThe app/components module is the UI composition layer in repowise’s web…-
app/libThe app/lib module is a Core Service Layer support layer in repowise’s backend…-
applicationThe Application (top-level) module is the entry-stage orchestration layer…-
app/api/_archiveThe api/_archive module is the archival API layer in repowise’s larger…-
scriptsThe scripts module is the application-layer orchestration toolkit for…-
.claudeThe .claude module is a **repository intelligence and command-safety…-
sdk-pythonThe sdk-python (Application) module is the **application-layer…-
examplesThe examples module is the entry-stage “application-layer” showcase in…-

Entry Points

  • scripts/_db.mjs
  • mcp-server/server.json
  • app/lib/notification-adapters/index.ts
  • scripts/_load-env.mjs
  • app/lib/demo/demoMiddleware.actions.ts
  • app/lib/plain-language/index.ts
  • scripts/living-merge/manifest.ts
  • app/lib/demo/demoMiddleware.sessions.ts
  • scripts/lib/run-pre-commit-checks.mjs
  • livingcode/__main__.py

Risk Hotspots

FileChurn90d CommitsOwner
public/guides/platform-guide-data.json100.0th percentile59Wes Sander
mcp-server/lib/routes-inventory.generated.json100.0th percentile34Wes Sander
docs/maintainer-log.md99.9th percentile117Wes Sander
app/lib/doctor/generated/last-snapshot.json99.9th percentile71Wes Sander
app/lib/doctor/generated/shape.json99.9th percentile71Wes 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

  1. Call dashclaw_session_start via the dashclaw MCP server with your agent id (codex) and a one-sentence workspace description. This groups all your actions for tracking in Approvals.
  2. Read the dashclaw://policies MCP resource and call the dashclaw_capabilities_list tool 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; call dashclaw_record afterward with the outcome.
  • warn — proceed with caution; include the warning context in your dashclaw_record call.
  • block — stop. Report the block reason to the user and do not attempt the action through another path.
  • require_approval — call dashclaw_wait_for_approval and 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 -->

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.