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.
What Arth Decisions sends, and when
- Arth Decisions is Off by default.
- Local (LM Studio or Ollama) needs no key and sends nothing out of your machine.
- Online needs your own key. It sends redacted, trimmed Arth Decisions questions to TypeSafe Jev.
- OTEL stays local: Arth Intelligence sends data only to a port on 127.0.0.1.
- There is no telemetry without opt-in.
#Step 1: Check what you need
Run these in a terminal. Each one prints a version.
claude --version
git --version
python3 --version- Claude Code must be 2.1.154 or later, and you must be signed in to it. If you are not,
claudeasks you to sign in when it starts. - git must be 2.28 or later (for
git init -b). python3(3.9 or later) runs the sample project's tests. Many hooks also use it; without it, they skip their work.jqis recommended: the setup skills use it to edit JSON settings. Check withjq --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:
/plugin marketplace add ArthTech-AI/sarathi
/plugin install prime@sarathiThe 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:
claude plugin marketplace add ArthTech-AI/sarathi && claude plugin install prime@sarathiIt prints two lines, ending in:
โ Successfully added marketplace: sarathi (declared in user settings)
โ Successfully installed plugin: prime@sarathi (scope: user)Check the install from your terminal:
claude plugin listThe 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.
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 mainRun the test and watch it fail:
python3 -m unittest -qThe last line is FAILED (failures=1).
Something went wrong? See the sample project steps fail.
#Step 4: Start Claude Code in the project
claudeIf Claude Code asks whether you trust the files in this folder, answer yes.
On the first start in a project, Arth Sarathi:
- prints a short briefing at the top of the session, for example
๐ arth-demo โ main; - creates
CLAUDE.md, or adds a marked block to an existing one that git does not track, so Claude knows the skills exist; - adds a marked block of ignore lines to
.git/info/exclude, which is local to your clone and never committed (outside a git repository it uses.gitignore), and writes a few small state files in.claude/.
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
/arth-setupIt 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:
- 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.
- 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:
/fix "add(2, 3) returns -1 instead of 5" --liteWhat happens:
- Two prompt hooks read your message and add routing hints. They run on your machine and make no network call.
- Because you skipped
/calibrate,/fixfirst printsTip: run /calibrate first so this skill knows your project's conventions.It is only a hint and the fix goes on. - The
/fixskill checks that git is clean, syncs withorigin, and sends a small team of agents to trace the bug.--liteuses two agents instead of three. - Guard hooks run before each edit and each shell command. They can block a dangerous command; they never send anything.
- The skill writes the fix and runs the test.
- It asks you to check the fix yourself, with two answers:
ready(looks good) orissues(describe what is wrong). For this demo, typeready. - It then hands over to
/pr, which commits the fix on a new branch, pushes the branch toorigin(here the localarth-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. - 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:
python3 -m unittest -q
git diff main -- calc.pyThe 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
- Start Claude Code in your project and run
/arth-setup, as in step 5. - Run
/calibratenext, if you did not accept it at the end of/arth-setup. It reads your code once, shows what it found, and asks before it installs anything. Pick Install all or Pick items: with Skip it writes only.claude/project-profile.mdand no knowledge base. See memory and routing. - Then use the work skills. For a feature, write the requirements, plan the build, then build it:
/planning csv-export -- let users download their orders as CSV, then/implementation-plan csv-export, then/implement csv-export./implementneeds the plan that/implementation-planwrites to.claude/plans/csv-export.md. For a bug:/fix "the login page returns 500 when the email has a plus sign". Before you merge:/qato run the checks, then/prto open the pull request. Type/to see every skill. - If git already tracks your
CLAUDE.md, the first start leaves it unchanged and prints a one-line note. To add the toolkit section, copy the block it names intoCLAUDE.mdand commit it, because/fixrefuses to start while tracked files have uncommitted changes. - Ask questions about Arth itself with
/arth-help <question>. It answers from these pages. - To remove everything later, see uninstall.