Drive is the workspace's folder tree. It lives outside this sandbox,
syncs both ways within seconds with the Kortix web app and with every other
session that mounts it, keeps a version history, and outlives this session.
Each folder under /drives is one folder of Drive that this session may use.
What is kept:
/workspace holds this session's files, kept for the life of the session./drives (Drive) holds the user's own files, kept across sessions untildeleted.
/tmp, installed packages) can be gone whenthe session reopens. Put tools in a sandbox template.
/drives/README.md is the live map for THIS session: which folders are
mounted, where, read-only or read-write, and any open conflicts. Kortix
rewrites it whenever access changes. Read it first; never edit it.
No /drives/README.md means no Drive is mounted here. A My Kortix
session outside a Space thread mounts none, and nor does an inline colleague
or a workflow agent it starts. Then the file tools cannot see Drive: reach it
only with kortix drive (below), and save a file the user keeps withkortix drive put <local> "~/From sessions/<session title>/<file>" (~ is
the user's own folder, /Users/<name>). /workspace is this session's
alone: no other session and not the web app's Files read it.
| Path | What it is | Access |
| --- | --- | --- |
| /drives/me (and ~/Desktop) | the user's own folder, Users/<name> in Drive | read-write |
| /drives/me/Memory | what you keep about this user across sessions (the kortix-user-memory skill) | read-write |
| the private channel's folder | in a private channel's thread only: its files and Memory/, at the path /drives/README.md names | read-write |
| the space's folder | in a thread of a channel or DM (with Spaces on): its files, Memory/, context.md and threads/ | read-write |
| /drives/<name> | any other folder a workspace admin granted to this agent | as granted |
/drives/me for the user's context before you ask them for it./drives/me. Only the user sees it.lists is seen by others: put work there only when it is meant for them, and
never copy the user's own files there unless the user asks.
/drives/README.md when a path youexpected is missing or refuses writes.
Memory is Markdown files in these folders. People read and edit the same
files in the Kortix web app (Memory tabs and Drive). This is the one table of
where a durable fact goes:
| Fact about | Save in |
|---|---|
| this user: preferences, corrections, their work | /drives/me/Memory/ (the kortix-user-memory skill) |
| what you learn in a DM with this user | /drives/me/Memory/<your agent name>/ (the kortix-channel-memory skill) |
| this channel's work: decisions, people, workstreams, playbooks | the channel's Memory/ folder, at the path /drives/README.md names |
| what the workspace is and how it is built | the repo memory/ (the kortix-memory skill, through a change request) |
In a private channel's thread (/drives/README.md says the channel is
private) every fact you learn there, team facts included, goes only in that
channel's Memory/ folder. Only its members may read it. Every other folder,/drives/me included, is read-only there: never copy the channel's content into
them, into another channel, or out of the sandbox, unless a member asks.
A folder that is not mounted is not yours to write: tell the user, never
save the fact somewhere else.
Format, in every Memory folder:
# <Title>.people/, decisions/, workstreams/,playbooks/. A file elsewhere is fine.
MEMORY.md is the index: one line per file. Keep it current.Notes.md holds sentences people saved with "Remember this". File eachline into a topic file, then delete the line.
updated_by: <agent> (agent),updated_at: <ISO time>, sources: (a list of label: / url: items,
for a fact from outside the thread). Keep keys you did not write.
A thread's conversation is its session log, stored once. Read it withkortix sessions log <session_id> -n 50 (--json for scripts; pipe to rg
or jq to search). It is always current. Never copy it into a file. The
turn's "Thread files" section names the session and the paths in this
session.
| Path (in the space's folder) | What |
|---|---|
context.md | the space's brief: what every thread here should know |
threads/<thread>/work/<name>/ | the scratch folder of the agent working as <name> |
threads/<thread>/results/<name>-<n>.md | that agent's full result |
retyping the conversation.
result file the turn names.
context.md (read it first, changeonly your lines).
When two writers change the same file at the same time, nothing is lost:
one version stays at the path and the other is saved beside it as<name> (conflict <date> <time>)<ext>. Kortix tells the user in the web app.
only when the user asks.
app.db arrives asapp (conflict ...).db.
kortix drive reaches all of Drive over the API, as the user who started this
session and with their folder access, including folders not mounted here.
Paths are Drive paths (/Users/<name>/plan.md), not /drives paths.
| Command | What it does |
|---|---|
kortix drive ls [<path>] | List a folder (default: the top of Drive) |
kortix drive cat <path> | Print a file |
kortix drive put <local> <path> | Upload a local file |
kortix drive mkdir <path> | Create a folder |
kortix drive mv <from> <to> | Move or rename |
kortix drive rm <path> [-r] | Delete a file, or a folder with -r |
kortix drive access <path> | Who has access to a folder, with grant ids |
--json.kortix drive works only in the user's own private session. In a shared,chat or scheduled session it answers 403: use the folders mounted in the
session, or ask the user to make the change in Drive.
kortix drive writes only that channel'sfolder; everything else is read-only (403 on a write).
kortix search <words> [--path <folder>] [--json] finds files by name andtext in every folder this session may use, also the folders that did not
fit in its mounts. It works in every session. Search before you ask the
user where something is. Hits are Drive paths: open one through its mount
(/drives/README.md maps folders to mounts), or with `kortix drive cat
Avoid two sessions editing one file at once.
sync/close like any disk: close files you write.folder read the same files.
listed in /drives/README.md; kortix search still finds their files.