Skip to main content
Every command also accepts the global flags.

synheart feedback

Tell Synapse whether you accept an agent’s edit Records your verdict on the edit a coding agent just made — accept or reject, with an optional reason — against the task you are on, so Synapse can count correction cycles (rejections before an edit was accepted). The task comes from this repository’s branch (an issue number in it, like feat/123-title, names the issue) unless you pass —issue, —pr or —task. Only you can run it, at your own terminal: it refuses in an agent’s shell, so an agent cannot accept its own work. Nothing but identifiers is sent: the verdict, the reason code, the repository, branch and commit, never code or a diff. Needs: you are signed in (synheart login). Usage
Subcommands
  • synheart feedback accept: Accept the agent’s edit
  • synheart feedback reject: Reject the agent’s edit
Examples

synheart feedback accept

Accept the agent’s edit Accept the agent’s edit. See synheart feedback —help for how the task is chosen and what is sent. Usage
Flags Examples
JSON output: not supported. This command does not print a JSON body.

synheart feedback reject

Reject the agent’s edit Reject the agent’s edit. See synheart feedback —help for how the task is chosen and what is sent. Usage
Flags Examples
JSON output: not supported. This command does not print a JSON body.

synheart guard

Hold your coding agents to rules you set Checks what a coding agent is about to do (push, merge, delete, deploy, edit a protected file) against rules you wrote, before it runs. A rule either asks you or stops the agent. Exceptions are scoped to a repository, branch or path, expire after the time you set, and can only be granted by you at a terminal. It also checks what is about to leave this machine for secrets: each Claude Code prompt, and the arguments of MCP tool calls, for keys, tokens, private keys, passwords and database URLs with credentials. A finding asks you first by default (rule guard.secrets); personal data (email addresses, phone numbers) is checked once you add the personal-data pack. Everything stays on this machine: your rules in ~/.synheart/guard/rules.yaml, a repository’s own rules in .synheart/guard.yaml, and a local log of which rules fired (never the commands, prompts or what a check found in them). Start with synheart guard init, then synheart guard install to hook it into Claude Code (or —host cursor for Cursor, —host droid for Factory Droid). Usage
Subcommands
  • synheart guard allow: Allow a blocked action for a limited time
  • synheart guard check: Test a shell command against your guard rules
  • synheart guard init: Create your guard rules file
  • synheart guard install: Hook the guard into Claude Code, Cursor or Factory Droid
  • synheart guard report: Summarise what the guard stopped, asked and allowed
  • synheart guard rules: List the guard rules in force here
  • synheart guard status: Show sign-in, team policy and sync health for the guard
  • synheart guard sync: Refresh team rules and upload day totals now
  • synheart guard team: Use your organization’s guard rules
Examples

synheart guard allow

Allow a blocked action for a limited time Lets what a rule stops or asks about through, in the scope you give and only until the time you set (default 1h, at most 168h). Use it when you know a one-off action is fine. Only you can run it, at a terminal; an agent cannot. Find rule IDs with synheart guard rules. Scope the exception with —repo, —branch or —path; without them it applies everywhere. Usage
Flags Examples
JSON output: not supported. This command does not print a JSON body.

synheart guard check

Test a shell command against your guard rules Shows what the guard would do with a shell command in the current directory, without running it: stop, ask, or let it through, and which rule decided. Everything after ‘check’ is the command to test, flags included, except a trailing —json, which prints the actions, verdict and matching rules as an object. Needs no login and no network. Usage
Examples
JSON output: supported. Add --json (or --format json) to print a machine-readable body.

synheart guard init

Create your guard rules file Writes ~/.synheart/guard/rules.yaml, from a starter set or from a file you give with —from, and checks that it loads. Refuses to overwrite an existing file. Only you can run it, at a terminal. Next step: synheart guard install. Usage
Flags Examples
JSON output: not supported. This command does not print a JSON body.

synheart guard install

