osFoundry keeps a warm, cache-friendly Claude Code session across channel messages
The article describes how osFoundry handles repeated mentions of a resident Claude Code session in a Message channel without re-sending everything each time. Only the newest user turn is sent to an already-running process, while the system framing is placed once at the start so the prompt-caching prefix stays stable. A resident process is kept per channel and binding, capped at four at a time, and shut down after 30 minutes of inactivity. The author notes that three omissions keep long-running sessions economical: no repeated system prompt, no replay of prior turns, and no channel lines the session has already seen. The piece also includes a simulation measuring the savings from these choices.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in