Logo Kortix Memory

Kortix Memory

Tổ chứcPhổ biến
kortix-ai
kortix-memory

How to read, write, and curate workspace memory in `memory/` — the workspace brain. Load this skill whenever you (or a scheduled memory curator) need to add, update, or reorganize what this workspace knows about itself. Defines the rubric for what belongs in memory, the file structure, and the change-request flow for landing memory edits on `main`.

Tổng quan

Nhà phát hànhkortix-ai
Kho mãCompanyOS
Tên kỹ năngkortix-memory
Sao
20.8K
Bản fork
3.5K
Tệp đi kèm
Chỉ có hướng dẫn
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • Hướng dẫn có đủ mọi thứ cần thiết

    Mọi thứ mô hình cần đều nằm trong hướng dẫn — không có tệp bổ sung cần đồng bộ.

  • Mã nguồn mở

    Được kortix-ai công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Kortix Memory trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/kortix-ai/CompanyOS/tree/dev/packages/starter/templates/managed/skills/kortix-memory
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/kortix-ai/CompanyOS.git /tmp/CompanyOS
mkdir -p .claude/skills
cp -r /tmp/CompanyOS/packages/starter/templates/managed/skills/kortix-memory .claude/skills/kortix-memory
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Kortix Memory trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Kortix Memory ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Kortix Memory với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Read and edit the files under memory/ with the file tools (read, write, edit, bash). A workspace that keeps its brain somewhere else (an older layout, .kortix/memory/) works the same way at that path. The memory tool that edited this folder is retired (2026-10-30): a workspace that ejected it into tools/memory.ts keeps its own copy.

MEMORY.md is the index. Memory is not auto-injected into the prompt — the memory protocol is: at the start of a task, read memory/MEMORY.md (kortix files cat memory/MEMORY.md, no clone needed) to recover prior context, then read the sub-files (overview.md, connections.md, etc.) the index points at when they're relevant. Record anything durable as you go — your context window may reset at any time, so what isn't written to memory/ is lost. /workspace starts empty: to edit memory, run kortix workspaces clone (it clones the repository onto your session branch), edit memory/ in the clone, commit, push, and open a change request (kortix cr open).

Memory is continuously CRUD'd:

  • Agents curate memory as they work. They add a durable fact when they find it, update a stale file, and delete a wrong one.
  • A new workspace has no scheduled curator. A workspace may add one: an agent that a cron trigger runs, which surveys recent activity and curates the folder (see <curator> below).
  • Both consult this skill for the rubric.

Memory is team-shared: it lives in the repo, every session sees the same content. Edits land on main only via a Kortix change request — never by pushing directly.

  • Discover a workspace convention, connection detail, decision, or workaround that should outlast this session
  • Notice the workspace brain is out of date or contradicts current code
  • Are a scheduled curator agent running its memory pass
  • Want to know if something is worth writing down (use the rubric below)
  • Need to add, rename, split, or delete a memory file
  • Want to know how memory edits reach main

Skip this skill for one-off questions about operating code. Workspace memory is about durable knowledge, not session state.

memory/
├── MEMORY.md           Index. `view` this first. One line per sub-file.
├── overview.md         What this project IS — purpose, shape, stakeholders.
├── connections.md      Third parties, MCP servers, channels, and connectors.
├── conventions.md      Coding patterns, naming, do / don't, style decisions.
└── decisions.md        Architectural and business decisions worth not re-debating.

Add new files freely when a topic deserves its own page (one topic per file, kebab-case filename). Always keep MEMORY.md in sync — one line per sub-file, format:

- [filename.md](filename.md) — one-line hook of what's inside

Don't move content out of MEMORY.md if it's a single line that already lives in the index — keep that one line. Sub-files exist when there's enough depth to warrant a click.

What to remember (KEEP)

  • The workspace's purpose — what we're building, for whom, and the one-sentence pitch.
  • Architecture-level decisions — why we use X over Y, which service owns what, the data flow.
  • Connection details — which third parties / MCP servers / channels are wired, what credentials they need, how they're scoped.
  • Conventions — naming, code style, branching, review norms — the stuff that's de facto across the codebase but not stated.
  • Workarounds and quirks — known env issues, ordering constraints, flaky dependencies, gotchas that bit us once.
  • Ops runbooks — how to deploy, how to roll back, how to debug the thing that breaks every quarter.
  • Glossary — domain terms specific to this workspace that an outsider wouldn't know.
  • People & ownership (optional) — who owns which surface, how to reach them, what they care about.