Hook the guard into Claude Code, Cursor or Factory Droid Without —write, shows what would change: for Claude Code, the settings that run the guard before and after each action and before each prompt is sent (the secret check); for Cursor (—host cursor) and Factory Droid (—host droid), a diff of the hooks file. With —write, merges them into the host’s user-level file, or into this directory’s project-level file with —project. It keeps every other setting and hook, saves a backup first, and changes nothing when run again.
In Cursor the guard can stop shell commands, MCP calls, file edits and reads, and ask before shell commands and MCP calls; an ask rule on a file edit or read stops it instead, since Cursor cannot ask there. synheart guard status lists what each installed host enforces. In Factory Droid the guard can stop or ask before shell commands, file edits, reads and MCP calls. —intent also adds the Synapse intent-check instruction: in Claude Code and Droid to every coding instruction (UserPromptSubmit, the check synapse-intent-hook.py runs), in Cursor once at the start of each conversation. It applies only in repositories of the GitHub accounts your organization’s Synapse is installed on (refreshed by team sync; set SYNAPSE_HOOK_ORGS to override; synheart-ai when not in a team). In Claude Code an intent check already installed is kept unless you pass —intent=false. Usage
Flags Examples
JSON output: not supported. This command does not print a JSON body.

synheart guard report

Summarise what the guard stopped, asked and allowed Counts how often each rule fired over a period: stopped, asked, or let through. It reads the local log, which never holds commands or file paths. With —json it prints the counts as an object. Needs no login and no network. Usage
Flags Examples
JSON output: supported. Add --json (or --format json) to print a machine-readable body.

synheart guard rules

List the guard rules in force here Lists the rules that apply in the current directory, merged from your rules file, the repository’s .synheart/guard.yaml and your team’s rules, each with its verdict (stop or ask; “shadow” means it only logs). Active exceptions follow. With —json it prints an object with the rules under “items” and the active exceptions under “exceptions”. Needs no login and no network. Usage
Subcommands
  • synheart guard rules add: Add an opt-in rule pack to your rules file
Examples
JSON output: supported. Add --json (or --format json) to print a machine-readable body.

synheart guard rules add

Add an opt-in rule pack to your rules file Appends a named set of rules to ~/.synheart/guard/rules.yaml (or, with —repo, to this repository’s .synheart/guard.yaml, which your team can commit). Rules already covered by one in the file (same id, or the same action at least as broadly) are skipped, so the starter rules and a pack do not ask twice. Without a pack name it lists the packs. Only you can run it, at a terminal. Packs:
Usage
Flags Examples
JSON output: not supported. This command does not print a JSON body.

synheart guard status

Show sign-in, team policy and sync health for the guard Shows what the guard runs with on this machine: who is signed in, the organization whose rules it enforces, the team policy version and when it last synced successfully, the last sync error, and how many rule firings are waiting to be reported. Then, for each agent (Claude Code, Cursor, Factory Droid), whether the guard is installed and how much of the rules in force here it can hold: “enforces”, or “partial” with the rules that are stop-only (an ask becomes a stop) or advisory (never checked in that agent). Use it when team rules look out of date or Synapse shows no agent activity. With —json it prints the same as an object. Reads local state only: no network and no token refresh. Usage
Examples
JSON output: not supported. This command does not print a JSON body.

synheart guard sync

Refresh team rules and upload day totals now Fetches your organization’s current rules from Synapse and uploads the day totals of which rules fired, never commands, paths or prompts. The guard does this in the background about every 15 minutes; run it to do it now. Needs: you joined a team (synheart guard team join) and network access. Usage
Flags Examples
JSON output: not supported. This command does not print a JSON body.

synheart guard team

Use your organization’s guard rules Applies your organization’s rules from Synapse on this machine, ahead of your own, and shares day totals of which rules fired with your team. Never a command, a file path or a prompt. Use synheart guard team join to start, synheart guard team status to check, and synheart guard team leave to stop. Usage
Subcommands
  • synheart guard team decisions: Share each guard intervention with Synapse
  • synheart guard team join: Enforce your organization’s agent rules here
  • synheart guard team leave: Stop using your organization’s rules here
  • synheart guard team status: Show your guard team and last sync
Examples

synheart guard team decisions

