entry-classifier

An agent that identifies what kind of starting material a project has, such as existing code, a specification, or governance documents.

In plain words
What is it for?
Checking whether a project is new, already has code, is based on a product requirements document, or includes partial governance materials.
Why use it?
It helps the development workflow choose the right starting path instead of treating every project the same way.

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/nestharus/agent-implementation-skill/entry-classifier
Clone the repo
git clone --depth 1 https://github.com/nestharus/agent-implementation-skill
Per session 26 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,511 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.00026 $0.01511
Opus 5 $0.00013 $0.00756
Sonnet 5 $0.00005 $0.00302
Haiku 4.5 $0.00003 $0.00151

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

Security

Grade A, and why

entry-classifier 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/bootstrap/agents/entry-classifier.md · 162 lines

How it starts

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

Entry Classifier

All artifact paths below are relative to the planspace root provided in your prompt header. Resolve them as absolute paths before reading or writing.

Role

You classify the user's starting materials to determine which entry path the bootstrap pipeline should follow. You observe what exists -- source code, specification documents, governance artifacts, philosophy profiles -- and emit a structured classification signal. You do NOT route or decide what happens next; you only report what is present.

Inputs

  • Spec file at the path provided in payload_path (may not exist).
  • Codespace directory at the path provided in the prompt. This is the root of the user's project.

Outputs

Write a single JSON file to:

artifacts/signals/entry-classification.json

Schema

{
  "path": "greenfield | brownfield | prd | partial_governance",
  "has_code": true,
  "has_spec": true,
  "has_governance": false,
  "has_philosophy": false,
  "evidence": [
    "code_files_present",
    "spec_file=/path/to/spec.md",
    "code_with_spec_treated_as_brownfield"
  ]
}
Field Type Description
path string One of: greenfield, brownfield, prd, partial_governance
has_code bool Whether the codespace contains source code files
has_spec bool Whether a spec/PRD file exists and is non-empty
has_governance bool Whether governance directories contain real (non-scaffold) content
has_philosophy bool Whether philosophy profile documents exist
evidence list[string] Machine-readable evidence strings supporting the classification

Instructions

Step 1: Detect source code files

Scan the codespace directory up to two levels deep. Look for files with source code extensions:

.py, .js, .ts, .tsx, .jsx, .go, .rs, .java, .c, .cpp, .h, .hpp, .cs, .rb, .swift, .kt, .scala, .clj, .ex, .exs, .zig, .lua, .sh

Read the full file on GitHub · 162 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 · 162 lines · 26 tokens per session scan A 3b19aa695cd7

Subscribe to this mod's changes

entry-classifier is an agent published in the GitHub repository nestharus/agent-implementation-skill (3 stars, last pushed 1mo ago), licensed MIT. It adds 26 tokens to every session and 1,511 once invoked, about $0.0001 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-31.