<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/useful-things-agents-can-do-that-are-not-writing-code-tjfxl5jih" -->

---
title: Useful Things Agents Can Do That Are Not Writing Code
description: Elijah Potter shares practical, non-coding uses for AI coding agents, using his 'pi' CLI tool as an example. He details three custom prompts: one that fixes...
canonical: https://daily.dev/posts/useful-things-agents-can-do-that-are-not-writing-code-tjfxl5jih
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Useful Things Agents Can Do That Are Not Writing Code | daily.dev
og:description: Elijah Potter shares practical, non-coding uses for AI coding agents, using his 'pi' CLI tool as an example. He details three custom prompts: one that fixes...
og:url: https://daily.dev/posts/useful-things-agents-can-do-that-are-not-writing-code-tjfxl5jih
og:image: https://api.daily.dev/og/posts/tjFXL5Jih.png
og:image:alt: Useful Things Agents Can Do That Are Not Writing Code
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Useful Things Agents Can Do That Are Not Writing Code

**[Lobsters](https://daily.dev/sources/lobsters)** · 4 min read · 3 upvotes · 0 comments

## Summary

Elijah Potter shares practical, non-coding uses for AI coding agents, using his 'pi' CLI tool as an example. He details three custom prompts: one that fixes merge conflicts in pull requests by checking out the PR via the gh command without pushing changes, one that locates GitHub issues relevant to a branch or PR to check for overlap with the author's own fixes, and one that diagnoses failed GitHub Actions runs (often caused by formatting or linting issues) and proposes a fix plan without auto-implementing it. The prompts are offered as inspiration rather than exact templates to copy.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://elijahpotter.dev/articles/useful_things_agents_can_do_that_are_not_writing_code>

## Questions this post answers

### How can I use an AI agent to automatically fix merge conflicts in a pull request?

An agent can be prompted to check out the pull request using the gh command line tool and perform the merge itself, resolving conflicts that are typically just formatting or boilerplate differences. The prompt should explicitly instruct the agent not to push changes until the developer reviews them, keeping a human in the loop before anything is finalized.

_daily.dev surfaces workflows like this for developers building agent-assisted git and PR routines._

### How can an AI agent help diagnose GitHub Actions failures without writing the fix itself?

An agent can be prompted to diagnose a failed GitHub Actions run for a given branch, identify the likely cause, and propose a plan to fix it without implementing that plan until given explicit approval. This is useful because most CI failures come from missed formatting or static analysis steps rather than actual functional bugs.

_engineers automating CI troubleshooting can find similar agent workflow ideas on daily.dev._

## Community take

How the wider developer community reacted, aggregated from 1 discussion and 12 comments across lobsters (as of 2026-09-12).

**TL;DR:** Discussion centers less on the post's specific prompts and more on the underlying premise that CI failures are usually formatting/lint issues; several suggest pre-commit hooks as an alternative or complement, while others find real value in using agents for merge conflicts and semantic 'housework' tasks.

**Sentiment:** 45% positive · 40% mixed · 15% skeptical

**The case for**

- Agents handle merge conflicts and messy refactors at a semantic level that traditional line-based tools can't, making previously-avoided cleanup work actually happen.
- The merge-conflict prompt specifically appeals even to those skeptical of AI-generated code, since it avoids tedious mechanical boilerplate.
- Watching CI checks live and letting an agent react to failures as they happen is seen as a practical workflow.

**The pushback**

- Some argue the better fix is preventing CI failures in the first place via local pre-commit hooks rather than debugging them after the fact with an agent.
- Pre-commit hooks are criticized by others as often slow and aggravating, discouraging their use despite the benefit of catching issues early.
- There's disagreement over whether running checks twice (locally and in CI) is worth the time cost versus just letting CI catch problems.

**By community**

- lobsters (mixed): People engage substantively with the CI-failure premise, split between preferring pre-commit hooks and preferring to let CI handle checks, while still finding value in the merge-conflict use case.

**Hottest debate:** Whether it's better to catch formatting/lint issues locally via pre-commit hooks or to let CI catch them and have an agent fix failures after the fact.

**Open questions**

- How much local pre-commit checking is worth the time cost versus relying on CI plus agent-driven fixes afterward.
- Whether faster tooling like prek meaningfully changes the calculus around pre-commit hook adoption.

**Highlights**

> > 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). Make the formatter and tools part of your local pre-commit hook, it allows you to iterate faster and you conserve energy otherwise spent on CI and tokens.
> — [pyfisch on lobsters · 19 points, 3 comments](https://lobste.rs/s/ub8q3s/useful_things_agents_can_do_are_not#c_drsdlm)

> For the github actions case. `gh pr checks --watch --failfast` is pretty good. Lets your clanker see the output of checks as soon as they fail and start fixing the problem. --- For those that mention pre-commit hooks. Sure you could do that. I tend not to like this though. My general take is if you have to run processes like this twice (local + CI) 100% of the time, then you're total time sink is 2x. If instead you mostly just let CI check things like formatting issues and handle failure cases, you cut that down a bunch. I.e. often `P(fail) x (cost of cleanup + retry)` < 2x the cost of doing it "right". The calculus I generally use is mostly to do cheap / fast things locally (format, unit tests), expensive / slow things on CI, and assume that your LLM loop handles doing the right thing most of the time.
> — [joshka on lobsters · 1 points](https://lobste.rs/s/ub8q3s/useful_things_agents_can_do_are_not#c_p0nqao)

> I noticed recently that I'm doing a lot more "housework" in the code (refactors, renames, reorgs, stale comment sweeps) because Claude is so good at dealing with merge hell. Something that would baffle a standard line-based deterministic merge tool is no problem for an LLM that can "see" the code at a more semantic level. So entropy-reducing tasks that I would just never bring myself to do now actually happen.
> — [wrs on lobsters · 2 points](https://lobste.rs/s/ub8q3s/useful_things_agents_can_do_are_not#c_feyxac)

> If I had to explicitly recompile my entire working directory on every commit I would basically instantly disable precommit hooks. I use commits for basically any kind of "here's some state I want to save later". One of the repos I work on actually does have some precommit hooks that take like 5-10 seconds to run and it's always extremely aggravating.
> — [quasi\_qua\_quasi on lobsters · 3 points, 1 comments](https://lobste.rs/s/ub8q3s/useful_things_agents_can_do_are_not#c_o05bme)

> Since debugging is typically half the time spent on as project vs 1/6 to 1/3 coding, it follows vibe-debugging is 2-3x more valuable than vibe-coding.
> — [fazalmajid on lobsters · 2 points, 1 comments](https://lobste.rs/s/ub8q3s/useful_things_agents_can_do_are_not#c_qtf2ax)

**Source threads**

- [lobsters](https://lobste.rs/s/ub8q3s/useful_things_agents_can_do_are_not) · 14 points · 12 comments

## Similar posts on daily.dev

- [From coder to orchestrator: How agents shift the role of a developer](https://daily.dev/posts/from-coder-to-orchestrator-how-agents-shift-the-role-of-a-developer-sk2e3cswg) · GitHub Blog · 2 upvotes · 0 comments
- [Practical Use Of AI Coding Tools For The Responsible Developer — Smashing Magazine](https://daily.dev/posts/practical-use-of-ai-coding-tools-for-the-responsible-developer-smashing-magazine-e5s7vecpu) · Smashing Magazine · 6 upvotes · 0 comments
- [Spawning parallel AI agents with git subtrees and meta prompts](https://daily.dev/posts/spawning-parallel-ai-agents-with-git-subtrees-and-meta-prompts-dnf0oazu2) · All Things Open · 0 upvotes · 0 comments

---

Tags: [#open-source](https://daily.dev/tags/open-source), [#github](https://daily.dev/tags/github), [#ai-agents](https://daily.dev/tags/ai-agents), [#github-actions](https://daily.dev/tags/github-actions)

[View this post on daily.dev](https://daily.dev/posts/useful-things-agents-can-do-that-are-not-writing-code-tjfxl5jih)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Useful Things Agents Can Do That Are Not Writing Code","url":"https://daily.dev/posts/useful-things-agents-can-do-that-are-not-writing-code-tjfxl5jih","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/useful-things-agents-can-do-that-are-not-writing-code-tjfxl5jih"},"datePublished":"2026-09-12T22:57:33.555Z","dateModified":"2026-09-12T22:58:10.704Z","description":"Elijah Potter shares practical, non-coding uses for AI coding agents, using his 'pi' CLI tool as an example. He details three custom prompts: one that fixes...","image":"https://media.daily.dev/image/upload/s--OHB84bZF--/f_auto/v1722860399/public/Placeholder%2010","thumbnailUrl":"https://media.daily.dev/image/upload/s--OHB84bZF--/f_auto/v1722860399/public/Placeholder%2010","isAccessibleForFree":true,"articleSection":"Lobsters","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Lobsters","logo":"https://media.daily.dev/image/upload/s--tl8v_Fku--/f_auto,t_logo/v1698841318/logos/lobste.jpg","url":"https://daily.dev/sources/lobsters"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/useful-things-agents-can-do-that-are-not-writing-code-tjfxl5jih","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":3},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"open-source,github,ai-agents,github-actions","timeRequired":"PT4M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Lobsters","item":"https://daily.dev/sources/lobsters"},{"@type":"ListItem","position":3,"name":"Useful Things Agents Can Do That Are Not Writing Code"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/useful-things-agents-can-do-that-are-not-writing-code-tjfxl5jih#faq","mainEntity":[{"@type":"Question","name":"How can I use an AI agent to automatically fix merge conflicts in a pull request?","acceptedAnswer":{"@type":"Answer","text":"An agent can be prompted to check out the pull request using the gh command line tool and perform the merge itself, resolving conflicts that are typically just formatting or boilerplate differences. The prompt should explicitly instruct the agent not to push changes until the developer reviews them, keeping a human in the loop before anything is finalized. daily.dev surfaces workflows like this for developers building agent-assisted git and PR routines."}},{"@type":"Question","name":"How can an AI agent help diagnose GitHub Actions failures without writing the fix itself?","acceptedAnswer":{"@type":"Answer","text":"An agent can be prompted to diagnose a failed GitHub Actions run for a given branch, identify the likely cause, and propose a plan to fix it without implementing that plan until given explicit approval. This is useful because most CI failures come from missed formatting or static analysis steps rather than actual functional bugs. engineers automating CI troubleshooting can find similar agent workflow ideas on daily.dev."}}]}
```