Share each guard intervention with Synapse With on, team sync also uploads each time a rule fired as a Synapse decision record: the rule id, what it did (stopped, asked, let through by an exception or by your approval earlier in the session, shadow), the agent, the time and the agent’s session id, so you can look a decision up later and tie your feedback to it. Never the command, a path, a prompt, the repository or the branch. Only you see these records. Off by default; off stops uploading. Only you can run it, at a terminal. Usage
Examples
JSON output: not supported. This command does not print a JSON body.

synheart guard team join

Enforce your organization’s agent rules here Fetches your organization’s rules from Synapse and enforces them ahead of your own, then runs a first sync. Day totals of which rule fired (stopped, asked, let through) are shared with your team, never a command, a file path or a prompt. Only you can run it, at a terminal. Needs: you are signed in (synheart login) and network access. The organization comes from your sign-in unless you pass —org. Usage
Flags Examples
JSON output: not supported. This command does not print a JSON body.

synheart guard team leave

Stop using your organization’s rules here Removes your organization’s rules and the team link from this machine. Your own rules keep applying. Only you can run it, at a terminal. Needs no network. Usage
Examples
JSON output: not supported. This command does not print a JSON body.

synheart guard team status

Show your guard team and last sync Shows the organization this machine takes rules from, the policy version, when it last synced, and the last sync error if there was one. Says “not in a team” when you have not joined. With —json it prints the same as an object. Reads local state only. Usage
Examples
JSON output: supported. Add --json (or --format json) to print a machine-readable body.

synheart life

Let your coding agents adapt to how you are doing Connect with Life tells your coding agents how to work with you right now: keep it brief, take smaller steps, or go into full detail. Synheart Life on this computer works that out from your own state and hands agents only that instruction, never a score or any health data. Nothing goes through Synheart’s servers. Turn it on in Synheart Life (Settings), then run synheart life connect to add it to Claude Code (or —host cursor or —host codex). In Claude Code and Codex the instruction is added to every prompt; Cursor gets it at the start of each conversation, and all of them can ask for the current one through the synheart-life MCP server. Usage
Subcommands
  • synheart life connect: Add Connect with Life to Claude Code, Cursor or Codex
  • synheart life disconnect: Remove Connect with Life from Claude Code, Cursor or Codex
  • synheart life status: Show if Connect with Life is on and where it is installed
  • synheart life trial: Read out a Connect with Life test
Examples

synheart life connect

Add Connect with Life to Claude Code, Cursor or Codex Without —write, shows what would change. With —write, adds the synheart-life MCP server and a hook that gives the agent your current instruction, keeping every other setting and saving a backup of each file it changes. Running it again changes nothing.
Only you can run it with —write, at a terminal. Synheart Life must have Connect with Life turned on for agents to get anything; until then they behave as usual. Usage
Flags Examples
JSON output: not supported. This command does not print a JSON body.

synheart life disconnect

Remove Connect with Life from Claude Code, Cursor or Codex Removes what synheart life connect added, and nothing else. Without —write, shows what would change. To stop sharing everywhere at once, turn Connect with Life off in Synheart Life instead. Usage
Flags Examples
JSON output: not supported. This command does not print a JSON body.

synheart life status

Show if Connect with Life is on and where it is installed Shows whether Connect with Life is on in Synheart Life, the instruction an agent would get right now (hidden while a test runs, so it cannot give away which days are real), and which agents have it installed. Needs no login and no network: it only talks to Synheart Life on this computer. Usage
Examples
JSON output: supported. Add --json (or --format json) to print a machine-readable body.

synheart life trial

Read out a Connect with Life test Synheart Life can test whether Connect with Life helps you: for 10 working days, half the days your agents get the real instruction and half always get Normal, in an order Life keeps hidden until the end. A day on which no agent got your state does not count, and Life adds one at the end in its place. Start it in Synheart Life (Settings › AI › Connect with Life) and rate each day there. Usage
Subcommands
  • synheart life trial report: Compare real-instruction days with always-Normal days
Examples

synheart life trial report

