NewHarbor Handoffs: switch agents, keep your place

You build the product. Harbor makes your agents get it right.

Harbor gives every coding agent your team’s memory, stops the commands you banned, and reviews every pull request against your rules.Team memory, guardrails and code review for every coding agent you run.

npx harborloop initSend this to my computer

Connects Claude Code, Codex, Cursor and GitHub Copilot. Free for you and one teammate. No card. No end date.

Prefer a plugin?
claude plugin marketplace add gethrbr/harbor-plugins && claude plugin install harbor@harborSend this to my computer

Then type /harbor:login in Claude Code to sign in.

  • 10 of 10right on the first try
  • 0corrections typed
  • 38% lessagent time
In a controlled test with one saved rule. See the test

What Harbor does

Memory, guardrails and review.
One install.

One command connects your coding agents. From then on Harbor works in three places: before a task, while it runs, and on the pull request.

  1. 01Memory

    One correction reaches every agent

    What a teammate says once becomes a rule in every session, on every repo, machine and coding agent the team runs.

    How it learns
  2. 02Guardrails

    The banned command never runs

    Harbor holds an agent to your rules at the moment it runs a command, and tells it what to do instead.

    How guardrails work
  3. 03Review

    Every pull request gets checked

    A reviewer on each pull request, for bugs and for your team’s rules. It reads your CLAUDE.md, AGENTS.md and .claude/rules whole, from the base branch, so a PR cannot rewrite them.

    See a review

Harbor learns it

Nobody writes anything new.
Harbor picks it up.

Your team already decides how it works, in coding sessions, review threads, Slack and docs. Harbor reads there and keeps each decision as a rule. You set the gate: every rule can wait for a person, or only the ones that need one.

Every session gets it right

The right rules,
in the session that needs them.

Before each prompt, Harbor hands the agent the few rules that fit the task, not the whole rulebook. Dana said it once. Sam, Priya and Lee never have to.

The GitHub App

Every pull request,
reviewed for bugs and your rules.

Harbor comments on the line with a bug, or the line that breaks a rule your team holds, before a reviewer has to. Your reviewers keep the judgment calls.

Add user avatars#503, opened by Sam with Claude Code
  1. harbor-brainTeam rule on schema.prisma: Never reset the database. Write a migration.
  2. harbor-brainBug on avatar.ts: The old avatar is deleted before the upload succeeds.
  3. Claude Codepushed the migration and the fix
  4. Harbor review12 rules checked, from CLAUDE.md and the team’s brain · none broken
  5. Danaapproved
  • Works on its ownConnect GitHub and turn on Code review. Bugs are caught even in a repo with no rules file.
  • Your rules files countCLAUDE.md, AGENTS.md and the rest, read from the base branch, plus what Harbor learned.
  • It never fails your buildA bug or a broken rule gets a comment on its line. Turn on Block merging and a merge waits until the review has run.

Keep it true

Knowledge that stays true
as the code moves on.

A memory kept by hand only grows, until nobody trusts it. In Harbor every rule has a source, a state and a record of use, and when the code changes, the rule changes with it, or leaves.

  • You set the gateApprove every rule, or let routine ones in on trial and hold the rest.
  • Conflicts settle themselvesA newer rule replaces the old one, which keeps a Restore button. A rule with an owner waits for them.
  • Retire with evidenceEvery rule shows how often it was served and cited.

The outcome

Same task.
No redo.

We ran the same tasks with and without one saved rule. With it, the agent was right every time and nobody typed a correction.

10 of 10

right on the first try

Without the rule: 0 of 10

0

corrections a person typed

Without the rule: 10

38% less

agent time

52s without, 32s with Harbor

A controlled test, not a customer result. Claude Sonnet 5.5 on a small Node repo, tasks we picked, five runs each way. The token bill came out about even. Your numbers will differ.

Security

Exactly what Harbor sees.

