AgentHarbor CLAUDE.md

AgentHarbor CLAUDE.md is an instructions file for Claude Code from abhiunix/AgentHarbor. It costs 2,538 tokens per session, scanned A, original, MIT.

A repository guide for AgentHarbor, a desktop application built with Vite, TypeScript, Rust, and Tauri. Tauri is a framework for packaging web interfaces as desktop apps.

In plain words
What is it for?
Use it when developing, testing, linting, or building AgentHarbor and its frontend and Rust desktop code.
Why use it?
It records the project’s commands, tests, version-bump behavior, and the Rust abstraction used by its two windows, so coding agents can work consistently.

Instructions file for Claude Code

Written for Claude Code: PostToolUse hook event. Also seen: mentions CLAUDE.md; mentions Claude Code; mentions Codex.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/abhiunix/agentharbor/claude-md
Clone the repo
git clone --depth 1 https://github.com/abhiunix/AgentHarbor

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for AgentHarbor CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/abhiunix/agentharbor/claude-md.svg)](https://agentmods.dev/instructions/abhiunix/agentharbor/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/abhiunix/agentharbor/claude-md"><img src="https://agentmods.dev/badge/instructions/abhiunix/agentharbor/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 2,538 This file is loaded in full into every session.
When invoked 2,538 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.02538 $0.02538
Opus 5 $0.01269 $0.01269
Sonnet 5 $0.00508 $0.00508
Haiku 4.5 $0.00254 $0.00254

Measured 6d ago against content hash 0813df243f93, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

AgentHarbor CLAUDE.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

CLAUDE.md · 132 lines

How it starts

The opening of the file, as written. The whole thing — 132 lines — stays where its author put it; the contents beside it link to each section on GitHub.

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

Commands

npm install                       # install JS deps
npm run tauri dev                 # full dev: Vite on :1420 + Tauri window, Rust hot-restart
npm run build                     # tsc && vite build (frontend only)
npm run test:regression           # npm run build + cd src-tauri && cargo test  (the CI gate)

Targeted checks:

npx tsc --noEmit                                    # frontend type check (CI uses this)
cd src-tauri && cargo test <name>                   # single Rust test
cd src-tauri && cargo clippy --all-targets -- -D warnings   # lint Rust (CI runs this, continue-on-error)
cd src-tauri && SKIP_VERSION_BUMP=1 cargo build     # build check without bumping the patch version

Version-bump side effect. npm run build runs scripts/bump-build.cjs as a prebuild step and increments the patch in package.json, src-tauri/tauri.conf.json, and src-tauri/Cargo.toml in lockstep. Set SKIP_VERSION_BUMP=1 whenever you don't want that (CI sets it on plain build checks; the signed-release flow also sets it — see docs/build-and-release.md).

Signed/notarized builds, release tagging, and the latest.json updater feed are documented in docs/build-and-release.md; do not run them speculatively.

Architecture

Tauri 2 desktop app. React 19 + TypeScript + Vite + Zustand (src/) talks over Tauri IPC to a Rust backend (src-tauri/src/). Bundle target is macOS aarch64 + Windows x64; no Linux packaging.

Two Tauri windows

src/App.tsx branches on getCurrentWindow().label:

  • main — the full app (sidebar + routes under BrowserRouter).
  • tray-popover — a separate Tauri window owned by src-tauri/src/tray.rs, renders <TrayPopover /> only. It emits navigate-to events that the main window picks up via NavigateListener (also shows/focuses the main window).

Adapter trait — the core abstraction

src-tauri/src/adapters/traits.rs defines AgentAdapter (id, name, capabilities, detect, read_config, diff, deploy, remove, managed_paths). One implementation per provider (claude_code, cursor, windsurf, gemini, copilot, antigravity, vscode, codex) lives next to it. AdapterRegistry::new() in adapters/mod.rs instantiates the full list — adding a provider means adding it there.

Read the full file on GitHub · 132 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 132 lines · 2,538 tokens per session scan A 0813df243f93

Subscribe to this mod's changes

AgentHarbor CLAUDE.md is an instructions file published in the GitHub repository abhiunix/AgentHarbor (11 stars, last pushed yesterday), licensed MIT. It adds 2,538 tokens to every session, about $0.0127 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.