Arth docs

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.

What runs on your machine Inside your machine: Claude Code runs Arth Sarathi: its skills and 58 hook entries on 22 events, with the built-in project knowledge graph, routing hints and model policy; the hooks open no port. Optional, started by setup: Docker containers arthai-intelligence on 127.0.0.1 ports 3100 and 4319, reading the Claude Code session files read-only, arthai-db with no host port, and arthai-watchtower with no port and the Docker socket mounted; and the model router on 127.0.0.1 port 4000. Files: CLAUDE.md, .gitignore and .claude/ in each project, and ~/.arthai in your home. Leaving the machine: GitHub through gh and git, which you set up; Docker Hub for images and a daily update check, only with the dashboard; Arth Decisions Online, only if you turn it on; an LLM for Explain this session, only with a key; and Claude Code's own model calls. Claude Code + Arth Sarathi Skills, and 58 hook entries on 22 events Built in: project knowledge graph, routing hints, model policy Hooks open no port Optional: Arth Intelligence arthai-intelligence 127.0.0.1:3100 and :4319 reads ~/.claude/projects read-only arthai-db no host port arthai-watchtower no port, mounts docker.sock Optional: model router Sends execution agents to the provider or local model you chose 127.0.0.1:4000 Files Each project: CLAUDE.md, .gitignore, .claude/ Home: ~/.arthai, after a setup skill Your machine: every port on 127.0.0.1 Leaves the machine only through what you set up GitHub, through your gh and git Docker Hub: images and a daily check (dashboard only) Arth Decisions Online (only if on) An LLM for Explain this session (only with a key) Claude Code's own model calls
What runs on your machine: Claude Code runs the plugin's hooks; the optional dashboard and model router listen on 127.0.0.1; only the tools and services you set up reach the network

#Hooks

Compiled open edition, bundle prime: 58 hook entries across 22 events.

EventMatcherScriptTimeout (s)Network
SessionStart-project-setup.sh10None found. The script makes no network call.
SessionStart-session-bootstrap.sh15Yes. gh, railway, an OTEL probe and a local proxy start. See Session start.
SessionStart-otel-telemetry.sh2Only if an OTEL endpoint is configured. Sends spans, including your project path, to that endpoint. See OTEL spans.
UserPromptSubmit-project-setup.sh5None found. The script makes no network call.
UserPromptSubmit-triage-router.sh5Only if you set ARTH_ROUTER_URL, or Arth Decisions is Online. See Prompt routing and Arth Decisions.
UserPromptSubmit-intent-classifier.sh3None found. The script makes no network call.
UserPromptSubmit-otel-telemetry.sh2Only if an OTEL endpoint is configured. Sends spans, including your project path, to that endpoint. See OTEL spans.
UserPromptSubmit/prpre-pr-docs-check.sh5None found. Local git only.
Stop-goal-auto-continue.sh5None. It prints text that mentions gh pr create and does not run it.
Stop-autopilot-auto-continue.sh5None found. The script makes no network call.
Stop-otel-telemetry.sh3Only if an OTEL endpoint is configured. Sends spans, including your project path, to that endpoint. See OTEL spans.
SessionEnd-session-summary.sh15None found. The script makes no network call.
SessionEnd-otel-telemetry.sh5Only if an OTEL endpoint is configured. Sends spans, including your project path, to that endpoint. See OTEL spans.
SessionEnd-session-end.sh15None found. Local git and a local knowledge-graph script.
PreToolUseSkilldecisions-route-outcome.sh5None while Arth Decisions is Off. See Arth Decisions.
PreToolUseBashpre-bash-guard.sh5None found. It reads the command and can block it.
PreToolUseTaskpre-task-context.sh5Local docker ps. A helper contacts a service only if you configured one. See Other services.
PreToolUseEditpre-edit-guard.sh5None found. Local git only.
PreToolUseWritepre-edit-guard.sh5None found. Local git only.
PreToolUseEditconstraint-gate.sh5None by default. A helper contacts a service only if you configured one. See Other services.
PreToolUseWriteconstraint-gate.sh5None by default. A helper contacts a service only if you configured one. See Other services.
PreToolUse-otel-telemetry.sh2Only if an OTEL endpoint is configured. Sends spans, including your project path, to that endpoint. See OTEL spans.
PreToolUseBashpre-server-port-guard.sh5None found. The script makes no network call.
PostToolUseBashpost-test-summary.sh5None while Arth Decisions is Off. See Arth Decisions.
PostToolUseEditpost-edit-lint.sh10None found. The script makes no network call.
PostToolUseWritepost-html-render.sh10None found. The script makes no network call.
PostToolUseEditpost-html-render.sh10None found. The script makes no network call.
PostToolUseBashpost-deploy-health.sh15Yes, after a deploy command. Requests up to 3 health URLs written in your project's CLAUDE.md. See Deploy health checks.
PostToolUseBashpost-diff-test-compare.sh10None found. The script makes no network call.
PostToolUseBashpost-git-state.sh5None. It reads the command Claude ran.
PostToolUseBashpost-merge-cleanup.sh5None found. It reacts to a gh pr merge command you ran; it makes no call itself.
PostToolUse-otel-telemetry.sh2Only if an OTEL endpoint is configured. Sends spans, including your project path, to that endpoint. See OTEL spans.
PostToolUseEditspec-drift-check.sh3None found. The script makes no network call.
PostToolUseWritespec-drift-check.sh3None found. The script makes no network call.
PostToolUseEditkb-diagram-refresh.sh3None found. The script makes no network call.
PostToolUseWritekb-diagram-refresh.sh3None found. The script makes no network call.
PostToolUseBashescalation-guard.sh5None found. Local git only.
PostToolUseEditpost-config-change-restart-reminder.sh5None found. The script makes no network call.
PostToolUseWritepost-config-change-restart-reminder.sh5None found. The script makes no network call.
PostToolUseBashpost-server-crash-watch.sh15Local only. Requests http://localhost:<port>/ and runs docker compose ps.
PostToolUseFailureBashpost-test-summary.sh5None while Arth Decisions is Off. See Arth Decisions.
PostToolUseFailure-otel-telemetry.sh2Only if an OTEL endpoint is configured. Sends spans, including your project path, to that endpoint. See OTEL spans.
PostToolUseFailureBashescalation-guard.sh5None found. Local git only.
SubagentStart-otel-telemetry.sh2Only if an OTEL endpoint is configured. Sends spans, including your project path, to that endpoint. See OTEL spans.
SubagentStop-otel-telemetry.sh5Only if an OTEL endpoint is configured. Sends spans, including your project path, to that endpoint. See OTEL spans.
TaskCreated-otel-telemetry.sh2Only if an OTEL endpoint is configured. Sends spans, including your project path, to that endpoint. See OTEL spans.
TaskCompleted-otel-telemetry.sh3Only if an OTEL endpoint is configured. Sends spans, including your project path, to that endpoint. See OTEL spans.
PermissionRequest-otel-telemetry.sh2Only if an OTEL endpoint is configured. Sends spans, including your project path, to that endpoint. See OTEL spans.
StopFailure-otel-telemetry.sh2Only if an OTEL endpoint is configured. Sends spans, including your project path, to that endpoint. See OTEL spans.
PreCompact-otel-telemetry.sh2Only if an OTEL endpoint is configured. Sends spans, including your project path, to that endpoint. See OTEL spans.
PostCompact-otel-telemetry.sh2Only if an OTEL endpoint is configured. Sends spans, including your project path, to that endpoint. See OTEL spans.
InstructionsLoaded-otel-telemetry.sh2Only if an OTEL endpoint is configured. Sends spans, including your project path, to that endpoint. See OTEL spans.
TeammateIdle-otel-telemetry.sh2Only if an OTEL endpoint is configured. Sends spans, including your project path, to that endpoint. See OTEL spans.
Notification-otel-telemetry.sh2Only if an OTEL endpoint is configured. Sends spans, including your project path, to that endpoint. See OTEL spans.
CwdChanged-otel-telemetry.sh2Only if an OTEL endpoint is configured. Sends spans, including your project path, to that endpoint. See OTEL spans.
WorktreeCreate-otel-telemetry.sh2Only if an OTEL endpoint is configured. Sends spans, including your project path, to that endpoint. See OTEL spans.
WorktreeRemove-otel-telemetry.sh2Only if an OTEL endpoint is configured. Sends spans, including your project path, to that endpoint. See OTEL spans.
PermissionDenied-otel-telemetry.sh2Only 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:

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:

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:

