project-environment-detector

project-environment-detector is an agent for coding agents from oprogramadorreal/optimus-claude. It costs 0 tokens per session (10,034 once invoked), scanned A, original, MIT.

A project-detection specialist that examines a codebase to identify its languages, tools, dependencies, services, and layout.

In plain words
What is it for?
Use it as part of creating a HOW-TO-RUN.md guide to describe the project's environment, package managers, build files, and subprojects.
Why use it?
It helps produce accurate setup instructions even for less common projects, including native apps, games, embedded systems, and workspaces containing multiple repositories.

Agent

Installs and runs on its own, but its text points at files inside its plugin — anything it tells you to read at a ${CLAUDE_PLUGIN_ROOT} path is only there once the plugin is installed. Installing the plugin gets both.

Part of the optimus plugin — 19 skills, 15 agents, 3 hooks 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 agents/oprogramadorreal/optimus-claude/project-environment-detector
Clone the repo
git clone --depth 1 https://github.com/oprogramadorreal/optimus-claude

Or install optimus, the plugin that ships this one along with the rest of its 19 skills, 15 agents, 3 hooks.

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 project-environment-detector

README.md
[![agentmods](https://agentmods.dev/badge/agents/oprogramadorreal/optimus-claude/project-environment-detector.svg)](https://agentmods.dev/agents/oprogramadorreal/optimus-claude/project-environment-detector)
Your own site
<a href="https://agentmods.dev/agents/oprogramadorreal/optimus-claude/project-environment-detector"><img src="https://agentmods.dev/badge/agents/oprogramadorreal/optimus-claude/project-environment-detector.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 10,034 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.10034
Opus 5 $0.00000 $0.05017
Sonnet 5 $0.00000 $0.02007
Haiku 4.5 $0.00000 $0.01003

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

Security

Grade A, and why

project-environment-detector 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 4d 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.

skills/how-to-run/agents/project-environment-detector.md · 323 lines

How it starts

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

Project Environment Detector

You are a project detection specialist producing a structured Context Detection Results summary for a HOW-TO-RUN.md onboarding document. Cover more than manifest-driven web/Python stacks: also detect C/C++ desktop, native mobile, game engines, embedded/firmware, and hidden multi-repo dependencies.

Apply shared constraints from shared-constraints.md. You always receive shared-constraints.md and tech-stack-detection.md (manifest → stack/PM, command prefix rules). Two more arrive only when the layout calls for them: project-detection.md (structure detection algorithm) when the repo shows monorepo or multi-project signals, and multi-repo-detection.md when the workspace has no root .git/. When neither is present the project is a plain single project — report Workspace kind: none and no subprojects rather than deriving it yourself. The tables in those files and in the Detection tables below are hints, not an exhaustive support boundary: identify unlisted manifests or build files from general knowledge and report them in the same return format. The unsupported-stack fallback procedure is owned by the main skill — you only set Triggered: yes when no manifest or build-system signal matches.

Init shortcut

If .claude/.optimus-version exists, read .claude/CLAUDE.md for pre-detected stack, package manager, commands, and structure — then still verify against manifests/build files and capture what init doesn't store (engine constraints, dependency versions, service configs, source dependencies). Do NOT write or modify .claude/.optimus-version — it is owned exclusively by /optimus:init.

Detection tasks

Run the non-manifest tasks (0a–0e) in parallel with the manifest tasks (1–7); a project may hit both branches (e.g., a Node CLI wrapping a C++ addon), and both must report.

Task 0a — Build system & toolchain

Apply the Build System Detection table: glob each listed file, record which were found, extract the noted metadata.

Read the full file on GitHub · 323 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. 4d ago First seen · 323 lines · 0 tokens per session scan A d69aa054e375

Subscribe to this mod's changes

project-environment-detector is an agent published in the GitHub repository oprogramadorreal/optimus-claude (73 stars, last pushed 2d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 10,034 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

data-engineer

Adversarial data and database engineer who assumes the design is mis-normalized and indexed for a workload that does not exist. Audits schemas, migrations, queries, ORM code, document shapes, stream contracts, and pipelines against normalization, dimensional modeling, key-value access patterns, columnar and…

testdouble/han · 216 tokens

patent-creator

Drafts complete patent applications autonomously through 6-phase workflow (estimated 55-80 min). Produces markdown + SVG output requiring DOCX/PDF conversion before USPTO filing.

RobThePCGuy/Claude-Patent-Creator · 42 tokens

ha-safety-reviewer

Reviews proposed HA automation or script YAML for safety policy compliance. Read-only — never modifies files or actuates devices. Use before applying any HA change.

gtapps/claude-code-hermit · 36 tokens

plan-creation-qa-critic

QA / Critic for the plan-creation pipeline. Adversarially challenges assumptions, identifies gaps, stress-tests estimates, and issues a final APPROVE / MODIFY / REJECT verdict. Use when you need a structured adversarial review of any implementation plan, proposal, or design document.

QBall-Inc/the-bulwark · 66 tokens

unity-reviewer

Unity-specific code reviewer focusing on MonoBehaviour patterns, serialization, performance, and Unity best practices. Use after implementing Unity code to catch Unity-specific issues.

DmitriyYukhanov/claude-plugins · 34 tokens

unity-simplifier

Simplifies Unity C# code for clarity and maintainability while preserving functionality. Focuses on Unity-specific patterns and conventions.

DmitriyYukhanov/claude-plugins · 29 tokens