Repository navigation
Expand file tree
/
Copy pathwrit.toml.example
More file actions
48 lines (42 loc) · 2.45 KB
/
Copy pathwrit.toml.example
File metadata and controls
48 lines (42 loc) · 2.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# writ.toml.example: copy to writ.toml and fill in the secrets below.
# writ.toml is gitignored so credentials never land in version control.
# On a fresh clone: cp writ.toml.example writ.toml then edit the secrets.
[neo4j]
uri = "bolt://localhost:7687"
user = "neo4j"
# No password here on purpose. `writ neo4j set-password` generates a private one, changes it in
# the running Neo4j and writes it into this section (the file becomes mode 0600). The built-in
# fallback is published in the Writ repository, so the daemon and CLI refuse it unless
# WRIT_ALLOW_DEV_PASSWORD=1 (throwaway instances and CI only).
[hnsw]
# cache_dir default is ~/.cache/writ/hnsw (see writ/config.py).
# get_hnsw_cache_dir() expands ~ on read, but prefer an absolute path here.
[logs]
# Default destination for `writ logs backup` when --dest is omitted. Copies the
# compressed archive generations (never live streams) off the log root for
# disaster recovery. A leading ~ is expanded on read (get_logs_backup_dest).
# backup_dest = "~/writ-backups"
[bitbucket]
# Credentials for `writ pr sync` (per-file PR comments). Fill these in writ.toml (untracked).
# email = your Atlassian account email; token = an API token (NOT your password).
# Create a token: https://id.atlassian.com/manage-profile/security/api-tokens
email = ""
token = ""
# Hosts the Bash egress guard may send local data to WITHOUT asking you to confirm
# (writ/config.py get_egress_allow_hosts, read by hooks/scripts/writ-bash-write-gate.sh).
# Compared on host only, port ignored. localhost, 127.0.0.1, ::1, [::1] and $WRIT_HOST
# always pass, so this list is for extras; $WRIT_EGRESS_ALLOW_HOSTS (comma-separated)
# adds to it for one session. Uncomment allow_hosts to use it.
[egress]
# allow_hosts = ["uploads.internal.example", "files.example.com"]
# Ranking preference for human-authored rules over AI-proposed ones
# (writ/config.py get_authority_preference_threshold).
# When two results are within this score gap and the higher one is
# authority="ai-provisional", the human / ai-promoted rule is ranked first.
# 0.0 disables the preference entirely, which is the shipped default: a sweep of
# the 193-query gold set measured no change from enabling it, because the only
# ai-provisional node in the corpus is not reachable from the default semantic
# route (benchmarks/RANKING-LEVERS-2026-08-06.md). Raise it only if you author
# ai-provisional rules that the semantic path actually retrieves.
[retrieval]
authority_preference_threshold = 0.0