Scribae
From Latin scribae, "the scribes." The professional copyists and secretaries of the ancient world.
Scribae is a CLI that turns local Markdown notes into structured SEO content packages with human-in-the-loop review. It keeps the research-to-publication flow reproducible by combining deterministic prompts, typed outputs, and LLMs via OpenAI-compatible APIs.
Why Scribae?
- Keep source material local. Point the CLI at a Markdown note and run everything against an OpenAI-compatible API endpoint you control.
- Human in the loop. Each stage is designed for review and editing before you publish.
- Repeatable prompts. Each command builds structured prompts and validates model responses to catch schema drift early.
- End-to-end workflow. Move from ideation to translation within one tool instead of juggling separate scripts.
Installation
Run Scribae without installing it:
uvx scribae --help
Run with translation support enabled:
uvx "scribae[translation]" --help
Note:
uvxcreates a temporary environment on each run. With the translation extra, this downloads PyTorch (~2GB) every time. For repeated use, install with pipx or pip instead.
Install it globally with an isolated environment using uv:
uv tool install scribae
Or using pipx:
pipx install scribae
Or use pip directly:
pip install scribae
Translation support
Translation uses PyTorch and Hugging Face Transformers. Install with the translation extra:
pip install scribae[translation]
Prefer a CPU-only PyTorch wheel with pipx:
pipx install "scribae[translation]" --pip-args="--index-url https://download.pytorch.org/whl/cpu"
Prerequisites
Scribae requires an OpenAI-compatible API endpoint. The easiest option is Ollama running locally:
# Install Ollama (see https://ollama.com for other platforms)
curl -fsSL https://ollama.com/install.sh | sh
# Start the server
ollama serve
# Pull the default model
ollama pull ministral-3:8b
Alternatively, point Scribae at any OpenAI-compatible endpoint:
export OPENAI_BASE_URL="https://api.openai.com/v1"
export OPENAI_API_KEY="sk-..."
Quick start
-
Generate ideas from a Markdown note:
scribae idea --note my-notes.md --json
-
Create an SEO brief from your note:
scribae brief --note my-notes.md --out brief.json
-
Write a draft using the brief:
scribae write --note my-notes.md --brief brief.json --out draft.md
-
Add metadata to your draft:
scribae meta --body draft.md --brief brief.json --format frontmatter --out draft.md
-
Translate to another language:
scribae translate --src en --tgt de --in draft.md --out draft.de.md
Run scribae --help to see all commands and options.
Core workflow
idea → brief → write → feedback → refine → meta → translate
- idea — Brainstorm article ideas from a note with project-aware guidance.
- brief — Generate a validated SEO brief (keywords, outline, FAQ, metadata).
- write — Produce an article draft using your note, project context, and brief.
- feedback — Review a draft against a brief and generate a focused improvement report.
- refine — Improve a draft against a brief while preserving intent and structure.
- meta — Create publication metadata/frontmatter for a finished draft.
- translate — Translate Markdown using MT + LLM post-edit while preserving formatting.
Configuration
Environment variables
| Variable | Default | Description |
|---|---|---|
OPENAI_BASE_URL |
http://localhost:11434/v1 |
API endpoint URL |
OPENAI_API_KEY |
no-key |
API key (not needed for Ollama) |
You can also use OPENAI_API_BASE as an alternative to OPENAI_BASE_URL.
Project files
Create a scribae.yaml in your project directory to set defaults:
site_name: My Blog
domain: https://example.com
audience: developers interested in Python
tone: conversational
language: en
keywords:
- python
- programming
LLM settings
All commands that use LLMs support --temperature, --top-p, and --seed for controlling output variability:
| Option | Default | Description |
|---|---|---|
--temperature |
0.2–0.4 | Sampling temperature. Lower values produce more deterministic output. |
--top-p |
(none) | Nucleus sampling threshold. Set to 1.0 for full distribution. |
--seed |
(none) | Random seed for reproducible outputs. |
For fully deterministic output, set --temperature 0. For reproducible creative output, combine --seed with --top-p 1.0.
# Deterministic mode
scribae brief --note notes.md --temperature 0 --out brief.json
# Reproducible creative mode
scribae write --note notes.md --brief brief.json --seed 42 --top-p 1.0 --out draft.md
The translate command uses --postedit-temperature, --postedit-top-p, and --postedit-seed for the LLM post-edit pass.
Note: Seed behavior depends on the underlying model. Some models (e.g., certain Ollama models) may not fully support deterministic output even with
--seedset. For guaranteed reproducibility, test with your specific model and endpoint.
Usage examples
Idea discovery
Start with a note and generate a structured list of candidate articles:
scribae idea --note notes.md --project demo --out ideas.json
Use --language or --model to override project defaults, and --dry-run to preview the prompt without calling the model.
SEO brief creation
Convert a note into a validated brief, optionally anchored to a specific idea:
# From a note directly
scribae brief --note notes.md --out brief.json
# From a specific idea
scribae brief --note notes.md --ideas ideas.json --idea-index 1 --out brief.json
# Generate briefs for all ideas
scribae brief --note notes.md --ideas ideas.json --idea-all --out-dir briefs/
Draft writing
Turn a note + brief into a draft:
# Full article
scribae write --note notes.md --brief brief.json --out draft.md
# Only sections 1-3
scribae write --note notes.md --brief brief.json --section 1..3 --out draft.md
# Require citations
scribae write --note notes.md --brief brief.json --evidence required --out draft.md
Metadata generation
Create JSON frontmatter or merge into an existing draft:
scribae meta --body draft.md --brief brief.json --format both --out meta.json
Use --overwrite to control how existing fields are preserved.
Translation
Translate Markdown while preserving structure:
scribae translate --src en --tgt de --in draft.md --out draft.de.md
Options:
--glossary— Lock specific terminology--postedit/--no-postedit— Toggle LLM cleanup pass--allow-pivot— Enable English pivoting for unsupported language pairs--debug— Write detailed translation report
Supported language pairs
Direct MarianMT pairs: en↔de/es/fr/it/pt, de→es/fr/it/pt, es→de/fr/it/pt
Pivoting: When no direct pair exists and --allow-pivot is enabled, Scribae routes through English (src → en → tgt).
NLLB fallback: For other pairs, the pipeline falls back to NLLB. Standard ISO codes (en, de, es) are mapped automatically, or pass NLLB codes directly (eng_Latn, deu_Latn).
Development
Setup
The --all-extras flag is required for development as it installs PyTorch, which is needed for mypy type checking to pass.
git clone https://github.com/fmueller/scribae.git
cd scribae
uv sync --locked --all-extras --dev
For CPU-only PyTorch (~200MB vs ~2GB):
uv sync --locked --all-extras --dev --index pytorch-cpu
Running from source
uv run scribae --help
Testing
uv run ruff check # Lint
uv run mypy # Type check
uv run pytest # Run tests
License
This project is licensed under the Apache License 2.0. See LICENSE for details.
Metadata
Release files for scribae 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| scribae-0.2.0.tar.gz | 77.4 kB | Without provenance | Details for scribae-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| scribae-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for scribae-0.2.0-py3-none-any.whl |
Total release size: 172.6 kB
Release files / scribae-0.2.0.tar.gz
| Download URL | scribae-0.2.0.tar.gz |
|---|---|
| Size | 77.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cb72f5744b22dcb211891b5611321679a31c5055d5dd3bda8be2dab9dcd71d6c
|
|
BLAKE2b-256 checksum How to use checksums |
6089ca0ffb074589239e160000413164bb124ab0080158ad8dafc6b34e25c561
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / scribae-0.2.0-py3-none-any.whl
| Download URL | scribae-0.2.0-py3-none-any.whl |
|---|---|
| Size | 95.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
128b3d404bed148c7b3d2e987bdf70f10dfa99d9106422f71084b1d47fb4a4bc
|
|
BLAKE2b-256 checksum How to use checksums |
9b339071f8edb2840870fe0000490fba37fd7ffe2f724da8d160c673bcbcf7b3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for scribae 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.