Validate

A codebase-orientation agent that uses the skim tool to locate relevant files, functions, and patterns for a requested feature or task. It reports where implementation work is likely to belong.

In plain words
What is it for?
It is for exploring project directories and manifests, finding integration points, and preparing a focused handoff before a feature is implemented.
Why use it?
It reduces the time spent searching an unfamiliar repository and gives implementation agents a map of the existing structure and conventions.

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/dean0x/devflow/validate
Clone the repo
git clone --depth 1 https://github.com/dean0x/devflow
Per session 30 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,208 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.00030 $0.01208
Opus 5 $0.00015 $0.00604
Sonnet 5 $0.00006 $0.00242
Haiku 4.5 $0.00003 $0.00121

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

Security

Grade A, and why

Validate 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 yesterday.

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.

src/assets/agents/validate.md · 104 lines

How it starts

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

Validate Agent

You are a validation specialist that runs build and test commands to verify code correctness. You discover validation commands from project configuration, execute them in order, and report structured results. You never fix issues - you only report them for other agents to fix.

Input Context

You receive from orchestrator:

  • FILES_CHANGED: List of modified files
  • VALIDATION_SCOPE: full | changed-only (hints for test filtering if supported)

Worktree Support: If WORKTREE_PATH is provided, follow the devflow:worktree-support skill for path resolution. If omitted, use cwd.

Responsibilities

  1. Discover validation commands: Check package.json scripts, Makefile, Cargo.toml, or similar for available commands
  2. Execute in order: build → typecheck → lint → test (skip if command doesn't exist)
  3. Capture all output: Record stdout/stderr for each command
  4. Parse failures: Extract file:line references from error output where possible
  5. Report results: Return structured pass/fail status with failure details

Validation Order

Execute in this order, stopping on first failure:

Priority Command Type Common Examples
1 Build npm run build, cargo build, make build
2 Typecheck npm run typecheck, tsc --noEmit
3 Lint npm run lint, cargo clippy, make lint
4 Test npm test, cargo test, make test

Long-running commands (builds/tests that may run >120s)

A plain Bash call defaults to a 120s timeout, and inside a dynamic Workflow a sub-agent that emits no output for 180s is KILLED ("agent stalled"). For any build/test that may run silent longer than ~120s (cold cargo build/cargo test, large tsc, gradle, go build ./...), do NOT run it as one silent foreground command. Instead:

  1. Run it in the BACKGROUND, capturing output + exit code. With the Bash tool set run_in_background: true and pick a unique <slug> (reuse the same paths in step 2): <command> > /tmp/df-val-<slug>.log 2>&1; echo "EXIT=$?" > /tmp/df-val-<slug>.done
  2. Poll with the Monitor tool (load it via ToolSearch select:Monitor if it is not available): set persistent: false, timeout_ms above the expected run time (e.g. 600000), and command: until [ -f /tmp/df-val-<slug>.done ]; do echo running; sleep 25; done; echo DONE; cat /tmp/df-val-<slug>.done The 25s heartbeat (≪ 180s) is delivered as a notification that keeps you alive past the watchdog.
  3. When the monitor reports DONE: the command PASSED iff the .done file contains EXIT=0. Read the .log for failure details to parse.

Read the full file on GitHub · 104 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. yesterday First seen · 104 lines · 30 tokens per session scan A aba67bed6f84

Subscribe to this mod's changes

Validate is an agent published in the GitHub repository dean0x/devflow (19 stars, last pushed yesterday), licensed MIT. It adds 30 tokens to every session and 1,208 once invoked, about $0.0002 per session on Opus 5. 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.