Kortix drives

From kortix-ai/suna · View interactive version

Kortix drives is an AI agent skill from the GitHub repository kortix-ai/suna. The workspace's Drive under `/drives`: the user's own folder (their desktop, also at `~/Desktop`) and any other folder `/drives/README.md` lists, synced with the Kortix web app and every other session. A program the user wants \"on my desktop\" is not a file: the `kortix-computer` skill says where i

How to use this skill

Skill file

<skill name="kortix-drives">

<overview>

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:

deleted.

the 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 with

kortix 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.

</overview>

<layout>

| 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 |

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.

expected is missing or refuses writes.

</layout>

<memory>

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:

playbooks/. A file elsewhere is fine.

line into a topic file, then delete the line.

updated_at: <ISO time>, sources: (a list of label: / url: items,

for a fact from outside the thread). Keep keys you did not write.

</memory>

<threads>

A thread's conversation is its session log, stored once. Read it with

kortix 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.

only your lines).

</threads>

<conflicts>

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 (conflict ...).db.

</conflicts>

<commands>

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 |

chat or scheduled session it answers 403: use the folders mounted in the

session, or ask the user to make the change in Drive.

folder; everything else is read-only (403 on a write).

text 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

<path>` in the user's own private session.

</commands>

<limits>

Avoid two sessions editing one file at once.

folder read the same files.

listed in /drives/README.md; kortix search still finds their files.

</limits>

</skill>

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.