From df398fab63ac0c14a4a6cf34e4711a67ec1f4724 Mon Sep 17 00:00:00 2001 From: "Harsh Aggarwal (NVIDIA)" Date: Fri, 11 Jul 2025 00:06:10 +0530 Subject: Fix#7676 - Add Claude Code Assistant for using LLMs (#7673) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Add Claude Code Assistant for using LLMs add claude.md files for context to the LLM * format code * Update claude.yml add pull request target * Force test claude.yml * Remove sensitive flag - Update claude.yml * Update claude.yml Reverted the direct_prompt * format code (#7674) Co-authored-by: slangbot <186143334+slangbot@users.noreply.github.com> * Fix Claude workflow based on PR review feedback - Remove unused pull_request_review_comment trigger - Increase timeout from 30 to 60 minutes - Change fetch-depth from 0 to 2 for minimal git history - Add recursive submodule checkout following copilot pattern - Add environment setup with libx11-dev dependency - Switch to release build config following copilot pattern - Increase max_turns from 10 to 20 for longer conversations - Update custom instructions with build commands and OS info 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude * Update workflow - configure debug build * Update max turns to 50 for M size work * Add Claude Code settings with auto-formatting hook - Create .claude/settings.json with PostToolUse hook - Automatically runs ./extras/formatting.sh after Write/Edit/MultiEdit operations - Ensures code formatting consistency when Claude makes changes 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --------- Co-authored-by: slangbot <186143334+slangbot@users.noreply.github.com> Co-authored-by: slangbot Co-authored-by: Claude --- CLAUDE.local.md | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100755 CLAUDE.local.md (limited to 'CLAUDE.local.md') diff --git a/CLAUDE.local.md b/CLAUDE.local.md new file mode 100755 index 000000000..282936701 --- /dev/null +++ b/CLAUDE.local.md @@ -0,0 +1,48 @@ +# Slang Repository Structure + +For the repoName: `shader-slang/slang` repository, the deepwiki mcp server structure includes: + +## Main Topics: + - 1 Overview + - 2 Compiler Architecture + - 2.1 Front-End: Parsing & AST + - 2.2 Semantic Analysis + - 2.3 Intermediate Representation + - 2.4 IR Lowering & Optimization + - 2.5 Code Generation + - 3 Session Management & API + - 3.1 Session & Linkage System + - 3.2 ComponentType Hierarchy + - 4 Language Features + - 4.1 Automatic Differentiation + - 4.2 Module System + - 4.3 Interfaces & Generics + - 4.4 Capabilities System + - 5 Target Platforms + - 5.1 HLSL & DirectX Targets + - 5.2 GLSL & Vulkan Targets + - 5.3 C++, CUDA & CPU Targets + - 5.4 Other Targets & Extensions + - 6 Rendering System + - 6.1 GFX API Architecture + - 6.2 Shader Objects & Resource Binding + - 6.3 Device & Pipeline Management + - 7 Testing & Build Infrastructure + - 7.1 Test Framework + - 7.2 Build System + - 7.3 CI/CD Pipeline + - 8 Development Tools + - 8.1 Language Server + - 8.2 Utilities & Core Libraries +### MCP Tools +#### 1. `mcp__deepwiki__ask_question` +- **Purpose**: Ask specific questions about a GitHub repository +- **Parameters**: + - `repoName` (required): GitHub repository in format "shader-slang/slang" + - `question` (required): The question to ask about the repository +- **Usage**: Returns AI-generated answers based on repository analysis + +## Build Instructions +- Build using: `cmake --build --preset debug` +- Test using: `./build/Debug/bin/slangc -target path/to/file.slang` + - Add `-dump-ir` for IR stages / optimization logs and understanding -- cgit v1.2.3