If you discover a security vulnerability in Gortex, please report it responsibly:
- Do not open a public issue.
- Use GitHub's private vulnerability reporting, or email the maintainer directly.
- Include a description, the affected version or commit, and steps to reproduce.
We aim to acknowledge receipt within 48 hours and will provide a timeline for a fix.
Gortex is a code-intelligence engine. It indexes repositories into a knowledge graph held in a local SQLite store and exposes that graph over a CLI and an MCP server. Running locally — on the user's machine, with the user's privileges — is the default and the assumption of this policy, but Gortex can also be deployed remotely (for example, a daemon bound to a non-localhost address), where the network-exposure and authentication considerations below carry more weight.
The MCP tools are typically driven by an LLM agent, so the agent should be treated as potentially adversarial: prompt injection through indexed content (a crafted README, source comment, test fixture, or dependency) can cause the agent to invoke tools with attacker-influenced arguments. The boundaries described below — file-path confinement, opt-in network egress, and explicit process execution — are the security boundary, not the agent's good behavior.
Gortex's enforcement rests on one distinction, and understanding it explains every exemption in this document:
- The operator channel — the
gortexCLI and the daemon's control surface — is you, typing a command. It is deliberately not confined:gortex export --out /any/pathwrites where you say, andgortex init --forcewill index a root the safety check otherwise refuses. You asked in your own name, on your own machine. - The agent channel — MCP tool calls — is confined, because its arguments can be steered by content Gortex indexed. Path arguments are checked against the tracked roots, and the operations that would widen those roots are refused.
A session is on the operator channel only when its daemon handshake declares
the operator role, which the gortex CLI does for its own connections. Every
other session is an agent session: MCP proxy sessions (gortex mcp), Streamable
HTTP /mcp and /v1/tools sessions with or without an X-Gortex-Cwd header,
the embedded stdio server (mcp.allow_embedded), and raw socket clients that
declare no role. A session without a working directory is not treated as the
operator. For an agent session without one, the Git-metadata and agent-config
guards anchor on the tracked root that holds the target, and every path stays
confined to the tracked roots. While no repository is tracked at all (a fresh
install, the startup window) an agent session's paths are refused rather than
left unconfined. Out-of-repository writes (gortex export --out, generated
docs) and track_repository force need the CLI.
Gortex's own editor hooks declare a hook role. A hook session gets a fixed,
read-mostly tool allowlist (the tools the hooks call, without the discovery
tools, and only the analyze kinds they use; recording feedback is its one
durable write), whatever it forwards; it is confined like an agent session.
The operator's tool policy is a ceiling for agent sessions. Its deny entries
apply to every agent and hook session — on the legacy surface and to every
compact-surface operation that dispatches to a denied tool, which
capabilities reports as unavailable. When it is restrictive (hide mode or
the readonly preset), a session's forwarded GORTEX_TOOLS / --tools spec
or the client-aware default can only narrow it. A tracked repository's own
.gortex.yaml may add deny entries or narrow the surface (a restrictive
preset or hide mode), never widen it, and only for the sessions whose working
directory lies in that repository; the .gortex.yaml in the directory the
daemon starts in never sets the server-wide policy. A repository's limits are read when it is tracked or reindexed, or on
gortex daemon reload; a newly committed narrowing applies after that. A
session opened in a parent directory that contains exactly one tracked
repository inherits that repository's limits; one containing several gets
none. Narrowing limits the repository's own sessions; it does not restrict
other sessions' access to its files. Hook sessions
are exempt from the ceilings, not from deny entries.
The roles are markers, not an authentication boundary between processes of the same user: they stop MCP and HTTP-only clients from claiming operator posture, but code already running as you can open the daemon socket and declare a role itself, as it could run any command you can.
Several agents can share one daemon, so per-session and per-workspace data is kept apart:
- A reconnecting
gortex mcpproxy resumes its logical session only when the kernel-reported peer PID of the new socket matches the PID it claims (Linux and macOS; elsewhere the claimed PID is not verified). PIDs are compared in the daemon's PID namespace: a proxy in another namespace (a container sharing the socket) reports a PID that does not match, so it gets a fresh session on every reconnect instead of resuming one.gortex daemon status, note rows and the agent registry show a digest of each session id, never the id itself. - Memories and notes addressed by id (update, edit, move, supersede) answer
not-found for an entry outside the session's workspace; a session bound to
no workspace (no cwd) may write only the entries it created, and a
supersedesnaming an entry it may not write is refused rather than skipped — retiring another session's memory needs a session bound to its workspace or the CLI. A global memory records the workspace it was last written from — an edit from another workspace restamps it — and is labelled untrusted reference data when surfaced to a different workspace; one from before origins were recorded is labelled as of unknown origin. - The retrieval query log (
<cache>/query-log.jsonl) is created readable by the owner only, andanalyze kind=retrieval_logshows an agent session only its own workspace's queries, without the log's location or size. - Text and structural search never confirm a withheld value.
search_text,find_declarationand thesearch_symbolscontent fallback serve a line with secret-shaped values only redacted, and only when the redacted line alone supports the match — decided over the whole file, so a value that spans lines (a YAML block scalar, a value on the line after its key, a list under a credential key) counts: in regexp mode a redacted line is withheld, in literal mode it is kept only when the literal occurs outside the placeholder. Withheld rows take no result slot and do not change counts or the truncation signal.search_astwithholds a match on a redacted line before its limit and total. - JSON files get the credential-key redaction other config files get, and a
plural credential key (
api_keys:,secrets:,passwords:) withholds the list under it. Node source fragments are redacted with their whole file as context. - File reads and the pre-reads of write and edit tools refuse FIFOs, sockets and devices instead of blocking on them.
When something below says "operator only" or "you opted in", it means exactly this: Gortex stopped enforcing at that point because you made the decision, not because the operation is safe. Those decisions are enumerated next so you can see which ones you have actually made.
Each of these hands out capability. None is a vulnerability; all of them are choices, and the risk is yours once made.
| You do this | It grants | Note |
|---|---|---|
| Run the daemon | Any process that can open its socket gets full authority over every tracked repository — reads, writes, and the control surface | There is no per-connection authentication beyond the socket's 0600 mode. A second local account cannot reach it; another process running as you can |
gortex track <path> |
Every agent session on the machine can read and write that tree by absolute path, in any workspace | Persisted to your global config. Tracking is the act that grants file access — treat it as such |
| Use the CLI / control channel | Unconfined file writes (gortex export --out <anywhere>) and indexing of a root the safety check refuses (gortex init --force) |
Intentional. The equivalent operations are refused on the agent channel |
Give several repos the same workspace: slug |
A session opened above your repos binds to the whole slug — including repos that share it from elsewhere on disk, outside the directory you opened | A slug is an explicit grouping you declared, so it is honoured over the narrower "what this folder contains" inference |
Set mcp.allow_embedded: true |
Each MCP client may create a private one-shot server and index a tree when the shared daemon is unavailable | Off by default to avoid duplicate processes and indexes. An explicit gortex mcp --index <path> may also create the repo-local notebook there; an inferred root never does |
--http-addr (even 127.0.0.1) |
Every local process, and any page your browser loads, can reach the MCP surface | The unix socket's permissions do not cover a TCP port. Prefer the socket |
Omit --http-auth-token on a loopback bind |
Unauthenticated access to that port | Permitted by design; a non-loopback bind refuses to start without a token. Without a token the listener answers only to local Host names (localhost, 127.0.0.1, [::1], host.docker.internal, gateway.docker.internal, or none), which refuses DNS-rebinding pages. Residual: where the Docker names are not pinned in the hosts file, an attacker controlling DNS on your network could rebind one of them; such a page reaches GET routes only (tool calls and POSTs stay refused). Set a token to close it |
--http-allowed-host <name> (daemon, mcp --server, eval-server; daemon alias --conversation-host) |
A token-less listener also answers to that Host name, on every route | Empty by default |
--http-allowed-origin <origin> |
That website can drive the full daemon tool surface with your privileges | Off by default: browser Origins on both /mcp and /v1 are refused, including preflights, as are cross-site and same-site browser requests without an Origin (Sec-Fetch-Site) other than a top-level navigation. * and null entries are ignored with a startup warning |
Daemon --cors-origin <origin> |
CORS response headers for an origin already permitted by --http-allowed-origin |
Disabled by default; '*' never bypasses the Origin guard |
Embedded mcp --server --cors-origin <origin> |
That specific website can drive the REST tool surface with your privileges | Off by default; '*' does not grant browser access. Set --auth-token even on loopback |
gortex eval-server |
An HTTP tool surface for benchmarking | Loopback-only unless you pass a token; browser Origins are refused, and without a token only local Host names are answered (--http-allowed-host adds more) |
GORTEX_DAEMON_PPROF_ADDR |
Unauthenticated heap and goroutine dumps (containing indexed source) to local processes | Loopback-only; opt-in. Served from its own mux that answers only to loopback Host names and refuses every cross-site browser request, links included; /debug/pprof/cmdline is not served, and the view_match switch on /debug/gortex/answer-path requires POST |
| Configure a hosted or subprocess LLM provider | Prompts derived from your source leave the machine | No provider is configured by default |
| Enable federation / proxy | Graph queries go to the daemons you configure | Off unless configured; read-only by default |
| Index a repository you do not trust | Its content reaches the agent's context, widening the prompt-injection surface | This is the threat the confinement boundaries exist for |
Stated plainly, because the absence of a boundary is easy to mistake for the presence of one:
- Agent sessions are not isolated from each other on the filesystem. Workspace and project scoping bound graph queries. A session working in one tracked repository can read and write another tracked repository by absolute path.
- A repository you track is a repository you have shared with every agent session on the machine, for the lifetime of that config entry.
- Editing is a first-class feature, so an agent that can write source can influence what runs the next time you build, test, or open the project. Review agent-authored changes the way you would review a pull request.
- Anything reachable at a local TCP port is reachable by your browser. A loopback bind is a convenience, not an isolation mechanism.
- Nothing here defends against a local attacker already running as you. Such a process can read your files without involving Gortex at all.
-
Gortex reads and writes files within indexed repository roots. Editing is a first-class feature: tools such as
write_file,edit_file,edit_symbol,rename_symbol,batch_edit,move_inline,safe_delete_symbol, and the LSP code-action tools modify source files in the repositories Gortex has indexed. After a write, the affected file is re-indexed to keep the graph fresh. -
File-path resolution is confined to indexed repository roots. A path — relative or absolute — is resolved against the roots of the tracked repositories, and access outside every indexed root is refused. Symlinks and Windows directory junctions are resolved before the check so a link cannot be used to escape a root. The same check runs when a tool reads or writes a file it located through the graph (a symbol's source, a structural search, a review pack, an edit, delete or rename), when an edit simulation reads its pre-edit content, and when the agent-config audit reads its files, so an indexed file or directory that is later replaced by a link pointing outside every root is refused or left out of the response rather than followed.
-
Git metadata is not writable from the agent channel. A write, edit, move, delete or generated-output target that resolves inside a Git directory — a
.gitpath component (any case), thegitdir:a.gitfile points at (linked worktrees, submodules, separated git dirs), the repository's common git dir, or any other directory git recognises as one — is refused for agent sessions, after symlinks (including dangling ones) are resolved. Hooks and settings such ascore.hooksPathorcore.sshCommandthere run on your next git command, so change them with git yourself. Reading those files is unaffected. The output tools (export_graph,generate_docs,generate_wiki,generate_skill) check every file they write, not just the directory you name, and the files a language server's code action would edit (apply_code_action,fix_all_in_file) are checked the same way before any is written; a command a language server executes itself is outside Gortex's control. A directory that looks like a Git directory (aHEADfile next toobjects/,refs/,configorcommondir) counts as one, so agent writes into a test fixture shaped like a bare repository are refused too. -
Paths the repository's git config names are Git metadata too. Hook scripts under the effective
core.hooksPath(husky v8's.husky, a tracked.githooks/, husky v9's generated.husky/_) and everyinclude.path/includeIf.*.pathfile, read from the repository's config and a worktree'sconfig.worktreeand followed through nested includes, are refused for agent sessions like.gititself. Scripts those hooks merely call — husky v9's.husky/pre-commit, invoked from.husky/_— stay writable, like aMakefile, and are yours to review. Only the repository's own config is read: acore.hooksPathset in your global or system git config is not consulted. -
Agent and editor configuration that runs commands, adds tools or instructs agents is not writable from the agent channel:
.claude/settings.json,.claude/settings.local.json, anything under.claude/hooks/,.mcp.json,.cursor/mcp.json,.cursor/hooks.json,.cursor/environment.json,.cursor/cli.json,.vscode/tasks.json,.vscode/mcp.json,.vscode/settings.json,.vscode/launch.json,*.code-workspace,.devcontainer.json,.devcontainer/devcontainer.json(and.devcontainer/<name>/devcontainer.json),.zed/tasks.json,.zed/settings.json,.kiro/settings/mcp.json, anything under.kiro/hooks/,.vibe/config.toml,.vibe/hooks.toml,opencode.json,opencode.jsonc, anything under.opencode/,.roo/mcp.json,.amazonq/mcp.json,.windsurf/hooks.json,.aider.conf.yml,.github/hooks/*.json, anything under.idea/runConfigurations/,.sourcekit-lsp/config.json,.codex/config.toml,.gemini/settings.jsonand.gortex/providers.json, at a repository or worktree root, the session's checkout, or a workspace / package root (a directory withgo.mod,package.json,pyproject.toml,Cargo.toml, …), in any case, after symlinks are resolved. Agent configuration in a subdirectory with no project manifest, or under anexamples/,templates/,testdata/orfixtures/tree, stays writable and is your responsibility to review. Anything under.claude/commands/,.claude/agents/or.claude/skills/, and anybuildServer.jsonor file under.bsp/, is refused at any depth outside such a fixture, example or template tree, since Claude Code and sourcekit-lsp discover nested ones (for an agent,generate_skillstages its skill in.gortex/generated-skills/<name>/instead, for you to review and move into place). Gortex's own.gortex.yaml— and a bare.gortexor.gortex.<ext>for any extension the config loader has accepted — is refused in every directory, fixtures included: the daemon reads the workspace a session is routed to from the nearest.gortex.yamlabove the client's working directory. Only.gortex.yamlis read as config from a working directory. On Windows, a trailing dot or space and an NTFS stream suffix (::$DATA) on these names are refused like the plain name. Other files that influence what runs remain writable and are your responsibility to review like any agent-authored change:.envrc,.pre-commit-config.yaml,.github/workflows/,Makefileand other build files,AGENTS.md/CLAUDE.md. -
These agent-channel checks apply to sessions that carry a working directory. A client that sends none — the embedded stdio fallback (
mcp.allow_embedded), or a Streamable HTTP request withoutX-Gortex-Cwd— gets the operator posture, and the checks above do not apply to it. -
Gortex does not require, and does not request, access to files outside the repositories you index.
-
One deliberate exception: the read-only source of an external dependency symbol (
ext::nodes, such as a Go standard-library or module declaration) is served from GOROOT and the Go module cache, which sit outside the indexed repositories. Those reads are confined to those directories, but the module cache can hold private modules the daemon user has downloaded. -
The confinement boundary is the union of every tracked repository root, not the workspace of the session making the call. A session working in one tracked repository can read and write files in another tracked repository by absolute path. Workspace and project scoping narrow graph queries; they are a relevance and context boundary, not a filesystem one. Do not track a repository you would not let every agent session on this machine read and modify.
-
Because the tracked-root set defines that boundary, the tools that extend it (
track_repository/workspace_admin(operation:"track")) are part of the boundary. Tracking a new root widens file access for every tool and persists to your global config, so an agent session can track only the root of a real git work tree — a.gitdirectory that is a git dir (aHEADplusobjects/andrefs/), or a worktree / submodule.gitfile pointing at one; a stray.gitmarker does not count. Even then, an agent session is refused:- the filesystem root, a drive root, your home directory, and every
ancestor of it (
/home,/Users,C:\Users), including one that is itself a repository; - anything that is, or lies inside, a hidden directory directly under your
home directory (
~/.config,~/.ssh,~/.oh-my-zsh,~/.password-store, ...), except a registered linked worktree of a repository outside those directories (agent tools keep these under~/.cursor/worktrees,~/.codex/worktrees, ...); - anything inside a system or tool tree (
/etc,/bin,/usr/bin,/usr/lib,/usr/share,/var/lib,/var/log,/System,/Library, the Homebrew prefixes,%ProgramFiles%,%WINDIR%, ...), unless it lies in a non-hidden part of your home directory (so/root/<project>or a/var/home/<user>home still works) or under the OS temp directory. Project locations such as/usr/src,/usr/local/src,/var/wwwand/opt/<app>are not system trees.
Paths are compared by filesystem identity as well as by spelling, so a symlink, a macOS firmlink (
/System/Volumes/Data/...) or a bind mount of one of these locations is refused like the location itself; the home and temp allowances are decided on the symlink-resolved path, so a link from either into/etcis still/etc. Two exemptions lift the ancestor, hidden and system rules (never the home / filesystem-root one): the git work tree that contains the session's own working directory — the harness chose it, not the model — and a root you already track or configured, which adds nothing to the boundary. That working directory is the one the client reports for the session (the stdio proxy stamps its host process's current directory on each call), not a value a tool argument can set. Tracked roots are resolved again on every request, and one that now resolves to/, a drive root or your home directory is dropped from the boundary unless its config entry carries theallow_broad_rootopt-in. Agent sessions must not be able to write Git metadata either (including.git/worktrees, which the linked-worktree allowance trusts); see the "Git metadata is not writable from the agent channel" entry earlier under File system access. What remains: an agent session can still track any other git repository the daemon's user can read, which puts that repository inside the boundary for every session — cross-repository work depends on it. Theforceoption is refused for agent sessions. From a terminal,gortex track <path>tracks a directory an agent session may not, andgortex track --force <path>additionally tracks a filesystem root, your home directory, or a non-repository ancestor of it, recordingallow_broad_root: trueon that config entry. - the filesystem root, a drive root, your home directory, and every
ancestor of it (
The daemon runs as you, never with elevated privileges, and its unix socket
is created 0600 inside a 0700 directory. Access control is those filesystem
permissions and nothing else — there is no per-connection authentication, and
one connection grants both the tool surface and the control surface (track /
untrack / shutdown).
The useful consequence: Gortex never grants access to a directory you could not already read yourself. It cannot be used to reach another user's files, because a daemon that can read them is running as someone who can read them, and only that someone can open its socket.
See Decisions that grant authority for what the HTTP surfaces change, and What Gortex does not protect you from for what this boundary is not.
- No telemetry. Gortex sends no usage data, analytics, or crash reports, and performs no update or "phone-home" checks. With no LLM provider, federation, or forge tooling configured, Gortex makes no outbound network requests.
- Outbound network access happens only through these opt-in features:
- LLM providers (
llm.provider): theaskagent andsearch_symbolsassist modes can call an LLM. The default provider islocal(in-process, no network). When configured for a hosted provider (Anthropic, OpenAI, Azure OpenAI, Google Gemini, AWS Bedrock, DeepSeek, Requesty, or a remote Ollama) or a subprocess CLI provider (Claude, Codex, Copilot, Cursor, opencode), prompts derived from your source code are sent to that endpoint or third-party tool. No provider is configured by default, andask/ assist stay disabled when none is available. - Federation (
.gortex.yamlfederation:/gortex proxy): fans read-only graph queries out to other Gortex daemons you configure. It is off unless configured and read-only by default; thefederation.edgescross-daemon edge feature (which fetches remote subgraphs) is off by default. - PR / review tooling (
gortex prs,gortex review --post, and the matching MCP tools): call the GitHub API / theghCLI when you invoke them.
- LLM providers (
- Inbound HTTP.
gortex servermounts a Streamable-HTTP MCP endpoint atPOST /mcp; the daemon exposes it only when started with--http-addr. The listener binds to localhost by default; binding to a non-localhost address requires an authentication token (--http-auth-token). The default stdio transport communicates only with the parent process.
-
Gortex executes external programs only for features you opt into:
- Git, while indexing (HEAD and dirty-state probes, committed content) and for history-derived features (blame, churn, co-change, diff review), with the repository's own configuration neutralised (see Git and repository configuration).
- Language servers (e.g.
tsserver), for cross-file resolution and LSP code actions, when an LSP is configured and available. - Subprocess LLM providers and forge tools (
claude,codex,copilot,cursor-agent,opencode,gh), when configured. - Index transforms and extractor plugins (
index.transforms,index.extractor_plugins), which run the command you configure over matching file content, custom grammars (index.grammars, native libraries loaded into the process), and semantic providers (semantic.providers), when configured.
-
These run with your privileges and may make their own network calls; they are invoked only when the corresponding feature is configured or requested.
-
A repository's own
.gortex.yamlcannot opt you in. These settings declared there are ignored unless you set the matching variable:index.transforms—GORTEX_ALLOW_LOCAL_TRANSFORMSindex.extractor_plugins—GORTEX_ALLOW_LOCAL_EXTRACTOR_PLUGINSindex.grammars—GORTEX_ALLOW_LOCAL_GRAMMARSsemantic.providers—GORTEX_ALLOW_LOCAL_SEMANTIC_PROVIDERS- the whole
llm:block (provider, CLI-providerbinary/args,base_url/host,api_key_env, the local model path,llm.custom) andembedding.provider/api_url/api_model—GORTEX_ALLOW_LOCAL_PROVIDERS
These keys are operator-only and no variable re-enables them from a repository's file:
mcp.redact_config_secrets,review.post.allow_public, andrule_files/semantic.additional_workspace_foldersentries outside the repository. Formcp.toolsa repository may choose the preset, mode and allow list and add deny entries, but cannot remove your deny entries or loosen a policy of yours that hard-blocks tools (hide); and it may turnsemantic.enabledoff but not on.That includes a
.gortex.yamlin the directorygortexstarts in (editors startgortex mcp, and through it the daemon, in the opened repository), and a~/.gortex.yamlread because the daemon started in your home directory. Such a working-directory file no longer replaces your platform config: your~/.gortex/.gortex.yaml(or$XDG_CONFIG_HOME/gortex/.gortex.yaml) is read underneath it, the repository file is merged on top, and your value wins for every key above. Gortex prints a warning naming what it ignored. Your config in the Gortex config directory,~/.gortex/config.yaml, and a file you pass with--configare trusted as yours — pass--configonly for a file you wrote.
Gortex runs git inside every repository it tracks (status, diff, log, blame,
rev-parse, worktree list, cat-file, ...), including repositories it did not
create. Git honours the repository's own configuration (.git/config,
config.worktree and anything they include), and some of its keys name a
program git runs. Gortex therefore starts every git process with that
configuration neutralised:
- On every call:
--no-pager,-c core.fsmonitor=false,-c core.hooksPath=/dev/null(NULon Windows),-c core.pager=cat,-c core.editor=:,-c sequence.editor=:,-c log.showSignature=false,-c credential.helper=,-c protocol.allow=never,-c diff.submodule=short,-c status.submoduleSummary=false,-c submodule.recurse=false, and the environmentGIT_NO_LAZY_FETCH=1,GIT_ALLOW_PROTOCOL=(no transport at all),GIT_TERMINAL_PROMPT=0,GIT_OPTIONAL_LOCKS=0,GIT_PAGER=cat,GIT_EDITOR=:,GIT_SEQUENCE_EDITOR=:. Gortex never fetches: in a partial clone, a blame or history read that needs an object that is not present fails instead of downloading it, so a repository-chosen transport, ssh command, upload-pack or credential helper is never started. (rev-parsekeeps yourcore.hooksPath, sogortex githook installstill finds your hooks directory; it runs no hooks.) - On diff, log, show and blame:
--no-ext-diff --no-textconv(blame:--no-textconv), sodiff.external,diff.<driver>.commandanddiff.<driver>.textconvnever run. - Per repository, before any command that can hash working-tree content
or write the index: Gortex lists the visible config (
git config --list, which runs nothing), disables every config-defined hook (hook.<name>.enabled=false), and replaces eachfilter.<driver>.clean,.smudgeand.processthat comes from repository config with your own value for that key from your global or system config, or with an empty command (andfilter.<driver>.required=false) when you have none. A driver with an empty name ([filter ""],[hook ""]) is covered too. Filters defined only in your global or system config, and the commandsgit lfs installwrites, are left alone, so LFS checkouts keep accurate dirty detection — unless repository config defines git-lfs extensions (lfs.extension.<name>.clean/.smudge), which git-lfs runs from inside its filter: then no git-lfs filter runs in that repository at all. A driver name that cannot be expressed as a-ckey makes Gortex refuse to run git in that repository. - Submodules: when git checks a populated submodule for local changes it
runs itself inside the submodule, reading the submodule's own config. That
child inherits every override above, and before a command that can descend
into submodules (status, worktree diffs) Gortex also lists the config of
every populated submodule, nested ones included, and adds the overrides
their filter and hook drivers need. A submodule is read the way git's own
child reads it (
--git-dir=.gitin its directory), so a symbolic-link.gitor a submodule that fails git's ownership check is covered. Git still produces the output, so submodule state is reported exactly as plain git reports it.
System git config is still read: it is administrator-owned, and it is where Git for Windows installs the LFS filter. Your global config is still read too, so your identity and filters keep working.
Residual risk and visible effects:
- If a repository and one of its submodules both name the same filter driver and only one of them needs it overridden, a single value applies to both: the repository's own kept value when it has one, otherwise the user's value or an empty filter. When either defines git-lfs extensions, no git-lfs filter runs in either.
- Submodules nested more than 16 levels deep make Gortex refuse to run git in that repository.
- A repository-local filter that is not git-lfs (
git-crypt,nbstripout, ...) is not run by Gortex's git calls, so a file whose stat data is stale may be reported as modified until your own git refreshes the index. - In a partial clone, history-derived features (blame, churn, co-change) cover only the objects present locally; Gortex logs this once per repository the first time a history read fails for want of a promised object.
When semantic enrichment is on (semantic.enabled, the default), Gortex starts
a language server for each language it finds whose server binary is on your
PATH. Several language servers execute code from the repository they open,
as you: rust-analyzer runs build scripts and proc-macros, Gradle- and
Maven-based Java/Kotlin servers run the build, the C# server runs MSBuild /
dotnet restore, Ruby servers run Bundler, and SwiftPM, mix, cabal / stack,
dune, zig build, Terraform providers and tsserver plugins from the
workspace's node_modules behave similarly. Indexing a repository can
therefore run its build code. Track and index only repositories you trust, and
review cloned code before indexing it. For untrusted code, turn language
servers off: GORTEX_LSP_DISABLE=all in the daemon's environment skips them
all (or name individual servers, e.g. GORTEX_LSP_DISABLE=rust-analyzer),
semantic.enabled: false in your config turns semantic enrichment off, and
gortex mcp --no-semantic does the same for the embedded server.
One case is refused by default: sourcekit-lsp launches the command a
repository's Build Server Protocol config (buildServer.json, or any file in
.bsp/) names, so Gortex does not start it beside such a config at a workspace
root, and does not open a Swift file under a directory that has one, unless
GORTEX_ALLOW_LOCAL_BUILD_SERVERS=1 is set in the daemon's environment
(environment only; no config file can set it). Swift enrichment for that
workspace, or that subtree, is reported as skipped. See
docs/lsp.md.
Other Swift build code is not gated, on the same terms as MSBuild or Gradle
above: on Linux, sourcekit-lsp builds a Package.swift manifest without a
sandbox when a Swift file under it is opened, which runs that manifest's code,
and a repository's .sourcekit-lsp/config.json can change the server's
initialization options. Agent sessions cannot write buildServer.json or
.bsp/ outside fixture trees, nor .sourcekit-lsp/config.json at a project
root (see the agent configuration list above).
- What is withheld. The tools that serve file content to an agent —
read_file,get_symbol_source,batch_symbols,smart_context,suggest_pattern,diff_context,prefetch_context,search_textandsearch_symbolscontent matches,get_artifact, and the source the search-assist verifier sends to an LLM — withhold credential values from config files:.envvariants, YAML / TOML / INI / properties / HCL, and files named like credential stores (key material,.npmrc,.netrc,.pgpass,.htpasswd, docker / kube / aws / vault / terraform config and state, cloud-credential JSON). Values under credential-named keys, URL passwords, a Kubernetes Secret's data, and values on the lines after a credential key are replaced with«redacted»; references (${VAR},{{ … }}), settings (enabled,include), paths and identifiers under such keys stay readable. From every other file (Markdown, plain text, source), URL userinfo passwords (scheme://user:pass@host) and high-precision credential shapes are withheld: private-key blocks, AWS access-key ids (not AWS's…EXAMPLEdocumentation ids), GitHub, GitLab, Slack, Stripe live, npm, SendGrid and OpenAI / Anthropicsk-keys. JWTs, Bearer / Basic header values and Google API keys are withheld from config files and review comments only. Such a hit in a source file does not blockphysical_evidence; config-file redaction does. The values stored as search signatures for config-file symbols are redacted when indexed, so file summaries, usages and exports do not carry them either. - What is not. Redaction is pattern-based: a secret with no recognisable
key name or shape in a file that is not a config file is served as-is. Pass
allow_secrets: trueonread_file/get_symbol_sourcewhen you need the real value;mcp.redact_config_secrets: falsein your operator config turns config redaction off. Review comment bodies posted to a forge go through the same redactor before any request is sent.review.post.allow_publicis read only from your operator config (~/.gortex/config.yaml, the platform.gortex.yamlor--config).
Repository, directory, workspace and project names, file paths, and symbol ids
and signatures are chosen by whoever authored the repository, and Gortex
formats them into text an agent is told to follow: the initialize
instructions, hook deny reasons and context, and localization completion text.
Before they are formatted in, each is rendered as one bounded line: control
and Unicode bidi / format characters are dropped, whitespace and newlines
collapse to single spaces, backticks become a modifier apostrophe so the text
cannot open a code span, and the length is capped with an ellipsis. Machine
fields (JSON ids, the symbols a localization gate compares) keep their exact
spelling. A workspace: or project: name in a repository's .gortex.yaml
may use Unicode letters and digits, spaces, ., _ and - (up to 64
characters, no leading or trailing space); anything else is ignored with one
warning and the default name applies. A repository's own name is honoured only
if no other tracked repository already uses it (its own default name outranks
an earlier repo-local claim, and a repo whose name changes is re-stamped);
otherwise the repository gets its default name, so only operator config (global
config repos entries) can place two repositories in one workspace. A
repository's own cross_workspace_deps are ignored for the same reason, and
remote routing follows only the workspace an operator assigned the repository
in the global config, never a repo-local grant or its raw config text.
Suggested shell commands built from repository paths quote every argument and
are not produced at all when a path contains control characters. Compact
(one-line-per-item) tool results escape control and bidi characters for every
tool and newlines in the node, subgraph, test-target and guard formatters; the
remaining compact formatters still print a newline inside a name as a newline
(documented follow-up).
- The graph, along with session notes and development memories, is persisted
locally under
~/.gortex(and per-repo.gortex/). Notes and memories may contain excerpts of your source. Nothing is transmitted off the machine except through the opt-in network features above.
- CGO. Tree-sitter grammars are compiled via CGO from
github.com/alexaandru/go-sitter-forest. The optional in-process LLM (thelocalprovider) is compiled only with thellamabuild tag. - SQLite persistence uses the pure-Go
modernc.org/sqlitedriver (no CGO). - Plugin publishing is a trusted operation. The
publish-claude-pluginworkflow builds the selected ref's Makefile and Go code in the job that publishes togortexhq/claude-plugin. Ref validation and environment-variable handling prevent shell and workflow-output injection; they do not sandbox the selected source code. Dispatch only refs you trust. The repository-scopedCLAUDE_PLUGIN_TOKENis within the repository-writer trust boundary. If publishing must require a narrower set of approvers, move the token to a protected GitHub environment, attach that environment to the publishing job, and configure required reviewers and deployment branch/tag restrictions. Input validation alone does not enforce that authorization policy.
Decisions that grant authority lists what each choice hands out. This is the short actionable form:
- Track only what you would share. Every tracked repository is readable and
writable by every agent session on the machine. Prune the list with
gortex untrack; it is a standing grant, not a per-session one. - Prefer the unix socket. Only pass
--http-addrif you need HTTP. If you do: set--http-auth-tokeneven on loopback, and enable--cors-originand--http-allowed-originonly for a specific web front end you trust. For the embeddedmcp --serverlistener, use--auth-tokenand leave--cors-originunset unless a trusted web front end needs it. - Never bind a non-loopback address without a token. Gortex refuses to start that way; do not work around it. Use an SSH tunnel instead.
- Pass tokens through the environment (
$GORTEX_DAEMON_HTTP_TOKEN,$GORTEX_SERVER_TOKEN,$GORTEX_EVAL_TOKEN) rather than the--*-tokenflags: argv is visible to other local users in the process list. - Leave
GORTEX_DAEMON_PPROF_ADDRunset outside a debugging session — it serves your heap unauthenticated to local processes. - Treat a configured LLM provider as data egress: prompts derived from your source go to that endpoint or subprocess. None is configured by default.
- Review agent-authored edits. Write tools are first-class, and changed source runs the next time you build or test.
- Point Gortex at repositories you trust. Indexed content reaches the agent's context, which is the prompt-injection surface the confinement boundaries exist to contain.