What NOT to remember (DROP)

  • One user's personal preferences — those are not workspace memory. They go in that user's own memory, /drives/me/Memory (the kortix-user-memory skill).
  • Facts derivable from the repo layout, file names, or git log.
  • One-off task state that won't matter next week.
  • Anything that's already in kortix.yaml, AGENTS.md, or a SKILL.md.
  • Secrets, tokens, API keys, PII — those live in the Kortix Secrets Manager, never in memory files.
  • Speculation about future plans. Memory describes what is, not what might be.

Style for entries

  • Plain prose with short sentences.
  • State facts, not narratives — "The web app talks to Supabase Postgres for auth" beats "We decided to use Supabase…".
  • Cite file paths when the fact maps to code: path/file.ts:120.
  • Date hard-to-verify facts in YYYY-MM-DD so readers can judge staleness.
  • Prefer editing existing entries over piling new ones on. A bloated file is worse than a tight one.

Editing memory

Read memory without a clone: kortix files cat memory/MEMORY.md and kortix files ls memory. To change it, work in a clone of the repository (kortix workspaces clone, then cd into it; /workspace has none at boot) and use the file tools on its memory/ folder. Edits land on main through the normal change-request flow (below).

  1. Read memory/MEMORY.md (and list memory/) to see what's there.
  2. Identify the right file. Most additions fit overview.md, connections.md, conventions.md, or decisions.md. write a new file only when a topic deserves its own page.
  3. Change an existing file with edit. Keep entries short, factual, and consistent with the surrounding prose.
  4. If you added, renamed, or deleted a file, update MEMORY.md so the index matches the folder. The index is the table of contents every agent reads first — keep it accurate.
  5. If something turned out to be wrong, delete it (rm). Don't leave stale facts to confuse future agents.

Landing memory on main

Session branches die when sessions end. Memory edits reach main only via a Kortix change request — same path as any code change:

sh
git add -A -- memory
git commit -m "memory: <one-line summary of what changed>"
git push origin HEAD
kortix cr open \
  --title "memory: <one-line summary>" \
  --description "What changed and why."

The user reviews and merges. Don't merge your own CR.

A new workspace has no scheduled memory curator. To add one, add an agent (for example agents/memory-curator.md) and a cron trigger in kortix.yaml that runs it. The kortix-harness-refinement skill describes the full reflection protocol; memory curation is one of its passes. On each run the curator:

  1. Loads this skill.
  2. Surveys recent workspace activity (git log since last run, recent merged CRs, session digests via kortix sessions digest).
  3. Decides what's worth keeping per the rubric above.
  4. CRUDs memory/ accordingly.
  5. Opens one memory: … CR with the edits. It does not merge it.
  6. Leaves memory untouched when nothing is worth changing.

Kortix manages this skill: an edit to it is replaced on the next update. To change what gets remembered, write the workspace's own rules into the curator's prompt. A merged CR takes effect on the next run.

  • The index is read first; sub-files are on demand. Don't dump every fact into MEMORY.md — keep it a clean table of contents and push depth into sub-files the agent reads only when relevant.
  • Read your memory before you start. Nothing is auto-injected; if you skip memory/MEMORY.md, you work blind to what the workspace already knows. The agent rules say the same thing — this is the memory protocol.
  • Memory files are markdown, not databases. Avoid heavy formatting, tables of 50 rows, or auto-generated content. If you catch yourself writing a script to generate a memory file, that content probably belongs in code, not memory.
  • Memory edits must go through CR. Direct pushes to main bypass the user-review contract — the same rule as code. Every memory edit ends with kortix cr open.
  • Don't put secrets in memory. Memory is read into context and committed to the repo. Secrets, tokens, API keys, and PII belong in the Kortix Secrets Manager, surfaced as env vars at runtime — not in memory/.

Câu hỏi thường gặp

Kỹ năng AI Kortix Memory làm được gì?

How to read, write, and curate workspace memory in `memory/` — the workspace brain. Load this skill whenever you (or a scheduled memory curator) need to add, update, or reorganize what this workspace knows about itself. Defines the rubric for what belongs in memory, the file structure, and the change-request flow for landing memory edits on `main`.

Vì sao nên dùng Kortix Memory trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Kortix Memory là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Kortix Memory trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/kortix-ai/CompanyOS/tree/dev/packages/starter/templates/managed/skills/kortix-memory. TypingMind đọc tệp SKILL.md rồi cài đặt kỹ năng để bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Kortix Memory?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Kortix Memory với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Kortix Memory với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Kortix Memory có miễn phí không?

Kỹ năng này được kortix-ai phát hành trên GitHub. Hãy xem điều khoản giấy phép trong kho mã. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