cache stats output
#531
Replies: 1 comment
|
No worries - this is a docs/naming confusion, not RTFM.
lean-ctx read <file>
lean-ctx read <file> -m mapThe cache win happens on a repeated read of the same unchanged file in the same session/conversation. The first read still has to render content; the second read can collapse to a small “already seen / unchanged” stub. Different mode, changed file contents,
lean-ctx verify-cache <some-file>For MCP, yes: the live session cache is owned by that MCP process/session, so CLI-level stats may not show what the editor process has in memory. Inside MCP, the relevant check is the cache/status tool for that running session. Your lean-ctx-mode compressThe docs should probably call out both points more explicitly: If my answer solved your problem, you can click answered the question. I'm really here to help, and along the way I'm also collecting Galaxy Brain badges haha 😆 |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hi!
I'm just started to use lean-ctx and found strange thing, lean-ctx cache stats does not show that anything is cached:
As I understood, this cache is used whenever read is proceeding with
-margument:I don't see cases when this happens by default.
Also, if I understood correctly, MCP has a separate cache and its status can be checked only inside MCP process.
I'm sorry if I missed RTFM.
Can you please point me to the doc or explain a little bit?
BTW! If I go by these steps: https://leanctx.com/docs/getting-started/#editor-setup (Verify) the output is not compressed because by default track mode is active.
I had to run
lean-ctx-mode compressto see compressed output for such a commands likegit statusAll reactions