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
- Clone the repository and run
make buildto create bin/okf. - Run
./bin/okf validate knowledge --strict --driftto check conformance, graph connectivity, and description drift. - Run
./bin/okf validate knowledge --scorecardto see the three-pillar breakdown and grade. - Run
./bin/okf validate knowledge --scorecard --jsonto get machine-readable output for a pipeline. - 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
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer