<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/minipost-at-agent-zbmfawtnl" -->

---
title: Minipost: at-agent | daily.dev
description: A minimal open-source script called at-agent lets developers leave inline @agent comments in code to request explanations or edits from an AI coding agent,...
canonical: https://daily.dev/posts/minipost-at-agent-zbmfawtnl
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Minipost: at-agent | daily.dev
og:description: A minimal open-source script called at-agent lets developers leave inline @agent comments in code to request explanations or edits from an AI coding agent,...
og:url: https://daily.dev/posts/minipost-at-agent-zbmfawtnl
og:image: https://api.daily.dev/og/posts/ZbmFAWtnL.png
og:image:alt: Minipost: at-agent
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.

# Minipost: at-agent

**[Planet Igalia](https://daily.dev/sources/planet-igalia)** · 6 min read · 0 upvotes · 0 comments

## Summary

A minimal open-source script called at-agent lets developers leave inline @agent comments in code to request explanations or edits from an AI coding agent, then strips those annotations from the working tree before feeding them to the model as structured directives. It supports whole-line annotations prefixed with arbitrary comment syntax, distinguishes explanation requests from action requests (marked with @agent!), and can discover relevant files via command-line args, recursive grep, or tracked inode numbers (useful when an agent runs in a sandboxed environment with different mount paths). The author contrasts this deterministic approach with simply instructing an LLM to find and remove such comments itself, or with aider's existing 'AI comment' support, arguing that a small deterministic tool reduces round trips and tool-call failures.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://muxup.com/2026q2/minipost-at-agent>

## Questions this post answers

### How does the at-agent tool let you leave inline comments for an AI coding agent to act on?

You write a comment line with at least two punctuation characters (like // or ##) followed by @agent for an explanation request or @agent! for an action request. Running the at-agent script strips these annotation lines from the working tree and outputs a structured list of the requests with file names, line numbers, and surrounding context for the agent to process.

_daily.dev surfaces workflow experiments like inline agent-comment tooling for developers refining their AI coding setup._

### How does at-agent differ from aider's AI comment feature for directing coding agents?

At-agent deterministically strips @agent annotation lines from the working tree itself via a script, rather than relying on the language model to notice and remove the comments afterward, which is how aider's 'AI' comments work. The author prefers this because it reduces the number of round trips and tool calls the model needs to handle correctly.

_comparisons of agent-comment workflows like this help developers choosing tools on daily.dev refine their setup._

### How can at-agent find files with @agent directives without expensive greps on large codebases?

By default, at-agent walks the working directory to find inodes flagged as recently modified rather than scanning by path, avoiding costly recursive greps on large trees. A text editor integration (for example a vimrc autocmd) appends the inode number of any saved file containing an @agent directive to a tracked list, and inode numbers also survive path remapping when the agent runs inside a sandbox with different mount points.

_developers building sandboxed agent workflows track tooling details like this via daily.dev._

## Similar posts on daily.dev

- [AGENTS.md Optimization: Context Linting for Coding Agents](https://daily.dev/posts/agents-md-optimization-context-linting-for-coding-agents-mb705ug5n) · SitePoint · 1 upvotes · 0 comments
- [Using AI agents to secure Google infrastructure](https://daily.dev/posts/using-ai-agents-to-secure-google-infrastructure-n2sosodh7) · Google Cloud · 0 upvotes · 0 comments
- [Mesa Loosens Rules Around AI Agents For Code Comments / Commit Messages](https://daily.dev/posts/mesa-loosens-rules-around-ai-agents-for-code-comments-commit-messages-as1hipa9q) · Phoronix · 0 upvotes · 0 comments

---

Tags: [#devtools](https://daily.dev/tags/devtools), [#ai-agents](https://daily.dev/tags/ai-agents), [#vim](https://daily.dev/tags/vim)

[View this post on daily.dev](https://daily.dev/posts/minipost-at-agent-zbmfawtnl)

```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":"Minipost: at-agent","url":"https://daily.dev/posts/minipost-at-agent-zbmfawtnl","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/minipost-at-agent-zbmfawtnl"},"datePublished":"2026-09-20T07:44:30.279Z","dateModified":"2026-09-20T07:50:26.895Z","description":"A minimal open-source script called at-agent lets developers leave inline @agent comments in code to request explanations or edits from an AI coding agent,...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/f88bec9b55dd4d52c7ce1b368d48f984?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/f88bec9b55dd4d52c7ce1b368d48f984?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Planet Igalia","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":"Planet Igalia","logo":"https://media.daily.dev/image/upload/s--84VSWNwZ--/f_auto,q_auto/v1789890204/logos/planet-igalia?_a=BAMAMicg0","url":"https://daily.dev/sources/planet-igalia"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/minipost-at-agent-zbmfawtnl","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"devtools,ai-agents,vim","timeRequired":"PT6M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Planet Igalia","item":"https://daily.dev/sources/planet-igalia"},{"@type":"ListItem","position":3,"name":"Minipost: at-agent"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/minipost-at-agent-zbmfawtnl#faq","mainEntity":[{"@type":"Question","name":"How does the at-agent tool let you leave inline comments for an AI coding agent to act on?","acceptedAnswer":{"@type":"Answer","text":"You write a comment line with at least two punctuation characters (like // or ##) followed by @agent for an explanation request or @agent! for an action request. Running the at-agent script strips these annotation lines from the working tree and outputs a structured list of the requests with file names, line numbers, and surrounding context for the agent to process. daily.dev surfaces workflow experiments like inline agent-comment tooling for developers refining their AI coding setup."}},{"@type":"Question","name":"How does at-agent differ from aider's AI comment feature for directing coding agents?","acceptedAnswer":{"@type":"Answer","text":"At-agent deterministically strips @agent annotation lines from the working tree itself via a script, rather than relying on the language model to notice and remove the comments afterward, which is how aider's 'AI' comments work. The author prefers this because it reduces the number of round trips and tool calls the model needs to handle correctly. comparisons of agent-comment workflows like this help developers choosing tools on daily.dev refine their setup."}},{"@type":"Question","name":"How can at-agent find files with @agent directives without expensive greps on large codebases?","acceptedAnswer":{"@type":"Answer","text":"By default, at-agent walks the working directory to find inodes flagged as recently modified rather than scanning by path, avoiding costly recursive greps on large trees. A text editor integration (for example a vimrc autocmd) appends the inode number of any saved file containing an @agent directive to a tracked list, and inode numbers also survive path remapping when the agent runs inside a sandbox with different mount points. developers building sandboxed agent workflows track tooling details like this via daily.dev."}}]}
```