WhatStarted byListens onStops with
HooksClaude Code, on each event in the table aboveNothingThey exit after each event
Arth Intelligence engine/otel-setup or /arth-setup with intelligence ticked127.0.0.1:4319docker compose -f ~/.arthai/docker-compose.yml down
Arth Intelligence dashboardSame127.0.0.1:3100Same
Its PostgreSQL databaseSameNot published on the host (docker ps shows 5432/tcp with no address)Same
Its updater (Watchtower)SameNo portSame; see run the dashboard
Model router/arth-setup, when you choose a second model provider127.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):

FileWhat changes
CLAUDE.mdCreated 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/excludeA 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-doneHolds 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 classContacted when
your git host, through ghgh is installed and the project is a git repository: the session briefing lists your open pull requests and issues
your git host, through gitA skill runs git fetch or git push, for example /fix syncing with origin
the Railway APIThe railway command is installed: the briefing runs railway whoami
your OTEL endpointYou configured one other than the local default
health URLs in your CLAUDE.mdA deploy command runs
the Online provider for Arth DecisionsArth Decisions is set to Online
a routing service URLYou set ARTH_ROUTER_URL; see Prompt routing
api.anthropic.comYou turned on the model router: it forwards Claude calls there by default
the model provider you pickYou turned on the model router and chose a provider for sub-agents
a team service URLYou configured one; see Other services

Two more things reach the network, and neither is a hook:

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

SettingEffect
ARTH_PROXY_AUTOSTART=0Only matters if you turned on the model router: the session-start hook then never restarts it when it is down
OTEL_DISABLED=trueotel-telemetry.sh sends nothing

#Glossary

TermMeaning
Arth SarathiThe plugin: workflow skills such as /fix, /pr and /qa, and the hooks on this page
Arth IntelligenceThe local dashboard on 127.0.0.1 that shows what your sessions did
Arth DecisionsThe layer that answers small yes-or-no questions for skills. Modes: Off, Local, Online
Model routerBuilt 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 knowledgeWhat /calibrate learned about your code, in .claude/knowledge/. Skills read it before they write code
Knowledge graphThe same facts as a graph in .claude/knowledge/graph/graph.jsonl, queried by skills such as /fix. Local files only
RoutingThe prompt hook's suggestion of which skill or agent fits, plus model-policy.yml, which sets the Claude model tier per agent
HookA script that Claude Code runs on an event, such as the start of a session
Open editionThe build of the hooks that this repository ships

#Tested on

PlatformWhat was runResult
macOS 26, a fresh home folderInstall, check, start the dashboard, uninstall, following these pagesPass, 2026-11-29
LinuxNot run for this versionNot tested

Steps that call a model, such as the first /fix, were not part of this run.