crg-integration

Retrieve minimal AST-based code context for AI coding agents.

1|Updated May 21, 2026
One-click install
npx skills add https://github.com/hiddink-ai/hiddink-harness --skill crg-integration
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: crg-integration
Source: https://github.com/hiddink-ai/hiddink-harness/tree/main/templates/skills/crg-integration
Command: npx skills add https://github.com/hiddink-ai/hiddink-harness --skill crg-integration

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires code-review-graph.

What problem does it solve?

This skill addresses the high cost of context window usage by providing an AST-based knowledge graph that retrieves only the most relevant code nodes instead of loading entire files.

Core Features & Use Cases

  • Minimal Context Extraction: Retrieves only the necessary code excerpts and AST nodes for a given file or line.
  • Impact Analysis: Generates dependency trees to visualize how code changes affect other modules.
  • Semantic Search: Performs precise AST-level queries to find callers or definitions without full-text scanning.
  • Use Case: When context usage exceeds 60 percent, use this skill to inject only the critical dependency graph and minimal code context required for a specific refactoring task.

Quick Start

Use the crg-integration skill to retrieve the minimal context for the function located at line 142 in src/handler.py.

Frequently Asked Questions about crg-integration

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I reduce token usage when AI coding agents load large codebases for refactoring?

AST-based context retrieval minimizes token usage by extracting only relevant AST nodes and dependency trees instead of loading entire files. This approach provides AI coding agents with precise semantic context for refactoring while keeping context window consumption low.

What is AST-based impact analysis and how does it visualize code dependencies?

AST-based impact analysis generates dependency trees to visualize how code changes affect connected modules. By querying the abstract syntax tree, it maps caller and definition relationships to identify propagation paths without scanning entire files.

How do I retrieve minimal code context for a specific function or line number?

Query an AST knowledge graph with a file path and line number to retrieve only the necessary code excerpts and AST nodes. This minimal context injection provides AI agents with the exact semantic information needed without loading entire files.

Do I need a specific MCP server configured to use AST-based code context retrieval?

Yes, the code-review-graph MCP server must be installed and configured within your agent environment. This server provides the AST-based knowledge graph infrastructure required for dependency analysis, semantic code searching, and minimal context retrieval.

When should I switch to AST-based context retrieval instead of loading full files?

Switch to AST-based context retrieval when context window usage exceeds 60 percent. At this threshold, loading entire files becomes inefficient, and injecting only the critical dependency graph and minimal code nodes maintains agent performance for large-scale refactoring tasks.

Can I perform semantic code searches to find function callers without full-text scanning?

Yes, AST-level semantic search performs precise queries to find callers or definitions without full-text scanning. By leveraging the knowledge graph, it locates specific code relationships and dependencies directly through abstract syntax tree nodes.