Off until you turn it on in a repo.

  • What it sends

    • Your prompt and your correction, from a repo you turned on. Keys and tokens are blanked first.
    • The path and up to 800 characters of a file your agent edits or reads.
    • The session id, repo, branch and counts.
  • What it leaves alone

    • Repos you never turned on.
    • Your full transcript, which is not uploaded.
    • .env, .pem and other secret files.
  • What it changes

    • Each agent’s config and hooks, in your home folder.
    • Its own folder, ~/.harbor.
    • Nothing in your repo. It never commits.
  • How to leave

    • harbor off pauses it.
    • harbor uninstall removes it from the machine.
    • Delete the workspace, and its data goes with it.

Processed by OpenAI and Anthropic, on AWS in us-east-1, encrypted at rest. No SOC 2 report yet. Code review keeps no code. Read the Privacy Policy

Questions

What teams ask first.

Claude Code already has memory. Why add this?

If you only use Claude Code, in one repo, on one machine, its auto memory covers a lot. It stays in that repo on that machine, only Claude Code reads it, and the first 200 lines or 25KB load into every session. Harbor reaches your teammates and their agents, plus your other repos and machines, gives each task only what fits, and shows you which rules an answer cited. It is free to try, and harbor uninstall takes it back out. How auto memory works.

We only use Claude Code. Is Harbor for us?

Yes, and it is the most common setup. Keep your CLAUDE.md and auto memory. Harbor adds what they do not do: a lesson one person’s session learns reaches every teammate’s Claude Code in every repo the Space covers, each prompt gets the few rules that fit instead of a whole file, every pull request is checked against the same rules, and each rule shows how often it was served and cited. If your team adds another agent later, it gets the same rules. How a rule reaches the team.

Why not just keep a CLAUDE.md or Cursor rules?

Keep them. They hold what somebody remembered to write, and each tool loads them its own way. Harbor sits beside them: it learns from your team’s sessions, reaches every agent your team uses, and hands over only what fits the task. It never edits your files. How it works with rules files.

Will it clutter the agent’s context?

No. Before each prompt Harbor hands the agent at most three team rules ranked for that task, plus any your team pinned as always-on, which are capped at five short rules. It adds nothing to your repo, and your CLAUDE.md loads the way it always did. harbor context shows what your machine already loads into every turn. What Harbor counts.

How are bad or outdated rules handled?

When a teammate’s newer rule reverses an older one, the newer one wins, the old one keeps a Restore button in Knowledge, and its author is told. A rule with an owner waits for that owner instead. When a push deletes a file a rule names, Harbor retires that rule on its own if it belongs to one repo, and flags it as out of date if it reaches more. Anyone who can push can reply @harbor-brain wrong on a pull request to mark a rule disputed for its owner. And every rule shows how often agents were given it and cited it, so you can retire one with evidence, or have unused rules archived after 60, 90 or 180 days. What Harbor counts.

Can I use only the pull request review?

Yes. Connect GitHub in Harbor and turn on Code review, with no command to run and nothing installed on anyone’s machine. From the first pull request it checks the rule files the repo already has: CLAUDE.md, AGENTS.md, Cursor and Copilot rules, and CONTRIBUTING.md. When your team also connects its agents, it checks what they learned too, on private repos. Free includes 10 reviews.

More questions
How does a teammate’s agent get what mine learned?

You correct Claude Code in a repo that is on, in words that state something standing, and Harbor saves it to that repo’s Space. Anyone in that Space who has run npx harborloop init can get it from their next session, in Claude Code, Cursor, Codex or Copilot, when it fits the task. On the default setting it goes live on trial with no approval, and you can make lessons wait for a person. One-off fixes and edits you make by hand are not saved. How Spaces work.

Why not a GitHub Action that runs a model on each pull request?

You can build one, and then you write the prompt, hold the key and decide which rules it reads. Harbor’s check needs no workflow file. It reads the repo’s rule files from the base branch, so a pull request cannot rewrite the rules it is checked against, adds the rules your team learned on private repos, comments on the line that breaks one, and lets anyone who can push reply @harbor-brain wrong to dispute a rule. How the review works.

