
# Local backup of personal files (never commit)
.personal-backup/
node_modules/
target/
cortex.db
cortex.db-wal
cortex.db-shm
cortex.lock
cortex.pid
cortex.token
write_buffer.jsonl
.cortex/

# Logs
logs/
*.log

# Build outputs
dist/
*.bak

# Internal design docs (not for public repo)
docs/
docs/architecture/
docs/compatibility/
docs/schema/
docs/internal/
docs/archive/
model_delineation.md
ROADMAP.md
docs/team-mode-setup.md
docs/CONNECTING.md

# Stale v0.4.1 benchmark dumps (superseded by benchmarking/)
benchmark/

# Browser-harness (internal dev automation — never public)
tmp-browser-harness-*
*browser-harness*
*browser_harness*

# Internal dev script (syncs gitignored security rules into gitignored CLAUDE.md/etc)
tools/sync-security-rules.sh

# Chrome extension — not yet public (shipping in future release)
extensions/cortex-chrome-extension/
tools/validate_chrome_extension_policy.py

# Build artifacts at repo root
cortex-app.exe
*.exe

# Database artifacts
cortex.db.bak
cortex_corrupt.db
*.db-journal
debug-*.log
docs.zip

# Rust build outputs
daemon-rs/target/
daemon-rs/target-*/
desktop/cortex-control-center/src-tauri/target/
desktop/cortex-control-center/src-tauri/target-*/
target-tests/
pytest-cache-files-*/
Users*cortex.tmppytest/
.tmp/pytest/
tmp/ptbase-*/
tmp/pytest-local/

# Desktop app build outputs
desktop/cortex-control-center/dist/
desktop/cortex-control-center/runtime-artifacts/
desktop/cortex-control-center/.codex-dev-baseline.pid
desktop/cortex-control-center/.devrun-live.pid
desktop/cortex-control-center/src-tauri/gen/schemas/windows-schema.json

# TLS certs and private keys
*.pem
*.key

# Environment files
.env
.env.*
.envrc
.secrets
.secrets.*
*.secret
*.secret.*
*.secrets
*.secrets.*
*.credentials
*.credentials.*
*credential*.json
*credentials*.json
service-account*.json
firebase-admin*.json
.aws/
.azure/
.gcp/
.config/gcloud/

# Local secure-repo root stubs (canonical policies live under security/)
SECURITY.md
AUTH.md
API.md
ACCESSIBILITY.md
DATABASE.md
DEPLOYMENT.md
INCIDENT_RESPONSE.md
ENV_VARIABLES.md
.env.example

# Personal config (users create their own)
CLAUDE.md
AGENTS.md
GEMINI.md
.cursorrules
.cursor/
.planning/
PLAN.md
RECON.md
cortex-profiles.json

# Personal configs
config/Modelfile.*
config/*.env

# Personal scripts
cortex-start.ps1
start-cortex.bat
cortex-brain.bat
claudebrain.bat
CortexBrain.bat
Cortex?Ingester?Instructions.txt

# Editor/tool artifacts
.aider*
.tmp-*
.tmp/
tmp/
.claude/
**/.claude/
.codex-cache/
.venv/
**/.venv/
venv/
**/venv/
__pycache__/
.npmrc

# Codebase intelligence (repowise)
.repowise/

# Graphify local graph artifacts
graphify-out/
.graphify/
.graphify_*.json

# Benchmark workspaces and external harness clones
benchmarking/tools/*
!benchmarking/tools/.gitkeep
benchmarking/runs/*
!benchmarking/runs/.gitkeep
benchmarking/results/*
!benchmarking/results/README.md
!benchmarking/results/*.json
!benchmarking/results/*.md
!benchmarking/results/*.csv
!benchmarking/results/*.tsv

# Generated plugin runtime archives (produced in release workflow)
plugins/cortex-plugin/assets/cortex-v*.zip
plugins/cortex-plugin/assets/cortex-v*.tar.gz
plugins/cortex-plugin/assets/SHA256SUMS
!plugins/cortex-plugin/assets/.gitkeep

# Shipsecure Pro (source zip + all extracted files)
.shipsecure-pro.zip
.shipsecure-temp/
security/
!info/security.md

# Local skill-run workspaces/artifacts (never public unless explicitly requested)
.code-upgrade/
agent_ergonomics_audit/
codebase_audit/
codebase-audit/
skill-runs/
.skill-runs/
*_skill_run/
*_skill_audit/
