# Agent Gadgets


I’ve been thinking lately about how to improve agentic coordination on my team.
We have over a dozen engineers working on as many different workstreams. As a
tech lead, keeping track of all that state has gotten increasingly difficult --
the job always involved a degree of strategic plate spinning, but the amount of
raw output from my team has grown multiplicatively with agents, increasing
coordination overhead. It’s clear there’s a ton of work ahead to recast
processes to support engineers collaborating with agents at scale. One useful
component I’ve stumbled into recently is what I’ve been calling “agent gadgets”.

By way of illustration: I built a local tool for myself a few weeks back which
was an extension of the “Ask a Question” tool that most harnesses have built
in.[^question-claude] My version is better in that it supports way more
questions: It’s a tool that allows an agent to ask you a _ton_ of questions all
at once, surrounded by markdown. The questions can show up in tables with
suggested responses, multiple choice, free response, and so on. I’ve found this
pattern transformative for PR triage and for having an agent clarify many
questions about a design with me in a single pass. I call this
blob-of-markdown-and-form-inputs a “canvas”, and it’s made me noticeably more
productive in collaborating with agents. After using this for a few weeks, I
found myself sharing this idea with coworkers in meetings, and then thought:
“oh, I should package this pattern to share with everyone on my team”.

This pattern of “useful affordance” to “we should share this” has come up
frequently as we’ve been building more with agents. There are _so_ many small
workflow improvements being creatively designed, and when combined, these
improvements do noticeably increase your velocity as an engineer. Software is
[incredibly flexible](/blog/2026/11/02/Interpolative-Software/) now, so it’s
possible -- and indeed prudent -- to create hyper-personalized interfaces.

### Gadgets vs. Tools

