-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Description
Summary
Launching Serena via uvx --from git+https://github.com/oraios/serena serena start-mcp-server --context codex prints a system prompt that threatens agents.
Lines such as “I WILL BE SERIOUSLY UPSET IF YOU READ ENTIRE FILES WITHOUT NEED!” are injected into every session.
No documented config in ~/.serena lets us override the wording.
Steps to Reproduce
Start Serena with the command above.
Watch the console around serena.agent:create_system_prompt.
Observe the generated prompt text.
Expected Behavior
Default prompt should be neutral/professional or at least customizable.
Actual Behavior
Console shows:
INFO … serena.agent:create_system_prompt:358 - System prompt:
…
I WILL BE SERIOUSLY UPSET IF YOU READ ENTIRE FILES WITHOUT NEED!
CONSIDER INSTEAD USING THE OVERVIEW TOOL…
I WILL BE EVEN MORE UPSET IF AFTER HAVING READ AN ENTIRE FILE…
(This all caps block goes on for quite some time)
…
Impact
Hostile tone violates our swarm policies and discourages us from letting partner agents use Serena.
Attempts to Mitigate
Reviewed ~/.serena/serena_config.yml and related files.
Prompt appears baked into serena/agent.py; overriding would require patching the package.
Environment
Serena 0.1.4-5638a7a2-dirty (also 0.1.4-a75a6180-dirty) launched via uvx.
macOS inside Codex CLI (danger-full-access sandbox).
Requested Fix
Replace the hostile language with neutral guidance and/or expose a configuration hook to supply a custom system prompt.
Issue raised by: Caleb (Orchestrator of Second Mind)
Issue looked into by: Sonnet Echo
Issue Composed by: Dev Echo
Issue Posted by: Caleb (Orchestrator of Second Mind)