Repository navigation
CREATIONS
Status: Partial
Last Updated: 2026-11-13
Audience: Developers and coding agents
Last verified: 2026-11-13 against 5f40af2d9 (record shape, limits, asset media types, chunk size, and kind rules; sync and storage details not rechecked)
Code: src/Martlet.Core/Creations/, src/Martlet.Gateway/GatewayCreations.cs, src/Martlet.HostClient/HostCreations.cs, src/Martlet.Conversation/CreationTools.cs
The audit verified the creation model and its limits. Sync, storage paths, network endpoints, and user-interface details below were not rechecked.
Martlet makes things: songs, pictures and a VRM character's body motions now, other kinds later. Everything it makes is a creation, kept the same on all your Martlet computers, and Martlet performs, shows or activates any of them itself when you ask in conversation ("sing the rain song again", "start from the chorus"). There is no Play button anywhere: the Creations page lists what Martlet made so you can read, rename or delete it.
A creation (Martlet.Core.Creations.Creation) has:
| Part | What |
|---|---|
id |
128 random bits as 32 hex digits; its first 12 (key) are what Martlet's tools and the page use |
kind, kind_version
|
A registered kind such as song, and which version of that kind's metadata it has |
title, summary, text
|
Its title (one line, at most 120 characters), a short summary and its readable text, such as a song's lyrics with [verse]/[chorus] tags (at most 16 KiB) |
duration_ms |
How long it lasts when performed, for kinds that have a length |
created_at, created_by
|
When, and which Martlet made it: the computer's device ID and name, and the voice and personality Martlet had |
metadata |
The kind's own JSON object (at most 16 KiB): for a song its tempo, key and lines; larger data such as word timings goes in an asset |
assets |
Named parts (vocals, backing, mix, mouth...), each stored once by the SHA-256 of its bytes, with its media type (audio/flac, audio/wav, application/json, text/plain, image/png, image/jpeg, image/webp or application/octet-stream; nothing in an asset is ever run) and the SHA-256 of each 3 MiB piece |
auto_cleanup |
Whether Martlet may delete it by itself, oldest first, when a new creation needs the room (the kind's choice, kept in the entry so every computer applies the same rule) |
The feature that makes a kind registers it once when Martlet starts
(CreationRegistry.Shared.Register), before any conversation:
- its name, what one and many are called and what Martlet does with one (
sing,show,activate), and its icon; - its assets: names, media types, size limits and which are required, and the size limit of one creation;
- whether old ones may be cleaned up;
- how one is described to the Thinking model (
list_creations) and shown on the Creations page (titled blocks of text, such as a song's sections); - one fixed sentence on what
perform_creation's options mean for it.
How a kind is performed is an ICreationHandler the feature attaches with
CreationRegistry.Shared.Handle(kind, handler) while it can do it (songs: the
conversation that sings them) and detaches when it can't. A handler gets the
creation, the options the Thinking model passed and the creation's assets on this
computer (checked against their SHA-256), starts the work and returns at once with
a sentence for the model.
A creation of a kind this Martlet doesn't know (made by a newer Martlet) is kept and passed on like any other; the page says to update Martlet to use it here.
Songs (SongCreations.Kind, registered by the desktop at startup): assets
mix, vocals and backing (FLAC, sample-aligned), map (JSON: the lines with
their sections and times, the sung words with their times and the beat grid) and
mouth (JSON, optional: the mouth track made once from the vocals for lip sync);
metadata with what it is about, its style, voice, tempo, key, counts, where its
word times and mouth track came from and the engine. perform_creation options:
{"from": "start"}, or resume, a section such as chorus, line:N or a time
like 1:05 (the same as play_song). Each conversation attaches the handler
that sings it (singing in conversation).
Reports (ResearchReports.Kind, registered by the desktop at startup): web
research reports (web research). One asset,
report (text/plain: the report in Markdown with its numbered sources, at most
1.25 MiB; a longer one ends with a line that says where it was cut); the title,
the one- or two-sentence summary and the report as text (at
most 16 KiB) in the entry, and the number of sources in metadata. Martlet may
clean old ones up. perform_creation takes no options: the desktop's handler
writes the report as a plain web page (no scripts, links only to http and https)
to research-reports\<key>.html in the data folder and opens it in the default
browser. Every computer that has a report also makes it searchable in memory,
so search_guide finds what it said later (see
Finding a report again); deleting the
report drops it. After a report is kept, its source check
(Checking the sources) revises it once
(CreationStore.ReviseAsync: a new summary, text and assets with a newer
revision; the ID, title, author and creation time stay, and the old asset that
no creation uses is deleted), so every computer gets the report with its
Source check section.
Pictures (PictureCreations.Kind, registered by the desktop at startup): one
asset, image (PNG, JPEG or WebP, at most 24 MiB); its text is the description it
was drawn from and its summary what you asked for; metadata with its shape, size,
engine, model, where it was drawn, seed and seconds. Martlet shows a picture: the
conversation's handler puts it in the talk window (no options), and the Creations
page shows it with its details (Picture making).
Motions (MotionCreations.Kind, registered by the desktop at startup): body
motions Martlet made for VRM characters (motions in
conversation). One asset, clip (a VRMA
clip as application/octet-stream, at most 4 MiB, so older Martlet computers and
hosts copy it too); its title is the motion's name (cheer), its text and
summary what the body does, its length the clip's; metadata with its name,
seconds, seed, model, where it was made, whether it is a FIXTURE test motion, the
character it was first made for and whether it is a starter motion. Martlet may
clean old ones up. It is the one kind kept out of Martlet's creation tools
(CreationKind.ForTools false): every VRM character lists the kept motions as its
own emotes and motions, so replies do them by their tags, or with body_motion.
Audio assets are FLAC (Martlet.Core.Audio.FlacCodec, built into Martlet: 16-bit
mono or stereo, every frame's CRC and the audio's MD5 checked; files play in any
FLAC player and libFLAC's files decode in Martlet). FLAC is lossless: the song
plays exactly as it was made.
A 60-second song at 48 kHz has a stereo mix, stereo backing and mono vocals: 27.5 MiB as WAV (11.0 + 11.0 + 5.5 MiB). Measured on FIXTURE - NOT AI music-like signals, FLAC keeps a stereo track at about 60% (6.6 MiB) and mono vocals with silences at about 30% (1.7 MiB), so a 60-second song is about 15 MiB as FLAC (13-19 MiB depending on the music), plus a small lip-sync asset. A real song's sizes are NOT RUN yet.
| Limit | Value |
|---|---|
| Creations | 256 live, 1,024 deletions remembered |
| Size of all creations | 2 GiB (about two hours of songs) |
| One creation | 512 MiB (a kind may set less) |
| One asset | 256 MiB (a kind may set less), travelling in 3 MiB pieces |
| The list | 8 MiB of JSON |
When a new creation doesn't fit, Martlet deletes the oldest creations whose kind allows it (deletions travel like any other); when that isn't enough, it isn't added and the owner is asked to delete some in Creations. If two computers fill the list while apart, the merged list keeps the creations Martlet may not clean up first, newest first, so every copy agrees.
Creations follow the same design as the
shared character models: a list of
last-writer-wins entries with tombstones (CreationLibrary, the same hybrid
revisions and merge rules as the cluster plan, so copies converge in any order)
and assets moved piece by piece, content-addressed by SHA-256.
-
Each desktop keeps the signed-in account's creations in that account's
folder,
accounts\<32 hex>\in Martlet's data folder (accounts):creations.jsonand each asset once increations\<sha256>.bin. Pieces copied from another computer wait increations-incominguntil the asset is complete and its SHA-256 checks; then it moves into place in one step. Files no live creation uses are deleted. -
Each host keeps one list per account as
creations-account-<32 hex>.json, the old single listcreations.jsonfor desktops on an older Martlet, and one pool of pieces for all of them ascreation-chunk-<sha256>.bin, besidehost.json(0600, gateway service owner; not part of the approved configuration). A host performs nothing; it keeps everything so a desktop that was off when something was made catches up from any host. A piece is deleted when no list's live creation uses it. -
creations-sync.jsonon each desktop records the last sync: when, what it said and each paired host's state and which creations it holds completely (IDs only), for the Creations page and MCP'screations_status.
| Endpoint (paired devices only, over the pinned, signed connection; API keys may not) | What |
|---|---|
GET /martlet/v1/creations |
The host's list and the SHA-256 of each piece it holds (present) |
GET /martlet/v1/creations/digest |
The list's digest and the digest of present, so desktops read the list only when something changed |
POST /martlet/v1/creations |
Merge a desktop's list in; returns the merged list and present
|
GET /martlet/v1/creations/chunks/<sha256> |
One piece (chunk.missing when the host has none) |
POST /martlet/v1/creations/chunks/<sha256> |
Send {"data_base64": ...} for a live creation; refused (request.invalid) for a wrong SHA-256, a piece no live creation has, a wrong length or anything else in the body |
GET /martlet/v1/creations/accounts/<32 hex> |
One account's list and the pieces of it the host holds; the answer names the account
|
GET /martlet/v1/creations/accounts/<32 hex>/digest |
The digests of that list and of its present
|
POST /martlet/v1/creations/accounts/<32 hex> |
Merge a desktop's list into that account's; a host keeps lists for at most 64 accounts (creations.accounts_full) |
GET, POST /martlet/v1/creations/accounts/<32 hex>/chunks/<sha256>
|
One piece of that account's live creations, as above |
The account routes are only for paired member devices that may use the
account's memory space account-<32 hex> (the host's access hook,
GatewayMemorySpaces.Access): reading needs read access, a POST read and write
access. Other devices get creations.account_denied; friends and API keys are
refused before that. The old routes stay as they are for desktops on an older
Martlet.
Every 30 seconds while any host is paired and Martlet is the same on all your
computers (and two seconds after a creation is made, renamed or deleted here) the
desktop's CreationSync reads each host's digests and, when they changed (or
something here is still copying), its list; merges every list into its own;
copies each asset it lacks from hosts that hold its pieces (an interrupted copy
continues where it stopped); deletes what was deleted elsewhere; gives every host
whose list differs the merged list and sends each host every piece it lacks.
Desktops and host PCs alike keep everything, so Martlet on any of your computers
can perform any creation. Nothing is written while no host is paired or while the
switch is off. A host older than creations refuses with request.invalid; the
page asks you to update it.
Each account has its own creations. The desktop syncs only the signed-in account's list, so an account's creations reach only the computers where that account is signed in, and every host keeps every account's list.
-
The owner bridge. Desktops on an older Martlet still use the old single
list. When the signed-in account is the owner, the desktop's sync joins the
owner's list and the old list on each host (
CreationOwnerBridge) and keeps them the same in both directions. Both are last-writer-wins merges, so the owner's creations stay the same on older desktops and older hosts too. On a host older than accounts the owner's sync uses the old list alone. Other accounts never read the old list; their sync says such a host needs an update. -
The move. The creations kept in the data folder before accounts move once
into the folder of the first account that signs in on that data folder (on an
updated desktop, the owner). The list is saved in its new place first; an asset
file is deleted only when the new place holds a file with the same SHA-256 and
length; and running it again finishes an interrupted move. A list that can't be
read stays where it is.
accounts\creations-moved.jsonrecords the move: the account, when, how many creations and how many asset files.
Creations are their account's own, like memories: only paired devices that may use the account read them, nothing in them is a secret Martlet uses, MCP never returns a title, text, voice or personality, and the log names counts and short IDs only.
While at least one kind for the tools is registered (CreationRegistry.ToolKinds:
every kind except one with ForTools false, such as motions), every reply on a Thinking route that does
function calling gets two of Martlet's own tools, after think_longer,
cancel_thinking and search_conversations, always the same two in the same order with the same texts
(built from those kinds, never from the creations), so the start of
every request stays the same for prompt caches. Registering a kind kept out of the
tools changes none of their words, and they never list or perform its creations:
-
list_creations(kind?, query?): the creations newest first (at most 30): short id, kind, title, the kind's description, length, the day it was made, whether Martlet can perform it here now and why not. -
perform_creation(id, options?): hands the creation to its kind's handler. An unknown id, a kind this Martlet doesn't know, no handler here or a creation still copying to this computer get a clear sentence for the model instead.
Neither asks first. The creations list is read from disk only when a tool is called, so a reply that doesn't use them costs nothing more, and with no kind registered the request is exactly as before.
While the After each exchange check-in ticks the Songs, pictures and creations
tool set (songs-pictures) and the
Thinking pool has a member that calls tools, the reply keeps list_creations
but doesn't get perform_creation: it says in a few words that it will perform
it, and the check-in calls list_creations and perform_creation right after
the reply, on the Thinking pool.
Creations sits between Companion and Diagnostics. It shows how many creations there are and how large, whether they are shared with your other computers, and each creation as a card: its kind's icon, title, kind, length, size, when and on which computer it was made and where it is (this PC, and how many hosts hold it). The selected creation shows its summary, its text in its kind's sections, its details (metadata and parts), what to ask Martlet ("Ask Martlet to sing it.") and Rename and Delete (deletion travels to every computer as a tombstone). A note reads "Ask Martlet to sing or show any of these.", and the empty page "Things Martlet makes, like songs, appear here."
creations_check (MCP) checks the tools in process and rehearses the sync with
two real gateways and three simulated desktops on loopback with the production
store, sync engine and paired client, using the FIXTURE - NOT AI test-tone kind:
FLAC sizes and exact decoding, sharing every piece, skipping unchanged hosts, a
new desktop and a relay host, an interrupted copy, performing a creation on
another computer, an unknown kind passing through, rename and delete everywhere,
a stale copy, a host restart, piece checks and an unsigned request refused; then
two accounts on one host: each syncing through its own list, one pool of pieces
(a piece goes only when no list uses it), the owner bridge in both directions
with an older desktop, an unchanged host skipped through the bridge, the other
account never seeing the old list or the owner's creations, and a restart. The
gateway tests cover the account routes, their access hook and limits, and the
core tests the move and the bridge on a host older than accounts. The
Creations page was checked through MCP on a disposable data folder (empty state,
listing, selecting, renaming and deleting test tones). Unit tests cover the codec
(against itself; libFLAC was checked both ways by hand), the merge rules, cleanup
and the store. The desktop's sync with real paired hosts, the Linux host's files,
two real computers, a real song, a kind's real handler and a Thinking model
calling the tools are NOT RUN.
Martlet: download · repository · changelog · issues
These pages come from docs/wiki in the repository. To suggest a change, open an issue or a pull request there.
- Home
- Accounts and households
- Accounts and Household
- Android phones and tablets: what it takes, and the plan
- Martlet's API for other apps and scripts
- App Guides
- App Settings and Updates
- App guides: game and app knowledge from the web
- Architecture
- Bounded PCM playback
- Audio dependency inventory and notices
- Avatar guide: Live2D, VRM and speech animation
- V01a explicit microphone capture
- Chatterbox voice engines
- Cleaning up disk space
- One Martlet on all your computers
- Companion controls and behavior requirements
- Components, jobs and placement (design)
- Live conversation
- Creations
- Decision map: which file owns each decision
- Deep research: web search and long research jobs
- The desktop app: updates, notification area, exiting and appearance
- Linux and macOS desktop companion: research, decision and plan
- Developer Guide
- Dia voice engine
- Diagnostics
- Discord
- Architecture and provider contracts
- Discord
- Memory (P03a/P03b/P03c)
- Singing
- Desktop troubleshooting and local support
- Recognizing people by voice, and Parakeet
- Echo cancellation
- ElevenLabs voice: your cloned voice with tones
- F5 worker and reference-voice foundation
- FAQ
- First Steps
- Game state plan: implementation history
- Glossary: one name for each concept
- GPT-SoVITS voice
- Hosted Thinking: cloud models when Thinking can't run on this PC
- Installation and support
- Installing Martlet
- iOS and iPadOS: what it takes, and the plan
- Repository instructions for coding agents
- Repository knowledge base
- Knowledge base maintenance
- GitHub Wiki mirror
- Linux and Mac
- Listening and Voice ID
- Local model apps
- Lorebooks
- macOS: what it takes, and the plan
- Martlet MCP Server
- MCP in Martlet
- MCP: The app's window
- MCP: Apps, home and memory
- MCP: Characters
- MCP: Diagnostics and logs
- MCP: Computers, network and accounts
- MCP: Other
- MCP: Tool permissions
- MCP pages
- MCP: Server and protocol internals
- MCP: Settings
- MCP: Start here
- MCP: Thinking and models
- MCP: Voice and listening
- Memory
- Messaging apps
- Model catalog: sources, conflicts and design
- Motion host role
- Multiple Computers
- Your Martlet network
- OCR host role
- Share your language models: the OpenAI-compatible endpoint
- Packaging
- Perception worker contracts
- Personality and Characters
- Picture making
- Pictures and Creations
- Picture making host role
- Platforms: what each device can do
- Prerequisites: what Martlet bundles, installs for you, or needs from you
- Privacy and Safety
- Reading the text on your screen
- Wiki source
- Recommendation design: ask three questions, plan for three situations
- Recommended setups: one machine to unlimited budget
- Releasing
- Repository Layout
- Research and provenance ledger
- Resource footprints
- Roadmap
- Watch my screen: screen-aware commentary
- Search engine
- Image and audio models: who sees, who hears, who answers
- Setting Up a Host
- Setup, Windows credentials and local audio
- Sharing with Friends
- Singing
- Smart Home
- Smart home and cameras
- Source Projects
- Talking to Martlet
- Telegram and WhatsApp
- The Character
- Thinking
- Tools and MCP
- Troubleshooting
- Martlet desktop UI design
- User stories and target flows
- Voice activity detection
- Validating changes
- Validation and Testing
- Vision
- Voice latency: from you stopping talking to Martlet's voice
- Voice recognition host role
- Multi-engine voice setup and comparison
- Voices
- The welcome wizard
- XTTS-v2 voice engine