Does Harbor see our code?

Only what it needs, and only from repos you turned on. Your agents send the prompt and your correction, plus the path and up to 800 characters of a file the agent edits or reads, with keys and tokens blanked. Your transcript is not uploaded. The pull request review clones the repo in a short-lived task, sends the changed code to Anthropic to run the review, and keeps no code afterwards. Exactly what Harbor sees.

What does it cost? Will I hit a paywall?

Free costs nothing for you and one teammate. There is no card and no end date, and you only pay if you ask for a paid plan. It has limits: one source, 1,000 live items, 30 days of history, and 200 correction reads and 10 questions a day. Reach one and your agents keep getting their rules. Every limit, and what happens at it.

Do I need a team?

No. On your own, a correction follows you to your other repos, agents and machines, and you can read and edit everything Harbor keeps. Add teammates when you want them, and Free covers you and one more.

Do I need to write rules?

No. Harbor reads your corrections as you work, and your agent saves what cost it time when a task ends. Start a line with remember: when you want to be sure. If your repo already commits an AGENTS.md or CLAUDE.md, setup asks before sending its rules to review, so nothing you wrote is left behind.

How do I start?

Press Connect your agents and sign up with Google or email. Name your workspace, then run npx harborloop init in your repo. It signs you in through the browser, finds Claude Code, Cursor, Codex and GitHub Copilot on your machine and wires each one with hooks and the MCP server. There is no call and no card. harbor doctor tells you if something is not working. Read the quickstart.

How do I give Claude Code and Cursor shared memory?

Connect them to Harbor. One setup wires Claude Code, Cursor, Codex and GitHub Copilot to the same memory, so a lesson saved from one can reach the others from their next session. Harbor learns from the work, sets a gate your team controls, gives each session only the rules that fit, and counts which rules got cited. Shared memory for AI coding agents.

We already built our own memory for our agents. Why switch?

Keep what works for you. A homegrown memory has the same parts every time: a hook that captures, a rule for what to keep, a way to pick what each session gets, and pruning when the code moves on. Harbor runs all of them. It saves corrections, review threads and Slack decisions, holds the ones that need a person, hands each prompt at most three ranked rules, and retires or flags a rule when a push deletes the file it names. It is not a notes app: your vault and your docs stay where they are. Where a homegrown setup usually stops is the second person, and Harbor gives every teammate’s agent the same rules, behind the same gate. A second brain, and where it stops.

Does the pull request review check only our rules?

No. It checks your team’s rules: your repo’s rule files and what Harbor learned from your work, the same rules your coding agents get. It also reviews the code for bugs, so a repo with no rule files is still reviewed. It does not replace tests, CI, security scanners or your reviewers. Other reviewers can follow instructions you write for them, and some learn from their own reviews. A finding gets a comment on its line and never fails the check. It can miss one, and it stays quiet when it cannot confirm it. How the review works.

Can it miss a correction?

Yes. A very short correction, or one its model does not read as a rule, is not saved, and nothing is captured outside a repo you turned on. Start the line with remember: to be sure, or add the rule yourself in Knowledge.

Is the team benefit proven?

Not yet. We measured one controlled test with one agent and one saved rule, and it is on this page with what it leaves out. We have not published a result from a team over time. The way to find out is cheap: Free covers two people, so run it on a real repo with one teammate and read which rules got served and cited. See the test.

Last stop

Stop saying it twice.

Every lesson your team learns today stays with one person. Set Harbor up in a few minutes and the next one reaches every session and every pull request.

npx harborloop initSend this to my computer

Connects Claude Code, Codex, Cursor and GitHub Copilot. Free for you and one teammate. No card. No end date.

Prefer a plugin?
claude plugin marketplace add gethrbr/harbor-plugins && claude plugin install harbor@harborSend this to my computer

Then type /harbor:login in Claude Code to sign in.