Skip to content
refs

feat(agents): five more built-in agents and a list_files tool

Aman Kumarcommitted Dec 3, 202669e1713parent 0fb8d04

Adds @security, @tests, @perf, @explain and @docs next to @reviewer. Each one is a set of instructions on the same run loop. Agents can now list the files of a folder, so @docs and @tests find files that the diff does not name. decision: Every repository gets five more built-in agents: @security, @tests, @perf, @explain and @docs. A mention of one of these handles in a pull request comment starts a run that refs pays for. reason: - The first request named a security researcher and a code reviewer as examples of agents that refs offers. - Short handles read naturally in a comment, for example "@security is this safe?". - Each agent is only instructions, so it costs nothing until someone mentions it. to_reverse: To remove a built-in agent later, refs deletes it from the list. People who mention it then get no answer, and repositories must add their own copy. rejected: Fewer: one @reviewer with modes gives no separate entry in the Mention agent menu. affected_components: - apps/backend/agents.ts - apps/frontend/docs/hosted-agents.md

7 files changed · +90 −7
apps/backend/agent-runs.ts+15 −2
apps/backend/agents.ts+52 −0
apps/backend/browse.ts+1 −1
apps/backend/test/agent-runs.test.ts+6 −1
apps/backend/test/hosted-agents.test.ts+1 −1
apps/frontend/docs/glossary.md+1 −1
apps/frontend/docs/hosted-agents.md+14 −1