112 comments

  • athrowaway3z 7 hours ago ago

    I'm not sure if HN is being flooded with bots or if the majority of people here nowadays lack a sense of simplicity.

    Anybody looking to do interesting things should instantly ignore any project that mention "persistent memory". It speaks of scope creep or complexity obfuscation.

    If a tool wants to include "persistent memory" it needs to write the 3 sentence explanation of how their scratch/notes files are piped around and what it achieves.

    Not just claim "persistent memory".

    I might even go so far that any project using the terminology "memory" is itself doomed to spend too much time & tokens building scaffolding for abstractions that dont work.

    • aa-jv 7 hours ago ago

      >scaffolding

      The purpose of scaffolding is to create persistent memories.

      >claim "persistent memory"

      Just look at it as a build product.

      >abstractions that don't work

      Look at this as a testing problem.

  • uchibeke 31 minutes ago ago

    Ok. this is interesting. How're you handling guardrails or the agent going rouge or doing something unintended?

  • bensyverson a day ago ago

    It's exciting to see so much experimentation when it comes to form factors for agent orchestration!

    The first question that comes to mind is: how do you think about cost control? Putting a ton in a giant context window is expensive, but unintentionally fanning out 10 agents with a slightly smaller context window is even more expensive. The answer might be "well, don't do that," and that certainly maps to the UNIX analogy, where you're given powerful and possibly destructive tools, and it's up to you to construct the workflow carefully. But I'm curious how you would approach budget when using Axe.

    • jrswab a day ago ago

      > how you would approach budget when using Axe

      Great question and it's something that I've not dig into yet. But I see no problem adding a way to limit LLMs by tokens or something similar to keep the cost for the user within reason.

  • CraigJPerry 16 hours ago ago

    I've had good success with something along these lines but perhaps a bit more raw:

        - claude takes a -p option
        - i have a bunch of tiny scripts, each script is an agent but it only does one tiny task
        - scripts can be composed in a unix pipeline
    
    For example:

        $ git diff --staged | ai-commit-msg | git commit -F -
    
    Where ai-commit-msg is a tiny agent:

        #!/usr/bin/env bash
        # ai-commit-msg: stdin=git diff, stdout=conventional commit message
        # Usage: git diff --staged | ai-commit-msg
        set -euo pipefail
        source "${AGENTS_DIR:-$HOME/.agents}/lib/agent-lib.sh"
        
        SYSTEM=$(load_skills \
            core/unix-output.md \
            core/be-concise.md \
            domain/git.md \
            output/plain-text.md)
        
        SYSTEM+=$'\n\nTask: Given a git diff on stdin, output a single conventional commit message. One line only.'
        
        run_agent "$SYSTEM"
    
    And you can see to keep the agents themselves tiny, they rely on a little lib to load the various skills and optionally apply some guard / post-exec validator. Those validators are usually simple grep or whatever to make sure there were no writes outside a given dir but sometimes they can be to enforce output correctness (always jq in my examples so far...). In theory the guard could be another claude -p call if i needed a semantic instruction.
    • lionkor 8 hours ago ago

      Do you have examples of these commit messages? I have yet to see an AI write a good commit message. At least when compared to good commit messages -- if it just does better than "wip" or "fix stuff" that's not a high bar.

      • CraigJPerry 4 hours ago ago

        My skills/domain/git.md looks like this:

            Context: You are working with Git repositories.
            - Commit messages follow Conventional Commits: type(scope): description
            - Types: feat, fix, docs, refactor, test, chore, ci, perf
            - Subject line max 72 chars, imperative mood, no trailing period
            - Reference issue numbers when relevant
        
        So it produces messages like:

            $ git diff HEAD~1 | bin/ai-commit-msg
            fix(guards): pass input to claude and tighten verdict handling
        • lionkor 4 hours ago ago

          My issue with this kind of message is that it doesn't convey intent well enough. This kind of commit message will always be like "remove check from handleUser" instead of "fix authorization in xyz case". But I assume these are different schools of commits -- I prefer commits which convey WHY, not WHAT, much like source code comments.

    • avoutic 13 hours ago ago

      I was looking at something similar. What does your agent-lib.sh look like?

  • bsoles 5 hours ago ago

    I don't know exactly how these things work, but you may run into copyright/TM issues with Deque's Axe tool: https://www.deque.com/axe/devtools/

  • Multicomp 19 hours ago ago

    This is what I've been trying to get nanobot to do, so thanks for sharing this. I plan to use this for workflow definitions like filesystems.

    I have a known workflow to create an RPG character with steps, lets automate some of the boilerplate by having a succession of LLMs read my preferences about each step and apply their particular pieces of data to that step of the workflow, outputting their result to successive subdirectories, so I can pub/sub the entire process and make edits to intermediate files to tweak results as I desire.

    Now that's cool!

    • jrswab 18 hours ago ago

      Love to hear it! Thanks for checking it out and feel free to put up an issue on GitHub if you have any ideas for improvements.

    • avoutic 13 hours ago ago

      Where is the nanobot approach not working for you?

  • ColonelPhantom 6 hours ago ago

    I like the idea of LLM-calling as an automation-friendly CLI tool! However, putting all my agents in ~/.config feels antithetical to this. My Bash scripts do not live there either, but rather in a separate script collection, or preferably, at their place of use (e.g. in a repo).

    For example, let's say I want to add commit message generation (which I don't think is a great use of LLMs, but it is a practical example) to a repo. I would add the appropriate hook to /.git, but I would also want the agent with its instructions to live inside the repo (perhaps in an `axe` or `agents` directory).

    Can Axe load agents from the current folder? Or can that be added?

  • multidude 7 hours ago ago

    A problem i have is that the agent's mental model of the system im building diverges from reality over time. After discussing that many times and asking it to remember, it becomes frustrating. In the README you say the agents memory persists across runs, would that solve said problem?

    Also, I had to do several refactorings of my agent's constructs and found out that one of them was reinventing stuff producing a plethora of function duplications: e.g. DB connection pools(i had at least four of them simultaneously).

    Would AXE require shared state between chained agents? Could it do it if required?

  • mccoyb 20 hours ago ago

    Cool work!

    Aside but 12 MB is ... large ... for such a thing. For reference, an entire HTTP (including crypto, TLS) stack with LLM API calls in Zig would net you a binary ~400 KB on ReleaseSmall (statically linked).

    You can implement an entire language, compiler, and a VM in another 500 KB (or less!)

    I don't think 12 MB is an impressive badge here?

    • ipython 20 hours ago ago

      it's written in golang. 12MB barely gets you "hello world" since everything is statically linked. With that in mind, the size is impressive.

      • nuxi 18 hours ago ago

        golang doesn't statically link everything by default (anymore?), this is from FreeBSD:

            $ ls -l axe
            -rwxr-xr-x  1 root wheel 12830781 Mar 12 22:38 axe*
            
            $ ldd axe
            axe:
                libthr.so.3 => /lib/libthr.so.3 (0xe2e74a1d000)
                libc.so.7 => /lib/libc.so.7 (0xe2e74c27000)
                libsys.so.7 => /lib/libsys.so.7 (0xe2e75de6000)
                [vdso] (0xe2e7366b000)
      • mccoyb 20 hours ago ago

        I know off topic, but is that mostly coming from the Go runtime (how large is that about?)

      • emmanueloga_ 14 hours ago ago

        The excessive size of Go binaries is a common complain. I last recall seeing a related discussion on Lobsters [1]. Who knows, maybe the binary could be shrunk a bit? IMHO 12mb binary size is not that big of a deal.

        --

        1: https://lobste.rs/s/tzyslr/reducing_size_go_binaries_by_up_7...

    • nine_k 18 hours ago ago

      12 MB is not large; it's like 3 minutes of watching YouTube. Actual RAM consumption is only very weakly correlated to the binary size, and that's what matters.

      • mccoyb 17 hours ago ago

        It is large compared to a stripped Zig ReleaseSmall binary with no runtime. With agents, one can take this repo, and create an extremely small binary.

        To your point, why even advertise the number? If that particular number is completely irrelevant in practical usage, why mention it? It seems like the point is to impress, hence my response.

  • paymenthunter01 6 hours ago ago

    Nice approach treating LLM agents like Unix programs. The TOML config per agent is clean. I've been working on something in a similar vein for invoice processing — small focused agents that do one thing well. Curious how you handle retries when an upstream LLM provider has intermittent failures mid-pipeline?

  • sameergh 4 hours ago ago

    Interesting approach to slimming down the framework layer. One thing I've been thinking about as agents get lighter and faster the attack surface for prompt injection and behavioral drift grows. Are you thinking about any security primitives at this layer?

  • reacharavindh a day ago ago

    Reminded me of this from my bookmarks.

    https://github.com/chr15m/runprompt

  • uhx 13 hours ago ago

    > - Path-sandboxed file ops. Keeps agents locked to a working directory

    How is it supposed to work, if agent can simply run "cat" command instead of using skill for file read/write/etc?

    • linkregister 12 hours ago ago

      chroot

      • uhx 5 hours ago ago

        you cant be serious

        chroot is not a security tool and never has been

  • hamandcheese a day ago ago

    > Each agent is a TOML config with a focused job. Such as code reviewer, log analyzer, commit message writer. You can run them from the CLI, pipe data in, get results out.

    I'm a bit skeptical of this approach, at least for building general purpose coding agents. If the agents were humans, it would be absolutely insane to assign such fine-grained responsibilities to multiple people and ask them to collaborate.

    • Zondartul 21 hours ago ago

      It is easier to trust in the correctness and reliability of an LLM when you treat it as a glorified NLP function with a very narrow scope and limited responsibilities. That is to say, LLMs rarely mess up specific low level instructions, compared to open-ended, long-horizon tasks.

    • hiccuphippo a day ago ago

      Clankers are not humans.

      • cweagans 21 hours ago ago

        This is the second time I've seen somebody use the word "clankers" in the last couple days to refer to AI. Is that a thing now? Where'd that come from?

        Gonna be honest, it has taken away from the message both times I've seen it. It feels a bit like you're LARPing your favorite humans vs robots tv show.

        • a96 3 hours ago ago

          It mostly sounds like people who are desperate to use racist slurs and have finally found a(nother) public outlet for it.

        • MisterTea 18 hours ago ago

          I've been hearing the term in IRC and discords for about a year or more already.

          I get that it can seem childish but when you compare that to the indolent people who are demanding AI, it cancels out.

        • anigbrowl 20 hours ago ago

          It is a thing, i've been hearing it for at least 6 months. There's a lot of people who really hate AI and want nothing to do with it.

        • jrop 12 hours ago ago

          We have been rewatching Clone Wars as a family, and I, for one, find this terminology hilarious given the use of it in the series towards the separatist droids.

        • JadeNB 20 hours ago ago

          You can find the answers to both of your questions on Wikipedia: https://en.wikipedia.org/wiki/Clanker

  • armcat a day ago ago

    Great work! Kind of reminds me of ell (https://github.com/MadcowD/ell), which had this concept of treating prompts as small individual programs and you can pipe them together. Not sure if that particular tool is being maintained anymore, but your Axe tool caters to that audience of small short-lived composable AI agents.

    • jrswab a day ago ago

      Thanks for checking it out! And yes the tool is indeed catering to that crowed. It's a need I have and thought others could use it as well.

  • rellfy 14 hours ago ago

    This is a great concept. I fully agree with small, focused and composable design. I've been exploring a similar direction at asterai.io but focusing more on the tool layer than agent layer, with portable WASM components you write once in any language and compose together.

    I currently use Claude web with an MCP component for my workflows but axe looks like it could be a nicer and quicker way to work with the tools I have.

  • swaminarayan a day ago ago

    Axe treats LLM agents like Unix programs—small, composable, version-controllable. Are we finally doing AI the Unix way?

    • jrswab a day ago ago

      That's my dream.

      • kelvinn 20 hours ago ago

        Dream, or _pipe_dream?

  • Orchestrion a day ago ago

    The Unix-style framing resonates a lot.

    One thing I’ve noticed when experimenting with agent pipelines is that the “single-purpose agent” model tends to make both cost control and reasoning easier. Each agent only gets the context it actually needs, which keeps prompts small and behavior easier to predict.

    Where it gets interesting is when the pipeline starts producing artifacts instead of just text — reports, logs, generated files, etc. At that point the workflow starts looking less like a chat session and more like a series of composable steps producing intermediate outputs.

    That’s where the Unix analogy feels particularly strong: small tools, small contexts, and explicit data flowing between steps.

    Curious if you’ve experimented with workflows where agents produce artifacts (files, reports, etc.) rather than just returning text.

    • jrswab a day ago ago

      > Curious if you’ve experimented with workflows where agents produce artifacts (files, reports, etc.) rather than just returning text.

      Yes! I run a ghost blog (a blog that does not use my name) and have axe produce artifacts. The flow is: I send the first agent a text file of my brain dump (normally spoken) which it then searched my note system for related notes, saves it to a file, then passes everything to agent 2 which make that dump a blog draft and saves it to a file, agent 3 then takes that blog draft and cleans it up to how I like it and saves it. from that point I have to take it to publish after reading and making edits myself.

      • Orchestrion a day ago ago

        That’s a really nice pipeline. The “save to file between steps” pattern seems to appear very naturally once agents start doing multi-stage work.

        One thing I’ve noticed when experimenting with similar workflows is that once artifacts start accumulating (drafts, logs, intermediate reports, etc.), you start running into small infrastructure questions pretty quickly:

        – where intermediate artifacts live – how later agents reference them – how long they should persist – whether they’re part of the workflow state or just temporary outputs

        For small pipelines the filesystem works great, but as the number of steps grows it starts to look more like a little dataflow system than just a sequence of prompts.

        Do you usually just keep everything as local files, or have you experimented with something like object storage or a shared artifact layer between agents?

        • 3371 a day ago ago

          In my prompting framework I have a workflow that the agent would scan all the artifacts in my closed/ folder and create a yyyymmdd-archive artifact which records all artifact name and their summaries, then just delete them. Since the framework is deeply integrated with git, the artifact can be digged up from git history via the recorded names.

  • punkpeye a day ago ago

    What are some things you've automated using Axe?

    • jrswab a day ago ago

      I have a few flows I'm using it for and have a growing list of things I want to automate. Basically, if there is a process that takes a human to do (like creating drafts or running scripts with variable data) I make axe do it.

      1. I have a flow where I pass in a youtube video and the first agent calls an api to get the transcript, the second converts that transcript into a blog-like post, and the third uploads that blog-like post to instapaper.

      2. Blog post drafting: I talk into my phone's notes app which gets synced via syncthing. The first agent takes that text and looks for notes in my note system for related information, than passes my raw text and notes into the next to draft a blog post, a third agent takes out all the em dashes because I'm tired of taking them out. Once that's all done then I read and edit it to be exactly what I want.

      • _ache_ 17 hours ago ago

        Aren't your Hackernews answers automatised?

  • CuriouslyC 14 hours ago ago

    Why not just run your typical claude/codex/pi/etc with a prompt as the command line/input?

  • anotherevan 16 hours ago ago

    I really like this idea. Gonna need an "Awesome Axe" page that collects agents.

    One idea I'm thinking of is, after an agent has been in use for a while, and built up and understanding of the task, would be something like, "Write a Python script to replace this agent."

    I could imagine this would work with agents that are processing log files or other semi-structured data for example.

  • boznz 20 hours ago ago

    I will give it a try, I like the idea of being closer to the metal.

    A Proper self-contained, self improving AI@home with the AI as the OS is my end goal, I have a nice high spec but older laptop I am currently using as a sacrificial pawn experimenting with this, but there is a big gap in my knowledge and I'm still working through GPT2 level stuff, also resources are tight when you're retired. I guess someone will get there this year the way things are going, but I'm happy to have fun until then.

    • jrswab 18 hours ago ago

      I'm excited to see how this plays out. Keep me updated on x(twitter)

  • snadal 18 hours ago ago

    Nice! I’ll try this soon, and I’m afraid I’ll end up using it a lot.

    @jrswab, do you think it would be feasible to limit outgoing connections to a whitelist of domains, URLs, or IP addresses?

    I’d like to automate some of my email, calendar, or timesheet tasks, but I’m concerned that a prompt injection could end up exfiltrating or deleting data. In fact, that’s the main reason why I’m not using Openclaw or similar projects with real data yet.

    • jrswab 18 hours ago ago

      Yes, I think it will be quite trivial to make a output allow list. That's a great idea!

  • btbuildem a day ago ago

    I really like seeing the movement away from MCP across the various projects. Here the composition of the new with the old (the ol' unix composability) seems to um very nicely.

    OP, what have you used this on in practice, with success?

    • jrswab a day ago ago

      I've shared a few flows I use a lot right now in some other comments.

  • zahlman 15 hours ago ago

    > 12MB binary, two dependencies. no framework, no Python, no Docker (unless you want it)

    Does it do anything CPU-bound on its own, such that it benefits significantly from being a compiled (Go) executable? I actually like having things like this done in Python, since there's more potential to hack around with them.

  • bmurphy1976 18 hours ago ago

    This is interesting. I'd be curious to see a bunch more working examples. Personally I like the chat model because I iterate heavily on planning specs and have a lot of back and forth before implementation.

    I could see using this once the plan is defined and switching back to chat while iterating on post-implementation cleanup and refactoring.

  • hmokiguess 18 hours ago ago

    looks really cool, how does it differ from something like running claude headless with `claude -p`?

    • jrswab 18 hours ago ago

      You don't have all the Claude Code overhead. It only gets what you give it.

      • hmokiguess 16 hours ago ago

        what do you mean by that, not sure I understand

  • creehappus a day ago ago

    I really like the project, although I would prefer a json5 config, not toml, which I find annoying to reason about.

  • mark_l_watson a day ago ago

    If I have time I want to try this today because it matches my LLM-based work style, especially when I am using local models: I have command line tools that help me generated large one-shot prompts that I just paste into an Ollama repl - then I check back in a while.

    It looks like Axe works the same way: fire off a request and later look at the results.

    • jrswab a day ago ago

      Exactly! I also made it to chain them together so each agent only gets what it needs to complete its one specific job.

  • stpedgwdgfhgdd 20 hours ago ago

    “ MCP support. Axe can connect any MCP server to your agents”

    I just don't see this in the readme… It is not in the Features section at least.

    Anyway, i have MCP server that can post inline comments into Gitlab MR. Would like to try to hook it up to the code reviewer.

    • jrswab 18 hours ago ago

      Sorry, I need to update that. I just added MCP support a day or so ago.

  • 0xbadcafebee a day ago ago

    Nice. There's another one also written in Go (https://github.com/tbckr/sgpt), but i'll try this one too. I love that open source creates multiple solutions and you can choose the one that fits you best

    • jrswab a day ago ago

      Thanks! Looks like sgpt is a cool tool. Axe is oriented around automation rather than interaction like sgpt. Instead of asking something you define it once and hook it into a workflow.

  • TSiege a day ago ago

    This looks really interesting. I'm curious to learn more about security around this project. There's a small section, but I wonder if there's more to be aware of like prompt injection

    • jrswab a day ago ago

      I'm happy you brought this up. I've been thinking about this and working on a plan to make it as solid as possible. For now, the best way would be to run each agent in a docker container (there is an example Dockerfile in the repo) so any destructive actions will be contained to the container.

      However, this does not help if a person gives access to something like Google Calendar and a prompt tells the LLM to be destructive against that account.

  • dumbfounder a day ago ago

    Now what we need is a chat interface to develop these config files.

  • jedbrooke a day ago ago

    looks interesting, I agree that chat is not always the right interface for agents, and a LLM boosted cli sometimes feels like the right paradigm (especially for dev related tasks).

    how would you say this compares to similar tools like google’s dotprompt? https://google.github.io/dotprompt/getting-started/

    • jrswab a day ago ago

      I've not heard of that before but after looking into it I think they are solving different problems.

      Dotprompt is a promt template that lives inside app code to standardize how we write prompts.

      Axe is an execution runtime you run from the shell. There's no code to write (unless you want the LLM to run a script). You define the agent in TOML and run with `axe run <agent name> and pipe data into it.

  • eikenberry 19 hours ago ago

    Does it support the use of other OpenAI API compatible services like Openrouter?

    • jrswab 18 hours ago ago

      Yes, I've used it with on OpenAI compatible API from an internal LLM at my job.

  • nthypes a day ago ago

    There is no "session" concept?

    • jrswab a day ago ago

      Not yet but is on the short list to implement. What would you need from a session for single purpose agents? I'm seeing it more as a way to track what's been done.

  • aa-jv 7 hours ago ago

    This is exactly what I have wanted for a while, so thank you very much!

    Disclaimer: I haven't dug into axe enough yet, just going on first impressions.

    >No daemon, no GUI.

    I love the world we developers live in right now. ;)

    >What would you automate first?

    In a sense, I have wanted to be able to just add AI to a repo, and treat it like the junior developer it is. Its okay if the junior developer will do literally any stupid thing I tell it to do, because I won't tell it to do stupid things.

    So, exactly: refactor this code, implement a shim, produce docs for <blah>, construct a build harness, write unit tests, produce a build, diff these codebases, implement this API, do all this on your own branch, and build and test things so that I can review the PR over coffee.

    Essentially, three word commands which will encourage the AI to produce better software. Through my repo, so I can just review through the repo.

    Okay, that's how I hope things work, now off to actually dig in to axe and give it a try on a few things, thanks very much again ..

  • a1o a day ago ago

    Is the axe drawing actually a hammer?

    • shitloadofbooks 16 hours ago ago

      Assuming the cutting face is down, the handle is on "backwards" too (the swell at the bottom normally goes the other way).

    • hundchenkatze a day ago ago

      Looks like an axe to me. The cutting edge of the axe is embedded into the surface. And the handle attaches near the back of the head like an axe. Most hammers I've seen the handle attaches in the middle.

      • jrswab a day ago ago

        hahaha; this is what I was going for.

        • jjshoe a day ago ago

          Just FYI, your handle is on backwards.

    • devmor a day ago ago

      I believe it's actually trying to render a splitting maul, which people often confuse for an axe.

      • daveguy 20 hours ago ago

        Splitting mauls have a wider angle to help separate wood pieces and a beefier back to use with/as a sledgehammer or splitting wedge. What's rendered is definitely more like an axe than a splitting maul.

        • devmor 20 hours ago ago

          What you're describing is exactly what I see in the image.

          • daveguy 18 hours ago ago

            Fair enough. Hard to tell one way or another with all the "action" marks.

    • parineum a day ago ago
    • fortyseven a day ago ago

      Sure is. How weird.

  • saberience a day ago ago

    I’m having trouble understanding when/where I would use this? Is this a replacement for pi or codex?

    • jrswab a day ago ago

      This is not a replacement for either in my opinion. Apps like codex and pi are interactive but ax is non-interactive. You define an agent once and the trigger it however you please.

  • let_rec a day ago ago

    Is there Gemini support?

    • jrswab a day ago ago

      Not yet but it will be easy to add. If you need it can you create an issue in GitHub? I should be able to get that in today.

  • zrail a day ago ago

    Looks pretty interesting!

    Tiny note: there's a typo in your repo description.

    • jrswab a day ago ago

      nooo! lol but thanks, I'll go hunt it down.

  • koakuma-chan 6 hours ago ago
  • testingtrade 18 hours ago ago

    amazing work my friend

  • ufish235 a day ago ago

    Why is this comment an ad?

    • ForceBru a day ago ago

      This is the OP promoting their project — makes sense to me

    • stronglikedan a day ago ago

      How can it be an ad if it's not selling anything? Seems like a proud parent touting their child to me.

      • jrswab a day ago ago

        I am pretty proud of this one :)

    • zrail a day ago ago

      It's a Show HN. That's the point.

    • lovich a day ago ago

      Because they had an AI write it. Their other comments seem organic but the one you’re responding to does not

  • Lliora a day ago ago

    12MB for an "AI framework replacement"? That's either brilliant compression or someone's redefining "framework" to mean "toy model that works on my laptop." Show me the benchmarks on actual workloads, not the readme poetry.

    • jrswab a day ago ago

      This is not an LLM but a Binary to run LLMs as single purpose agents that can chain together.

      • mrweasel a day ago ago

        Yeah I was disappointed by that too.

    • hrmtst93837 19 hours ago ago

      Putting heavy AI workloads in a 12MB binary means you either make savage cuts on model support or you lock users to strange minimal formats. If you care about ops, eventually you hit edge cases where the "just works" story collapses and you end up debugging missing layers or janky hardware support. If the goal is to experiment locally or run demos, 12MB is fine but pretending it fits broader deployment is a stretch unless they're pulling some wild tricks under the hood.