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

agoragentic-ecf-core

v1.4.1

Published

Local-first context and policy compiler for safer agents and Agent OS preview exports.

Readme

ECF Core

ECF Core local context governance animation

ECF Core is the open-source Micro ECF runtime: a local-first context and policy compile stage for safer agents.

It helps builders compile local repos, docs, and small data sources into citation-ready context packets, source maps, evidence units, page/tree indexes, policy summaries, grounding evals, and Agent OS preview artifacts.

It does not deploy agents, handle wallets, route marketplace calls, or include Full ECF enterprise internals.

ECF Core helps answer:

  • What context is allowed?
  • Where did it come from?
  • What must be blocked?
  • What can be cited?
  • What evidence can safely support an agent answer?
  • What can be handed to an agent safely?
  • What should be exported into Agent OS later?

Product Boundary

ECF Core is not Full ECF Enterprise.

ECF Core is:

  • local-first
  • open-source
  • context and policy packet generation
  • source-map and citation aware
  • Agent OS preview export
  • useful for small builders and teams

ECF Core is not:

  • hosted Agent OS
  • Full ECF Enterprise
  • wallet or x402 settlement
  • marketplace ranking
  • tenant-isolated enterprise runtime
  • SOC 2 certified or audited software

ECF Core product boundary

Micro ECF
-> local context and policy packets for builders

ECF Core
-> open-source self-hosted context governance runtime

Agent OS
-> paid hosted deployment, runtime, budgets, APIs, receipts, marketplace access, and x402

Full ECF
-> internal/private platform engine for future high-touch dedicated deployments only

Private / Full ECF Interest

ECF Core is the public open-source layer. Full ECF is not included in this repo and is not a self-serve public SKU.

If you have a scoped private or dedicated context-governance use case and want to discuss whether Agoragentic should support it, email [email protected].

Do not treat that contact path as a SOC 2, audit, enterprise-readiness, hosted runtime, wallet, settlement, or marketplace-routing claim.

What Is Included

  • Context packet schema
  • Policy summary schema
  • Source map schema
  • Provenance and citation contract
  • Local/self-hosted runtime boundary
  • Connector adapter contracts
  • Markdown/docs section adapter
  • SQLite schema summary adapter
  • OpenAPI summary adapter
  • MCP context-provider summary adapter
  • Dependency-free local compiler
  • ecf-core CLI
  • Deterministic eval reports
  • Grounding eval loop for local fail-closed answer checks
  • Semantic-lite retrieval preservation scoring
  • Context Evidence Units for policy-aware, citation-backed source claims
  • ECF Compile Stage readiness summaries for Agent OS preview cards
  • Deterministic context compaction reports with duplicate-claim and citation-survival metrics
  • Page, tree, and retrieval-plan index artifacts for local source-grounded review
  • Optional dependency-free ranking provider contracts (local_vector, Qdrant/Chroma precomputed results, GitNexus/code graph, MCP context provider)
  • Source-preview .NET lane for C#, ASP.NET Core, EF Core, and Agent OS-ready artifact compatibility
  • Deterministic compression experiment metrics
  • Agent OS Harness and deployment-preview exports
  • Agent OS preview/import readiness check
  • Local stdio MCP server for active context serving from compiled artifacts
  • Safe examples for local projects

What Is Not Included

ECF Core does not include:

  • Full ECF enterprise tenant-isolation internals
  • Enterprise access-audit storage internals
  • Customer evidence-packet automation
  • Private copilot runtime
  • Private connector implementations
  • Hosted Agent OS provisioning
  • Router ranking
  • Trust/fraud scoring
  • Wallet settlement
  • x402 settlement execution
  • Operator prompts or internal runbooks
  • SOC 2 certification or audit claims

Relationship To Micro ECF

Micro ECF is the smallest local wedge: it creates durable project artifacts such as ECF.md, source maps, policy summaries, and Agent OS Harness exports.

ECF Core is the next layer up: a self-hosted runtime for teams that want local governance, context compilation, citations, and adapter contracts without adopting Agoragentic Cloud.

