agent-consult
CLAUDE.md1 starsChanged 6 months agoMITView on GitHub
All GitNexus guidelines and developer safety constraints have been consolidated into AGENTS.md to prevent redundancy and optimize context size. This project is indexed by GitNexus as agent-consult (547 symbols, 885 relationships, 44 execution flows). Use the GitNexus MCP tools to understand code, assess impact, and navigate safely. Index stale? Run node .gitnexus/run.cjs analyze from the project root — it auto-selects an available runner. No .gitnexus/run.cjs yet? npx gitnexus analyze (npm 11 crash → npm i -g gitnexus; #1939). This repository…
- Installs packages
In this repository9 other files it gives its agents.
- AGENTS.mdAGENTS.md
- gitnexus-cliSkill
- gitnexus-debuggingSkill
- gitnexus-exploringSkill
- gitnexus-guideSkill
- gitnexus-impact-analysisSkill
- gitnexus-pr-reviewSkill
- gitnexus-refactoringSkill
- my-complex-skillSkill
The file
We split this CLAUDE.md into the rules it gives an agent
9 rules. About 0 are common, 3 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 11
All GitNexus guidelines and developer safety constraints have been consolidated into AGENTS.md to prevent redundancy and optimize context …
- Very specific: line 22
MUST run impact analysis before editing any symbol: Before modifying a function, class, or method, run impact({target: "symbolName", …
- Distinctive: line 24
MUST warn the user: if impact analysis returns HIGH or CRITICAL risk before proceeding with edits.
- Very specific: line 25
When exploring unfamiliar code, use query({query: "concept"}) to find execution flows instead of grepping.
- Very specific: line 26
When you need full context on a specific symbol — callers, callees, which execution flows it participates in — use context({name: …
- Very specific: line 30
NEVER edit a function, class, or method without first running impact on it.
- Distinctive: line 31
NEVER ignore HIGH or CRITICAL risk warnings from impact analysis.
- Very specific: line 32
NEVER rename symbols with find-and-replace — use rename which understands the call graph.
- Very specific: line 33
NEVER commit changes without running detect_changes() to check affected scope.
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.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
Agent Consult — Claude Code Guidelines
Build and Test Commands
- Build project (TypeScript compilation):
npm run build - Run tests:
npm run test(or execute specific test scripts, e.g.,node dist/test-local.js)
System Guidelines and GitNexus
To understand the architecture, navigate the codebase, execute symbol-based impact analysis, and interact with configured MCP servers: 👉 You MUST read the AGENTS.md file first.
All GitNexus guidelines and developer safety constraints have been consolidated into AGENTS.md to prevent redundancy and optimize context size.
<!-- gitnexus:start -->GitNexus — Code Intelligence
This project is indexed by GitNexus as agent-consult (547 symbols, 885 relationships, 44 execution flows). Use the GitNexus MCP tools to understand code, assess impact, and navigate safely.
Index stale? Run
node .gitnexus/run.cjs analyzefrom the project root — it auto-selects an available runner. No.gitnexus/run.cjsyet?npx gitnexus analyze(npm 11 crash →npm i -g gitnexus; #1939).
Always Do
- MUST run impact analysis before editing any symbol. Before modifying a function, class, or method, run
impact({target: "symbolName", direction: "upstream"})and report the blast radius (direct callers, affected processes, risk level) to the user. - MUST run
detect_changes()before committing to verify your changes only affect expected symbols and execution flows. For regression review, compare against the default branch:detect_changes({scope: "compare", base_ref: "main"}). - MUST warn the user if impact analysis returns HIGH or CRITICAL risk before proceeding with edits.
- When exploring unfamiliar code, use
query({query: "concept"})to find execution flows instead of grepping. It returns process-grouped results ranked by relevance. - When you need full context on a specific symbol — callers, callees, which execution flows it participates in — use
context({name: "symbolName"}).
Never Do
- NEVER edit a function, class, or method without first running
impacton it. - NEVER ignore HIGH or CRITICAL risk warnings from impact analysis.
- NEVER rename symbols with find-and-replace — use
renamewhich understands the call graph. - NEVER commit changes without running
detect_changes()to check affected scope.
Resources
| Resource | Use for |
gitnexus://repo/agent-consult/context | Codebase overview, check index freshness |
gitnexus://repo/agent-consult/clusters | All functional areas |
gitnexus://repo/agent-consult/processes | All execution flows |
gitnexus://repo/agent-consult/process/{name} | Step-by-step execution trace |
CLI
| Task | Read this skill file |
| Understand architecture / "How does X work?" | .claude/skills/gitnexus/gitnexus-exploring/SKILL.md |
| Blast radius / "What breaks if I change X?" | .claude/skills/gitnexus/gitnexus-impact-analysis/SKILL.md |
| Trace bugs / "Why is X failing?" | .claude/skills/gitnexus/gitnexus-debugging/SKILL.md |
| Rename / extract / split / refactor | .claude/skills/gitnexus/gitnexus-refactoring/SKILL.md |
| Tools, resources, schema reference | .claude/skills/gitnexus/gitnexus-guide/SKILL.md |
| Index, status, clean, wiki CLI commands | .claude/skills/gitnexus/gitnexus-cli/SKILL.md |
<!-- gitnexus:end --><!-- REPOWISE:START — Do not edit below this line. Auto-generated by Repowise. -->IMPORTANT: Codebase Intelligence Instructions for agent_counsult
This repository is indexed by Repowise. Use the MCP tools below for orientation, discovery, and enriched context (documentation, ownership, history, decisions). Always verify against actual source files before making changes — the index may be stale.
Last indexed: 2026-06-16 (commit 0d61bf3). Confidence: 100%.
Architecture
This repository implements an autonomous agent orchestration engine: it consumes user prompts and codebase context, processes them through a multi-agent workflow managed by an orchestrator, and produces structured analytical outputs or task executions via LLM integration. The system leverages a modular architecture to coordinate specialized agents, manage configuration-driven personalities, and interface with external AI models via OpenRouter. The project is built on a TypeScript-first foundation, utilizing a robust ecosystem for web services, schema validation, and AI integration:
- Runtime & Language: TypeScript, Node.js. * Orchestration & Logic: Custom orchestrator patterns for managing agent workflows.
Key Modules
| Module | Purpose | Owner |
community-1 | The external:@modelcontextprotocol/sdk module serves as the primary transport an | — |
community-0 | The test module serves as the architecturally central verification and diagnosti | — |
Entry Points
src/index.ts
Tech Stack
Languages: Node.js, TypeScript
Architectural Layers
| Layer | Files | Purpose |
| System Integration Testing | 8 | A collection of orchestration and security test suites designed to validate syst |
| MCP Protocol Interface | 6 | Core infrastructure for managing Model Context Protocol server connections and e |
| Project Analysis Utilities | 4 | File system and path management tools used for dynamic project analysis and runt |
| Process Execution Tests | 3 | Isolated test utilities focused on spawning and managing child processes for dir |
| Agent Documentation | 1 | Reference documentation outlining the architecture and capabilities of the syste |
| Project Changelog | 1 | Contains the historical record of version updates and feature changes for the pr |
| Claude AI Guidelines | 1 | Provides specific instructions and context for AI-assisted development within th |
| Community Code Conduct | 1 | Defines the expected standards of behavior and interaction for all project contr |
| Contribution Guidelines | 1 | Outlines the processes and requirements for developers wishing to submit code or |
| German Project Documentation | 1 | Provides a localized version of the project overview and setup instructions in G |
Guided Tour (6 steps)
- Project Overview and Entry Point —
README.md - Configuration and Environment —
src/config.ts - MCP Protocol Infrastructure —
src/openrouter-client.ts - Orchestration and Logic —
src/consult-orchestrator.ts - System Integration and Testing —
src/test-mcp-direct.ts - Skills and Personality Framework —
profiles/personalities/critic.md
Hotspots (High Churn)
| File | Churn | 90d Commits | Owner |
src/consult-orchestrator.ts | 90.9th %ile | 8 | VKirill |
src/config.ts | 81.8th %ile | 5 | VKirill |
Code health
Hotspot health: 1.28/10 (stable) ·
Average: 3.8/10 ·
Worst: 1.0/10 (src/consult-orchestrator.ts)
Critical biomarkers
src/config.ts— untested hotspot — impact −2.0src/consult-orchestrator.ts— nested complexity (queryLocalCLI) — impact −1.0src/consult-orchestrator.ts— large method (queryLocalCLI) — impact −0.3src/consult-orchestrator.ts— complex method (runConsultation) — impact −0.3src/consult-orchestrator.ts— complex method (queryLocalCLI) — impact −0.3
Repowise MCP Tools
This repo has the Repowise MCP server configured. The tools below answer questions grep/Read cannot. Every response carries an _meta envelope with index_age_days, indexed_commit, and a stale_warning only when the index has actually diverged from HEAD — silence means the index is current.
When to call which tool:
| Tool | What only this tool answers |
get_answer(question) | Synthesised answer with verified citations and a calibrated retrieval_quality. First call for "how does X work" / "why is Y like this". On low confidence returns best_guesses with one-line justifications instead of an empty answer. |
get_context(targets=[...]) | Triage card for files/modules/symbols — title, summary, signatures, hotspot bit, decision_records titles, and symbol_ids to pipe into get_symbol. Use include=["callers","ownership",...] to widen. NOT for source bytes. |
get_symbol("path/to/file.py::Name") | Raw source bytes for one indexed symbol with exact line bounds. Cheaper and safer than Read + offset math. Use the symbol_id returned by get_context. |
search_codebase(query, kind?) | Find pages by concept when you don't know the file. Each result carries search_method (embedding vs bm25 fallback). For exact identifiers use Grep — the tool will hint when it sees one. |
get_why(query, targets?) | Architectural decision archaeology — why the code is shaped this way. Call before refactors or pattern divergences. Falls back to git archaeology when no ADRs exist for a file. |
get_risk(targets, changed_files?) | What history says about touching these files: churn, owners, blast radius. Pass changed_files for PR mode → returns a directive (will_break, missing_cochanges, missing_tests). |
get_dead_code(...) | Tiered unreachable / unused-export / zombie-package findings. Run before a cleanup sprint, not before a targeted fix. |
get_overview(repo?) | Architecture map for an unfamiliar repo. One-time orientation; skip on subsequent calls in the same session. |
Composition tips:
get_answer→ ifconfidenceismedium/low, follow thebest_guesses[0].fileorfallback_targets[0]intoget_context, thenget_symbolfor bytes.get_contextreturnsdecision_recordstitles → callget_why(targets=[...])for the rationale.get_contextreturnshotspot: true→ callget_riskbefore editing.- PR review →
get_risk(targets=[...], changed_files=[...]); read thedirectiveblock first.
Verify when: _meta.stale_warning is present, or retrieval_quality is partial/weak, or search_method is bm25. Otherwise trust the response and act on it.
Codebase Conventions
Commands:
- Build:
npm run build - Dev:
npm run dev
<!-- REPOWISE:END -->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.

