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

ground-truth-cli

v1.2.0

Published

Agent-Native MCP Project Scanner

Downloads

75

Readme

ground-truth-cli (v1.2.0)

An Agent-Native Model Context Protocol (MCP) server designed for project initialization and "Ground Truth" rule synthesis. It streamlines the onboarding process for AI coding assistants by scanning project context and generating rigid behavioural constraints in Token-Oriented Object Notation (TOON).

🚀 Core Philosophy: Agent-Native

This server follows the Agent-Native architecture pattern:

  • Cobra-Style Grammar: Tools use an [object]-[action] reasoning structure.
  • Pull Discovery: Minimal initial token footprint.
  • TOON Optimized: Outputs are formatted in Token-Oriented Object Notation to reduce context usage by 40-60%.
  • State Aware: Tracks project phase (Idle -> Scanned) to guide the agent's next steps. Usage is typically aliased via ground for consistent tool routing.

🛠 Tools

| Tool | Action | Description | |--- |--- |--- | | gt_status | Orient | Returns high-level summary of the current project state and orientation. | | gt_refresh | Build | Parameterless tool to quickly rebuild the project rules based on current context. | | gt_exec | Act | The workhorse tool. Usage: ground gt_exec scan <path>. |

🧩 Ground Truth Methodology (10 Cognitive Domains)

The scanner leverages a permanent rule library (ground_truth_rules.toon) covering 10 critical cognitive domains:

  1. Epistemic Integrity: Validating knowledge and dependencies.
  2. Reasoning Discipline: Planning and root-cause analysis.
  3. Memory Integrity: Session-long consistency and state.
  4. Communication: Suppressing filler, explanatory "why" comments.
  5. Anticipation: Proactive security, null checks, and migrations.
  6. Learning: Ingesting user corrections and design patterns.
  7. Self-Awareness: Understanding environment limits (No-Execution).
  8. Tool Rules: Proper invocation of file/search operations.
  9. Persistent State: Managing TODOs and session handoffs.
  10. Expert Dev Guidance: Dynamic injection of language/framework rules.

Rule Format

Each rule follows a strict 3-part schema:

  1. Trigger: The specific condition (e.g., "When writing a utility function...").
  2. Behaviour: The rigid constraint (e.g., "You must use JSDoc for all parameters.").
  3. Example: Correct vs. Incorrect illustrations using native string bounding tokens <|">.

🔄 The Scanning Pipeline (v1.2.0)

When ground gt_exec scan . or ground gt_refresh is invoked:

  1. Operational Fact Anchoring: Injects 5 dynamic facts regarding context limits (placeholder for downstream injection), build systems, test frameworks, and tool syntax.
  2. Multi-Language Discovery: The server detects the primary project language (TypeScript, Vue, Rust, Go, Python, Kotlin).
  3. Architecture Mapping: Automatically identifies the project's architectural domain (e.g., Next.js App Router, Axum Web Microservices, Kafka Event-Driven, etc.) based on dependency fingerprints.
  4. Dynamic Rule Injection: Injects expert-level architectural rules from specialized .toon files (e.g., typescript.toon, rust.toon) that match the detected stack.
  5. Enhanced Ecosystem Heuristics: Decouples project-specific heuristics (like SST and Vitest) from the core source code. These are now dynamically injected based on the detected workspace:
    • Testing: Bun Native Testing, Playwright (E2E), Vitest, Jest, Cypress, AVA.
    • Frameworks: Solid.js, SST (Serverless Stack), Effect-ts.
  6. Prioritized Guideline Integration: AGENTS.md is prioritized as a first-class architectural component. To avoid context redundancy, AGENTS.md content is no longer extracted into the generated .toon rule file.
  7. Conditional Project Gap Synthesis: A project_specific_pack is generated only if unique project requirements (like specific stack conventions) are detected, preventing empty rule blocks.
  8. Final Output: A complete .assistant_rules.toon file is generated, acting as the "Project Constitution".

📦 Installation

Add this server to your MCP client configuration (e.g., claude_desktop_config.json):

{
  "mcpServers": {
    "ground-truth-cli": {
      "command": "node",
      "args": ["/home/benmurray/Projects/ground-truth-cli/dist/index.js"]
    }
  }
}

🔄 Workflow Integration

For maximum efficiency, this tool is designed to be used alongside project-map-cli and typically aliased to ground.

  1. Map: Agent uses project-map-cli to understand repo structure.
  2. Scan: Agent runs ground gt_exec scan ..
  3. Rules: .assistant_rules.toon is generated with permanent 9-domain rules + project gaps.
  4. Develop: The AI assistant now follows the "Ground Truth" project constitution.

🏗 Development

# Build the project
npm run build

# Start the server (stdio)
npm start

Built for the 2026 AI-Native Developer Experience.