In parallel, I’ve been quite interested in what’s been happening in
[the mathocalypse](https://scottaaronson.blog/?p=10169) befalling modern
mathematics.[^math] I’ve been doing the most novice armchair sifting through
some of the recent math and theoretical computer science papers, and one piece
of terminology I’ve loved from these papers is the use of the word
[“gadget”](<https://en.wikipedia.org/wiki/Gadget_(computer_science)>).[^1] A
couple of quotes as flavor text on the use of gadgets in theoretical computer
science:

> To describe the reduction, we follow a standard strategy of decomposing the
> output graph $G_\Phi$ into gadgets, which are subgraphs that correspond to
> various components of the input formula $\Phi$. Decomposing reductions into
> separate gadgets is not only helpful for understanding existing reductions and
> proving them correct, but for designing new NP-hardness reductions.
>
> -- Jeff Erickson,
> [_Algorithms_](https://jeffe.cs.illinois.edu/teaching/algorithms/book/12-nphard.pdf)

---

> A “gadget” is a finite combinatorial structure which translates a given
> constraint of one optimization problem into a set of constraints of a second
> optimization problem.
>
> -- Trevisan, Sorkin, Sudan, and Williamson,
> [“Gadgets, Approximation, and Linear Programming”](https://doi.org/10.1137/S0097539797328847)

In my mind, the original meaning of gadget has this implication of something
unwieldy, yet definitively “fit for purpose”, suited for a very specific niche
problem. If you have the specific problem a gadget was designed for, it solves
it well. Gadgets are unashamedly not intended to be general-purpose, polished,
or elegant.

Contrast “gadgets” with “tools”: A tool is something that’s comparatively
generic. You can give anyone a hammer and they will be able to do hammer-shaped
tasks. A gadget is something that is specially crafted. Gadgets fit your exact
workflow, in a way that would be unergonomic for others, but is extremely well
suited to their intended purpose.

A “gadget” lets you ship a bit of a hack, but in a way where the hack is
actually [“worse is better”](https://en.wikipedia.org/wiki/Worse_is_better). If
the gadget is legitimately useful, it gets increasingly formalized and pared
into the shape of a tool. If it’s only marginally useful, it can stay in its
somewhat hacky state and can be discarded when no longer needed.

### Agents Benefit a Lot from Gadgets

Gadgets are effectively compressed “figuring stuff out”. Agents are very good at
figuring stuff out, but specialization and stored procedures are a thing for a
reason. Once you figure out something that works well, cache it for future use.
This could be in a script that lets you skip steps, a UI that compresses
information in a particularly intuitive way, or a skill that bootstraps the
agent’s context window with salient information that wouldn’t otherwise be so
neatly organized.

The human interface over all this is just being able to talk about the thing you
compressed in plain English. When your agents have good gadgets for operating in
the environment you’ve put them in, they’re much faster and more effective.

For example, we recently changed a nitpicky detail of how PRs are created at my
company, in a way that disrupted uploading images to PRs. I hit this issue, and
had my agent develop a workaround. Later, a coworker asked if I’d been able to
solve this. I said that I had, and checked my PR-image-upload gadget into our
codebase so that everyone else’s agents could use it.

To some extent, yes, this is just rediscovering
[“common scripts”](/blog/2023/10/29/Avoid-Load-bearing-Shell-Scripts/) from
first principles. But I think the difference is this: with common scripts, you
needed to design for humans. With agents, you can build agent-to-human or
agent-to-agent gadgets that the humans operating the codebase mostly don’t need
to be aware exist. Gadgets can be hackier and more disposable than a human would
be comfortable with, because an agent has much more patience to execute arcane
script incantations than a human does.[^cli_design]

These gadgets fall loosely into a few different categories:

- **Local capabilities**: a script or improvement to take a local action (like
  the PR-image-upload workaround).
- **UX affordances**: a better UI for interacting with agents -- “canvases” are
  a good example of this.
- **Agent-to-agent affordances**: things like giving agents a message board or a
  mailbox.
- **Infrastructure capabilities**: such as giving agents ways of spinning up and
  managing compute, scripts for managing high-fidelity test environments, etc.

### Sharing Gadgets

There’s so much low-hanging fruit in sharing these gadgets, because agent
harnesses are, out of the box, fairly opinionated and restricted tools. They
have opinions on how you should interact. They restrict what sort of inputs,
outputs, and UX are easily afforded to you. But you can build
[meta-harnesses](/blog/2026/11/11/Herdr-and-the-Meta-harness/) around your
agents, and those meta-harnesses can have essentially arbitrary UI affordances.

My team and I have been working on a coordination layer that lets us share state
between people and between agents -- not the
[Slack-like systems](https://block.xyz/inside/introducing-buzz-where-humans-and-agents-work-together)
that have become memetic recently, but closer to [Linear](https://linear.app),
where you’re storing state as a graph and doing operations on that graph. Once
we created that shared state and UX layer, adding gadgets onto it became quite
easy.

This has begun a virtuous cycle. For example, multi-agent, multi-round review is
a really useful way of doing PR review. One of my coworkers is passionate about
this style of review and is building tooling for it. I’m not as passionate about
this approach (I just don’t have the interest to build a really good one myself)
but I think it’s neat, and if I use his shared one, I get that utility for
“free”.

In a similar way that I’ve been a big proponent of using agents to build
hyper-personalized software to increase your own personal velocity, I think
figuring out very low-friction ways of sharing these gadgets is a high-leverage
thing to do.

[^1]:
    In the 2010s, “gadget” became synonymous with “tech device”. Those tech
    devices became, over time, undifferentiated glass rectangles. Thus, gadget
    came to have the implication of an eye-roll-inducing iteration on a stale
    format -- but I think it’s a great word worth reclaiming.

[^cli_design]:
    I cut my teeth early in my career in CLI design/UX, and making _good_ CLI
    tools that humans actually want to use is not easy.

[^math]:
    In many ways, the description of mathematicians’ experience of the impact of
    AI on their field mirrors what happened in software engineering over the
    past 18-24 months.

[^question-claude]:
    For example,
    [here](https://code.claude.com/docs/en/tools-reference#askuserquestion-tool-behavior)
    are the docs for Claude's version of this.

