Arth docs

Install and first fix

Tested on Arth Sarathi 1.0.2 (commit eaede405) with Claude Code 2.1.154 or later, on 2026-12-01.

What you'll get: Arth Sarathi installed in Claude Code, a small sample project with a real bug, and that bug fixed by /fix, with its tests passing. At the end there is a link to see what the fix cost.

Time: about 5 minutes of your own steps, plus the time the fix runs. Docker is needed only if you want the dashboard.

Install flow Step 1: inside Claude Code, /plugin marketplace add ArthTech-AI/sarathi adds the marketplace from GitHub. Step 2: /plugin install prime@sarathi installs the plugin. Step 3: quit and start Claude Code again in a git project; the session start hooks print a briefing and add a block to CLAUDE.md and .gitignore. Step 4: /arth-setup on this machine, no login. Tick intelligence to start the local dashboard in Docker on 127.0.0.1, or run /arth-setup local to accept the defaults. Then the skills such as /fix, /pr and /qa are ready. 1. Add the marketplace (Claude Code) /plugin marketplace add ArthTech-AI/sarathi Downloads from GitHub (network) 2. Install the plugin /plugin install prime@sarathi 3. Restart in a git project /exit, then claude Session start hooks print a briefing line, add a block to CLAUDE.md and .gitignore, and write state files in .claude/ 4. Guided setup, no login /arth-setup This machine only; Claude only Tick intelligence: the dashboard runs in Docker on 127.0.0.1 Or /arth-setup local: no questions Ready /fix /pr /qa /planning /arth-help
The install flow: inside Claude Code, add the marketplace and install the plugin, restart Claude Code so the hooks load, then run /arth-setup and choose Local

What Arth Decisions sends, and when

#Step 1: Check what you need

Run these in a terminal. Each one prints a version.

Terminal
claude --version
git --version
python3 --version

macOS and Linux are supported. Windows is not.

Something went wrong? See Claude Code is too old or missing.

#Step 2: Install the plugin

Start Claude Code anywhere (claude) and type these two commands, one at a time:

Claude Code
/plugin marketplace add ArthTech-AI/sarathi
/plugin install prime@sarathi

The first adds the Arth Sarathi marketplace to Claude Code. The second installs the plugin, which is called prime, for your user. Then quit Claude Code (type /exit): it loads a plugin's hooks only when it starts.

From a terminal, this one command does the same and needs no Claude Code session:

Terminal
claude plugin marketplace add ArthTech-AI/sarathi && claude plugin install prime@sarathi

It prints two lines, ending in:

Claude Code
โœ” Successfully added marketplace: sarathi (declared in user settings)
โœ” Successfully installed plugin: prime@sarathi (scope: user)

Check the install from your terminal:

Terminal
claude plugin list

The list shows prime@sarathi with Status: โœ” enabled.

Something went wrong? See the install command fails.

#Step 3: Make a sample project with a bug

Run this in the folder where you keep projects, for example your home folder (cd ~). It creates a folder arth-demo with a function that adds two numbers wrongly, a test that catches it, and a local git remote, because /fix syncs with origin before it starts.

Terminal
mkdir arth-demo && cd arth-demo
git init -q -b main
cat > calc.py <<'EOF'
def add(a, b):
    return a - b
EOF
cat > test_calc.py <<'EOF'
import unittest
from calc import add

class AddTest(unittest.TestCase):
    def test_add(self):
        self.assertEqual(add(2, 3), 5)

if __name__ == "__main__":
    unittest.main()
EOF
git add calc.py test_calc.py
git -c user.name="Demo" -c user.email="[email protected]" commit -qm "Sample project"
git init -q --bare ../arth-demo-origin.git
git remote add origin ../arth-demo-origin.git
git push -q -u origin main

Run the test and watch it fail:

Terminal
python3 -m unittest -q

The last line is FAILED (failures=1).

Something went wrong? See the sample project steps fail.

#Step 4: Start Claude Code in the project

Terminal
claude

If Claude Code asks whether you trust the files in this folder, answer yes.

On the first start in a project, Arth Sarathi:

What runs on your machine lists each file.

It never changes a file git tracks, so it leaves nothing to commit before /fix, which only refuses to start when files git already tracks have changes. In your own project, if CLAUDE.md is tracked, it is left as it is (see use it in your own project).

Something went wrong? See no briefing at the start of the session.

#Step 5: Run the guided setup

Claude Code
/arth-setup

