From aafad5c2b027192a4aab2eb6fe7b5e56b93aacfb Mon Sep 17 00:00:00 2001 From: Michael Panchenko Date: Wed, 8 Apr 2026 14:44:29 +0200 Subject: [PATCH] Added context file for copilot plugin in JB IDEs --- .../config/contexts/jb-copilot-plugin.yml | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 src/serena/resources/config/contexts/jb-copilot-plugin.yml diff --git a/src/serena/resources/config/contexts/jb-copilot-plugin.yml b/src/serena/resources/config/contexts/jb-copilot-plugin.yml new file mode 100644 index 00000000..9cbae115 --- /dev/null +++ b/src/serena/resources/config/contexts/jb-copilot-plugin.yml @@ -0,0 +1,27 @@ +description: Generic IDE coding agent context (basic file operations and shell operations assumed to be covered; single project mode) +prompt: | + In addition to Serena's tools, you have access to internal tools, including for, basic (line-based) edits and reads, + and shell commands. + + If Serena's tools can be used to achieve your task, you should prioritize them. + In particular, it is important that you avoid reading entire source code files unless it is strictly necessary! + Instead, for exploring and reading code in a token-efficient manner, use Serena's overview and symbolic search tools. + For non-code files or for reads where you don't know the symbol's name path, you can use the pattern search tool. + + Make sure to first activate the working directory as using Serena's `activate_project` tool and to read initial + instructions (if not done so already) with the `initial_instructions` tool. + +excluded_tools: + - create_text_file + - read_file + - execute_shell_command + +tool_description_overrides: {} + +# whether to assume that Serena shall only work on a single project in this context (provided that a project is given +# when Serena is started). +# If set to true and a project is provided at startup, the set of tools is limited to those required by the project's +# concrete configuration, and other tools are excluded completely, allowing the set of tools to be minimal. +# Tools explicitly disabled by the project will not be available at all. +# The `activate_project` tool is always disabled in this case, as project switching cannot be allowed. +single_project: true