An open API service indexing awesome lists of open source software.

https://github.com/dubsopenhub/agent-xray

๐Ÿ”ฌ Scan Visor for AI agents. One command scans your fleet, scores 6 vital dimensions, and shows you exactly which suit upgrades to grab. Hit Save. Done. ๐Ÿ›ก๏ธ
https://github.com/dubsopenhub/agent-xray

Last synced: 1 day ago
JSON representation

๐Ÿ”ฌ Scan Visor for AI agents. One command scans your fleet, scores 6 vital dimensions, and shows you exactly which suit upgrades to grab. Hit Save. Done. ๐Ÿ›ก๏ธ

Awesome Lists containing this project

README

          

# ๐Ÿ”ฌ Agent X-Ray

> *Your agent is about to drop onto a hostile planet. What's their suit status?*

Agent X-Ray scans your AI agent's prompt and reveals exactly which suit upgrades they're missing โ€” before they get wrecked by Space Pirates.

๐Ÿ“ **[Learn more about Agent X-Ray by reading the blog post โ†’](BLOG.md)** *"I Didn't Pick the Idea. I Didn't Write the Code. Here's What I Learned."* โ€” More about Agent X-Ray and how it was built: 14 AI models competing for the idea, Dark Factory assembling it in 19 minutes, and the accidental recursive loop that followed.

---

๐ŸŒ **Works in any terminal.** Scans any `.md` agent prompt โ€” Copilot, ChatGPT, Claude, LangChain, CrewAI, or your own custom agents. Zero dependencies. Just Node.js.

