FreeHand

(microsoft.github.io)

107 points | by jhack 7 hours ago

24 comments

  • dawdler-purge 1 minute ago
    I wonder if I use this with my ChatGPT subscriptions, will I get banned?
  • padolsey 2 hours ago
    It is a pleasant sort of 180, that we obsessed with MCP and other myriad harness techniques only to discover that in the end it is the primacy of the unix shell that comes most naturally to LLMs, and so the only thing we should obsess with now is how to appropriately sandbox that latent competency (to be clear: nobody ever said you had to let an agent legit run bash on an actual system, only that it's how they like to 'talk'!!). Unix already solved how to let things represent state and hierarchical memory/context (files and dirs lol), advertise capabilities (yes, it's just --help), talk to other things (stdin/out, pipes, sockets), etc. It was always right in front of us. It should be humbling us that we keep stepping over ancestors' footsteps.
    • traceroute66 12 minutes ago
      > in the end it is the primacy of the unix shell that comes most naturally to LLMs

      Given that LLM's learnt by scraping the likes of Stack Overflow, I'm not sure why it comes as such a surprise that shell wizardry is the path of least resistance ?

    • xg15 1 hour ago
      > (to be clear: nobody ever said you had to let an agent legit run bash on an actual system, only that it's how they like to 'talk'!!)

      Bash and Python, apparently.

      The irony is that there would have to go a lot of effort and complexity into a "harness" that looks like a bash shell with python installed from the inside but is really something completely different on the outside.

      It would be much easier with a model defaulting to e.g. JavaScript or TypeScript instead, as JS runtimes are already built with sandboxing and arbitrary host environments in mind.

  • ohaodha 1 hour ago
    For those interested in higher model autonomy, Autolith [1] is a Lisp-based harness that allows the agent to modify the harness as it's running. I personally haven't experimented with it yet but the idea is certainly cool.

    [1]: https://autolith.rocks/

    • 7bit 1 hour ago
      [dead]
  • carlosneves 3 hours ago
    Why wasn't mini-swe-agent included in every bar chart result?

    I have a feeling it might not have been given due credit, as it's the harness most similar to the one described here.

    Confusingly, your legend for codex has the lines tilted in one direction, while the lines in the bars tilt at a different angle.

    Why so much gray scale? Just makes it harder to distinguish. Using colors would probably make it more readily understandable.

  • virtualritz 48 minutes ago
    Whatever model I use seems to prefer writing python to modify source (if no tool use instructions are provided).

    Surely that can't use less tokens than something like ast-grep?

    What am I missing?

    • thenthenthen 32 minutes ago
      How can these researchers access blocked models
  • childintime 4 hours ago
    This seems major. The source: https://github.com/microsoft/FreeHand.

    No Windows version, what?!

    • arcanemachiner 4 hours ago
      It's also related to SkillOpt, another "self-improving" concept that I thought was pretty neat:

      https://microsoft.github.io/SkillOpt/

    • AyanamiKaine 3 hours ago
      probably because it uses bash. I wonder why they didnt use powershell? As it also exists for linux.
    • sorrywhat 30 minutes ago
      "It's a 200 word prompt!"

      Meanwhile the repo has an install.sh, 10 READMEs, src/ with 20 python scripts, 100 tests and a docs/ with a few dozen .md files.

    • lmpdev 1 hour ago
      Welcome to Microsoft post ~2016
  • AnonC 1 hour ago
    This looks interesting, though my knowledge on it is quite limited at this point. It says, “the model builds what the task needs”. Wouldn’t this be susceptible to hallucinations, wrong tool creation, etc.? How does one verify and correct it? With the myriads of tools with the current harnesses, we bring in predictable and deterministic results with some human effort in order to keep boundaries and controls on the probabilistic results of a model.
    • sorrywhat 37 minutes ago
      I don't think there's a ton of value in these tools anyway. I've noticed that agy/cc/codex, running on Windows at least, the models tend to ignore tools in favor of single-use scripts. I know that because every 5th message on Windows is "Whoops, I mangled the PowerShell quoting!" followed by "Whoops, I retried it in bash, but it ran in Git Bash and converted half the codebase from CRLF to LF!"
  • unglaublich 1 hour ago
    Nice, I just had a similar plain 'harness' mixed with unkernel.dev. Agentic chat interface left, terminal right. Agentic chat has `bash` tool call, and gets its own context from file on `unkernel`. Really powerful local 'computer use' setup!
  • leobg 3 hours ago
    > Freehand, a general-purpose harness built on one rule: give the model a shell, its own memory, and a meter—and let it decide everything else.

    Wasn't that the basic insight that Zechner had when making Pi? AFAIK his was even more radical, because he also chiseled away memory, saying the model is going to be smart enough to write .md files.

    • richardcrng 3 hours ago
      My impression from a skim is that Freehand's notion of modifiable memory is "let the agent edit the transcript that will be fed in the next turn", i.e. prioritising model autonomy over cache hits.

      (The harness still lets the model write other files via bash, and I don't know if conversation history modification is something Zechner has done or is doing with Pi.)

      I didn't see any discussion of the cache miss implications in my skim, but the charts suggest it still works out cheaper per task. (I can believe this; their examples show dramatically fewer turns.)

      EDIT: found in the full paper, "Unedited prefixes retain standard provider prompt-cache hits automatically, while editing trades a partial cache rebuild against permanently lower context volume on all subsequent turns."

    • PaulKeeble 3 hours ago
      Its repeatedly proved to be one of the better approaches when harnesses are tested. Sometimes it wins, somethings its in the top few depending on the model and task but its never bad it seems to be a capable approach.

      It makes me nervous though because there is nothing stopping the AI doing whatever it wants and if it makes a mistake on an rm -Rf there is going to be no prompt for you to stop it.

      Given the advances in the billion-context plugin I imagine memory advances are largely going to come for Pi at some point. I have been fine managing context and burning tokens rereading files but I guess at some point it would be nice for complete project knowledge to just work including my entire history with it.

      • threatofrain 3 hours ago
        > It makes me nervous though because there is nothing stopping the AI doing whatever it wants and if it makes a mistake on an rm -Rf there is going to be no prompt for you to stop it.

        Then constrain the risk by putting it on a test instance.

      • dist-epoch 2 hours ago
        This harness is not targeted at people who still approves their agent tool calls or who run the agent on their main environment.
    • retinaros 3 hours ago
      yeah basically it is what everyone did just calling the API and give a shell. Memory even is a harness problem in itself as model capabilities evolve.
  • bananaflag 2 hours ago
    It had already been predicted that the harness will be consumed into the model.
  • throwa356262 3 hours ago
    Given that this improves weaker models more, why not test it on really small models like Qwen 35B and alike?

    The authors of this work are all Asian, some from universities in China. I am sure they have heard of qwen before.

    • richardcrng 3 hours ago
      It's the other way around: stronger models benefit from their approach.

      There's some charts showings this:

      - Sonnet 5.5 and GPT-6-Sol are better in first-party harnesses, worse in Freehand

      - Opus 5.5 and GPT-6-Astra are better in Freehand, worse in first-party harnesses

      Here's an intuition for that: weaker models need the help and constraints of an opinionated harness, but stronger models can figure it all out and benefit from being unconstrained.

    • origini 2 hours ago
      The article itself states, that the Frontiermodels are limited by the harness (therefore FreeHand helps to free it) while the others do not
    • tiagod 3 hours ago
      [dead]
  • skrebbel 3 hours ago
    The thing I hate the most about the future is how we simply gave up on writing. This page is a good example. It is (to me) needlessly hard to parse. It’s not terrible AI slop or anything but it still makes me feel slightly stupid in exactly the way Claude keeps doing.
    • origini 2 hours ago
      I don't have the feeling that Claude is hard to read, but what I find very irritating or weird, that apparently I recognize Claudes writing.

      I'm vibing a lot right now with Claude and few words/sentences of that page feel exactly the same and the weirdness of it is, it is like reading text from the same person but they are not connected with each other at all.

    • gobdovan 3 hours ago
      Any section you find hard to parse in particular? Only things that sound LLM-level bad are 'The Bitter Lesson *holds* that' instead of simply 'says that' and 'For weaker models these presets are a crutch; for frontier models they become a cage'.
      • skrebbel 1 hour ago
        Hm yeah hard to point out. Again I'm not saying this is badly done AI slop. But eg

        > It also outperforms OpenCode, Pi, DeepSeek Harness, and a bash-only harness that still fixes its workflow and timeouts, while with lower-tier models the first-party harnesses win again.

        I had to re-read this sentence twice. Maybe I'm just an idiot. But I used to not feel like such an idiot all the time a couple years ago. There's something weird going on here and I can't really figure it out. Like, "it outperforms X, and $DETAIL" is a present tense thing, and objective statement of fact. But "while with lower-tier models the first-party harnesses win again" suggests this is more like the report of a benchmark they just ran. It's not wrong grammatically, but it's this weird subtle mixup of state/eventuality that trips me up. I lack the language-fu to even describe my complaint properly.

        I can't imagine anyone saying this out loud in a classroom. It'd become "We benchmarked it against OpenCode, Pi, DeepSeek Harness and $DETAIL, and it outperformed all of those. But when we used a lower-tier model, those harnesses won again".

        It's just, super unnatural. And this page is full of stuff like this.

        (and then obviously the super detailed bash thing seems out of place, like AIs do all the time. I think a human would relegate that to a footnote or skip it entirely)

  • zith 4 hours ago
    It makes sense that this is the way things are going as models get more capable.

    As an aside, are people not embarrassed by putting put work with such tired LLMisms?

    "Four cases, up close", "the whole PDF, or the lines that matter", "same task, one prompt apart". My eyes glaze over and I automatically lose a lot of interest when I run across such prose.

    • arcanemachiner 4 hours ago
      Well, the authors of the paper are all Chinese. This is one of the few situations that I consider vibe-slopped prose to be acceptable.

      But yeah, not a great look for a product.

  • tim-projects 2 hours ago
    I don't want this. I don't want to become 110% dependent on a frontier model.

    So I'll keep my complicated harness that keeps working when the frontier models don't, thanks very much.

  • small_model 1 hour ago
    Interesting idea, the models are now intelligent enough that pesky human rules constrain it, can see where this is going.

    Why even have a shell written by humans, straight to sys calls.

    Though it doesn't work with subscriptions (Claude/Neon etc) it seems.

  • vrganj 2 hours ago
    Only benched with closed American models. How's it fare with Deepseek, GLM, Kimi? Are those "frontier" enough?
  • thatsabadlook 1 hour ago
    I have never engaged with a webpage for this long of a time to come away with zero understanding of what its purpose is. Even seo spam can be understood.

    The charts are crazy confusing. the premise lacks any meaningful details. Yet after all of this I still find the claims, that I think I understand, dubious.

    What a mess.

  • QuantumNomad_ 2 hours ago
    Not to be confused with Macromedia FreeHand, which was also spelled and capitalized in the exact same way :p

    https://www.adobe.com/mena_en/products/freehand/

    Edit: Capitalizing that way with uppercase H is not how Microsoft themselves write it on the linked page. That was the work of the HN story submitter it seems.

    Edit 2: However, the GitHub repo name does use capital H in the repo name; https://github.com/microsoft/FreeHand

  • preommr 1 hour ago
    maybe hot take: never in history have benchmarks been more abused.

    Benchmarks were always kind of misleading (like webservers and db being bottleneck). But AI is so much worse.

    These numbers mean absolutely nothing, I basically have no context to interpret them, and the effort to contextualize takes so much effort, and everything moves so fast that it's not worth the effort.

  • dools 54 minutes ago
    So what I take away from this is that you can save a shit tonne of money by having a good harness
  • gsoff 2 hours ago
    terrible ai slop...
  • varispeed 3 hours ago
    That looks like AI slop and sounds like written by Claude.
  • georgemcbay 4 hours ago
    Oh, are they bringing back [Aldus|Macromedia|Adobe] Freehand...?

    Nope. Just yet another AI project that doesn't mind a name collision.

    At this point I have to believe they are doing it on purpose just to mess with us.

    • arcanemachiner 4 hours ago
      You're upset that they reused the name of a graphic design application that hasn't been updated in almost two decades?
      • Bengalilol 3 hours ago
        Upset, no. But I had the same reaction.
      • speps 3 hours ago
        I'm not too upset and I also thought it was the old software. I'm upset because it's an awful name for an AI harness...
      • georgemcbay 3 hours ago
        Not upset, just mildly annoyed at how often AI projects seem to name collide other existing things.
    • rcoveson 3 hours ago
      "George"? As in "George {Washington|Foreman|Clooney}"? Were your parents messing with you?
  • aktenlage 2 hours ago
    [dead]