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-micro-ecf

v0.1.1

Published

Local-first context layer and policy packets for safer agents before Agent OS deployment preview.

Readme

Micro ECF

Micro ECF is a lightweight local context layer for builders who want safer agents.

It builds local source maps, policy summaries, and citation-ready context packets from bounded repo/docs/database-summary inputs, applies local policy boundaries, and exports Agent OS Harness files for deployment preview. It can wrap external context providers such as RAG systems, code graphs, MCP tools, and database agents with source boundaries, budget limits, action-risk scoring, and pre/post-action lifecycle hooks.

Micro ECF is not a semantic RAG engine, vector store, hosted answer pipeline, or Full ECF runtime. It tells an agent what context is allowed, where it came from, what is blocked, and what can be exported into an Agent OS deployment preview.

Micro ECF runs locally and does not require Agoragentic Cloud. When you want live hosted agents, wallet budgets, APIs, receipts, marketplace participation, x402 monetization, or enterprise governance, export into Agoragentic Agent OS.

Syrin User Roadmap

Use the Syrin guide when you want the shortest path from local Micro ECF artifacts to hosted Agent OS readiness:

Micro ECF to Agent OS roadmap

The PNGs are intentionally text-free. Use the stage labels and captions in SYRIN_USER_GUIDE.md for Discord, GitHub, or HTML overlays.

Product Boundary

Micro ECF is not Full ECF.

Use this product rule everywhere:

Micro ECF is the local context wedge.
Agent OS is the deployment product.
Full ECF is the enterprise runtime engine.

Architecture rule:

Micro ECF may prepare context for Agent OS, but it must not contain the private runtime,
settlement, trust-ranking, or enterprise governance internals that make Agoragentic defensible.

Learning memory follows the same boundary. It may rank, block, route, summarize, or recommend review guidance, but it must never auto-approve, auto-dispatch, spend funds, mutate code, deploy, change secrets, publish marketplace listings, or bypass human/ECF approval.

What Micro ECF Does

Micro ECF helps a builder answer:

Given the context my tools already have or can locally summarize, what is this agent
allowed to know, cite, use, act on, and export into an Agent OS deployment preview?

Core capabilities:

  • bounded local source inventory and summarization
  • context packet generation from source summaries/provenance
  • citation/source maps for allowed local artifacts
  • policy summaries
  • tool/context allowlists
  • small workflow maps
  • optional context-provider declarations for RAG/code-graph/MCP systems
  • pre/post-action governance inputs for the Consequences Engine
  • review-only learning-memory boundary metadata
  • deployment-intent files
  • Agent OS Harness export
  • optional local MCP server

Good inputs:

  • markdown/docs
  • small repos
  • local files
  • SQLite files and schema/data summaries
  • small Postgres/MySQL exports
  • API docs
  • agent configs
  • test harnesses
  • local policy files

Generated outputs:

ECF.md
.micro-ecf/context-packet.json
.micro-ecf/policy-summary.json
.micro-ecf/source-map.json
.micro-ecf/harness-export.json
.micro-ecf/deployment-preview.json
AGENTS.md
MICRO_ECF_LLM_BOOTSTRAP.md

What A Context Packet Is

A Micro ECF context packet is a governance artifact, not a retrieved-answer bundle.

It contains:

  • source IDs, paths, hashes, summaries, citation IDs, and provenance
  • allowed and blocked context classes
  • export boundaries such as raw_content_exported=false
  • references that Agent OS or an IDE assistant can use to inspect the real source files

It does not contain:

  • embeddings
  • vector indexes
  • semantic search results
  • model-generated answers
  • raw secret or private-file contents
  • Full ECF private context graph internals

Use direct source reads, your own RAG, GitNexus, or another MCP/context provider as the source of truth for deep retrieval. Use Micro ECF to govern what those systems may expose or act on.

ECF.md

ECF.md is the persistent agent-readable Micro ECF contract for a local project. It follows the same practical pattern as other agent-readable project contracts: machine-readable front matter plus human-readable rationale.

Use it when a new Codex, Cursor, Claude, Gemini, database, or IDE agent conversation needs to know:

  • what Micro ECF is doing in this repo
  • which sources are allowed
  • which sources are blocked
  • how to verify Micro ECF is installed
  • when to use .micro-ecf/* artifacts
  • when to export an Agent OS Harness packet

Commands:

micro-ecf lint ECF.md
micro-ecf diff ECF.md ECF-next.md
micro-ecf spec

What Micro ECF Does Not Include

Do not add these to Micro ECF:

  • semantic/vector retrieval engine
  • hosted RAG answer path
  • embedding store or model-backed reranker
  • Full ECF private context graph internals
  • tenant isolation runtime
  • enterprise connector architecture
  • enterprise audit-log internals
  • marketplace ranking, trust, or fraud internals
  • router provider-selection internals
  • wallet settlement internals
  • x402 settlement executor internals
  • hosted provisioning code
  • private connectors
  • secrets broker
  • operator prompts
  • customer-control evidence tooling
  • internal policy scoring for enterprise approvals

Micro ECF can produce inputs and governance envelopes for those systems. It should not implement them.

One-Command Setup

If you are using an IDE LLM, paste this GitHub folder link into the chat:

https://github.com/rhein1/agoragentic-integrations/tree/main/micro-ecf

Then ask it to follow LLM_INSTALL.md. The required flow is:

micro-ecf plan --dir .
# show the plan and wait for explicit approval
micro-ecf install --dir . --yes

plan is read-only. install without --yes refuses to write files and returns the approval plan.

Important: installing Micro ECF creates persistent repo artifacts. It does not automatically inject hidden context into every future LLM conversation.

For future conversations, use one of three handoff paths:

  • Compatible IDE agents should auto-read AGENTS.md, then inspect .micro-ecf/policy-summary.json, .micro-ecf/context-packet.json, and .micro-ecf/source-map.json.
  • Any other LLM chat should receive MICRO_ECF_LLM_BOOTSTRAP.md as a pasted or attached bootstrap file at the start of the conversation.
  • IDEs that support persistent MCP tools can run micro-ecf serve-mcp --root .micro-ecf and configure that server once.

For the full after-install checklist, see POST_INSTALL.md.

From this repo:

cd micro-ecf
npm test
node bin/micro-ecf.mjs plan --dir ../my-agent
node bin/micro-ecf.mjs install --dir ../my-agent --yes

From npm:

npx agoragentic-micro-ecf@latest explain
npx agoragentic-micro-ecf@latest plan --dir .
npx agoragentic-micro-ecf@latest install --dir . --yes

The binary is intentionally simple:

micro-ecf init
micro-ecf scan
micro-ecf doctor
micro-ecf lint ECF.md
micro-ecf plan
micro-ecf install --yes
micro-ecf index ./docs
micro-ecf build-packet
micro-ecf export --agent-os
micro-ecf serve-mcp

Local Workflow

Initialize a local project:

npx agoragentic-micro-ecf@latest init --dir ./my-agent

Verify the local install and inspect the context boundary without writing:

npx agoragentic-micro-ecf@latest doctor --dir ./my-agent
npx agoragentic-micro-ecf@latest scan --dir ./my-agent

Index bounded local context:

npx agoragentic-micro-ecf@latest index ./my-agent/docs --output-dir ./my-agent/.micro-ecf

Build local artifacts:

npx agoragentic-micro-ecf@latest build-packet \
  --policy ./my-agent/.micro-ecf/policy.json \
  --source-map ./my-agent/.micro-ecf/source-map.json \
  --output-dir ./my-agent/.micro-ecf

Export an Agent OS Harness packet:

npx agoragentic-micro-ecf@latest export --agent-os \
  --policy ./my-agent/.micro-ecf/policy.json \
  --output ./my-agent/.micro-ecf/harness-export.json

Then hand it to hosted Agent OS:

AGORAGENTIC_API_KEY=amk_your_key npx agoragentic-os@latest deploy readiness --file ./my-agent/.micro-ecf/harness-export.json
AGORAGENTIC_API_KEY=amk_your_key npx agoragentic-os@latest deploy preview --file ./my-agent/.micro-ecf/harness-export.json
AGORAGENTIC_API_KEY=amk_your_key npx agoragentic-os@latest deploy create --file ./my-agent/.micro-ecf/harness-export.json

The export itself is no-spend and non-provisioning. readiness and preview are no-spend checks. deploy create records a hosted deployment request; funding, runtime provisioning, public API exposure, marketplace selling, and x402 monetization remain separate approval-gated steps.

Legacy Export Helper

The original helper remains available:

node micro-ecf/export-agent-os-harness.mjs \
  --policy micro-ecf/policy.example.json \
  --output ./agent-os-harness.packet.json

Use the CLI for full local context artifacts. Use the helper when you only need a Harness packet from a policy file.

Local MCP Server

Micro ECF can run as a local stdio MCP server:

micro-ecf serve-mcp --root .micro-ecf

Tools:

  • micro_ecf.search_context
  • micro_ecf.get_source
  • micro_ecf.get_policy
  • micro_ecf.build_packet
  • micro_ecf.export_agent_os_harness

The MCP server reads and writes local .micro-ecf artifacts only. It does not call Agoragentic Cloud.

Context Providers

Micro ECF can attach optional context providers for pre-action impact review. A provider brings its own retrieval, graph, or database engine; Micro ECF records the provider contract, policy boundary, and evidence shape so Agent OS can evaluate blast radius before an agent acts.

Full guide: PROVIDER_WRAPPING.md.

Framework guide: FRAMEWORKS.md.

Evidence/eval backlog: AGENT_OS_EVIDENCE_EVAL_BACKLOG.md.

Supported provider types:

| Type | Description | |------|-------------| | code_graph | Codebase structural awareness: functions, imports, call chains, dependencies | | retrieval_context | RAG, document retrieval, database schema/context, or other context engines that return cited evidence | | tool_graph | Tool and API dependency graph | | policy_graph | Governance and compliance policy relationships | | workflow_graph | Multi-step workflow and process dependencies | | receipt_graph | Transaction and receipt chain relationships | | marketplace_graph | Marketplace listing and seller dependency graph | | enterprise_context_graph | Reserved for Full ECF / enterprise deployments, not local Micro ECF internals |

Existing RAG As retrieval_context

If you already have RAG, keep it. Configure it as a provider:

{
  "context_providers": [
    {
      "provider_id": "ctx_local_rag_docs",
      "type": "retrieval_context",
      "provider": "local_rag",
      "mode": "local_mcp",
      "enabled": true,
      "scope": "docs_and_repo",
      "capabilities": ["query", "retrieve", "cite"],
      "required": false,
      "required_for_action_classes": ["read_only", "code_change"],
      "mcp": {
        "server": "local-rag",
        "transport": "stdio"
      }
    }
  ]
}

Your RAG provider owns retrieval. Micro ECF owns the policy envelope: allowed sources, blocked sources, citation requirements, budget/action gates, and whether an action should fail closed if the provider is unavailable.

GitNexus As Optional code_graph

GitNexus can be used as an optional local code_graph provider. Treat it as a provider pattern, not a dependency or rebrand.

{
  "context_providers": [
    {
      "provider_id": "ctx_gitnexus_local",
      "type": "code_graph",
      "provider": "gitnexus",
      "name": "GitNexus",
      "mode": "local_mcp",
      "status": "available",
      "enabled": true,
      "scope": "workspace",
      "capabilities": ["impact", "context", "query", "detect_changes", "generate_map"],
      "required": false,
      "required_for_action_classes": ["code_change"],
      "mcp": {
        "server": "gitnexus",
        "transport": "stdio"
      }
    }
  ]
}

If no provider is configured or reachable, Agent OS falls back to standard policy/consequence review. Micro ECF does not silently replace the provider with a hidden RAG system.

How It Connects To Agent OS

Funnel:

1. Builder installs Micro ECF locally.
2. Builder points it at repo/docs/db.
3. Micro ECF builds source maps, policy summaries, and context packets from allowed local summaries/provenance.
4. Builder sees what the agent can safely know, cite, use, and which external context providers may be consulted.
5. Micro ECF exports Agent OS Harness files.
6. Builder previews deployment on Agoragentic.
7. If they want runtime, wallets, APIs, receipts, marketplace, or x402 monetization, they move to Agent OS.
8. If they need private enterprise context, tenant isolation, access control, audit logs, approved tools, and compliance evidence, they move to Agent OS Enterprise / Full ECF.

Canonical hosted contracts:

  • https://agoragentic.com/agent-os-harness.json
  • https://agoragentic.com/schema/agent-os-harness.v1.json
  • https://agoragentic.com/schema/micro-ecf-policy.v1.json
  • https://agoragentic.com/agent-os/launch/
  • https://agoragentic.com/agent-os/deployments/

Schemas

Local schemas:

  • schema/micro-ecf-policy.v1.json
  • schema/agent-os-harness.v1.json
  • schema/context-packet.schema.json
  • schema/source-map.schema.json
  • schema/policy-summary.schema.json
  • schema/deployment-preview.schema.json
  • schema/harness-export.schema.json

License

Micro ECF is licensed under Apache-2.0. The wider integrations repository may contain other adapters under the repository-level license; this folder carries its own package license boundary.