It runs on this machine only and needs no login or key for the choices below. It prints Posture: local (single user, this machine), then asks two questions:

  1. Where should AI models run? Pick Claude only. The other two choices send execution agents to a second provider (needs its API key) or to a local model in LM Studio or Ollama.
  2. What do you want to set up locally? (memory and model routing are built in) Tick intelligence if Docker is running: it starts the local dashboard that shows what each session cost (run the dashboard). Leave Arth Decisions unticked, which keeps it Off; Arth Decisions and privacy explains it. With nothing ticked, nothing is installed and the skills still work.

It ends with one status line, for example intelligence: โœ“ (โ€ฆ) ยท Arth Decisions: off ยท memory + routing: built in.

Last, it asks Run /calibrate now? /calibrate reads a project once and writes what it learned to .claude/project-profile.md and .claude/knowledge/, so that /planning, /implement and /fix follow its conventions. In your own project, pick Run /calibrate now. This sample project has two files and nothing to learn, so pick Skip for now. Memory and routing explains what it writes.

To skip the questions, type /arth-setup local instead. It sets up the dashboard (Docker needed), leaves Arth Decisions Off, uses the built-in memory and routing, and ends with Next: run /calibrate instead of asking.

You can run /arth-setup again at any time to change an answer.

Something went wrong? See the setup asks for a key or a login.

#Step 6: Fix the bug

Type this in Claude Code:

Claude Code
/fix "add(2, 3) returns -1 instead of 5" --lite
First run of /fix You type /fix with a bug description. Prompt hooks on your machine add routing hints. The /fix skill checks git is clean and syncs with origin, reads the project knowledge graph, then sends specialist agents to trace the cause. Before each edit and shell command, guard hooks check it; after it, hooks lint and summarise tests. The result is the root cause, the change and the test result. If the local dashboard is set up, it gets Claude Code's OTEL data on 127.0.0.1 port 4319 and reads the session files read-only, and the dashboard on port 3100 shows the session and its cost. Model calls go from Claude Code to your model provider, as they do without the plugin. You type /fix "add(2, 3) returns -1 instead of 5" --lite Arth Sarathi prompt hooks (local) triage-router.sh intent-classifier.sh Add routing hints to the prompt; no network call /fix skill Checks git is clean, syncs with origin Reads the project knowledge graph Sends agents: pattern-matcher and backward-tracer Guard hooks on every tool call pre-bash-guard.sh pre-edit-guard.sh Before: can block a dangerous command After: lint, test summary Result Root cause, the change, the test result Arth Intelligence: see what it cost Inputs: Claude Code's OTEL export to 127.0.0.1:4319 and the session files, read-only The dashboard shows it at http://127.0.0.1:3100 Model calls Claude Code talks to your model provider, as it does without the plugin
The first run: your prompt goes through the prompt hooks, the /fix skill sends specialist agents to find the cause, guard hooks check each edit and command, and the result comes back to you

What happens:

  1. Two prompt hooks read your message and add routing hints. They run on your machine and make no network call.
  2. Because you skipped /calibrate, /fix first prints Tip: run /calibrate first so this skill knows your project's conventions. It is only a hint and the fix goes on.
  3. The /fix skill checks that git is clean, syncs with origin, and sends a small team of agents to trace the bug. --lite uses two agents instead of three.
  4. Guard hooks run before each edit and each shell command. They can block a dangerous command; they never send anything.
  5. The skill writes the fix and runs the test.
  6. It asks you to check the fix yourself, with two answers: ready (looks good) or issues (describe what is wrong). For this demo, type ready.
  7. It then hands over to /pr, which commits the fix on a new branch, pushes the branch to origin (here the local arth-demo-origin.git) and tries to open a GitHub pull request. This sample project is not on GitHub, so that last part stops with an error, and that is expected.
  8. It ends with a short report: the root cause, the change and the test result.

/fix may also ask other questions, for example to confirm the scope of the change. Answer them in the chat.

This step calls the Claude model, so it uses your Claude plan or API credit, like any other prompt.

Something went wrong? See /fix stops before it starts.

#Step 7: Check the result

Quit Claude Code (type /exit), then run:

Terminal
python3 -m unittest -q
git diff main -- calc.py

The test now ends in OK. git diff main -- calc.py shows calc.py changed from a - b to a + b, whether the fix is committed on the new branch or still uncommitted. git status shows which branch you are on.

Something went wrong? See the test still fails after /fix.

#Next: see what it cost

Arth Intelligence is a local dashboard that lists your Claude Code sessions with what each one cost, its tokens, the tools it used and how long it took. It runs in Docker on 127.0.0.1. Start it with run the dashboard, then run /fix again on a new bug.

#Use it in your own project