DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to validate a project knowledge bundle before each commit with Okf Agent Memory

Check OKF conformance, broken links, orphans, and description drift on every change.

Short answer: Clone the repository and run make build to create bin/okf; then run ./bin/okf validate knowledge --strict --drift to check conformance, graph connectivity, and description drift; run ./bin/okf validate knowledge --scorecard to see the three-pillar breakdown and grade. All steps.

Who it is forA developer or DevOps engineer maintaining a repo's knowledge/ folder who wants bad memory caught before it merges.

The problemKnowledge notes drift out of sync, links break, and orphaned concepts pile up, so agents read wrong context.

The outcomeA pass or fail result for graph integrity and a quality score for the bundle, usable in a pre-commit or CI step.

What you need first

  • A Git repository where the agent works
  • A Go toolchain and make, since the README builds the tool with make build
  • Clone access to github.com/okf-memory/okf-agent-memory

Steps

  1. Clone the repository and run make build to create bin/okf.
  2. Run ./bin/okf validate knowledge --strict --drift to check conformance, graph connectivity, and description drift.
  3. Run ./bin/okf validate knowledge --scorecard to see the three-pillar breakdown and grade.
  4. Run ./bin/okf validate knowledge --scorecard --json to get machine-readable output for a pipeline.
  5. Fix any reported broken links, orphans, or drift, then re-run the strict validation before committing.

Prompt for your agent

Use the okf-memory/okf-agent-memory repo to validate the knowledge bundle at <path-to-repo>/knowledge. Run the strict and drift validation, then the scorecard, and report the grade and every broken link or orphan. Verify that the command exit status is 0 before reporting the bundle as clean.

Caveat. The README excerpt cuts off the exact CI gating example, so confirm the threshold flag in the full README before wiring it into a pipeline.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for okf-memory/okf-agent-memory and "Validate a project knowledge bundle before each commit"

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer