mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2025-12-27 07:04:04 -05:00
Add Claude Explain feature for AI-powered code explanations This PR introduces Claude Explain, a new feature that provides AI-powered explanations of compiler output directly within Compiler Explorer. Key features: Claude Explain functionality: - New explain view pane - Explains compiler output with full context of source code and compilation output - Configurable audience level and explanation type - Response caching to improve performance and reduce API calls - Usage statistics display showing requests used and token counts User experience: - Consent flow on first use explaining data handling and privacy - AI disclaimer banner warning about potential LLM inaccuracies - Respects "no-ai" directive in source code for users who don't want AI processing Privacy and security: - Data sent to Anthropic's Claude API as documented in privacy policy - No data used for model training - Clear consent required before first use - Support for opting out via "no-ai" directive The feature is marked as beta and can be enabled via configuration. Co-authored-by: Claude <noreply@anthropic.com>
88 lines
1.3 KiB
Plaintext
88 lines
1.3 KiB
Plaintext
mixin monacopane(id)
|
|
div(id=id)
|
|
.top-bar.btn-toolbar.bg-light(role="toolbar")
|
|
include ../font-size
|
|
.monaco-placeholder
|
|
|
|
.gl_keep.template
|
|
|
|
include panes/codeEditor
|
|
|
|
include panes/compiler
|
|
|
|
include panes/executor
|
|
|
|
include panes/compiler-output
|
|
|
|
include panes/tool-output
|
|
|
|
include panes/diff
|
|
|
|
include panes/pp
|
|
|
|
include panes/ir
|
|
|
|
include panes/clangir
|
|
|
|
include panes/opt-view
|
|
|
|
include panes/opt-pipeline
|
|
|
|
include panes/device
|
|
|
|
include panes/gccdump
|
|
|
|
include panes/cfg
|
|
|
|
include panes/conformance
|
|
|
|
include panes/tree
|
|
|
|
include panes/explain
|
|
|
|
include widgets/compiler-selector
|
|
|
|
include widgets/libs-dropdown
|
|
|
|
include widgets/libs-entry
|
|
|
|
include widgets/share-item
|
|
|
|
include widgets/lib-selected-tpl
|
|
|
|
include widgets/lib-favorite-tpl
|
|
|
|
include widgets/lib-search-result-tpl
|
|
|
|
include widgets/tree-editor-tpl
|
|
|
|
include widgets/possible-override-tpl
|
|
|
|
include widgets/possible-runtime-tool-tpl
|
|
|
|
include widgets/overrides-favorite-tpl
|
|
|
|
+monacopane("stackusage")
|
|
|
|
+monacopane("flags")
|
|
|
|
+monacopane("ast")
|
|
|
|
+monacopane("tool-input")
|
|
|
|
+monacopane("gnatdebugtree")
|
|
|
|
+monacopane("gnatdebug")
|
|
|
|
+monacopane("rustmir")
|
|
|
|
+monacopane("haskellCore")
|
|
|
|
+monacopane("haskellStg")
|
|
|
|
+monacopane("haskellCmm")
|
|
|
|
+monacopane("rustmacroexp")
|
|
|
|
+monacopane("rusthir")
|