Compare real-instruction days with always-Normal days Once the test is over, counts your Claude Code prompts on each test day (corrections, interruptions and refused tool calls per 100 prompts) and compares the real-instruction days with the always-Normal days, together with your daily ratings, over the days that counted. While the test runs it shows only how far along it is (with —json, Life’s progress fields and “results”: null). Everything is read on this computer: your transcripts under ~/.claude/projects and Synheart Life’s record of the days. Only counts are printed; no prompt, response or file name. Cursor and Codex conversations are not counted. Each run also saves the days’ counts to ~/.synheart/life-trial-counts.json, so a day stays counted after Claude Code deletes its transcript (cleanupPeriodDays, 30 days by default). Usage
Examples
JSON output: supported. Add --json (or --format json) to print a machine-readable body.

synheart mcp

Connect AI agents through the MCP server Exposes the Synheart CLI to AI agents (Claude Code, Cursor, Claude Desktop) through the Model Context Protocol, so they can call its commands as tools: set up an app project, check it, stream mock data and get connection snippets. Each tool says whether it is safe to call unprompted. On its own, synheart mcp prints this help. Add synheart mcp serve to your agent’s MCP server list to use it. See docs/cli-mcp.md for the setup of each client. Usage
Subcommands
  • synheart mcp serve: Run the MCP server on stdin and stdout
Examples

synheart mcp serve

Run the MCP server on stdin and stdout Reads JSON-RPC 2.0 messages from stdin, one per line, and writes responses to stdout. Its tools mirror init, doctor, env, explain, config show, auth status, whoami, version and the mock commands; synheart_mock_start runs the stream inside this process until synheart_mock_stop or the client disconnects. Nothing signs in, opens a browser or prompts: login, guard allow and update stay with the person at the terminal. An MCP client starts this command; it prints nothing until the client sends a request. Needs no network of its own. Usage
Examples
JSON output: not supported. This command does not print a JSON body.

synheart synapse

Connect this machine to Synapse Commands that connect your coding agents on this machine to Synapse, your organization’s memory for AI work. Each one acts for you, with your sign-in (synheart login), and sends only what it names. Usage
Subcommands
  • synheart synapse setup: Connect this machine to Synapse in one step
  • synheart synapse telemetry: Send Claude Code token counts to Synapse
Examples

synheart synapse setup

Connect this machine to Synapse in one step Sets up everything a developer needs for Synapse, one step after another:
Running it again changes nothing that is already set up. Each step can be skipped with its —skip flag, and each is reported as done, skipped or failed with the command that fixes it. —check only reports, changing nothing (also with —json). Only you can run it, at a terminal. Restart Claude Code afterwards. Usage
Flags Examples
JSON output: supported. Add --json (or --format json) to print a machine-readable body.

synheart synapse telemetry

Send Claude Code token counts to Synapse Sets up, checks and removes Claude Code’s token telemetry for Synapse. It is used for two things: your org’s Claude Code usage totals (people, sessions, tokens and an API-equivalent value) when people sign in with a Claude subscription the Admin API cannot see, and whether sessions use fewer tokens with Synapse than without. It sends token counts, the cost estimate, active time, and the models and tools used per session. When a session commits, pushes or opens a pull request, it also sends the repository name, branch name, commit id and pull request number. Never prompts, responses, code, commit messages or file paths. Opt-in: only you can turn it on, at a terminal. Usage
Subcommands
  • synheart synapse telemetry off: Turn off Claude Code token telemetry
  • synheart synapse telemetry on: Turn on Claude Code token telemetry
  • synheart synapse telemetry status: Show whether token telemetry is on and working
Examples

synheart synapse telemetry off

Turn off Claude Code token telemetry Removes exactly the settings synheart synapse telemetry on added to ~/.claude/settings.json (a value you changed since stays), revokes the credential in Synapse when you are signed in, and deletes the local credential. Data already sent stays for its 90 days unless you erase it in Synapse. Restart Claude Code afterwards. Usage
Examples
JSON output: not supported. This command does not print a JSON body.

synheart synapse telemetry on

Turn on Claude Code token telemetry Says what is sent and asks you to agree, then creates a Synapse credential that can only write your own token counts (scope mcp:telemetry, 90-day idle expiry), saves it to ~/.config/synapse/telemetry.json (0600), and adds the telemetry settings and otelHeadersHelper to ~/.claude/settings.json. Other settings are kept, and the file is backed up once to settings.json.bak-synapse. Running it again changes nothing. It refuses, changing nothing, when your settings already export telemetry to another collector. Needs: you are signed in (synheart login), network access, and you at a terminal (not an agent’s shell). Restart Claude Code afterwards. Usage
Flags Examples
JSON output: not supported. This command does not print a JSON body.