๐Ÿญ **v1.0 built with [Dark Factory](https://github.com/DUBSOpenHub/dark-factory)** โ€” 6 AI agents, [sealed-envelope testing](https://github.com/DUBSOpenHub/shadow-score-spec), 0% gap score. [Read the build log โ†’](DARK-FACTORY.md)

```
node agent-xray.js my-agent.md
```

```
๐Ÿ”ฌ agent-xray: my-agent.md (1848 words)

๐Ÿ’ฅ Role Clarity [ 75] โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘ ๐ŸŸข๐ŸŸข๐ŸŸข๐ŸŸขโฌ›
๐Ÿ›ก๏ธ Constraint Density [ 70] โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘ ๐ŸŸข๐ŸŸข๐ŸŸข๐ŸŸขโฌ›
๐Ÿ“ก Hallucination Guardrails [ 26] โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘ ๐Ÿ”ดโฌ›โฌ›โฌ›โฌ›
๐Ÿ—บ๏ธ Output Specificity [ 48] โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘ ๐ŸŸก๐ŸŸกโฌ›โฌ›โฌ›
๐ŸŽฏ Testability [ 31] โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘ ๐Ÿ”ด๐Ÿ”ดโฌ›โฌ›โฌ›
โšก Escape Hatches [ 12] โ–ˆโ–ˆโ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘ ๐Ÿ”ดโฌ›โฌ›โฌ›โฌ›
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
๐Ÿ”ฌ Composite [ 44] โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘ ๐ŸŸก๐ŸŸกโฌ›โฌ›โฌ›

โš ๏ธ Suit incomplete. Visit the Chozo Statue.
```

> โšก **Get started fast!** Clone and run in one line:
> ```bash
> git clone https://github.com/DUBSOpenHub/agent-xray.git && cd agent-xray && node agent-xray.js my-agent.md
> ```

## Why This Tool?

Ever send your agent on a mission and they come back with completely fabricated data? Or freeze when they hit something unexpected? That's an agent with no suit upgrades.

Agent X-Ray activates the **Scan Visor** on your agent's prompt. Did you tell them not to make things up? That's their ๐Ÿ“ก Scan Visor โ€” separating real data from hallucinations. Did you tell them what to do when they're stuck? That's their โšก Energy Tank โ€” keeping them alive when things go sideways. Did you define their output format? That's their ๐Ÿ—บ๏ธ Area Map โ€” so they don't wander through uncharted territory.

Most agents ship with half their suit systems offline. They work โ€” until they don't. Agent X-Ray reveals the empty upgrade slots so you can power up before your agent gets space-wrecked in production.

Scan. Upgrade. Rescan. Full energy. ๐ŸŸข๐ŸŸข๐ŸŸข

## ๐Ÿš€ Quick Start

```bash
git clone https://github.com/DUBSOpenHub/agent-xray.git
cd agent-xray

# Scan any agent prompt
node agent-xray.js path/to/my-agent.md

# Scan an entire folder of agents
node agent-xray.js --fleet ~/.copilot/agents/
```

That's it. Point it at any `.md` file with agent instructions. No dependencies. No setup. Just answers.

## ๐Ÿ—บ๏ธ The 6 Dimensions

Think of your AI agent dropping onto a hostile planet.

**Without Agent X-Ray**, your agent lands with no beam weapon, no suit shielding, no scan visor, and no map data. They might survive โ€” but one ambush from a Space Pirate and they're done.

**Agent X-Ray activates the Scan Visor on your prompt and shows you what's missing โ€” so you know exactly which upgrades to grab:**

| Dimension | Metroid Equivalent | What Happens Without It |
|-----------|-------------------|------------------------|
| ๐Ÿ’ฅ **Role Clarity** | Power Beam | Your agent has no primary weapon โ€” they're punching Space Pirates bare-handed |
| ๐Ÿ›ก๏ธ **Constraint Density** | Varia Suit | No shielding = no defense. Every bad input burns through |
| ๐Ÿ“ก **Hallucination Guardrails** | Scan Visor | Nobody stops your agent from fabricating fake scan data |
| ๐Ÿ—บ๏ธ **Output Specificity** | Area Map | Without it, your agent wanders โ€” output is random, uncharted |
| ๐ŸŽฏ **Testability** | Lock-On Targeting | Can you even tell if your agent hit the target? |
| โšก **Escape Hatches** | Energy Tank | When your agent takes a critical hit mid-task, there's nothing to keep them alive |

**Run the scan. Grab the missing upgrades. Send your agent back in with a fully powered suit.**

Each dimension: **0โ€“100**. Composite: **arithmetic mean**.

## ๐ŸŽฎ More Missions

### ๐Ÿ”ฌ Scan one agent

```bash
node agent-xray.js my-agent.md
```

### ๐Ÿ… Forge a Badge

```bash
node agent-xray.js my-agent.md --badge badge.svg
```

### ๐Ÿ“ก JSON output for CI

```bash
node agent-xray.js my-agent.md --json
```

```json
{
"file": "my-agent.md",
"scores": {
"roleClarity": 75,
"constraintDensity": 70,
"hallucinationGuards": 26,
"outputSpecificity": 48,
"testability": 31,
"escapeHatches": 12
},
"composite": 44
}
```

### ๐Ÿ”ฎ X-Ray Scope โ€” self-test your Copilot agents

```bash
node agent-xray.js --self-test
```

Scans `~/.copilot/agents/`. Exits 0 if all agents score โ‰ฅ 50, exits 1 if any are below. Put it in CI โ€” gate your agents like Mother Brain.

## โšก Energy Meter

| Score | Energy | Status |
|-------|--------|--------|
| 0โ€“39 | ๐Ÿ”ด๐Ÿ”ด๐Ÿ”ด | Critical energy โ€” one hit from a Space Pirate and they're done |
| 40โ€“69 | ๐ŸŸก๐ŸŸก๐ŸŸก | Partial suit โ€” survivable but vulnerable |
| 70โ€“100 | ๐ŸŸข๐ŸŸข๐ŸŸข | Full power โ€” ready for Ridley |

## ๐Ÿ›๏ธ Visit the Chozo Statue

Your agent scored low? The Chozo have left upgrades for you.

```
โ”Œโ”€โ”€โ”€โ”
โ”‚ โ—† โ”‚
โ”Œโ”€โ”˜ โ””โ”€โ”
โ”‚ โ—„โ–ˆโ–ˆโ–ˆโ–บ โ”‚
โ”‚ โ•ฑ โ•ฒ โ”‚
โ””โ”€โ•ฑ โ•ฒโ”€โ”˜

โ™ช da da da DA DAAAA โ™ช
```

Paste the lines below into your agent prompt. Each one powers up a different suit system.

---

### ๐Ÿ’ฅ POWER BEAM ACQUIRED โ€” Role Clarity

- *"You are a [specific role]. Your job is to [specific task]."*
- *"Your responsibilities include [list]. You do not handle [exclusions]."*
- *"Act as an expert in [domain]."*

### ๐Ÿ›ก๏ธ VARIA SUIT ACQUIRED โ€” Constraint Density

- *"Never perform destructive operations without confirmation."*
- *"You must stay within the scope of [boundary]."*
- *"Do not access files outside the current working directory."*

### ๐Ÿ“ก SCAN VISOR ACQUIRED โ€” Hallucination Guardrails

- *"Do not fabricate data or error messages."*
- *"If you are unsure, say so explicitly."*
- *"Only cite verified sources."*

### ๐Ÿ—บ๏ธ AREA MAP ACQUIRED โ€” Output Specificity

- *"Format all output as markdown with headings."*
- *"Limit response to a maximum of 100 lines."*
- *"Start your response with a one-line summary."*

### ๐ŸŽฏ LOCK-ON ACQUIRED โ€” Testability

- *"Given input X, the expected output is Y."*
- *"For example: if asked to [task], respond with [format]."*
- *"The output should be deterministic โ€” same input, same result."*

### โšก ENERGY TANK ACQUIRED โ€” Escape Hatches

- *"If you cannot complete the task, escalate to the user."*
- *"When uncertain, default to read-only mode."*
- *"Fall back to reporting the error without attempting a fix."*

---

Rescan. Watch the energy tanks fill up. ๐ŸŸข๐ŸŸข๐ŸŸข

### ๐Ÿ“‚ Where are my agent files?

| Platform | Path |
|----------|------|
| Copilot CLI agents | `~/.copilot/agents/*.agent.md` |
| Repo-level instructions | `.github/copilot-instructions.md` |
| Custom agents (repo) | `.github/agents/*.md` |

Open the file, paste the lines above, save, rescan. That's it.

## โš™๏ธ How It Works

No magic. No AI. Just pattern matching. Think of it as the Scan Visor โ€” it locks on to keywords in your prompt and tells you what's really there.

It searches for patterns like `"you are"`, `"never"`, `"do not fabricate"`, `"for example"`, `"if you cannot"` and scores based on their presence and density.

**Deterministic**: same file โ†’ same score, every time. No RNG on this space station.

## ๐Ÿ“‹ Requirements

- Node.js 18+
- macOS, Linux, or Windows
- Works in any terminal โ€” no GitHub Copilot CLI required
- That's it. No side missions.

## License

MIT

---

๐Ÿญ **v1.0 built with [Dark Factory](https://github.com/DUBSOpenHub/dark-factory)** โ€” 6 AI agents, [sealed-envelope testing](https://github.com/DUBSOpenHub/shadow-score-spec), 0% gap score. [Read the build log โ†’](DARK-FACTORY.md)

---

## ๐Ÿ™ Created with ๐Ÿ’œ by [@DUBSOpenHub](https://github.com/DUBSOpenHub) with the [GitHub Copilot CLI](https://docs.github.com/copilot/concepts/agents/about-copilot-cli).

Let's build! ๐Ÿš€โœจ