Conversation
wadoon
force-pushed
the
weigl/llm
branch
2 times, most recently
from
February 1, 2026 21:19
178fa01 to
97a994e
Compare
wadoon
force-pushed
the
weigl/llm
branch
2 times, most recently
from
March 9, 2026 22:35
db12eb5 to
ee22098
Compare
…ontext and tests Rework the keyext.llm chat into a full KeY-Agent: - ExtendedPrompt assembles the request (system prompt, proof context, attachments, capped history, resolved user message) instead of the panel. - AgentLoop drives one turn as a bounded tool-calling loop with ask_user and run_command approval pauses, cancel, and per-turn activity. - PromptResolver resolves $, @, /skill:, /prompt:, /skills and /prompts. - Built-in tools: get_proof_context, list_files, read_file, file_info (read-only, jail-checked, bounded), run_command (blocklist + approval), ask_user (interactive), and use_skill (gated by agentCanUseSkills). - BuiltInMCPClient reads the approval/disabled sets live from settings and no longer mutates them in getTools. - File-backed prompt/skill libraries, autocomplete, rewritten settings UI and thin chat panel; demo scaffolding removed (LlmClient*, DemoMcpTool) and token-leaking loggers stripped from logback.xml. - Fix LlmSettings static-initializer order, the Question wire mapping (SerializedName), McpClientStdio schema conversion, make McpToolProvider public for service loading. - Add keyext.llm to the CI test matrix and a 42-test unit suite (AgentLoop, ShellSafetyPolicy, PromptResolver, LlmContext, tool schema serialization, BuiltInMCPClient, ExtendedPrompt).
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Synopsis
PR brings LLM prompt integration into KeY. Using the API of the KIT service (openai-compat).
Intended Change & Plan
Minimal working prompt
Adding files from the Java model

UI w/o functionality
Adding current sequent
DnD support for formulas.
Type of pull request
Ensuring quality
.github/workflows/tests.ymlThe contributions within this pull request are licensed under GPLv2 (only) for inclusion in KeY.