Please do not open a public issue for a security problem. Report it privately through GitHub: go to the Security tab and choose Report a vulnerability. You will get a response as soon as possible.
ctx is a local, offline command-line tool. What that means in practice:
- No network, ever.
ctxmakes no network calls and has no telemetry. Nothing you save leaves your machine. - No daemon. There is no background process.
ctxruns, does its work, and exits. - It only reads the directory you run it in, to build a size + modification-time
fingerprint of the files. It skips
node_modules,.git,dist,build,__pycache__, and.DS_Store, and it never opens or transmits file contents — only each file's size and timestamp. - It writes one file: the JSON store at
~/.ctx/store.json(or underCTX_HOMEif set). It is created mode0600inside a0700directory, and each save goes to a temp file in that same directory which is then renamed into place. If the store is ever unreadable it is kept asstore.json.corrupt(with a numbered suffix if needed) instead of being overwritten. If a backup cannot be created, the command stops without replacing the store. Nothing else on disk is touched. - Git context is best-effort and shell-free.
ctxinvokesgitwith an argument array (never through a shell) purely to read the branch and short status; any failure is swallowed and simply recorded as no git info.
The store keeps your notes, the relative paths of files in each project, and the saved git
branch/status — in plaintext, on your machine. Treat ~/.ctx/store.json like your shell
history: don't paste secrets into a ctx save note, and it won't store them.