lizhiyao/oh-my-knowledge21

oh-my-knowledge

OMK — Observe. Measure. Know. Evidence-backed knowledge changes for AI applications.

包名
oh-my-knowledge
版本
1.0.0-beta.8
许可证
MIT
最近更新
2026年9月12日

安装

此插件尚未提供可验证的 bundle,或兼容性检查未通过。请先阅读仓库说明。 阅读完整 README ↗

OMK

npm version npm weekly downloads CI License: MIT Node.js Version

English | 简体中文

Observe. Measure. Know. Make knowledge changes in your AI application evidence-backed.

OMK helps authors of prompts, RAG systems, skills, and agents compare versions, inspect evidence, and find knowledge gaps in real tasks. A controlled comparison keeps the same model and evaluation samples, changing only the knowledge artifact.

Version 1.0 is still in Beta iteration; APIs and storage contracts may change. Read the migration guide before upgrading an older installation.

OMK: from controlled evaluation to real-world feedback

Start with your goal

GoalEntry point
Compare two skills and inspect the verdict, interval, and failed casesCLI quickstart
Add scoring and version comparisons to a Node.js serviceService integration guide, including an example without model credentials
Inspect one task or find problems in historical logsObservation and task trajectories

Quick start

You need Node.js >=22 and an authenticated model runtime; see Requirements. Install the Beta and preview your first comparison:

npm i -g oh-my-knowledge@next
omk init demo
cd demo
omk eval --control code-review-v1 --treatment code-review-v2 --dry-run

After checking the plan and estimated calls, run the evaluation (this calls the model):

omk eval --control code-review-v1 --treatment code-review-v2

The scaffold contains two skills and three cases. This small default set checks the workflow; UNDERPOWERED is expected. Starter cases are marked llm-generated. Even the full pack created with omk init demo-full --samples 20 only meets the default heuristic evidence floor, not an a priori power plan or a release-evidence requirement. Review and replace starter cases with real domain cases before relying on the results.

The full walkthrough covers runtime selection, your own skills, and interpreting results. The example gallery offers more runnable scenarios.

Use inside AI Coding Agents

omk install omk-agent-skill

Then ask your coding agent: “Use omk to compare these two skills.” See the quickstart for installation targets and usage. DeepSeek Harness users can use the host plugin to reuse their current profile.

The MCP integration accepts user-authorized knowledge feedback. It records partial evidence submitted at its tool boundary; it does not automatically monitor complete conversations.

Use the evidence

doctor checks the artifact, eval compares versions, and studio presents results and raw evidence. When evidence meets the gate, promote can accept a version; evolve can generate a candidate. Gaps found by observe can become draft cases for review before the next evaluation.

Conclusions depend on the cases, scoring criteria, and execution environment. Observation signals are not causal conclusions, and generated cases are not an independent release-validation set. See statistical rigor and the three-stage workflow for the method and limits.

Project evidence lives under .omk/; machine-level state lives under ~/.oh-my-knowledge/. The current version neither reads nor migrates the old storage layout. Back up before upgrading and follow the migration guide to establish new evidence.

Documentation

Documentation index · Online docs · CLI reference · Sample format · Executors · How OMK understands knowledge

Environment variables

VariableDescription
OMK_EXECUTORdefault executor preference, e.g. codex / codex-sdk / claude
OMK_MODELdefault evaluated model; Codex reads local config.toml when unset
OMK_JUDGE_MODELSdefault judge list in executor:model[,...] format
CCV_PROXY_URLproxy requests through cc-viewer for live eval-traffic visualization
OMK_REPORT_PORTreport server port (default: 7799)

Requirements

  • Node.js >= 22
  • At least one authenticated model runtime:
    • Codex: install and authenticate the Codex CLI (npm i -g @openai/codex); Codex tasks in the ChatGPT desktop app select it automatically
    • Claude: install and authenticate Claude Code
    • API / other executors: configure them as described in Executors
  • Advanced claude-sdk / codex-sdk executors are optional and are not downloaded by the base OMK install. Install the matching SDK in the same local project or global npm prefix only when you select one; see Executor prerequisites.

Security notice

This tool is designed for local trusted environments (dev machines, CI pipelines). The following features execute local code — make sure inputs come from a trusted source:

FeatureRiskScope
Custom assertions (custom)dynamically loads and executes user-specified .mjs filesonly use assertion files you authored or reviewed
eval-samples.jsonassertion configs can reference external file pathsdon't use sample files from untrusted sources

Recommendations:

  • Do not expose the local report server on the public internet (no auth)
  • Don't use third-party eval-samples you haven't vetted
  • Custom assertions have a 30-second timeout but no sandbox isolation

See GitHub Releases for release notes. Contributions welcome — see CONTRIBUTING.