Relationship To Agent OS

Agent OS is where agents become deployed products.

Use Agent OS when you need:

  • hosted runtime
  • wallet budgets
  • generated APIs
  • receipts
  • marketplace participation
  • x402 monetization
  • operational support

ECF Core can prepare context and policy evidence for Agent OS, but it does not deploy agents or handle money.

ECF Compile Stage

ECF Core is not a generic RAG app. The default flow does not require Chroma, Pinecone, Qdrant, hosted embeddings, cloud storage, or a paid LLM API.

The compile stage turns local sources into deployment-readiness artifacts:

sources
-> source-map.json
-> policy-summary.json
-> evidence-units.json
-> page-index.json / tree-index.json
-> retrieval-plan.json
-> grounding-eval.json
-> agent-os-import.json

That answers a deployment question rather than only a retrieval question: is this context safe, cited, grounded, and ready for an owner-reviewed Agent OS preview?

Why Use ECF Core?

Use ECF Core when you want an agent to know what it can safely read, cite, summarize, and export before you deploy it into Agent OS.

Before deploying an agent, compile its context boundary.

If you want the agent to run live, hold a budget, expose APIs, sell services, earn through the marketplace, or use x402 monetization, import the output into Agent OS and complete a separate owner-reviewed launch flow.

From ECF Core To Agent OS

Local flow:

ecf-core init .
ecf-core compile . --agent-os
ecf-core eval .
ecf-core eval . --grounding
ecf-core agent-os-preview .ecf-core
ecf-core validate .ecf-core

Intended Agent OS flow:

agoragentic-os preview .ecf-core/agent-os-import.json

Agent OS preview import is available through the hosted Agent OS CLI as a no-spend preview check; live deployment still requires a separate Agent OS launch flow with owner review, policy checks, runtime provisioning, and billing/spend authorization.

Current Status

ECF Core is stable open-source software for local and self-hosted context governance.

The stable 1.0 surface includes:

  1. schemas
  2. local examples
  3. adapter contracts
  4. basic context compiler
  5. deterministic tests
  6. local CLI
  7. deterministic eval reports
  8. Agent OS preview/import artifacts

The 1.1 surface adds deterministic semantic-lite ranking, compression experiment metrics, an Agent OS preview-import check, and real-world example fixtures.

The 1.2 surface adds the local grounding eval loop and durable LLM handoff guidance through ECF.md.

The 1.3 surface adds optional dependency-free ranking provider contracts: built-in local_vector scoring plus precomputed-result hooks for Qdrant, Chroma, GitNexus/code graph, and MCP context providers.

The 1.4 surface adds local page/tree context index artifacts and retrieval-plan metadata for Agent OS preview readiness. It does not add OCR/VLM dependencies, hosted RAG, vector databases, wallet settlement, marketplace routing, or Full ECF internals.

The compile-stage surface now also emits evidence-units.json as the clean Agent OS-facing evidence artifact while retaining context-evidence-units.json for compatibility with earlier consumers.

The .NET source-preview lane adds artifact-compatible C#, ASP.NET Core, and EF Core scanners plus an ecfnet CLI scaffold. It is local/previews-only and does not include Full ECF, hosted Agent OS runtime, wallets, x402 execution, marketplace routing, or enterprise audit internals.

Do not copy the private agoragentic-enterprise/ runtime into this repo.

Install

Install from npm:

npm install -g agoragentic-ecf-core

Or run directly with npx after package publication:

npx agoragentic-ecf-core init .
npx agoragentic-ecf-core compile . --agent-os

GitHub install also works:

npm install -g github:rhein1/agoragentic-ecf-core

Quick Start

ecf-core init .
ecf-core compile . --agent-os
ecf-core eval .
ecf-core agent-os-preview .ecf-core
ecf-core validate .ecf-core

The compiler writes:

.ecf-core/
  context-packet.json
  source-map.json
  policy-summary.json
  evidence-units.json
  context-evidence-units.json
  context-compaction-report.json
  page-index.json
  tree-index.json
  retrieval-plan.json
  manifest.json
  deployment-preview.json
  agent-os-harness.json
  agent-os-handoff.json
  agent-os-import.json
  eval-report.json
  eval-report.md
  grounding-eval.json
  grounding-eval.md

Review ecf.config.json before compiling sensitive repositories.

Run ecf-core eval --grounding, ecf-core agent-os-preview, and ecf-core validate before importing artifacts into Agent OS preview.

Grounding Eval Loop

ECF Core tests whether your local context can safely support agent answers before deployment.

Run:

ecf-core eval . --grounding

The loop is local and fail-closed:

eval query
  |
  v
retrieve allowed sources
  |
  v
synthesize extractive answer
  |
  v
grounded?
  |-- yes -> pass with citation evidence
  |
  |-- no -> rewrite query -> retry
                         |
                         v
              still unsupported?
                         |
                         v
       "I don't know based on the allowed context."

This is not a hosted RAG system and does not require Chroma, Qdrant, LangGraph, Groq, embeddings, or any paid LLM API by default. It retrieves from the compiled context packet, blocks disallowed sources, checks citation support, rewrites unsupported queries, retries within the configured limit, and fails closed when the project does not contain enough evidence.

Agent OS can use grounding-eval.json as preview evidence when deciding whether a deployment has enough context to launch safely. Live deployment, runtime provisioning, wallet funding, marketplace publication, x402 exposure, and Full ECF access remain separate owner-reviewed Agent OS flows.

Context Evidence Units

ECF Core emits deterministic Context Evidence Units during compile:

.ecf-core/evidence-units.json
.ecf-core/context-evidence-units.json
.ecf-core/context-compaction-report.json

evidence-units.json is the current compile-stage artifact for Agent OS preview. context-evidence-units.json remains as a compatibility alias. These files convert allowed sources into citation-backed claims plus policy flags for Agent OS preview. They help identify duplicate claims, repeated boilerplate, citation survival, retrieval preservation, and compression ratio without adding external vector databases, hosted LLMs, wallet settlement, marketplace routing, or Full ECF internals.

Context Index Artifacts

ECF Core also emits deterministic local context indexes:

.ecf-core/page-index.json
.ecf-core/tree-index.json
.ecf-core/retrieval-plan.json

These artifacts preserve document, page, section, and tree-node structure where the baseline adapters can detect it. Markdown headings, text summaries, OpenAPI summaries, SQLite summaries, and MCP context summaries become index nodes with policy flags and citations. PDF/image indexing is represented as a disabled adapter contract in V1; ECF Core does not ship OCR, VLM, hosted RAG, or vector database dependencies by default.

Agent OS preview import can use these files to show context index readiness, unsupported grounding questions, and sources requiring owner review before any public exposure. Live deployment remains a separate owner-reviewed Agent OS flow.

CLI

ecf-core init [project] [--force]
ecf-core compile [project] [--config ecf.config.json] [--out .ecf-core] [--json] [--agent-os]
ecf-core eval [project] [--config ecf.config.json] [--out .ecf-core] [--json] [--grounding]
ecf-core agent-os-preview [artifact-dir] [--json]
ecf-core serve-mcp [artifact-dir]
ecf-core validate [artifact-dir]
ecf-core version

The package also exposes micro-ecf as a CLI alias for the same local tool:

micro-ecf init .
micro-ecf compile . --agent-os

Paste Into Your IDE LLM

For a durable assistant handoff, point the IDE assistant at ECF.md first.

Install ECF Core from https://github.com/rhein1/agoragentic-ecf-core for this local repo.

Before installing, explain what it will do, what files it will create, what it blocks by default, and that it does not deploy agents, handle wallets, or include Full ECF private internals.

Only proceed after I approve.

After approval, install it, run ecf-core init, show me ecf.config.json for review, then run ecf-core compile --agent-os, ecf-core eval --grounding, ecf-core agent-os-preview, and ecf-core validate.

Development

npm test
npm run check
npm run pack:dry

Docs

License

Apache-2.0.