Skip to content

v0.47.0 — /persona local system-prompt files (#68)

Choose a tag to compare

@gobha-me gobha-me released this 21 Jul 22:50

venice chat: local personas (#68)

Keep a library of your own reusable system prompts as plain .md/.txt files under ~/.config/venice/personas/ — private, version-controllable, offline, and complementary to Venice's server-side --character slugs.

  • /persona [name] in the REPL — no arg lists available personas (name + first line); /persona <name> loads personas/<name>.md|.txt as the system prompt, keeping conversation history (like /system). Tab-completes persona names.
  • --persona NAME flag and defaults.chat.persona config key seed the system prompt at launch. An explicit --system / defaults.chat.system takes precedence.
  • Safety: bare-name-only resolution (path separators and .. rejected) plus a realpath containment check, and listing enumerates only the personas/ subdir — a persona can never read the neighbouring credentials file.

venice chat only for now. Structured presets (frontmatter with model:/temperature:/character:) remain deferred.

632 tests green.