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

How to look up rules across project, vendor, user, and system scopes with Okf Agent Memory

Find a concept in the right layer, with higher-priority scopes shadowing lower ones.

Short answer: Run make build to create bin/okf; then run ./bin/okf search "authentication" to search all scopes with automatic shadowing and priority ranking; run ./bin/okf search "routing" --scope vendor to limit the search to vendor packages. All steps.

Who it is forA developer who keeps personal style notes and vendor framework rules alongside a project and needs the agent to pick the right one.

The problemGuidance lives in several places, and an agent can pick an outdated or wrong version without a clear precedence order.

The outcomeSearches and lookups return the authoritative concept, with project content overriding vendor, user, and system content.

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. Run make build to create bin/okf.
  2. Run ./bin/okf search "authentication" to search all scopes with automatic shadowing and priority ranking.
  3. Run ./bin/okf search "routing" --scope vendor to limit the search to vendor packages.
  4. Run ./bin/okf show user:guidelines/style to read a personal concept by its scoped name.
  5. Run ./bin/okf show decisions/auth to read the local project concept, which takes priority over other scopes with the same ID.

Prompt for your agent

Using the okf-memory/okf-agent-memory repo, search for <topic> across all scopes, then show the concept the search ranks first. Report which scope it came from and whether a higher-priority scope shadows any other matching concept. Verify the scope label before using the concept.

Caveat. Vendor packages and the user and system layers only return results if those folders are populated, and the README excerpt does not explain how to install vendor packages.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for okf-memory/okf-agent-memory and "Look up rules across project, vendor, user, and system scopes"

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