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

@open-vera/core

v0.1.5

Published

Stateless agent runtime foundation for the Vera framework.

Downloads

670

Readme

@open-vera/core

Stateless agent runtime foundation for the Vera framework.

Handles a single LLM call end-to-end: intent classification → model routing → tool execution → context management. No orchestration logic — pure execution primitive.

Install

npm install @open-vera/core

What's Inside

| Module | Capability | |---|---| | adapters/ | Unified LLMAdapter interface — Anthropic, OpenAI, Gemini, DeepSeek, Groq, Azure | | agent/ | streamAgent / runAgent — multi-turn loop, tool dispatch, retry, context compression | | agent/subagent.ts | agent tool — orchestrator/worker delegation, isolation modes, background jobs | | context/ | Token estimation, window trimming, progressive / micro / reactive compression, recall | | intent/ | classifyIntent / routeTarget — L0–L3 classification, domain detection | | tools/ | 7 built-in tools: read_file write_file edit_file list_dir glob grep bash | | tools/registry.ts | ToolRegistry — register, execute, lifecycle hooks | | tools/security.ts | Path boundary enforcement, tool whitelist, injection defense, read-only mode | | tools/permission-rules.ts | Persistent allow/deny rules, bash risk confirmation | | session/ | JSONL session store, cost tracking, AI-generated titles | | repl/ | React + Ink terminal UI — ConversationPanel, SessionPicker, DiffView, theme system | | project-context/ | .vera/rules.md / CLAUDE.md loading, path-scoped rule activation | | worktree/ | Git worktree creation and management |

Intent Routing

User input → [classify: ~100ms] → routing decision → [target model]

| Level | Description | Default Model | |---|---|---| | L0 | Casual chat, simple Q&A | claude-haiku / gpt-4o-mini | | L1 | Single-step tasks | claude-haiku / gpt-4o-mini | | L2 | Multi-step tasks | claude-sonnet / gpt-4o | | L3 | Complex planning, deep reasoning | claude-opus / o3 |

L3 tasks automatically activate Plan Mode.

Infinite Context

Four-layer system so long tasks never lose their goal:

| Layer | Mechanism | Trigger | |---|---|---| | Sliding window trim | Drop earliest turns, preserve task anchor | 80% token threshold | | Progressive compression | LLM summarization injected as system context | Token threshold exceeded | | Micro-compaction | Heuristic cleanup of stale tool results — no LLM call | Time-gap based | | Reactive compaction | Aggressive compression + retry on prompt-too-long | API error |

The original task definition is always preserved.

Subagent Isolation Modes

| Mode | Mechanism | Use Case | |---|---|---| | none | Shared context (default) | Standard delegation | | try | Isolated git worktree, reviewable via /merge | Experimental code changes | | remote | Pluggable external executor backend | Distributed or sandboxed execution |

Quick Start

import { streamAgent } from "@open-vera/core/agent";
import { AnthropicAdapter } from "@open-vera/core/adapters";

const adapter = new AnthropicAdapter({ apiKey: process.env.ANTHROPIC_API_KEY });

for await (const event of streamAgent({
  adapter,
  messages: [{ role: "user", content: "List files in the current directory" }],
  tools: [],
})) {
  if (event.type === "text_delta") process.stdout.write(event.delta);
}

Architecture

@open-vera/core is a strict dependency of @open-vera/openvera. Core never imports from Harness — the stateless loop is usable standalone.

@open-vera/openvera → @open-vera/core

License

MIT