| ▲ | Supermancho 3 hours ago | ||||||||||||||||
This is the way. Making your own agent to have a sticky memory context that is prepended to every execution is necessary to ensure each task is bounded by those precepts. | |||||||||||||||||
| ▲ | Muromec 3 hours ago | parent | next [-] | ||||||||||||||||
The trick I'm doing -- the model is given a tool that runs a prompt in the current thread to consolidate it's working memory and identity (it has a memory tool bound to the agent persona). When the prompt ends, the parts of memory that are marked as identity are merged together into a new system prompt, then the context restarts with only system prompt and this tool call surviving. Then it just keeps going. | |||||||||||||||||
| ▲ | drob518 2 hours ago | parent | prev [-] | ||||||||||||||||
Doesn’t that blow your token cache hit rate and balloon your costs (essentially everything is billed at the input token rate, not the cached rate)? | |||||||||||||||||
| |||||||||||||||||