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

How to let a coding agent search project decisions before writing code with Okf Agent Memory

Store decisions as OKF concepts and have the agent search them before it edits anything.

Short answer: Run make build in the cloned repository to create bin/okf; then add a concept file for a decision under the knowledge/ folder, such as decisions/auth.md; run ./bin/okf validate knowledge --strict --drift to confirm the new concept is well formed. All steps.

Who it is forA developer using an AI coding agent who keeps re-explaining architecture decisions and gets inconsistent code as a result.

The problemContext windows reset, so architectural decisions and operational facts are lost unless stored somewhere the agent can find them.

The outcomeThe agent looks up relevant decisions with search and show before acting, instead of relying on a monolithic AGENTS.md.

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 in the cloned repository to create bin/okf.
  2. Add a concept file for a decision under the knowledge/ folder, such as decisions/auth.md.
  3. Run ./bin/okf validate knowledge --strict --drift to confirm the new concept is well formed.
  4. Run ./bin/okf search "authentication" to confirm the concept is found by a plain-language query.
  5. Run ./bin/okf show decisions/auth to confirm the full concept text is returned for the agent to read.

Prompt for your agent

Using the okf-memory/okf-agent-memory repo, search the project knowledge for <topic> with the okf search command before you write any code. Report the concept IDs returned and the decision each one records. Verify that you read the full concept with the show command before making changes.

Caveat. The README describes an embedded MCP server and the okf_search and okf_show tools, but the excerpt does not show how to register them with a specific agent, so check the full docs for that setup.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for okf-memory/okf-agent-memory and "Let a coding agent search project decisions before writing code"

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