Hi Krill — quick follow-up on systemPromptOverride before I wire up a second agent.
CC traced the source and found that systemPromptOverride fully replaces the system prompt
at runtime. The type definition comment says "primarily for prompt debugging and controlled
experiments."
My use case is different: I have a second agent (a maintenance/support agent, similar to
what you described in your Krill-starter recipe) with its own dedicated agentDir containing
AGENTS.md, SOUL.md, IDENTITY.md, and TOOLS.md. I want those files to load normally via
workspace injection on every session. But I also want to protect the agent's core identity
from being accidentally overwritten by a user who has shell access to the workspace.
Two questions:
-
If I set systemPromptOverride on this agent, does workspace injection (AGENTS.md,
SOUL.md etc.) still happen — or does the override fully bypass it? -
If the override bypasses workspace injection, what's the recommended pattern for
protecting a second agent's instructions from user edits in the workspace, while still
keeping the full workspace file loading behaviour?
Running v2026.4.15. Thanks.