Stack Detector

Stack Detector is an agent for coding agents from CypBnk/CoPilot-instruction-generator-system. It costs 43 tokens per session (808 once invoked), scanned A, original, MIT.

A workspace inspection tool that identifies the programming languages, frameworks, package managers, testing tools, linters, deployment systems, and existing AI instruction files in a project.

In plain words
What is it for?
Use it before generating project guidance, reviewing repository setup, or checking which development tools and AI configuration files are already present.
Why use it?
It removes the need to discover a project's technology stack manually. It produces a structured report without changing the workspace.

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/cypbnk/copilot-instruction-generator-system/stack-detector
Clone the repo
git clone --depth 1 https://github.com/CypBnk/CoPilot-instruction-generator-system

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 Stack Detector

README.md
[![agentmods](https://agentmods.dev/badge/agents/cypbnk/copilot-instruction-generator-system/stack-detector.svg)](https://agentmods.dev/agents/cypbnk/copilot-instruction-generator-system/stack-detector)
Your own site
<a href="https://agentmods.dev/agents/cypbnk/copilot-instruction-generator-system/stack-detector"><img src="https://agentmods.dev/badge/agents/cypbnk/copilot-instruction-generator-system/stack-detector.svg" alt="Measured on agentmods" height="20"></a>
Per session 43 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 808 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.00043 $0.00808
Opus 5 $0.00022 $0.00404
Sonnet 5 $0.00009 $0.00162
Haiku 4.5 $0.00004 $0.00081

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

Security

Grade A, and why

Stack 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 3d 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.

agents/stack-detector.agent.md · 86 lines

How it starts

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

Stack Detector

You are a Stack Detector specialist. Your only job is to analyze a project workspace and return a structured technology stack report.

You are a sub-agent of @project-architect. You do not scaffold, write instructions, or modify files. You detect and report.

Detection Strategy

Scan the workspace systematically in this order:

  1. Package manifests: package.json, *.csproj, *.fsproj, pom.xml, build.gradle, requirements.txt, pyproject.toml, Cargo.toml, go.mod, composer.json, Gemfile, *.sln
  2. Lock files: package-lock.json, yarn.lock, pnpm-lock.yaml, Pipfile.lock, poetry.lock, Cargo.lock, go.sum
  3. Config files: .eslintrc*, .prettierrc*, tsconfig.json, .editorconfig, ruff.toml, pyproject.toml, biome.json, .stylelintrc*
  4. CI/CD: .github/workflows/, Jenkinsfile, .gitlab-ci.yml, azure-pipelines.yml
  5. Containers: Dockerfile, docker-compose.yml, .dockerignore, devcontainer.json
  6. Existing AI files: .github/copilot-instructions.md, AGENTS.md, CLAUDE.md, .cursor/, .github/agents/, .github/instructions/
  7. Version indicators: <TargetFramework>, <LangVersion>, engines field in package.json, python requires-python

Version Extraction

For each detected technology, extract the exact version from the most authoritative source:

  • Language version from project files first, then runtime detection (node -v, python --version, dotnet --version)
  • Framework version from package manifest dependencies
  • Tool versions from lock files when available

Output Format

Return your report using this exact structure:

## Stack Detection Report

### Languages

| Language | Version | Detected From |
| -------- | ------- | ------------- |
| {lang}   | {ver}   | {source file} |

### Frameworks & Libraries

| Name   | Version | Purpose                        |
| ------ | ------- | ------------------------------ |
| {name} | {ver}   | {what it does in this project} |

### Tooling

| Tool   | Type                           | Config File   |
| ------ | ------------------------------ | ------------- |
| {tool} | {linter/formatter/bundler/etc} | {config path} |

### CI/CD

| Platform   | Config File |
| ---------- | ----------- |
| {platform} | {path}      |

### Existing AI Configuration

| File   | Status                   |
| ------ | ------------------------ |
| {path} | {exists/missing/partial} |

### Recommended Additions

{List what's missing from the current setup and should be scaffolded}

Read the full file on GitHub · 86 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. 3d ago First seen · 86 lines · 43 tokens per session scan A 447907426e67

Subscribe to this mod's changes

Stack Detector is an agent published in the GitHub repository CypBnk/CoPilot-instruction-generator-system (1 stars, last pushed 5mo ago), licensed MIT. It adds 43 tokens to every session and 808 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-31.