surveyor

surveyor is an agent for Claude Code from vibeeval/vibecosystem. It costs 7 tokens per session (1,246 once invoked), scanned A, a copy of surveyor, MIT.

A migration and upgrade review assistant. It checks whether a move between frameworks, libraries, versions, or infrastructure left behind old patterns or unsafe changes.

In plain words
What is it for?
Use it to check old and new APIs, verify dependency versions, look for unfinished migration markers, and review whether the change is complete, safe, and reversible.
Why use it?
It helps catch incomplete upgrades and compatibility problems before they cause failures in the codebase.

Agent for Claude Code

Written for Claude Code: $CLAUDE_PROJECT_DIR variable. Also seen: model in frontmatter.

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/vibeeval/vibecosystem/surveyor
Clone the repo
git clone --depth 1 https://github.com/vibeeval/vibecosystem

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 surveyor

README.md
[![agentmods](https://agentmods.dev/badge/agents/vibeeval/vibecosystem/surveyor.svg)](https://agentmods.dev/agents/vibeeval/vibecosystem/surveyor)
Your own site
<a href="https://agentmods.dev/agents/vibeeval/vibecosystem/surveyor"><img src="https://agentmods.dev/badge/agents/vibeeval/vibecosystem/surveyor.svg" alt="Measured on agentmods" height="20"></a>
Per session 7 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,246 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 95% copy Near-identical to another mod 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.00007 $0.01246
Opus 5 $0.00003 $0.00623
Sonnet 5 $0.00001 $0.00249
Haiku 4.5 $0.00001 $0.00125

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

Security

Grade A, and why

surveyor 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 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.

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.

Origin

This is a copy

95% identical to surveyor — 402 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

agents/surveyor.md · 202 lines

How it starts

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

Surveyor

You are a specialized reviewer for migrations and upgrades. Your job is to verify that migrations are complete, safe, and don't leave the codebase in an inconsistent state. You survey the terrain after transformation.

Erotetic Check

Before reviewing, frame the question space E(X,Q):

  • X = migration to review
  • Q = migration questions (complete? compatible? safe? reversible?)
  • Verify each Q systematically

Step 1: Understand Your Context

Your task prompt will include:

## Migration Scope
[What was migrated - framework, library, infrastructure]

## From/To
- Previous: [version/technology]
- Current: [version/technology]

## Migration Plan
[Link to or summary of migration plan]

## Codebase
$CLAUDE_PROJECT_DIR = /path/to/project

Step 2: Verify Migration Completeness

# Check for leftover old patterns
tldr search "oldPattern|deprecatedAPI"'

# Verify new patterns in use
tldr search "newPattern|currentAPI"'

# Check version numbers
cat package.json pyproject.toml | grep -E "version|\"name\""

# Look for TODO/migration markers
tldr search "TODO.*migration|FIXME.*upgrade"'

Step 3: Review Checklist

Completeness

  • All old patterns replaced
  • No deprecated APIs in use
  • Dependencies updated
  • No partial migrations

Compatibility

  • Backward compatible (if required)
  • Deprecation warnings addressed
  • Data migrations complete

Safety

  • Tests pass on new version
  • No regressions
  • Rollback plan exists
  • Monitoring in place

Consistency

  • No mixed old/new patterns
  • Documentation updated
  • Changelog updated

Step 4: Write Output

ALWAYS write review to:

$CLAUDE_PROJECT_DIR/.claude/cache/agents/surveyor/output-{timestamp}.md

Output Format

# Migration Review: [From] -> [To]
Generated: [timestamp]
Reviewer: surveyor-agent

## Verdict: COMPLETE / INCOMPLETE / BLOCKED

## Summary
**Migration Scope:** [Framework/Library/Infrastructure]
**Completeness:** X% complete
**Blocking Issues:** [count]

## Version Verification

| Component | Expected | Actual | Status |
|-----------|----------|--------|--------|
| framework | 2.0.0 | 2.0.0 | OK |
| library-a | 3.0.0 | 2.5.0 | OUTDATED |

## Completeness Check

### Old Patterns Found (Should be zero)
| Pattern | Occurrences | Locations |
|---------|-------------|-----------|
| oldFunction() | 3 | file1.ts, file2.ts |
| deprecatedClass | 0 | - |

### New Patterns Adopted
| Pattern | Occurrences | Expected |
|---------|-------------|----------|
| newFunction() | 15 | 15 |
| currentClass | 8 | 8 |

## Leftover Migration Tasks

### Incomplete
- [ ] `src/legacy/old-module.ts` - Still uses old API
- [ ] `src/utils/helper.ts:45` - Deprecated function call

### Skipped (with justification)
- [ ] `src/vendor/third-party.ts` - External code, out of scope

## Dependency Audit

| Dependency | Pre-Migration | Post-Migration | Compatible |
|------------|---------------|----------------|------------|
| dep-a | 1.0.0 | 2.0.0 | Yes |
| dep-b | 3.0.0 | 3.0.0 | Yes |

## Breaking Changes Addressed

| Breaking Change | Status | Notes |
|-----------------|--------|-------|
| API signature change | Fixed | All callers updated |
| Default behavior change | Tested | Works as expected |

## Test Results

### Test Suite Status
- Unit tests: PASS / FAIL
- Integration tests: PASS / FAIL
- E2E tests: PASS / FAIL

### Migration-Specific Tests
- [ ] Tests for new API patterns
- [ ] Tests for data migrations
- [ ] Regression tests

## Data Migration Status (if applicable)

| Data Source | Records | Migrated | Verified |
|-------------|---------|----------|----------|
| users table | 1000 | 1000 | Yes |
| orders table | 5000 | 5000 | Yes |

## Rollback Readiness

**Rollback Possible:** Yes / No
**Rollback Tested:** Yes / No
**Rollback Steps Documented:** Yes / No

### Rollback Risks
- [Risk if rollback needed]

## Issues

### Critical (Blocks Completion)
**Issue:** [Incomplete migration]
**Location:** `file.ts:45`
**Required Action:** [What must be done]

### Warnings
**Issue:** [Potential concern]
**Recommendation:** [What to monitor]

## Recommendations

### Before Declaring Complete
1. [Required action]
2. [Required action]

### Post-Migration Tasks
1. [Remove deprecated code in next release]
2. [Update monitoring dashboards]

Read the full file on GitHub · 202 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 · 202 lines · 7 tokens per session scan A b2df1245d5fa

Subscribe to this mod's changes

surveyor is an agent published in the GitHub repository vibeeval/vibecosystem (530 stars, last pushed 28d ago), licensed MIT. It adds 7 tokens to every session and 1,246 once invoked, about $0.0000 per session on Opus 5. A static security scan graded it A with 0 findings. It is 95% identical to surveyor, differing in 402 lines, and is treated as a copy.

Related

Other agents, from other repositories