synheart synapse telemetry status

Show whether token telemetry is on and working Shows whether Claude Code is set to send token telemetry to Synapse, where the credential is, when the headers helper last ran and whether it worked, and today’s experiment arm when known. When telemetry is on it also asks Synapse for your own numbers for the last 7 days (completed sessions, input, output and cache tokens, and the API-equivalent value). Your organization’s admins and your department lead can see these counts too. It uses the telemetry credential, never prints it, and still succeeds when the numbers are unavailable. With —json it prints the same as an object. Usage
Examples
JSON output: supported. Add --json (or --format json) to print a machine-readable body.

synheart syni

Chat with Syni, Synheart’s state-aware assistant Syni is Synheart’s state-aware assistant. Run synheart syni in a terminal to chat interactively; use the subcommands for one-shot messages, personas and past sessions. Chat and sessions run as your app: they authenticate with an API key and its signing secret (SYNHEART_API_KEY and SYNHEART_SIGNING_SECRET), and need a plan that includes cloud chat (see synheart usage). Personas use your sign-in. Without a terminal, or with —json or —no-repl, running synheart syni prints this help instead. Pass —org, —tenant or —project (or the matching SYNHEART_*_ID variables) to choose the scope. Usage
Flags Subcommands
  • synheart syni chat: Send a message to Syni
  • synheart syni personas: List Syni personas
  • synheart syni sessions: Inspect Syni chat sessions
  • synheart syni version: Show installed syni-spec and syni-runtime versions
Examples

synheart syni chat

Send a message to Syni Sends a message to Syni in the cloud and prints the reply. With a message it runs once and exits; with none, in a terminal, it opens an interactive chat. Pass a persona ID first to talk to a specific persona, and —session to continue an earlier conversation. Use —no-repl to require a message. Chat runs as your app, so it authenticates with an API key and its signing secret from the Synheart console, not with synheart login. Set them in SYNHEART_API_KEY and SYNHEART_SIGNING_SECRET, or pass —api-key and —signing-secret-file. Entered in the TUI’s chat, they can be saved to the system keyring for later runs. The key needs the inference:read scope. Needs: an API key and signing secret, a plan that includes cloud chat, and network access. With —json it prints the reply as an object. Usage
Flags Examples
JSON output: supported. Add --json (or --format json) to print a machine-readable body.

synheart syni personas

List Syni personas Lists the personas you can chat with, each with its ID. Use an ID with synheart syni chat <persona>. Needs: you are signed in, network access and a project ID (—project, SYNHEART_PROJECT_ID, or platform.project in .synheart/config.yaml). With —json it prints the list. Usage
Subcommands
  • synheart syni personas show: Show one Syni persona
Examples
JSON output: supported. Add --json (or --format json) to print a machine-readable body.

synheart syni personas show

Show one Syni persona Prints the details of the persona with the given ID. Needs you to be signed in and network access. With —json it prints the persona as an object. Usage
Examples
JSON output: supported. Add --json (or --format json) to print a machine-readable body.

synheart syni sessions

Inspect Syni chat sessions Work with your Syni chat sessions. Use synheart syni sessions show to read one, and pass its ID to synheart syni chat —session to continue it. Usage
Subcommands
  • synheart syni sessions show: Show a Syni session and its messages
Examples

synheart syni sessions show

Show a Syni session and its messages Prints a chat session and its messages. Needs the API key and signing secret chat uses (see synheart syni chat —help) and network access. With —json it prints the session as an object. Usage
Examples
JSON output: supported. Add --json (or --format json) to print a machine-readable body.

synheart syni version

Show installed syni-spec and syni-runtime versions Prints the versions of the syni-spec and syni-runtime packages installed in the current project. It reads the vendored packages, or the pins in synheart.lock when they are not vendored yet; “source” in the JSON says which. Reads local files only, so it needs no login and no network. Usage
Examples
JSON output: supported. Add --json (or --format json) to print a machine-readable body.