keryx: Agent for Claude Code

.claude/agents/docs-sync.md

docs-sync is an agent for Claude Code from actionhero/keryx. It costs 0 tokens per session (587 once invoked), scanned A, original, MIT.

A code-review helper that checks whether changes to backend or framework code also require documentation updates.

In plain words
What is it for?
Use it after changing a framework, backend, configuration, server, middleware, task, or authentication feature. It helps identify which guides and reference pages should be reviewed.
Why use it?
It reduces the chance that the documentation describes old behavior after code changes. It links changed code areas to the documentation pages they may affect.

Agent for Claude Code

Written for Claude Code: installed under .claude/.

This is actionhero/keryx's own configuration. It tells Claude Code how to work on keryx itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything keryx configures →

Reuse

Borrowing it

Nothing to install: this file belongs to actionhero/keryx. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/actionhero/keryx/main/.claude/agents/docs-sync.md
Clone the repo
git clone --depth 1 https://github.com/actionhero/keryx

Made for: Claude Code.

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 docs-sync

README.md
[![agentmods](https://agentmods.dev/badge/agents/actionhero/keryx/docs-sync/github.svg)](https://agentmods.dev/agents/actionhero/keryx/docs-sync)
Your own site
<a href="https://agentmods.dev/agents/actionhero/keryx/docs-sync"><img src="https://agentmods.dev/badge/agents/actionhero/keryx/docs-sync/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for docs-sync

Your own site · 80×15
<a href="https://agentmods.dev/agents/actionhero/keryx/docs-sync"><img src="https://agentmods.dev/badge/agents/actionhero/keryx/docs-sync.svg" alt="Reviewed on agentmods" width="80" 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 587 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00000 $0.00587
Opus 5.5 $0.00000 $0.00235
Sonnet 5.5 $0.00000 $0.00117
Haiku 4.5 $0.00000 $0.00059

Measured 2mo ago against content hash a10e9637c91c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

docs-sync 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 2mo 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.

.claude/agents/docs-sync.md · 58 lines

How it starts

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

Docs Sync

Check whether documentation needs updating after backend or framework code changes.

Instructions

1. Identify what changed

Run git diff main --name-only (or git diff HEAD~1 --name-only if already on main) to get the list of changed files. Focus on:

  • packages/keryx/ — framework code
  • example/backend/ — example app code

Ignore changes to test files, .env files, and the docs/ directory itself.

2. Map code changes to docs

Use this mapping to identify which docs might need updates:

Code Area Relevant Docs
classes/Action.ts, action files docs/guide/actions.md, docs/reference/actions.md
classes/API.ts, api.ts docs/reference/classes.md
Initializer files docs/guide/initializers.md, docs/reference/initializers.md
classes/Channel.ts, channel files docs/guide/channels.md
MCP/OAuth code docs/guide/mcp.md
Config files docs/guide/config.md, docs/reference/config.md
Server/web files docs/reference/servers.md
Middleware files docs/guide/middleware.md
Task/fan-out code docs/guide/tasks.md
Zod helpers, utilities docs/reference/utilities.md
CLI/generators docs/guide/cli.md
TypedError, Connection, Logger docs/reference/classes.md
Auth-related code docs/guide/authentication.md
Observability code docs/guide/observability.md

3. Check for staleness

For each relevant doc:

  1. Read the doc file
  2. Read the changed source code
  3. Compare: does the doc accurately reflect the current code?

Look for:

  • Changed signatures — method parameters, return types, or names that differ from what the doc shows
  • New features — exported classes, methods, config options, or action properties not mentioned in docs
  • Removed features — things documented that no longer exist in code
  • Changed defaults — config defaults, timeout values, etc. that have been updated
  • Incorrect examples — code snippets in docs that would no longer work

Read the full file on GitHub · 58 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. 2mo ago First seen · 58 lines · 0 tokens per session scan A a10e9637c91c

Subscribe to this mod's changes

docs-sync is an agent published in the GitHub repository actionhero/keryx (46 stars, last pushed 8d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 587 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-30.

Related

Other agents, from other repositories

reviewer

Code review specialist for quality/security analysis.

can1357/oh-my-pi · 10 tokens

Application Security Engineer

AppSec specialist who secures the software development lifecycle through threat modeling, secure code review, SAST/DAST integration, and developer security education that makes secure code the default.

SHAdd0WTAka/Zen-Ai-Pentest · 40 tokens

Codebase Archaeologist

Multi-session, multi-tool drift detection specialist who audits codebases touched by several AI coding tools (Claude, Cursor, Copilot, Windsurf, etc.) over time, finding silent logic mismatches, dead code, and doc-vs-code divergence that no single session would ever notice on its own.

SHAdd0WTAka/Zen-Ai-Pentest · 65 tokens

Minimal Change Engineer

Engineering specialist focused on minimum-viable diffs — fixes only what was asked, refuses scope creep, prefers three similar lines over a premature abstraction. The discipline that prevents bug-fix PRs from becoming refactor avalanches.

SHAdd0WTAka/Zen-Ai-Pentest · 50 tokens

code-reviewer

Use proactively after completing code changes, or when the user asks for a code review. Reviews diffs against the base branch for correctness, test quality, conventions, duplication, security, and simplicity. Returns structured findings.

rootstrap/rails_api_base · 47 tokens

pr-reviewer

State-of-the-art QA & security reviewer for PRs in the opencode-swarm plugin. Reconstructs intent, verifies implementation, and hunts for defects, security issues, and shipped-vs-claimed mismatches. Operates read-only. Never approves without positive evidence. Never invents repository facts.

ZaxbyHub/opencode-swarm · 65 tokens