Harness Embedding Provider

@zack/harness-embedding-provider

AgentPM Harness starter that hosts a local embedding provider for the published AgentPM docs Knowledge package.

Use case: harness-embedding-providernode-sdknodeworkspace
Bootstrap
agentpm new @zack/harness-embedding-provider@0.1.0 my-project
Next steps
cp .env.local.example .env.local
Weekly starts
1
0%
Last publish
Today
v0.1.0

harness-embedding-provider

harness-embedding-provider is a publishable AgentPM workflow template for users who want to run Harness with a local SDK-hosted embedding provider.

Generated apps use a local root agent.json. The local Agent depends on the published @zack/react-loop@0.1.0 Loop and the refreshed published @zack/agentpm-docs@0.1.1 Knowledge package, while agentpm.harness.json maps that Knowledge package's vector embedding spec to the Node host provider in src/main.ts.

What It Demonstrates

  • A Node SDK Harness host with one focused EmbeddingProvider implementation
  • OpenAI text-embedding-3-small query embedding for a published AgentPM Knowledge package
  • knowledge.embedding_matches alignment across provider, model, dimensions, and normalized vector metadata
  • A normal Harness run where Knowledge retrieval can feed a multi-phase Loop
  • Safe credential handling through .env.local, not agentpm.harness.json

Generate Locally

agentpm new ./template-packages/harness-embedding-provider/agent.json app-harness-embedding-provider
cd app-harness-embedding-provider
cp .env.local.example .env.local
pnpm install
pnpm dev -- --preflight-only

Set OPENAI_API_KEY in .env.local before the full run.

Publish Checks

agentpm lint
agentpm publish --dry-run

The source for this Template package can be found here.