# Python
backend/venv/
cli/venv/
plugins/*/venv-*/
cli/llx.egg-info/
__pycache__/
*.pyc
*.pyo
*.pyd
.Python
*.egg-info/
dist/
build/
*.egg

# Node
node_modules/

# Application data (generated at runtime)
data/uploads/
data/outputs/
data/cache/
data/piptmp/
data/database/
data/models/
data/context/
data/indexes/

# Video editor projects + migrated session (runtime user data, per-machine)
data/video-editor-projects/
data/video_editor_session.json.migrated

# App-mutated runtime state (written by the backend at runtime, per-machine)
data/ab_tests/
data/autoresearch/
data/active_model.json
data/rag_experiment_config.json
data/rag_experiment_config.json.tmp

# Plugin runtime artifacts (generated per-machine, never sync)
plugins/*/outputs/
plugins/*/output/
plugins/*/cache/
plugins/*/tmp/
plugins/*/.cache/
plugins/*/__pycache__/
data/plugin_state.json
data/agent_state.json
# Signing key for agent screenshot links (backend/utils/screenshot_urls.py)
data/.screenshot_url_secret
# Which training base models this install has downloaded
data/training/base_models.json
# The GGUF converter installed from Settings > Training libraries, and its staging folders
data/training/gguf_converter/
data/training/.gguf_converter-*/
# Per-machine UI state and MCP server config
data/folder_state.json
data/images_windows_state.json
data/config/
# Demo render workspaces: logs, pids and scripts with machine paths
data/demo_assets/launch/
# Per-episode renders and synthetic photos (large media, regenerated per shoot)
data/demo_assets/ep*/
# Per-machine plugin config overlay (see backend/plugins/plugin_config_store.py)
data/plugin_config.json
data/social_outreach/
# Interconnector runtime state (master core_files_registry.json + client last_core_sync.json)
data/interconnector/
# Half of an atomic synced-file write, left only if the process died mid-write
*.sync-tmp
data/outreach/
data/docstore.json
data/index_store.json
data/default__vector_store.json
data/graph_store.json
data/conversations/sessions/
data/conversations/daily/
data/conversations/summaries/
data/training/screenshots/
data/training/demonstrations/
data/training/failures/
data/training/datasets/*.jsonl
data/training/scrub_terms.txt
data/training/build_reports/
data/training/models/
# Servo calibration data — runtime-generated, regenerated per calibration run
data/training/servo_logs/
data/training/servo_calibration.json
data/training/eye_bench/
data/training/model_coord_probe.json
# Per-recipe run/verdict counters written by feedback; machine state.
data/agent/recipe_stats.json
# Notes from answers about Guaardvark's own code (backend/services/self_analysis.py).
data/agent/code_notes.json
data/training/knowledge/servo_archive*.jsonl
data/training/knowledge/*.pre_purge
data/training/knowledge/feedback.jsonl
data/training/poisoned_data_backup/

# Agent desktop shortcuts (generated with local paths at runtime)
data/agent/desktop/

# Wayland desktop bridge runtime state: the portal restore token and its log
data/desktop_bridge/

# Import graphs and repository maps of project folders, rebuilt from disk
data/code_maps/

# Agent browser state — cookies, sessions, history, cache, anything that
# should never leave the local machine. Was previously only excluded via
# .git/info/exclude (per-clone, not shared); promoting to the tracked
# .gitignore so a fresh clone cannot accidentally track it.
data/agent/firefox_profile/
data/agent/firefox_extension/

# Any browser profile the screen agent drives, whatever the engine. These fill
# with cookies, history and saved logins the moment the agent browses, so the
# pattern is deliberately wider than the engines in use today.
data/agent/*_profile/
data/agent/chromium_profile/

# Agent XFCE runtime state — xfconf settings, panel layout, desktop-icon
# positions. Written by xfce4-session on every launch; per-machine, never
# meant to be tracked. The directory itself is auto-created by
# start_agent_display.sh on first run.
data/agent/xfce_config/

# Stray local scratch files (do not commit)
/README.draft.md

# Logs, backups, PIDs
logs/
backups/
pids/

# Environment
.env
/env

# Local IDE / assistant session state
.antigravitycli/
*.code-workspace

# Local-only dev tooling config (not part of the shipped test config)
pyrightconfig.json

# Runtime cluster state — regenerated on startup, never committed
data/cluster/
backend/data/

# Scratch scripts at repo root (root-level only, not backend/tests/)
/test_stream.py
/test_rag.py
backend/pytest_output.txt
plugins/upscaling/test_gfpgan.py

# Frontend build
frontend/dist/
frontend/.vite/

# Databases
*.db
*.sqlite
*.sqlite3

# Native libraries (built from source)
backend/tools/voice/whisper.cpp/build/
backend/tools/voice/whisper.cpp/models/
*.so
*.dylib
*.dll

# OS files
.DS_Store
Thumbs.db
*.swp
*.swo
*~

# Testing
.start_cache/
.pytest_cache/
.mypy_cache/
.ruff_cache/
htmlcov/
.coverage
coverage.xml

# Backup files
*.BACK
*.BACKUP
*.backup
*.bak
*.orig

# Plugin dependencies (installed at runtime)
plugins/comfyui/ComfyUI/
# Trees the ComfyUI updater keeps beside the live one
plugins/comfyui/ComfyUI.next/
plugins/comfyui/ComfyUI.prev-*/
plugins/comfyui/ComfyUI.next.stale-*/
plugins/comfyui/.update_job.json
plugins/*/venv/
backend/tools/voice/piper-models/*.onnx
backend/tools/voice/piper-models/*.onnx.json

# ONNX/WASM runtime files (downloaded at build time)
frontend/public/ort-*
frontend/public/*.wasm
frontend/public/*.onnx

# Training model weights (too large for git)
training/models/
# Filtered datasets written by the training pipeline
training/processed/
unsloth_compiled_cache/
plugins/upscaling/models/*.pth
# Root training snapshot archive — a multi-GB tarball of the whole training/ dir.
# Not source; must never reach a commit. Keep the FILE on disk (it can be the only
# surviving copy of a trained model) but keep it out of git.
training.zip
/*.zip

# Dependency reconciler runtime state (per-machine)
data/dep_reconciler/

# Celery beat schedule state (per-machine, runtime-managed)
data/celerybeat-schedule
data/celerybeat-schedule.db*
# Local passwordless Redis sidecar data dir (start_redis.sh alt-port broker)
data/redis-broker/

# --- Local scratch, backups & per-machine runtime (gitignore audit 2026-05-21) ---
# Backup archives — the bare *.BACK rule misses compound extensions like .BACK.zip
*.BACK.zip
data/*_backup_*.zip
data/*-back.zip
data/data-dir*.zip
# Orchestrator runtime plans (per-machine state, not application source)
data/system/orchestrator_plans.json
# Loose training-knowledge dumps (feedback.jsonl above is the common one; this
# catches the ad-hoc prefixes that accumulate beside it)
data/training/knowledge/*feedback*.jsonl
# Agent desktop runtime home — mime/dbus/gvfs/recently-used caches written per launch
# (sibling of the already-ignored data/agent/xfce_config/)
data/agent/data_home/

# GFPGAN face-restore model weights (large, fetched at runtime)
plugins/upscaling/gfpgan/weights/

# Old training-knowledge snapshots — knowledge/ is tracked, OLD.* backups are not
data/training/knowledge/OLD.*

# Root-level scratch media & frames (generated during video/audio testing)
/*.mp4
/*.wav
/frame_*.jpg

# Scratch YouTube manual run-scripts (ad-hoc run() scripts, not pytest)
backend/tests/test_youtube_chat*.py
backend/tests/test_youtube_final.py

# Runtime editor/session state and locally-trained adapters
data/video_editor_session.json
data/video_editor_state.json
data/training/loras/

# Google Indexing service-account key
data/credentials/

# Swarm, upscaling and vision pipeline internal secrets (never publish) + per-film cast reference images (runtime, machine-local)
data/.swarm_internal_secret
data/.upscaling_internal_secret
data/.vision_pipeline_internal_secret
data/cast_refs/

# Per-clone check_portable.sh lists — the names and patterns they hold must stay
# out of the public file that enforces them. See CONTRIBUTING.md.
scripts/.portable-local-patterns
scripts/.portable-local-paths

# Per-machine build/runtime state, regenerated by start.sh / verify_gpu_stack.sh
frontend/.npm_stamp
data/gpu_stack_status.json
data/ollama-dropin.rendered.conf

# === Non-code artifacts — NEVER in git (operator standing rule, 2026-06-24) ===
# Policy: main tracks STANDARD APPLICATION CODE ONLY. No model weights, no
# training data/outputs, no personal transcripts, no runtime state. The operator
# keeps local backups for these — git is for source, not for gigabytes.
#
# Model weights & checkpoints (anywhere in the tree)
*.safetensors
*.ckpt
*.gguf
*.pt
*.pth
*.bin
*.onnx
# External trainer repos cloned into the lora_trainer plugin (multi-GB, third-party)
plugins/lora_trainer/SimpleTuner/
plugins/lora_trainer/ai-toolkit/
plugins/lora_trainer/musubi-tuner/
plugins/lora_trainer/sd-scripts-flux/
# Logs, debug dumps, LLM/agent transcripts (personal / regenerable)
*.log
debug.log
# Cursor IDE local rules/state (operator machine only — not product code)
.cursor/
# Per-machine runtime state written by the app
data/video_model_download_status.json
data/user_video_models.json
data/user_video_models.json.tmp
data/user_image_models.json
data/user_image_models.json.tmp
data/image_model_download_status.json
data/image_model_download_status.json.tmp
storage/

# In-tree whisper.cpp checkout (own nested .git, 800MB+ build) — never track
backend/tools/voice/whisper.cpp/
# App-mutated plugin state (same class as data/ runtime state, see b2cc46a)
plugins/comfyui/.custom_nodes_installed
data/embedding_meta.json
data/documents_windows_v2_state.json
data/sticky_notes_state.json
# Pre-migration copies of the file-backed index, kept on disk after the pgvector move
data/_pre_pgvector_backup/
# Per-install plugin manifest overrides (merged over plugin.json at load)
plugins/*/plugin.local.json

# Code-editor and dashboard layout — per-install UI state, not source.
data/code_editor_state.json
data/code_editor_session.json
data/dashboard_state.json

# Episode render output — regenerable from the pipeline; fixtures beside it are tracked.
data/demo_assets/*/render/

# Episode production notes are working documents, not shipped docs.
data/demo_assets/*/README.md

# Claude Code workspace config. Every file here so far — permission allowlists,
# hooks, workflows — is specific to one machine and its local-only working
# files, so the whole directory stays local. To ship a hook or skill
# deliberately, un-ignore that one path; never the directory.
.claude/

# Build-time copy of the repo-root VERSION, so an sdist can carry it. Generated
# by the release workflow; the root VERSION file stays the source of truth.
cli/VERSION
cli/README.md

# zvec-grep workspace index (plugins/zvec_grep builds it per checkout)
.zvec-grep/
