Consolidates three codebases into a single agent orchestration repo: - agentci (from go-scm): Clotho dual-run verification, agent config, SSH security (sanitisation, secure commands, token masking) - jobrunner (from go-scm): Poll-dispatch-report pipeline with 7 handlers (dispatch, completion, auto-merge, publish draft, dismiss reviews, send fix command, tick parent epic) - plugins marketplace (from agentic/plugins): 27 Claude/Codex/Gemini plugins with shared MCP server All 150+ tests passing across 6 packages. Co-Authored-By: Virgil <virgil@lethean.io>
2.1 KiB
2.1 KiB
| name | description |
|---|---|
| explain | Explain code, errors, or stack traces in context |
Explain
This command provides context-aware explanations for code, errors, and stack traces.
Usage
/core:explain file.php:45- Explain code at a specific line./core:explain error "error message"- Explain a given error./core:explain stack "stack trace"- Explain a given stack trace.
Code Explanation (file:line)
When a file path and line number are provided, follow these steps:
- Read the file: Read the contents of the specified file.
- Extract context: Extract a few lines of code before and after the specified line number to understand the context.
- Analyze the code: Analyze the extracted code block to understand its purpose and functionality.
- Provide an explanation: Provide a clear and concise explanation of the code, including its role in the overall application.
Error Explanation (error)
When an error message is provided, follow these- steps:
- Analyze the error: Parse the error message to identify the key components, such as the error type and location.
- Identify the cause: Based on the error message and your understanding of the codebase, determine the root cause of the error.
- Suggest a fix: Provide a clear and actionable fix for the error, including code snippets where appropriate.
- Link to documentation: If applicable, provide links to relevant documentation that can help the user understand the error and the suggested fix.
Stack Trace Explanation (stack)
When a stack trace is provided, follow these steps:
- Parse the stack trace: Break down the stack trace into individual function calls, including the file path and line number for each call.
- Analyze the call stack: Analyze the sequence of calls to understand the execution flow that led to the current state.
- Identify the origin: Pinpoint the origin of the error or the relevant section of the stack trace.
- Provide an explanation: Explain the sequence of events in the stack trace in a clear and understandable way.