# Useful Things Agents Can Do That Are Not Writing Code

> Source: <https://elijahpotter.dev/articles/useful-things-agents-can-do-that-are-not-writing-code>
> Published: 2026-09-11 22:37:44+00:00

The discourse is abuzz with the wonderful (and horrendous) things you can do when you allow an AI coding agent to write code.
People who allow an agent (née clanker) to write **all** the code in an application are often called “vibe-coders”.
This article is not about vibe coding.
In fact, this article is about all the things you can do with an AI agent that are separate from writing code.

With each of these, I’ll go through the use-case, then include the latest version of the `pi` prompt that I use.

I do **not** believe you should use my prompts precisely.
I am not suggesting that you copy my workﬂow.
The beauty of many of these tools is that they are ﬂexible and can be adapted to your style of work.
I offer my prompts as inspiration.
Maybe there are things you could be using an agent for that are **not** writing code.

I often ﬁnd myself needing to ﬁx merge conﬂicts for my PRs because either myself or an open-source contributor has modiﬁed the code upstream. Almost always, these conﬂicts are formatting or boilerplate changes that do not need my full attention. In other words, it’s the perfect job for a clanker.

Here is my prompt:

```
---
description: Fix a merge conflict in a PR.
argument-hint: "<PR NUMBER>"
---

I want you to fix the merge conflict in PR #$@.
If I have not provided a valid number, please ask me for it.

Do so by checking out the PR using the `gh` command, and perform the merge.
DO NOT push your changes until I have a chance to review them myself.
```

In `pi`, I can call this like a function:

```
/fix-pr-conflict #4222
```

It does not matter if I have the relevant PR downloaded and checked out. The clanker ﬁgures it all out non-destructively.

When working on open source software, I often prioritize ﬁxing bugs that I ﬁnd annoying and introducing features that [make my own life better](./do_that_which_makes_your_life_easy).
That’s natural.
When I do, I want to know if I am accidentally solving someone else’s problem at the same time.
If so, I can link the issue in my PR description or reach out to the person directly.

To ﬁnd these relevant issues, I use this `pi` command:

```
---
description: Find any issues relevant to this branch or a given PR number.
argument-hint: "<PR NUMBER>"
---

Please locate all issues that might be relevant to the current branch (unless a PR number is provided below).
Please list:

- If the issue is solved by this PR.
- The link to the issue.
- Who wrote it.

If not the current branch, look at PR #$@.
```

Again, this can be called like a function:

```
/fd-issue
```

90% of the time a GitHub Actions workﬂow fails, it is not due to a bug.
It’s because I forgot to run my formatter or my static analysis tools (think Prettier or `tsc`).

In this case, it is not a piece of functional code that is broken, but an annotation or missing carriage return. It is an easy one-line ﬁx. Why not make the clanker do it?

When a GitHub Actions run fails, I can use an agent with the following prompt to get it ﬁxed tout suite.

```
---
description: Diagnose any existing GitHub Actions failures for this branch.
argument-hint: "<BRANCH>"
---

Diagnose any existing GitHub Actions failures for this branch, unless there is a different branch provided below.
Once you have taken a look to identify the possible underlying problem, offer a plan to fix it. Do not implement this plan without express approval.

If not the current branch, look at $@
```

It can be run as a command inside of `pi`:

```
/diagnose-action-failure
```

I offer these prompts as inspiration. Are there things that you could automate? If so, please let me know!

Published September 11, 2026 at 9:39 PM

Proofread by [Harper](https://writewithharper.com).

It's not easy, but I think it's one of the best habits I've ever built.

A complete or partial loss of function while reviewing the output of a coding agent.

I have been seeing an increasingly prevalent trend of people showing up in online spaces flaunting that they are writing with the assistance of AI. They seem to be proud of this. They shouldn't be.
