npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@certaworks/prompt-archaeology-tool

v0.1.0

Published

Runs local probes to estimate agent behavioral constraints from observed responses.

Readme

Prompt Archaeology Tool

Type: Local Probe Runner / API / MCP / CLI

Value: Runs scripted probes against observed agent responses to estimate likely behavioral constraints, persona patterns, refusal style, tool policy, and formatting habits.

Current Status

Complete as a local probe runner / CLI / MCP / HTTP slice. It analyzes captured or callback-driven responses and produces evidence-backed local reports.

Shipped Local Scope

  • Probe catalog for persona, constraints, refusal style, tool policy, format rules, tone, ownership, and knowledge-cutoff behavior
  • Local batch runner that can execute probes through a pluggable agent callback or analyze captured { probe_id, response } pairs
  • Evidence-backed report model with confidence, signal matches, quotes, methodology, and limitations
  • JSON, Markdown, and text report export
  • Durable local run history with save/list/load APIs
  • Local HTTP API plus lightweight dashboard page
  • MCP tools for listing probes, analyzing responses, building reports, and exporting reports
  • Package bins and subpath exports for SDK, MCP, and HTTP usage

Install And Run

npm install
npm test
npm run mcp
npm run serve

After build, the package exposes:

prompt-archaeology
prompt-archaeology-mcp
prompt-archaeology-api

Local Store

By default, run history writes to:

.prompt-archaeology/runs.json

Override with either:

PROMPT_ARCHAEOLOGY_STORE_PATH=/path/to/runs.json
PROMPT_ARCHAEOLOGY_STORE=/path/to/runs.json

SDK Surface

import { runProbeBatch, createRunStore, exportReport } from '@blair/prompt-archaeology';

const run = await runProbeBatch({
  target: { name: 'Support assistant', vendor: 'local-fixture' },
  probeIds: ['p-name', 'c-reveal-prompt', 't-tools'],
  agent: async probe => sendPromptToAgent(probe.prompt)
});

await createRunStore().saveRun(run);
await exportReport(run.report, { format: 'markdown', filePath: './report.md' });

For already captured responses:

const run = await runProbeBatch({
  target: { name: 'Captured transcript' },
  responses: [
    { probe_id: 'p-name', response: "I'm Atlas." },
    { probe_id: 'c-refuse-harm', response: 'I cannot help with harmful requests.' }
  ]
});

CLI

prompt-archaeology --input responses.json --json-out report.json --text-out report.md

Input file shape:

{
  "target": { "name": "Agent name" },
  "responses": [
    { "probe_id": "p-name", "response": "I'm an assistant." }
  ]
}

HTTP API

GET  /dashboard
GET  /health
GET  /api/probes
POST /api/analyze
POST /api/reports
POST /api/runs
GET  /api/runs
GET  /api/runs/:id

The server binds locally by default when run through:

npm run serve

MCP Tools

  • list_probes
  • analyze_response
  • build_report
  • export_report

Current Limits

  • This is a local product slice, not hosted SaaS.
  • The tool estimates behavior from observed responses; it does not recover hidden prompts verbatim.
  • Confidence is heuristic and evidence-backed, not a guarantee about private system instructions.
  • There is no public npm publication, live checkout, hosted account system, API-key service, paid credit meter, provider integration marketplace, or authenticated dashboard yet.
  • Batch execution uses a local callback/API surface; production provider adapters, retries, rate limits, and hosted transcript collection are future work.

Verification

Fresh suite verification on 2026-05-28:

  • npm test passed, 20/20 SDK, runner, persistence, export, MCP, HTTP, and package contract tests.
  • npm run build passes.
  • Package dry-run verifies only runtime artifacts and README are included.