Before every publish:
--title "Scheduler migration",never --title "Scheduler migration: off the cron VM". The explanation goes in--description.
--with <email>. Only an explicit "everyone in the workspace" →--visibility project. "The team" or "for review" names nobody: ask who,
or share with the people named in the thread. In a private channel
(/drives/README.md says so) never use --visibility project or public:
the artifact stays private to the channel's members.
--id).show: url = the artifact's app link, title = itsname. The user sees it in the chat and opens it beside the chat. Then one
line on what it shows.
An artifact is a folder in the workspace's Drive, shared. Its files are ordinary
files (index.md for a doc, index.html plus its images and scripts for a
page). The artifact adds a place in the Artifacts gallery, a viewer, version
history (the Drive history of that folder) and share links. Keep a code change
in the repository.
Before you write one, read references/design.md (the page contract and the
design method). For any diagram, read references/diagrams.md.
Make an artifact when the result is something the user will read, keep, share,
present or come back to: a plan, a spec, a report, a comparison, a deck, a
dashboard, a tool. Also make one when an answer would run past about a screen
of structured content (headings, tables, steps).
Answer in chat when the answer is a few sentences, a quick fact, or a short
list. A code change belongs in the repository, not in an artifact.
Change the existing artifact when the user asks to revise, extend or fix one.
Never publish a second copy (see <update>).
job. Choose the type:
Choose the treatment (utilitarian, UI or editorial) fromreferences/design.md.
names of things, the user's own terms. Never use lorem ipsum. If data is
missing, the page says so.
line) as the :root block before anything else. For a doc, write the
heading outline first.
references/design.md.
--title and a one-sentence --description (rulesbelow).
references/design.md. No loops.
show with the app link (url) and the name(title): the chat shows the artifact itself, and the user opens it beside
the chat. End your reply with one line on what the
artifact shows. Never paste its content into the chat. Mention the design
in at most one plain sentence.
The title is the artifact's name in the gallery, beside dozens of others.
specific to the subject ("Q3 churn report", "Pricing page v2", "Card deck").
A page that answers one question may take that question as its name.
explanation after a dash, a colon or an arrow:
| Wrong | Right |
|---|---|
Docs search migration: hosted vendor → Postgres FTS | Docs search migration |
Q3 Report – churn, revenue and retention | Q3 churn report |
Dashboard | Support queue health |
Pass the name with --title. The doc's own # heading may say more.
--description, one sentence: the gallery shows itunder the title.
Plans, proposals and decision records are the most common artifact. Make each
one a doc, in this order. Skip a section that has nothing true to say.
# <Name>, then the recommendation or the decision asked for in thefirst paragraph: what to do, by when, and what it costs in time or risk.
step"), not as a pre-chosen solution.
(effort, risk, reversibility, what it unblocks). If the options differ in
structure, add one mermaid diagram that shows the difference.
it).
- [ ]) the reader can tick in the doc.Write it for a reader who decides without asking you a question. Revise the
same artifact as the plan changes: its history keeps every earlier version.
| Type | For | The file |
|---|---|---|
| doc | specs, reports, memos, plans | a Markdown file (report.md). Kortix renders and styles it; people edit it in place and export it as PDF. |
| html | decks, dashboards, mockups, tools | an HTML file, or a folder with index.html and its assets. Served exactly as written. |
kortix artifacts types <type> prints the format rules and a starter.
doc: one # Title, then headings, paragraphs, bold, italic,code, links, bulleted, numbered and task lists (- [ ]), quotes, code
blocks, tables, `mermaid diagrams, images and videos (files in media/ next toindex.md, referenced relatively), ---. No HTML layout, CSS or scripts.
Need charts or layout? Make an html artifact.
html: a complete page, served exactly as written: write the <!doctype>,
the viewport meta and the <title> yourself. It runs sandboxed (no cookies;
storage may throw; no access to Kortix). Its images, data and scripts sit in
the same folder and load by relative path. Load libraries from a CDN at a
pinned version (Chart.js for charts, Reveal.js for decks). It must work from
400 px to a large screen and in light and dark. The full contract is inreferences/design.md.
Two ways, same result:
kortix artifacts publish report.md --title "Q3 churn report" # uploads to your Artifacts folder in Drive
kortix artifacts publish ./deck # a folder with index.html
kortix artifacts add /Company/Plans/roadmap # shares a folder already in Drive (index.md or index.html)
A .md file is a doc; anything else is html. The command prints the artifact
id, its path in Drive and its app link. Hand it over with show (the app link
as url) and one line on what it shows. Never paste the content into the chat.
A new artifact is private: the person who runs this session (and you) can
see it. Share it only as far as the user asks. Named people mean --with.
Only an explicit "everyone in the workspace" means --visibility project; "the
team" or "for review" alone does not: ask who, or share with the people named
in the thread. Only an explicit "public" or "anyone with the link" means
public:
kortix artifacts share
kortix artifacts share
kortix artifacts share
Ask before public: a public link works without a login. Never publish
secrets, tokens or customer data.
Change the artifact, never publish a second one. Edit its file in Drive, or:
kortix artifacts pull
kortix artifacts publish ./work/
--base-version refuses the save (exit 3, version_conflict) when someone
saved after you pulled, for example a person editing the doc: pull again,
merge, save. kortix artifacts versions <id> lists every save from the Drive
history; restore <id> <version-id> writes one back as a new save.kortix artifacts rm <id> stops sharing; the files stay in Drive.
If the request also asks to share, share the artifact you saved as far as the
user asked: --with <email> for named people, --visibility project only for
an explicit "everyone in the workspace".
the dashboard's header.
to scale.
marked as examples.
| Command | Does |
|---|---|
| kortix artifacts types [<type>] | types; one type's format and starter |
| kortix artifacts publish <file\|dir> [--title --description --visibility] | upload and share |
| kortix artifacts add <folder> [--title --visibility] | share a folder already in Drive; its index.md or index.html stands for the folder, any other lone file is refused (publish it instead) |
| kortix artifacts publish <file\|dir> --id <id> [--base-version v] | save new content |
| kortix artifacts ls [--mine\|--shared\|--pinned] [--type t] [--search q] | list |
| kortix artifacts info <id> / open <id> | details, path, links |
| kortix artifacts cat <id> [path] [--version v] / pull <id> <dir> | read |
| kortix artifacts share <id> --visibility … [--with …] | share |
| kortix artifacts versions / restore / rename / pin / unpin / rm | manage |
Add --json for machine-readable output. Permissions (a role's, and for an
agent its kortix_permissions in kortix.yaml):
| Permission | Lets you |
|---|---|
workspace.artifact.read | list, open, read versions and files |
workspace.artifact.write | publish, add, save, restore; rename and share your own |
workspace.artifact.manage | rename, share or stop sharing anyone's |
workspace.artifact.public | give an artifact a public link |
Saving also needs write access to the folder in Drive. A refused public link
answers 403 public_link_forbidden: share with the workspace instead and tell
the user.