agent

agent is a command for coding agents from aadivar/shiplog. It costs 0 tokens per session (589 once invoked), scanned A, original, MIT.

A command for creating and listing custom background agents, which are separate helpers given a specific job. It reads the project's Shiplog settings and agent files when listing them.

In plain words
What is it for?
Use it to create an agent for a defined task and choose where its output is written, or to list the agents already configured in the project.
Why use it?
It gives recurring project tasks their own named helpers and makes the available built-in and custom helpers easy to inspect.

Command

Part of the shiplog plugin — 1 skill, 8 commands, 4 agents, 1 hook shipped together

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 commands/aadivar/shiplog/agent
Clone the repo
git clone --depth 1 https://github.com/aadivar/shiplog

Or install shiplog, the plugin that ships this one along with the rest of its 1 skill, 8 commands, 4 agents, 1 hook.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for agent

README.md
[![agentmods](https://agentmods.dev/badge/commands/aadivar/shiplog/agent.svg)](https://agentmods.dev/commands/aadivar/shiplog/agent)
Your own site
<a href="https://agentmods.dev/commands/aadivar/shiplog/agent"><img src="https://agentmods.dev/badge/commands/aadivar/shiplog/agent.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 589 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 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.00000 $0.00589
Opus 5 $0.00000 $0.00295
Sonnet 5 $0.00000 $0.00118
Haiku 4.5 $0.00000 $0.00059

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

Security

Grade A, and why

agent scanned grade A with 0 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 3d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commands/agent.md · 80 lines

How it starts

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

/shiplog agent

Create or list custom background agents.

Trigger

User runs /shiplog agent <name> or /shiplog agent list

Behavior

List agents: /shiplog agent list

  1. Read .shiplog/config.json to get built-in agent status
  2. Scan .shiplog/agents/ for custom agent files
  3. Display:
Shiplog Agents
━━━━━━━━━━━━━━

Built-in:
  specs    — enabled  — Logs architecture decisions
  prd      — enabled  — Updates feature status
  security — enabled  — OWASP Top 10 reviews
  memory   — enabled  — Code patterns & project memory

Custom:
  a11y     — .shiplog/agents/a11y-agent.md
  perf     — .shiplog/agents/perf-agent.md

Model: haiku

If no custom agents exist, show "No custom agents. Run /shiplog agent <name> to create one."

Create agent: /shiplog agent <name>

  1. Check that .shiplog/config.json exists. If not, prompt to run /shiplog init.

  2. Create .shiplog/agents/ directory if it doesn't exist.

  3. Ask the user with AskUserQuestion:

    • "What should this agent do?" (free text)
    • "Where should it write output?" Options:
      • docs/{name}.md (Recommended) — New file in docs/
      • docs/SPECS.md — Append to specs
      • Custom path
  4. Read the template from templates/custom-agent.md.hbs and create the agent file:

    • Path: .shiplog/agents/{name}-agent.md
    • Replace {{agentName}}, {{agentDescription}}, {{outputFile}}
  5. If output file doesn't exist, create it with a basic header.

  6. Update .shiplog/config.json — add the agent to agents.custom array:

    {
      "name": "a11y",
      "file": ".shiplog/agents/a11y-agent.md",
      "output": "docs/a11y.md",
      "enabled": true
    }
    
  7. Confirm:

    Custom agent created: {name}
      Prompt: .shiplog/agents/{name}-agent.md
      Output: docs/{name}.md
      Status: enabled
    
    Edit the prompt file to customize behavior.
    The agent will run automatically after each commit.
    

Rules

  • Agent names must be kebab-case (lowercase, hyphens)
  • Never overwrite an existing agent file
  • Custom agents run alongside built-in agents with the same model
  • Custom agent prompt files are fully editable by the user

Read the full file on GitHub · 80 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. 3d ago First seen · 80 lines · 0 tokens per session scan A 6d31f8d51087

Subscribe to this mod's changes

agent is a command published in the GitHub repository aadivar/shiplog (3 stars, last pushed 6mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 589 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.