OM

okf-memory/okf-agent-memory

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

843 stars 67 forks 품질 76 트렌드 45MIT

AI 코딩 에이전트를 위한 git 네이티브 영구 메모리. 300μs 미만의 메모리 내 BM25 검색, 임베디드 MCP 서버, 점진적 공개를 포함한 Google OKF v0.2를 구현함.

개요

AI 에이전트와의 대화는 컨텍스트 창이 닫히면 초기화됩니다. 가치 있는 아키텍처 결정, 도메인 발견, 운영 사실은 지속적으로 저장되지 않으면 사라집니다. 표준화되고 벤더 중립적인 메모리 계층을 제공하며, 이는 YAML 프론트매터를 사용하는 일반 마크다운 파일 형태로 저장소(knowledge/)에 직접 존재합니다. 비구조화된 임시 마크다운 파일(CLAUDE.md, AGENTS.md)과 복잡하고 블랙박스 벡터 데이터베이스 사이의 간극을 메워줍니다. * : 메모리 내 BM25 검색 및 번들 검증은 VM 스핀업이나 네트워크 왕복 없이 마이크로초 단위로 실행됩니다. * : 모든 것은 버전 관리 평문 텍스트입니다. 표준 git diff와 git 로그를 사용하여 에이전트의 메모리를 검사, 감사, 검토합니다. 외부 데이터베이스가 필요하지 않습니다. * : 로컬 어휘 BM25 인덱싱은 반복되는 벡터 임베딩 API 비용과 네트워크 왕복을 제거합니다. * : 에이전트 지식에 대해 오픈 표준 형식을 사용하며, 출처(출처), 신뢰 계층(생성 및 생성 vs.

개요(AI 번역)

**Open Knowledge Format(OKF) v0.2를 기반으로 한 AI 에이전트용 도메인 중립적이고 git 네이티브의 영구 프로젝트 메모리입니다.


🌟 개요

AI 에이전트와의 대화는 컨텍스트 창이 닫히면 초기화됩니다. 가치 있는 아키텍처 결정, 도메인 발견, 운영 사실은 지속적으로 저장되지 않으면 사라집니다.

전통적인 접근법은 두 가지 치명적인 실패 모드를 겪습니다:

  1. 프롬프트 모놀리스: 모든 도메인 지식과 규칙을 AGENTS.md 또는 CLAUDE.md에 몰아넣으면 엄청난 맥락 과부하와 주의 분산(에이전트가 중요한 지시를 무시함)을 초래합니다.
  2. RAG 블라인드스팟: 행동 규칙을 벡터 데이터베이스에 덤프하는 것은 에이전트가 일반 작업 중에 운영 제약 조건(예: 형식 또는 보안 규칙)을 의미적으로 탐색하지 않기 때문에 실패합니다.

OKF 에이전트 메모리는 **듀얼 메모리 에이전트 아키텍처(DMAA)**로 이 문제를 해결합니다:

보편 조성 모델

DMAA에서는 모든 에이전트 구성이 보편적인 조합에 의해 구조화됩니다:

$$\텍스트{요원들.

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.

README

원문 README의 일부입니다. 원문 보기.

OKF Agent Memory

A Domain-Neutral, Git-Native Persistent Project Memory for AI Agents based on the Open Knowledge Format (OKF) v0.2.


🌟 Overview

Conversations with AI agents reset when context windows close. Valuable architectural decisions, domain discoveries, and operational facts are lost unless stored persistently.

Traditional approaches suffer from two fatal failure modes:

  1. The Prompt Monolith: Stuffing all domain knowledge and rules into AGENTS.md or CLAUDE.md creates massive context bloat and causes attention drift (agents ignore critical instructions).
  2. The RAG Blindspot: Dumping behavioral rules into vector databases fails because agents never semantically search for operational constraints (e.g. formatting or security rules) during general tasks.

OKF Agent Memory resolves this dilemma with the Dual-Memory Agent Architecture (DMAA):

flowchart TD
    subgraph PUSH["1. Normative Working Memory (Push Layer)"]
        direction TB
        C1["Canonical AGENTS.md (capped at 400 tokens)"]
        C2["Domain Codex (Invariants, Ethics, Tone)"]
        C3["OKF Memory Bridge (Deterministic Triggers)"]
        C4["Agent Action Grammar (AAG) Micro-Syntax"]
    end

    subgraph PULL["2. Semantic Domain Memory (Pull Layer)"]
        direction TB
        O1["OKF v0.2 Knowledge Bundle (knowledge/)"]
        O2["0 Tokens baseline in system prompt"]
        O3["Selective Retrieval via okf_search / okf_show"]
        O4["Persistent Graph of Decisions, Facts & Runbooks"]
    end

    INPUT["User Request"] --> PUSH
    PUSH -->|Enforces Domain Codex & Triggers| AGENT["AI Agent (LLM)"]
    AGENT -->|Selective Retrieval| PULL
    PULL -->|Context & Facts| AGENT
    AGENT --> OUTPUT["Deterministic Response"]

The Universal Composition Model

In DMAA, every agent configuration is structured by a universal composition:

GitHub에서 전체 README 보기

설치

This server does not publish a one-line install command.

Open the repository installation guide MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

{ "mcpServers": { "okf-memory": { "command": "/path/to/okf-agent-memory/bin/okf", "args": ["mcp", "/path/to/project/knowledge"] } } }