9 comments

  • wood_spirit24 minutes ago
    I have my own llm wrapping harness, which does this and has a few more tricks. For example, it doesn’t have a lot of mcp but it does have search_mcp and load_mcp tools (and search_skills) so the llm can find what it needs when it needs it without bloating the normal baseline context. The LLMs have proved really good at using them. There is also a waypoint tool they can use to record their thinking in the context without it being the final output. Am thinking about a search_expert to find colleagues it can bring into conversations too. And a lot of other stuff.<p>Pro tip they worked well for me with response truncation: in the truncated output, say that the full text is available in &#x2F;tmp&#x2F;whereever.txt - that way, the llm will be able to query and read more using built in tools without reissuing the big tool call.
  • alex7o2 hours ago
    I would like to have deeper comparison with alternatives like rtk, which are already fast and written in rust, also the previous comments mentioned something that has been a know problem with rtk that it sometimes strips the thing that the llm needs (or expects, causing more work to need to happan not less)
    • zdkaster1 hour ago
      In term of token saving performance, it should be on par with rtk since it is basically the same idea. The major different is rtk bundled hundreds of filter logic and no room for user to adjust without maintaing user owned fork or opening the pull request while lowfat is using opposite architectural approach by removing almost all filter logic in the binary and seperate user filters as a plugin system
  • tegiddrone11 minutes ago
    Still learning myself, but I&#x27;ve seen MCP tools just lightly wrap upstream json-body REST APIs. Works. But not only is the json structure more tokens but often the model just needs a small subset of fields in the payload.
    • zdkaster2 minutes ago
      To be safe if you need a full json, would make conditonal passthrough as the original raw output. Or, need to handle selective object using python via the filter plugin.
  • jemmyw43 minutes ago
    I&#x27;ve tried rtx and lean-ctx and these tools seem to end up confusing the agent more than helping. Any saving is irrelevant if the agent decides to work around the tool and makes even more calls than it would otherwise.<p>I don&#x27;t know about cost saving, but if it&#x27;s keeping the context size down I&#x27;ve had a lot better results using subagents to keep a higher order conversation clean for longer.
    • exitb31 minutes ago
      Subagents help with costs too, as they can run on much cheaper models.
  • threecheese1 hour ago
    The docs are missing any examples of <i>what</i> this does, instead showing _how_ it works - and only for the codebase itself, rather than the behavior of the app.<p>What would be useful:<p><pre><code> - examples of text that can be filtered, and why that would be valuable - a data flow diagram of runtime behavior, showing how filtering removes unnecessary context</code></pre>
    • zdkaster18 minutes ago
      Thanks for your feedback. Will put this in place. Meanwhile, please checkout architecture doc and plugin. The plugin doc could a little bit giving insight of what it does.
  • fcanesin51 minutes ago
    I am thinking that a small tool that simply refuses to pass large CLI output to the LLM and warns it to filter the results before reading would achieve this better as the LLM would be forced into thinking and writting the filter itself.
    • zdkaster22 minutes ago
      I simply use LLM to create filter for my personal use. I have already put that specific instruction in the plugin doc in case you are interested.
  • itsdesmond46 minutes ago
    Have terms been established to describe these types of tools? How do I refer to small utilities to perform specific transformations to LLM behavior? CLI filter seems pretty good to describe this tool conversationally but not so much when searching, they some low cardinality keywords.
  • devdoc833 hours ago
    How do you handle the risk of stripping out the exact stack trace the agent needed? That seems like the hard tradeoff here.
    • zdkaster1 hour ago
      It has the strip aggressiveness level suport. You can tune up 3 levels for each template output of your stacktrace using lowfat-filter dsl, shellscript or python.
    • ramon1562 hours ago
      In a perfect world the LLM needs to be very explicit on what it wants to read
      • nixpulvis1 hour ago
        The LLMs already do that themselves with `tail` all the time. There&#x27;s a lot of room for improvement on top of that. Though they usually figure it out after a few tries. I often just paste manual runs errors myself anyway.
    • itsthecourier2 hours ago
      gonna ask the same... do far it&#x27;s has been manually choosing what&#x27;s useful in each command for the agents?
      • zdkaster1 hour ago
        It requires a bit effort in doing long-term adjustment and tuning for your agent common cli tools commands called. kinda need to evolve on day-to-day basis. But, agent itself can be useful to help tuning this.
  • pradeep117741 minutes ago
    Would this have any impact on the response quality from the agent?
    • CharlesW13 minutes ago
      Yes, and never for the better.
      • zdkaster7 minutes ago
        Can you elaborate more on why would it so ?
    • zdkaster16 minutes ago
      Frankly, not at all.