I built my trading research agent Sig (short for signal), which lives in a Telegram topic. It is supposed to read ideas I send it, journal them, score them, and never use an em dash while doing it. The rules live in a file called agents/sig/operates.md. For the first few days Sig ignored most of them. It journaled ideas fine. It almost never scored them. And every few messages, an em dash slipped through anyway.
Tightening the wording didn't help
My first theory was the model being sloppy, the usual thing where an instruction gets lost in a long context. I tightened the wording in operates.md, added "ALWAYS" in a few places, and nothing changed. Then I noticed something that did not fit that theory: Sig's scheduled jobs, the ones that run on a cron without me in the loop, followed the rules fine. Only the chat replies, the ones I was actually testing in Telegram, skipped them.
Chat replies and scheduled jobs build their prompts differently
That split was the clue. The agent framework Sig runs on handles chat replies and scheduled jobs through two different code paths. A chat reply runs with only Read, Glob, Grep plus MCP tools, at approval none. The broader capability set only reaches scheduled jobs. Chat replies build their prompt with something called TalkPrompt, and TalkPrompt leaves operates out entirely. Jobs assemble their prompt differently and do include it. So the file I kept editing and re-reading was never making it into the context the chat model actually saw. The rulebook was sitting right there, and the chat path never opened it.
Routing the rules through the MCP server instead
I could not change TalkPrompt itself, that is the framework's code, not mine. The workaround lived in the MCP server instead. Sig reaches its trading tools through a stdio MCP server, bin/bt-mcp, backed by bt/mcp_server.py. I had that server start reading agents/sig/operates.md and returning its contents as the MCP server's own instructions field. Claude treats MCP server instructions as part of the system prompt. So now, any time chat calls into the bt MCP server at all, which it does for nearly everything Sig does, operates.md rides along whether TalkPrompt loads it or not.
While I was in that file, a final review pass with Opus caught two more problems worth fixing at the same time: the MCP server could die outright on a malformed request, and a non-text source field could be used to fake a second source for an idea. Both got patched before any of this shipped.
I cleared the test data, deleting ideas 1 through 3 from the journal on October 12 so it would start clean, and gave Sig the ability to delete an idea itself if I ask. Then I checked it live in Telegram. A method question got back a parity answer that cited lesson 16 from the rules. "Watch protein soda" landed on the watchlist. Idea #3 got scored, a pass at 1 out of 12.
It is not perfect yet. Sig still slips an em dash in now and then, and ideas #1 and #2, the ones that went in before the fix, still have no verdict, since they were scored before the rules actually reached the model.