# okf memory

> Durable Markdown-based project memory and change tracking using the Open Knowledge Format (OKF).

okf memory is a paid AI agent skill on Agensi by Farooq Ayub, in Agents & Orchestration. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $3 (one-time purchase)
- Creator: [Farooq Ayub](https://www.agensi.io/creators/farooq-ayub)
- Category: [Agents & Orchestration](https://www.agensi.io/skills/agents-orchestration)
- Version: 1.0
- Last updated: 2026-10-18
- Security: scan passed (2026-10-18); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/okf-memory
- Tags: ai-agents, documentation, automation, python, knowledge-management

## About this skill

You lose project context every time you start a new session or switch tools. This skill implements the Open Knowledge Format (OKF v0.1) to maintain durable, agent-readable project memory in a plain-text filesystem.

### What it does
- **Persistent storage** saves decisions, findings, and runbooks to `~/.okf-memory` using YAML-frontmatter Markdown.
- **Change discovery** tracks architectural shifts, modified endpoints, and schema migrations automatically.
- **Progressive disclosure** organizes knowledge through hierarchical indexes so agents only load relevant notes.
- **History logging** maintains a chronological record of changes across all projects or within specific ones.
- **Cross-session recall** ground answers in past project state by reading discovery manifests and dated logs.

### How it works
1. The agent identifies the project slug and checks `~/.okf-memory/index.md` for existing context.
2. Use the `save` command to record specific documents like `Decision`, `Schema`, or `Metric` types.
3. Use the `discover` command to inspect git status and file modifications, updating the `discovery.md` manifest.
4. Retrieve knowledge by walking `YYYY/MM` directories or grepping for specific tags and types in the YAML frontmatter.

### Frameworks & tools
The skill uses a Python helper script to manage files. It relies on standard filesystem operations, Grep for searching, and Git for change detection.

### Why this beats prompting it yourself
Manual prompts forget details as soon as the context window flushes. This skill enforces a standardized directory structure and metadata schema that ensures your agent can query its own history without you re-explaining the codebase every morning.

### Use cases
- Record why a specific database was chosen to prevent re-litigating the decision later.
- Track what new changes occurred in a repository between two development sessions.
- Maintain a live runbook of project-specific commands and environment setups.
- Generate a session summary that another agent can consume to pick up where you left off.

### Known limitations
Knowledge can become stale if not updated; agents must verify file-based notes against the current codebase. Does not store secrets, tokens, or credentials.

## Requires

- Git

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the okf memory skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### How does this skill prevent the 'context loss' common in standard AI sessions?

This skill implements the Open Knowledge Format (OKF) to create a persistent, file-based memory that survives session resets. It prevents context loss by organizing project decisions, schemas, and logs into a structured Markdown hierarchy that agents can query later.

### Does this skill require me to change how I write my actual project code?

No, the skill is designed to supplement your workflow by watching for file modifications and git changes via the `discover` command. It creates a secondary, agent-optimized record of your progress without cluttering your primary source code repository.

### What exactly is included in the 'okf memory' skill package?

You receive the core Python management script, the OKF v0.1 directory schema templates, and the integration logic required for your agent to read, write, and index project notes.

### How does the agent search through large amounts of stored history without hitting token limits?

Because the memory is stored in plain-text Markdown and YAML on your local machine, you have full ownership and can manually edit or audit the files at any time. The agent uses a discovery manifest to 'walk' these files, ensuring it only loads relevant context rather than the entire history at once.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
