What runs on your machine
Tested on Arth Sarathi 1.0.2 (commit eaede405) with Claude Code 2.1.154 or later, on 2026-12-01.
Summary: 58 hook entries, no host contacted by default except through tools you already use, 2 opt-outs, every port on 127.0.0.1. Tested on Arth Sarathi 1.0.2.
What you'll get: the full list of what Arth Sarathi runs, which ports it opens, which files it writes and which hosts it can contact, so that you can decide whether to install it. Time: 10 minutes to read; nothing to run.
We wrote this page from the code at the tested commit, and we check it again for each release.
#Hooks
Compiled open edition, bundle prime: 58 hook entries across 22 events.
| Event | Matcher | Script | Timeout (s) | Network |
|---|---|---|---|---|
| SessionStart | - | project-setup.sh | 10 | None found. The script makes no network call. |
| SessionStart | - | session-bootstrap.sh | 15 | Yes. gh, railway, an OTEL probe and a local proxy start. See Session start. |
| SessionStart | - | otel-telemetry.sh | 2 | Only if an OTEL endpoint is configured. Sends spans, including your project path, to that endpoint. See OTEL spans. |
| UserPromptSubmit | - | project-setup.sh | 5 | None found. The script makes no network call. |
| UserPromptSubmit | - | triage-router.sh | 5 | Only if you set ARTH_ROUTER_URL, or Arth Decisions is Online. See Prompt routing and Arth Decisions. |
| UserPromptSubmit | - | intent-classifier.sh | 3 | None found. The script makes no network call. |
| UserPromptSubmit | - | otel-telemetry.sh | 2 | Only if an OTEL endpoint is configured. Sends spans, including your project path, to that endpoint. See OTEL spans. |
| UserPromptSubmit | /pr | pre-pr-docs-check.sh | 5 | None found. Local git only. |
| Stop | - | goal-auto-continue.sh | 5 | None. It prints text that mentions gh pr create and does not run it. |
| Stop | - | autopilot-auto-continue.sh | 5 | None found. The script makes no network call. |
| Stop | - | otel-telemetry.sh | 3 | Only if an OTEL endpoint is configured. Sends spans, including your project path, to that endpoint. See OTEL spans. |
| SessionEnd | - | session-summary.sh | 15 | None found. The script makes no network call. |
| SessionEnd | - | otel-telemetry.sh | 5 | Only if an OTEL endpoint is configured. Sends spans, including your project path, to that endpoint. See OTEL spans. |
| SessionEnd | - | session-end.sh | 15 | None found. Local git and a local knowledge-graph script. |
| PreToolUse | Skill | decisions-route-outcome.sh | 5 | None while Arth Decisions is Off. See Arth Decisions. |
| PreToolUse | Bash | pre-bash-guard.sh | 5 | None found. It reads the command and can block it. |
| PreToolUse | Task | pre-task-context.sh | 5 | Local docker ps. A helper contacts a service only if you configured one. See Other services. |
| PreToolUse | Edit | pre-edit-guard.sh | 5 | None found. Local git only. |
| PreToolUse | Write | pre-edit-guard.sh | 5 | None found. Local git only. |
| PreToolUse | Edit | constraint-gate.sh | 5 | None by default. A helper contacts a service only if you configured one. See Other services. |
| PreToolUse | Write | constraint-gate.sh | 5 | None by default. A helper contacts a service only if you configured one. See Other services. |
| PreToolUse | - | otel-telemetry.sh | 2 | Only if an OTEL endpoint is configured. Sends spans, including your project path, to that endpoint. See OTEL spans. |
| PreToolUse | Bash | pre-server-port-guard.sh | 5 | None found. The script makes no network call. |
| PostToolUse | Bash | post-test-summary.sh | 5 | None while Arth Decisions is Off. See Arth Decisions. |
| PostToolUse | Edit | post-edit-lint.sh | 10 | None found. The script makes no network call. |
| PostToolUse | Write | post-html-render.sh | 10 | None found. The script makes no network call. |
| PostToolUse | Edit | post-html-render.sh | 10 | None found. The script makes no network call. |
| PostToolUse | Bash | post-deploy-health.sh | 15 | Yes, after a deploy command. Requests up to 3 health URLs written in your project's CLAUDE.md. See Deploy health checks. |
| PostToolUse | Bash | post-diff-test-compare.sh | 10 | None found. The script makes no network call. |
| PostToolUse | Bash | post-git-state.sh | 5 | None. It reads the command Claude ran. |
| PostToolUse | Bash | post-merge-cleanup.sh | 5 | None found. It reacts to a gh pr merge command you ran; it makes no call itself. |
| PostToolUse | - | otel-telemetry.sh | 2 | Only if an OTEL endpoint is configured. Sends spans, including your project path, to that endpoint. See OTEL spans. |
| PostToolUse | Edit | spec-drift-check.sh | 3 | None found. The script makes no network call. |
| PostToolUse | Write | spec-drift-check.sh | 3 | None found. The script makes no network call. |
| PostToolUse | Edit | kb-diagram-refresh.sh | 3 | None found. The script makes no network call. |
| PostToolUse | Write | kb-diagram-refresh.sh | 3 | None found. The script makes no network call. |
| PostToolUse | Bash | escalation-guard.sh | 5 | None found. Local git only. |
| PostToolUse | Edit | post-config-change-restart-reminder.sh | 5 | None found. The script makes no network call. |
| PostToolUse | Write | post-config-change-restart-reminder.sh | 5 | None found. The script makes no network call. |
| PostToolUse | Bash | post-server-crash-watch.sh | 15 | Local only. Requests http://localhost:<port>/ and runs docker compose ps. |
| PostToolUseFailure | Bash | post-test-summary.sh | 5 | None while Arth Decisions is Off. See Arth Decisions. |
| PostToolUseFailure | - | otel-telemetry.sh | 2 | Only if an OTEL endpoint is configured. Sends spans, including your project path, to that endpoint. See OTEL spans. |
| PostToolUseFailure | Bash | escalation-guard.sh | 5 | None found. Local git only. |
| SubagentStart | - | otel-telemetry.sh | 2 | Only if an OTEL endpoint is configured. Sends spans, including your project path, to that endpoint. See OTEL spans. |
| SubagentStop | - | otel-telemetry.sh | 5 | Only if an OTEL endpoint is configured. Sends spans, including your project path, to that endpoint. See OTEL spans. |
| TaskCreated | - | otel-telemetry.sh | 2 | Only if an OTEL endpoint is configured. Sends spans, including your project path, to that endpoint. See OTEL spans. |
| TaskCompleted | - | otel-telemetry.sh | 3 | Only if an OTEL endpoint is configured. Sends spans, including your project path, to that endpoint. See OTEL spans. |
| PermissionRequest | - | otel-telemetry.sh | 2 | Only if an OTEL endpoint is configured. Sends spans, including your project path, to that endpoint. See OTEL spans. |
| StopFailure | - | otel-telemetry.sh | 2 | Only if an OTEL endpoint is configured. Sends spans, including your project path, to that endpoint. See OTEL spans. |
| PreCompact | - | otel-telemetry.sh | 2 | Only if an OTEL endpoint is configured. Sends spans, including your project path, to that endpoint. See OTEL spans. |
| PostCompact | - | otel-telemetry.sh | 2 | Only if an OTEL endpoint is configured. Sends spans, including your project path, to that endpoint. See OTEL spans. |
| InstructionsLoaded | - | otel-telemetry.sh | 2 | Only if an OTEL endpoint is configured. Sends spans, including your project path, to that endpoint. See OTEL spans. |
| TeammateIdle | - | otel-telemetry.sh | 2 | Only if an OTEL endpoint is configured. Sends spans, including your project path, to that endpoint. See OTEL spans. |
| Notification | - | otel-telemetry.sh | 2 | Only if an OTEL endpoint is configured. Sends spans, including your project path, to that endpoint. See OTEL spans. |
| CwdChanged | - | otel-telemetry.sh | 2 | Only if an OTEL endpoint is configured. Sends spans, including your project path, to that endpoint. See OTEL spans. |
| WorktreeCreate | - | otel-telemetry.sh | 2 | Only if an OTEL endpoint is configured. Sends spans, including your project path, to that endpoint. See OTEL spans. |
| WorktreeRemove | - | otel-telemetry.sh | 2 | Only if an OTEL endpoint is configured. Sends spans, including your project path, to that endpoint. See OTEL spans. |
| PermissionDenied | - | otel-telemetry.sh | 2 | Only if an OTEL endpoint is configured. Sends spans, including your project path, to that endpoint. See OTEL spans. |
The table lists what the open edition registers. It has one row for each event, matcher and script.
#Network behavior by hook
This section lists every hook in the table above that can reach beyond your machine, and what it sends. We checked it by reading the compiled open-edition scripts at the tested commit. Other hooks make no network call that we found. The list is a reading of the code, not a promise about future versions: it is re-checked for each release.
#Session start
session-bootstrap.sh runs once when Claude Code opens. It builds the short briefing at the top of a session. These parts reach outside the script:
gh. Ifghis installed and the project is a git repository, it runsgh pr list --author @meandgh issue list --assignee @me, each limited to 5 results. They use your ownghlogin and contact the GitHub host thatghis set up for. No setting turns this off today. Withoutgh, or outside a git repository, it does not run.railway. If therailwaycommand is installed, it runsrailway whoami. That command contacts the Railway API to check that you are logged in.- Docker. If Docker is installed, it runs
docker infoanddocker psagainst your local daemon. - OTEL probe. If OTEL is configured, it sends one request to
/api/healthon your OTEL endpoint, with a 1-second limit. The default endpoint ishttp://localhost:4319. - Other services you configured. See Other services.
- Local proxy autostart. If you turned on the model router for this project, the hook can start it. See below.
Time limits: where the timeout command exists, the gh, railway and docker ps calls are capped at 5, 3 and 3 seconds. macOS does not ship timeout, so on macOS those calls, the git calls and any alembic check have no cap of their own. docker info is outside that mechanism and has no cap on any system. The only limit then is the hook's own timeout in the table (15 seconds for this hook), after which Claude Code stops it.
#Local proxy autostart
The hook checks ~/.arthai/proxy/active.json. This file exists only after you confirmed the model router through /arth-setup. If the file does not exist, or names a different project, the hook does nothing and reads nothing else.
If the file names this project, the hook sends one request to http://127.0.0.1:<port>/health/line, with a 1-second limit. If the router does not answer, the hook runs arth-proxy.sh start --port <port> and waits up to 5 seconds for it. A failed start never fails the hook. The router listens on 127.0.0.1.
To turn the autostart off, set ARTH_PROXY_AUTOSTART=0 in your environment. The hook then only probes and reports.
#OTEL spans
otel-telemetry.sh runs on many events. It does nothing on the network unless an OTEL endpoint is configured, either by OTEL_EXPORTER_OTLP_ENDPOINT, by CLAUDE_CODE_ENABLE_TELEMETRY=1, or by the .claude/.arth-otel.env file that /otel-setup writes.
When it is configured, it posts spans to that endpoint. The spans carry your project's working directory path (project.cwd), the project folder name (project.name), the git remote as owner/repo (project.git_remote) and its owner part (arth.org), together with event and tool details. With the Local setup the endpoint is on 127.0.0.1, so this stays on your machine. If you point the endpoint at another host, all of it goes there. Set OTEL_DISABLED=true to stop the hook entirely.
#Prompt routing
triage-router.sh contacts a routing service only if ARTH_ROUTER_URL is set. It is not set by default. When it is set, each substantive prompt sends the following to that URL:
- your prompt text and the project folder name;
ARTH_ORG(defaultdefault);- the bearer token from
ARTH_ROUTER_TOKENorARTH_PLATFORM_TOKEN, if one is set; - the Arth Decisions fields that go with the request, such as risk, complexity and blast radius, when Arth Decisions is in a mode that sends them.
The hook then prints a curl command for Claude to run after the task, which posts the outcome (a decision id, cost and token counts) to the same URL. That second call is made by Claude through its Bash tool, so Claude Code's own permission prompt applies to it.
If the service you configured picks a GLM route and GLM_API_KEY is set, the hook prints an instruction that runs one claude -p process against GLM_BASE_URL (default: the z.ai Anthropic-compatible endpoint) with that key. It only happens when your configured service picks that provider and the key is present.
With ARTH_ROUTER_URL unset, none of this runs. Arth Decisions routing still applies; see below.
#Arth Decisions
The route-outcome hook, post-test-summary.sh and triage-router.sh call the Arth Decisions wrapper. While Arth Decisions is Off, the wrapper stops before it sends anything. In Local it talks to LM Studio or Ollama on your machine. In Online it sends redacted, trimmed questions to the online provider that the privacy page names, with your own key. The privacy page explains each mode.
#Other services you configured
session-bootstrap.sh (its probe for a team service), pre-task-context.sh and constraint-gate.sh call a helper that makes a request with a short time limit to a team service URL, but only if you configured one separately. With none configured, the helper makes no request.
#Deploy health checks
post-deploy-health.sh runs after a Bash command that looks like a deploy, such as git push to main, railway deploy, vercel deploy or kubectl apply. It waits, then requests up to 3 health URLs that it finds in your project's CLAUDE.md. Without such URLs it does nothing.
#Ports and processes
Arth Sarathi itself is shell scripts that Claude Code runs on events. It starts no server unless you turn one on:
| What | Started by | Listens on | Stops with |
|---|---|---|---|
| Hooks | Claude Code, on each event in the table above | Nothing | They exit after each event |
| Arth Intelligence engine | /otel-setup or /arth-setup with intelligence ticked | 127.0.0.1:4319 | docker compose -f ~/.arthai/docker-compose.yml down |
| Arth Intelligence dashboard | Same | 127.0.0.1:3100 | Same |
| Its PostgreSQL database | Same | Not published on the host (docker ps shows 5432/tcp with no address) | Same |
| Its updater (Watchtower) | Same | No port | Same; see run the dashboard |
| Model router | /arth-setup, when you choose a second model provider | 127.0.0.1:4000 by default | /arth-setup switch off models |
Nothing listens on any other address. There is no login on the engine or the dashboard, so keep them on 127.0.0.1. To reach them from another machine, use an SSH tunnel, for example ssh -L 3100:127.0.0.1:3100 <host>.
#Files it writes
In your project, on the first session start (project-setup.sh):
| File | What changes |
|---|---|
CLAUDE.md | Created from a template if it does not exist. A block between <!-- >>> claude-agents toolkit (DO NOT EDIT THIS BLOCK) >>> --> and <!-- <<< claude-agents toolkit <<< --> is added, and replaced when the version changes. Text outside the block is never changed. A CLAUDE.md that git tracks is not changed at all |
.git/info/exclude | A block between # >>> claude-agents managed (DO NOT EDIT THIS BLOCK) >>> and # <<< claude-agents managed <<< is added once. This file is local to your clone and never committed. Outside a git repository the block goes to .gitignore instead. It ignores .claude/.toolkit-last-seen-sha, .claude/.toolkit-setup-done and .claude/.claude-agents.conf |
.claude/.toolkit-setup-done | Holds the version number, so the setup runs once per version |
Also in .claude/, written by other hooks and skills as they run: small cache files such as .project-state-cache.json and .cc-version.cache, the project knowledge under .claude/knowledge/ (written by /calibrate, with the knowledge graph in .claude/knowledge/graph/graph.jsonl, updated at the end of each session), and .claude/.fix-behavior-contract.md during a /fix.
In your home folder, only when you run a setup skill: ~/.arthai/ (the dashboard's compose file, config.json, and .env for keys you enter), and for the dashboard, an env block in ~/.claude/settings.json that turns on Claude Code's own OTEL export to http://localhost:4319 (this machine, 127.0.0.1).
In the project where you run /arth-setup, depending on what you choose: .claude/.arth-otel.env (dashboard with Full telemetry), an Arth Decisions settings file, .claude/.arth-<name>.env (Arth Decisions), and for a second model provider or local model, two keys in .claude/settings.local.json, a model-policy.override.yml, and the model router's files in ~/.arthai/proxy/.
Uninstall says how to remove each one.
#Hosts
With every option off, Arth Sarathi's hooks contact no host of their own. The hooks that reach the network do so only through a tool you already have set up, or a service you configured. This comes from reading every hook in the table above at the tested commit; a network capture of a clean run is part of the release checks.
| Host or class | Contacted when |
|---|---|
your git host, through gh | gh is installed and the project is a git repository: the session briefing lists your open pull requests and issues |
your git host, through git | A skill runs git fetch or git push, for example /fix syncing with origin |
the Railway API | The railway command is installed: the briefing runs railway whoami |
your OTEL endpoint | You configured one other than the local default |
health URLs in your CLAUDE.md | A deploy command runs |
the Online provider for Arth Decisions | Arth Decisions is set to Online |
a routing service URL | You set ARTH_ROUTER_URL; see Prompt routing |
api.anthropic.com | You turned on the model router: it forwards Claude calls there by default |
the model provider you pick | You turned on the model router and chose a provider for sub-agents |
a team service URL | You configured one; see Other services |
Two more things reach the network, and neither is a hook:
- Installing and updating the plugin. Claude Code downloads it from the marketplace repository on GitHub.
- The dashboard, if you start it. Docker pulls its images from Docker Hub, and its updater checks Docker Hub once a day. See run the dashboard.
Claude Code itself talks to its model provider for every prompt. That is Claude Code's behaviour, not Arth Sarathi's, and it happens with or without this plugin.
#Opt-outs
| Setting | Effect |
|---|---|
ARTH_PROXY_AUTOSTART=0 | Only matters if you turned on the model router: the session-start hook then never restarts it when it is down |
OTEL_DISABLED=true | otel-telemetry.sh sends nothing |
#Glossary
| Term | Meaning |
|---|---|
| Arth Sarathi | The plugin: workflow skills such as /fix, /pr and /qa, and the hooks on this page |
| Arth Intelligence | The local dashboard on 127.0.0.1 that shows what your sessions did |
| Arth Decisions | The layer that answers small yes-or-no questions for skills. Modes: Off, Local, Online |
| Model router | Built into Arth Sarathi: a local proxy on 127.0.0.1 that sends execution agents' model calls to the provider or local model you chose in /arth-setup. Off unless you chose one. It is not a separate product |
| Project knowledge | What /calibrate learned about your code, in .claude/knowledge/. Skills read it before they write code |
| Knowledge graph | The same facts as a graph in .claude/knowledge/graph/graph.jsonl, queried by skills such as /fix. Local files only |
| Routing | The prompt hook's suggestion of which skill or agent fits, plus model-policy.yml, which sets the Claude model tier per agent |
| Hook | A script that Claude Code runs on an event, such as the start of a session |
| Open edition | The build of the hooks that this repository ships |
#Tested on
| Platform | What was run | Result |
|---|---|---|
| macOS 26, a fresh home folder | Install, check, start the dashboard, uninstall, following these pages | Pass, 2026-11-29 |
| Linux | Not run for this version | Not tested |
Steps that call a model, such as the first /fix, were not part of this run.