Skip to main content

Project Management

Create, import, and manage screenplay projects in Khaos Machine.

Creating a Project

Web Dashboard

  1. Click the Khaos Machine menu bar icon and select Projects.
  2. Click New Project.
  3. Enter a project name.
  4. Choose a location on disk (defaults to ~/.khaos/projects/).
  5. Import a screenplay file.

Terminal Interface

Launch khaos-tui and use the import wizard to create a new project. The wizard walks you through file selection, format detection, and project naming.

CLI

khaos-tools parse --input my-screenplay.fountain --output ~/my-project

Importing Screenplays

Khaos Machine supports six screenplay formats. The parser auto-detects format by file extension.

FormatExtensionNotes
Fountain.fountainIndustry-standard plain text format
Final Draft.fdxFinal Draft XML export
ScriptBuilder.sbxScriptBuilder XML export
Markdown.mdMarkdown-formatted screenplays
PDF.pdfRequires pdftotext installed on your system
Plain Text.txtAuto-detected screenplay formatting

Import Process

When you import a screenplay, the parser:

  1. Reads the file and detects the format.
  2. Extracts scenes, characters, locations, and dialogue.
  3. Deduplicates entity names (e.g., "JOHN", "John", "JON" → single canonical form).
  4. Creates a KSPD project structure on disk.

Re-importing

If you update your screenplay file, you can re-import it. The parser will re-extract entities and preserve existing analysis results for unchanged entities.

Project Structure on Disk

Each project is stored as a directory following the KSPD (Khaos Screenplay Data) format:

my-project/
├── screenplay.fountain # Original screenplay file
├── elements/ # Extracted entities
│ ├── scenes/ # One file per scene
│ ├── characters/ # One file per character
│ └── locations/ # One file per location
├── analysis/ # AI analysis results (per provider)
│ └── openai/
│ ├── scenes/
│ ├── characters/
│ └── locations/
└── events.jsonl # Event log

Managing Multiple Projects

Projects page showing screenplay projects with status and analysis progress

The Projects page shows all your projects with:

  • Project name and screenplay title
  • Scene, character, and location counts
  • Analysis status (how many entities are analyzed)
  • Last modified timestamp

Click any project to open its dashboard.

Deleting Projects

To delete a project, use the project context menu in the Projects page. This removes the project from the Khaos Machine index.

caution

Deleting a project removes it from the project list. The files remain on disk at the project path. To fully remove all data, also delete the project directory from your filesystem.

Backing Up Projects

KSPD projects are plain files on disk — no database, no proprietary format. Back them up with any tool you already use:

  • Time Machine (macOS) — automatic if projects are in your home directory
  • Manual copycp -r ~/my-project ~/backups/
  • Cloud sync — iCloud Drive, Dropbox, or any file sync service
  • Git — KSPD is designed to be Git-friendly with readable, mergeable files

Next Steps