Reads & enforces handoff
.claude/settings.json injects STATUS.md at session start and
nudges Claude if code changed without updating your handoff.
ZERO-DEPENDENCY AI CONTINUITY CLI
Every AI coding tool locks chat history inside its own app. Harnica keeps your active memory, shared skills, and automatic handoff hooks right inside your repository—so switching tools mid-task feels seamless.
npx harnica init THE CORE PRINCIPLE
.claude/settings.json injects STATUS.md at session start and
nudges Claude if code changed without updating your handoff.
STATUS.md & .agents/skills/One concise working memory file (<80 lines, last 5 session entries) plus a single skills directory symlinked across both harnesses.
.agents/hooks.json injects the exact handoff and uncommitted git status
into Antigravity’s SessionStart context.
HOW IT WORKS
Run npx harnica init in any Git repository. Harnica safely creates
STATUS.md, appends a compact block to AGENTS.md, links
CLAUDE.md, symlinks .claude/skills, and wires both hook
files without overwriting your existing settings.
When you finish editing code, the Stop hook checks whether
STATUS.md was updated in the last 3 minutes. If not, it asks the
assistant to record what changed and what comes next.
Open the same folder in Antigravity or Claude Code. The SessionStart
hook automatically loads STATUS.md and git status -sb so
you never repeat context or re-explain dead ends.
CLI REFERENCE
| Command | Purpose |
|---|---|
npx harnica init | Idempotently scaffold STATUS.md, rules, skill symlink, and dual hooks. |
npx harnica status | Print STATUS.md, git status -sb, and line/log budget health. |
npx harnica log “…” | Prepend a timestamped session log entry and automatically trim to the 5 newest. |
npx harnica sync | Verify and repair drifted hooks, symlinks, or AGENTS.md continuity blocks. |
Paste this two-line Project Custom Instruction in Claude Desktop so GUI chats share the exact same handoff file:
At the start of every conversation, read AGENTS.md and STATUS.md in the project root. Before finishing any task that changes files or decisions, update STATUS.md following its format.
FREQUENTLY ASKED QUESTIONS