New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

@codragraph/sdk

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@codragraph/sdk

One-import surface for the CodraGraph platform — graph intelligence, dynamic harness, compression. Works with Claude Code, Codex, OpenCode, any inference.

Source
npmnpm
Version
0.1.1
Version published
Weekly downloads
1
-91.67%
Maintainers
1
Weekly downloads
 
Created
Source

codragraph-sdk

One-import surface for the CodraGraph platform.

Developer preview. Single-import surface that re-exports the graph, harness, swarm, graphstore, recipes, and compression namespaces with subpath imports for selective bundling.

Install

npm i codragraph-sdk

Use

import { harness, graph } from "codragraph-sdk";

// Run a Meta-Harness search over a task family
const result = await harness.search({
  tasks: tasksFromJsonFile,
  iterations: 20,
  candidatesPerIteration: 2,
  inference: harness.makeInferenceProvider("claude"),
  graph: new graph.HttpGraphClient(),
  proposer: new harness.ClaudeCodeProposer({ contractPath: "..." }),
  store: new harness.CandidateStore("./runs/today/candidates"),
  evaluator: new harness.CodebaseQAEvaluator(),
  seeds: harness.ALL_SEEDS,
  budget: { maxInputTokens: 16000, maxOutputTokens: 1024 },
  loadCandidate: async (dir) => {
    /* dynamic import of dir/source/index.ts */
  },
});

console.log(result.frontier);

// Direct graph queries
const client = new graph.HttpGraphClient({ baseURL: "http://localhost:4747" });
const ctx = await client.context({ name: "validateUser" });

Sub-namespaces

import { search, ALL_SEEDS } from "codragraph-sdk/harness";
import { HttpGraphClient } from "codragraph-sdk/graph";

Provider-agnostic inference

Built-in adapters: claude, openai (covers Codex), opencode. Any provider implementing InferenceProvider works:

import type { InferenceProvider } from "codragraph-sdk";

class MyProvider implements InferenceProvider {
  readonly name = "my";
  async complete(input) {
    /* ... */
  }
}

Keywords

codragraph

FAQs

Package last updated on 29 Apr 2026

Related posts