deciduous: Command for Claude Code

.claude/commands/sync.md

sync is a command for Claude Code from notactuallytreyanastasio/deciduous. It costs 15 tokens per session (513 once invoked), scanned A, original, Apache-2.0.

A command for synchronizing a team's decision graph, a record of related decisions and their connections, through Git event files and a local database.

In plain words
What is it for?
Use it to pull decision events, check sync status, rebuild the graph, push changes, and periodically create a checkpoint.
Why use it?
It helps teammates pull in each other's decisions, rebuild their local graph, and share updates without losing event history.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

This is notactuallytreyanastasio/deciduous's own configuration. It tells Claude Code how to work on deciduous itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything deciduous configures →

Reuse

Borrowing it

Nothing to install: this file belongs to notactuallytreyanastasio/deciduous. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/notactuallytreyanastasio/deciduous/main/.claude/commands/sync.md
Clone the repo
git clone --depth 1 https://github.com/notactuallytreyanastasio/deciduous

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 sync

README.md
[![agentmods](https://agentmods.dev/badge/commands/notactuallytreyanastasio/deciduous/sync/github.svg)](https://agentmods.dev/commands/notactuallytreyanastasio/deciduous/sync)
Your own site
<a href="https://agentmods.dev/commands/notactuallytreyanastasio/deciduous/sync"><img src="https://agentmods.dev/badge/commands/notactuallytreyanastasio/deciduous/sync/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for sync

Your own site · 80×15
<a href="https://agentmods.dev/commands/notactuallytreyanastasio/deciduous/sync"><img src="https://agentmods.dev/badge/commands/notactuallytreyanastasio/deciduous/sync.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 15 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 513 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00015 $0.00513
Opus 5.5 $0.00006 $0.00205
Sonnet 5.5 $0.00003 $0.00103
Haiku 4.5 $0.00002 $0.00051

Measured 13d ago against content hash 85c2235806cd, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

sync 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 13d 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/commands/sync.md · 52 lines

What it actually says

Sync with the Graph Server

This project has a [remote] in .deciduous/config.toml. Its graph lives on a shared server, and .deciduous/deciduous.db is this machine's cache of it. There is no .deciduous/graph.json to pull, commit or merge, and deciduous sync is not the step here: CLI writes are queued in .deciduous/remote-log.jsonl and sent before each command exits, MCP tools write to the server directly.

Step 1: What differs?

deciduous remote status

Lists the writes waiting in the log, the ones the server refused, and every node, edge and document that differs between this copy and the server, each with the command that fixes it. Exits 1 when anything differs.

Step 2: Refresh

deciduous remote pull

Sends what is waiting, then refreshes the local cache from the server, deletions included.

Step 3: Send what is stuck

deciduous remote push                   # writes still waiting (the server was down)
deciduous remote push --seed            # rows only this copy has, such as history from before the remote
deciduous remote push --retry-rejected  # ops the server refused, once the cause is fixed

Linking across users

Local ids differ per machine. Refer to someone else's node by its change_id prefix (the CHANGE column in deciduous nodes) or by the server id an agent quotes:

deciduous link a1b2c3d4 42 -r "our action implements their goal"

Agent messages (deciduous board) are not part of the graph; with a [remote] they live on the server.

Quick Reference

Command What it does
deciduous remote status What differs, and the command that fixes each; exit 1 if anything
deciduous remote pull Send what is waiting, then refresh the local cache
deciduous remote push Send what is waiting in the log
deciduous nodes Shows the CHANGE prefix to use for cross-user links
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. 13d ago Changed · -20 lines · -3 tokens per session 85c2235806cd
  2. 1mo ago Changed bce80157cbec
  3. 1mo ago Changed · -1 tokens per session eaf274e8c6d0
  4. 2mo ago Changed · -25 lines · +7 tokens per session 333829b74912
  5. 2mo ago First seen · 97 lines · 12 tokens per session scan A e110c016f8f3

Subscribe to this mod's changes

sync is a command published in the GitHub repository notactuallytreyanastasio/deciduous (169 stars, last pushed 13d ago), licensed Apache-2.0. It adds 15 tokens to every session and 513 once invoked, about $0.0001 per session on Opus 5.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.

Related

sync compared with commands from other repositories

sync next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
syncnotactuallytreyanastasio/deciduousCommand16913d agoApache-2.0A15Claude Code
merge-conflict-analysisrjmurillo/ai-agentsCommand49yesterdayMITA0GitHub Copilot
release-notesOpenHands/extensionsCommand176yesterdayMITA44Claude Code
commitechoVic/blade-codeCommand18124d agoMITA8Claude Code
repo-audittractorjuice/arc-kitCommand2.3k2d agononeA29Claude Code
propsmill/infrahub-mcpCommand10yesterdayApache-2.0A18Claude Code
codex-reviewoalders/kitchen-sinkCommand53d agoMITA41Claude Code