Hey Daniel,
It seems like the load-dynamic-context.ts is running on every prompt submission, loading load-dyanamic-context.md into the context repeatedly.
May this be causing unnecessary tokens waste? Or perhaps, on the contrary, re-focusing Claude to better pay attention to the user-prompt?
I'm considering doing a conditional read based on the presence of a marker file with a session_id. Akin to a "PID marker file" (/var/run/my-process.pid).
What do you think?
P.S
Thanks for a great newsletter and the amazing open-source projects. I've been a fan for a while now.
Hey Daniel,
It seems like the
load-dynamic-context.tsis running on every prompt submission, loadingload-dyanamic-context.mdinto the context repeatedly.May this be causing unnecessary tokens waste? Or perhaps, on the contrary, re-focusing Claude to better pay attention to the user-prompt?
I'm considering doing a conditional read based on the presence of a marker file with a
session_id. Akin to a "PID marker file" (/var/run/my-process.pid).What do you think?
P.S
Thanks for a great newsletter and the amazing open-source projects. I've been a fan for a while now.