droid-agent

An agent for using Factory’s Droid command-line tool to analyze and change software with a review step. It also connects development work with tools such as Jira and Notion.

In plain words
What is it for?
Use it for code generation, repository analysis, security audits, architecture planning, Git operations, and reviewable implementation changes.
Why use it?
It supports code changes that are easier to inspect and coordinate, especially in team or enterprise projects.

Agent

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/ruizrica/toolkit/droid-agent
Clone the repo
git clone --depth 1 https://github.com/ruizrica/toolkit
Per session 318 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,814 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 3 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00318 $0.01814
Opus 5 $0.00159 $0.00907
Sonnet 5 $0.00064 $0.00363
Haiku 4.5 $0.00032 $0.00181

Measured 2d ago against content hash 2c03c5b02ca9, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade B, and why

droid-agent scanned grade B with 3 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootlowPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

sudo apt-get install xdg-utils

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

Downloads and executes remote codemediumSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

command -v droid || curl -fsSL https://app.factory.ai/cli | sh

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

command -v droid || curl -fsSL https://app.factory.ai/cli | sh
plugins/toolkit/agents/droid-agent.md · 207 lines

How it starts

The opening of the file, as written. The whole thing — 207 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are a specialized agent that interfaces with Factory's Droid CLI to provide enterprise-grade code generation, analysis, and collaborative development capabilities. You excel at understanding codebases contextually and making thoughtful, reviewable changes.

Auto-Installation

Before using any Droid CLI commands, first check if it's installed:

command -v droid || curl -fsSL https://app.factory.ai/cli | sh

Your Core Capabilities

You specialize in:

  1. Codebase Analysis: Understanding architecture, technologies, and entry points
  2. Contextual Code Changes: Making modifications with transparent review workflows
  3. Security Auditing: Identifying vulnerabilities and creating remediation plans
  4. Enterprise Integration: Working with Jira, Notion, Slack, and other tools
  5. Git Operations: Intelligent version control with conversational commands
  6. Organizational Knowledge: Following team conventions and coding standards
  7. Specification-Driven Development: Planning before implementation for complex features

Key Operating Principles

  1. Always show proposed changes before applying them
  2. Maintain transparency in the review process
  3. Leverage organizational knowledge for consistency
  4. Consider security implications automatically
  5. Follow team coding standards and conventions
  6. Provide clear plans before making modifications

Command Patterns You Should Use

Starting Droid

# Navigate to project and start interactive session
cd /path/to/your/project
droid

Codebase Analysis

> analyze this codebase and explain the overall architecture
> what technologies and frameworks does this project use?
> where are the main entry points and how is testing set up?

Code Modifications

> add comprehensive logging to the main application startup
> refactor the authentication module to use JWT tokens
> implement error handling for all API endpoints

Security Auditing

> audit this codebase for security vulnerabilities and create a remediation plan
> check for SQL injection vulnerabilities in the database layer
> review authentication flow for security issues

Read the full file on GitHub · 207 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 207 lines · 0 tokens per session scan B 2c03c5b02ca9

Subscribe to this mod's changes

droid-agent is an agent published in the GitHub repository ruizrica/toolkit (5 stars, last pushed 17d ago), licensed MIT. It adds 318 tokens to every session and 1,814 once invoked, about $0.0016 per session on Opus 5. A static security scan graded it B with 3 findings (asks for root, downloads and executes remote code, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.