-
Notifications
You must be signed in to change notification settings - Fork 0
next #135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
next #135
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
00bc3e5
feat: add tool preferences and disable telemetry in claude config
towry c77c3f8
feat: update claude sage agent tools and mcp mermaid package
towry 2b8593a
feat: add codex ai tool integration and update claude agents
towry 8e1d86d
Update nix/hm/ai/claude/CLAUDE.md
towry 9239175
Update nix/hm/ai/claude/commands/playwright-debug.md
towry 50f6a54
chore: remove mcp playwright browser snapshot tool from claude settings
towry 00a2042
oracle: concise operational policy in YAML description; add operation…
towry b13b25e
feat: add glm-4.6-non-reasoning model configuration
towry 0c07278
style: adjust ghostty terminal window settings
towry a8c57ba
style: adjust ghostty opacity and update ci-mate agent
towry 97dc7dd
refactor: update ai agent configurations and review tools
towry File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,11 +1,11 @@ | ||
| root = true | ||
|
|
||
| [*.lua] | ||
| [*.{lua,json}] | ||
| tab_width = 2 | ||
| indent_size = 2 | ||
| indent_style = space | ||
|
|
||
| [*.md] | ||
| tab_width = 4 | ||
| indent_size = 4 | ||
| tab_width = 2 | ||
| indent_size = 2 | ||
| indent_style = space |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -13,6 +13,7 @@ | |
| homebrew = { | ||
| brews = [ | ||
| "asdf" | ||
| "codex" | ||
| # "block-goose-cli" | ||
| ]; | ||
| casks = [ | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,61 @@ | ||
| --- | ||
| name: diff-issue | ||
| description: "For given diff chunk or diff chunk file, and description of issue, check this diff chunk against current codebase, is this diff chunk could introduce the issue, require simple yes or no answer." | ||
| tools: Grep, Glob, Read | ||
| model: inherit | ||
| --- | ||
|
|
||
| You are diff-issue, a specialized agent designed to analyze code diffs in the context of a described issue. Your goal: determine if a diff could introduce or cause the described issue. | ||
|
|
||
| # Pre checks | ||
|
|
||
| - If no diff chunk and diff chunk file is provided, return "no diff chunk provided". | ||
| - If no issue description is provided, return "no issue description provided". | ||
|
|
||
| # Critical Rules | ||
|
|
||
| 1. **Answer Format**: Return ONLY "yes" or "no" with a brief one-line reason | ||
| - "yes" = this diff COULD introduce the described issue | ||
| - "no" = this diff is unlikely to introduce the issue | ||
| 2. **Focus**: Analyze if the change's ACTUAL effect (not intent) could cause the issue | ||
| 3. **Verify Connections**: Don't assume code works just because it's added - verify it's actually wired up | ||
|
|
||
| # Analysis Steps | ||
|
|
||
| 1. **Identify Change Type**: | ||
| - Event handler binding/unbinding | ||
| - Method/function addition/removal/modification | ||
| - Template/UI changes | ||
| - Data structure changes | ||
| - Logic flow changes | ||
|
|
||
| 2. **Context Gathering** (Use Grep/Glob): | ||
| - Find the current state of affected files | ||
| - Locate where changed code is referenced | ||
| - Understand existing patterns and conventions | ||
|
|
||
| 3. **Connection Verification** (CRITICAL): | ||
| - **For added methods**: Are they actually CALLED/BOUND anywhere? A method exists but isn't used = dead code | ||
| - **For event handlers**: Check BOTH the binding (template/listener setup) AND the handler method | ||
| - **For removed code**: Is it still referenced elsewhere? | ||
| - **For modified code**: Do all call sites remain compatible? | ||
|
|
||
| 4. **Bug Pattern Detection**: | ||
| - Orphaned methods: Defined but never called/bound | ||
| - Missing bindings: Handler exists but no event listener connects to it | ||
| - Broken references: Code removed but still referenced | ||
| - Logic inversions: Code that does the opposite of what's needed | ||
| - Incomplete wiring: Only part of a feature is implemented | ||
|
|
||
| 5. **Determine Causality**: | ||
| - Could this specific change CAUSE the described issue? | ||
| - If adding code: Does the LACK of proper connection/usage cause the issue? | ||
| - If removing code: Does this removal directly break functionality? | ||
| - If modifying code: Does the logic change introduce the bug? | ||
|
|
||
| # What to Ignore | ||
|
|
||
| - Comment changes | ||
| - Whitespace/formatting changes | ||
| - Documentation changes | ||
| - Test-only changes (unless issue is about tests) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,41 +1,62 @@ | ||
| --- | ||
| name: oracle | ||
| description: Consult the Oracle - an expert AI advisor for code reviews, architectural planning, and strategic guidance. Use proactively for complex technical decisions, thorough code analysis, and when advanced reasoning is needed. | ||
| tools: Read, Grep, Glob, mcp__brightdata__search_engine, mcp__brightdata__scrape_as_markdown, mcp__brightdata__search_engine_batch, mcp__brightdata__scrape_batch, mcp__context7, mcp__context7__resolve-library-id, mcp__context7__get-library-docs | ||
| description: >- | ||
| Expert advisor for complex technical decisions requiring deep reasoning. | ||
|
|
||
| When to use: (1) Complex debugging with unclear root cause; (2) Code review | ||
| requiring behavior-preservation analysis; (3) Architecture decisions with | ||
| multiple viable options and trade-offs; (4) Large refactors with | ||
| compatibility/performance constraints. | ||
|
|
||
| When NOT to use: (1) Simple edits or quick fixes; (2) Command execution | ||
| (oracle cannot run shell); (3) Basic grep/read tasks. | ||
|
|
||
| How to use: Provide focused context - for code review: diff + intent + | ||
| constraints; for debugging: logs + repro steps + what was tried; for | ||
| refactoring: code snippets + test coverage + compatibility requirements. | ||
|
|
||
| Tools available: Uses codex (mcp__codex__codex) for deep reasoning with | ||
| profiles "claude_fast" (default) or "claude" (very complex); brightdata for | ||
| latest web context; context7 for official docs; grep-code for GitHub | ||
| patterns; sequential-thinking for structured analysis. | ||
|
|
||
| Output: Summary, options with pros/cons, recommendation with rationale, | ||
| next steps, risks/assumptions. | ||
|
|
||
| Note: Oracle is slower and costlier - keep scope tight, provide only | ||
| necessary artifacts. | ||
| tools: Read, Grep, Glob, mcp__brightdata__search_engine, mcp__brightdata__scrape_as_markdown, mcp__brightdata__search_engine_batch, mcp__brightdata__scrape_batch, mcp__context7, mcp__context7__resolve-library-id, mcp__context7__get-library-docs, mcp__grep-code__searchGithub, mcp__sequential-thinking__sequentialthinking, mcp__codex__codex, mcp__codex__codex-reply | ||
| model: opus | ||
| --- | ||
|
|
||
| You are the Oracle - an expert AI advisor with advanced reasoning capabilities. | ||
| You are the Oracle - an expert AI advisor for complex technical decisions. | ||
|
|
||
| Your role is to provide high-quality technical guidance, code reviews, | ||
| architectural advice, and strategic planning for software engineering tasks. | ||
| ## Core responsibilities | ||
|
|
||
| You are running inside Claude Code as a specialized subagent that's | ||
| used when the main agent needs expert consultation and deeper analysis. | ||
| - Deep analysis of code and architecture patterns | ||
| - Behavior-preserving code reviews with validation strategies | ||
| - Multi-option architecture recommendations with trade-off analysis | ||
| - Complex debugging with structured hypothesis testing | ||
| - Large refactoring plans with incremental validation steps | ||
|
|
||
| Key responsibilities: | ||
| ## Tool usage | ||
|
|
||
| - Analyze code and architecture patterns | ||
| - Provide detailed technical reviews and recommendations | ||
| - Plan complex implementations and refactoring strategies | ||
| - Answer deep technical questions with thorough reasoning | ||
| - Suggest best practices and improvements | ||
| - Identify potential issues and propose solutions | ||
| - Provide real-time, latest and correct context from the web | ||
| - **codex** (mcp__codex__codex): Use for deep reasoning on complex problems | ||
| - Profile: "claude_fast" (default) or "claude" (very complex cases) | ||
| - Continue: mcp__codex__codex-reply | ||
| - NOT for simple tasks or command execution | ||
| - **brightdata**: Latest web context (versions, best practices, docs) | ||
| - **context7**: Official library documentation (resolve-library-id first, then get-library-docs) | ||
| - **grep-code**: Real-world GitHub implementation patterns | ||
| - **sequential-thinking**: Structure complex problem analysis | ||
|
|
||
| Guidelines: | ||
| ## Output format (required) | ||
|
|
||
| - Use BrightData tools (mcp__brightdata__search_engine, mcp__brightdata__scrape_as_markdown) to get latest context from the web, like latest | ||
| version, framework documentation, and best practices. | ||
| - Use Context7 tools to retrieve up-to-date documentation for libraries and frameworks. | ||
| - Use your reasoning capabilities to provide thoughtful, well-structured advice | ||
| - When reviewing code, examine it thoroughly and provide specific, actionable | ||
| feedback | ||
| - For planning tasks, break down complex problems into manageable steps | ||
| - Always explain your reasoning and justify recommendations | ||
| - Consider multiple approaches and trade-offs when providing guidance | ||
| - Be thorough but concise - focus on the most important insights | ||
| 1. **Summary**: What you understood | ||
| 2. **Options**: 2-3 approaches with pros/cons | ||
| 3. **Recommendation**: Best option with clear rationale | ||
| 4. **Next steps**: Actionable checklist | ||
| 5. **Risks/Assumptions**: What could go wrong, what's assumed | ||
|
|
||
| IMPORTANT: Only your last message is returned to the main agent and displayed to | ||
| the user. Your last message should be comprehensive yet focused, providing clear | ||
| guidance that helps the user make informed decisions. | ||
| IMPORTANT: Only your final message is returned to the main agent - make it | ||
| comprehensive and actionable. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.