[{"data":1,"prerenderedAt":639,"buildId":640},["ShallowReactive",2],{"docs:\u002Fguide\u002Fsync":3},{"page":4,"section":16,"document":17,"credits":10,"prev":631,"next":635},{"id":5,"path":6,"file":7,"title":8,"sourceTitle":8,"description":9,"tagline":9,"eyebrow":10,"credits":10,"keywords":11,"icon":12,"layout":13,"sidebar":14,"toc":14,"kind":10,"group":10,"navigation":14,"order":15},"sync","\u002Fguide\u002Fsync","guide\u002Fsync.md","Syncing","What a fleetrc sync does, from fetching your sources and linking skills into agent folders to holding your edits and writing a report.",null,[],"i-lucide-refresh-cw","article",true,4,"guide",{"nodes":18,"toc":620},[19,32,53,70,78,81,123,137,143,146,160,173,180,186,213,295,314,320,330,333,342,356,386,402,408,415,424,438,444,459,465,476,508,517,523,533,566,576,582,597],[20,21,22,23,27,28,31],"p",{},"A sync makes this machine match the manifest. ",[24,25,26],"code",{},"fleetrc sync"," is the default command, so ",[24,29,30],{},"fleetrc"," alone does the same.",[33,34,38],"pre",{"language":35,"frame":36,"class":37,"wrap":14},"sh","terminal","shiki shiki-themes github-light-default github-dark-default dark:github-dark-default",[24,39,41],{"class":40},"language-sh",[42,43,46,49],"span",{"class":44,"style":45},"line","display: inline",[42,47,30],{"style":48},"color:#953800;--shiki-dark:#FFA657",[42,50,52],{"style":51},"color:#0A3069;--shiki-dark:#A5D6FF"," sync",[33,54,56],{"language":55,"class":37,"wrap":14},"txt",[24,57,59,64,65],{"class":58},"language-txt",[42,60,61],{"class":44,"style":45},[42,62,63],{},"fleetrc: linked 12 skills into 2 folders","\n",[42,66,67],{"class":44,"style":45},[42,68,69],{},"  + added: nuxt, nuxt-ui",[71,72,77],"h2",{"id":73,"anchor":74},"what-happens",{"label":75,"icon":76},"Section titled \"What happens\"","#","What happens",[20,79,80],{},"A sync runs these steps in order:",[82,83,84,88,95,106,113,116],"ol",{},[85,86,87],"li",{},"Takes the sync lock.",[85,89,90,91,94],{},"Loads the manifest named in ",[24,92,93],{},"config.json",". On a machine that took its manifest from the tailnet policy, it asks the policy first.",[85,96,97,98,101,102,105],{},"Fetches each source. Git, npm and index sources go into the state folder. A ",[24,99,100],{},"local"," source, and a git source with a ",[24,103,104],{},"path",", are linked where they are.",[85,107,108,109,112],{},"Picks one skill for each name. The first source in the manifest wins, and the report lists the others as ",[24,110,111],{},"shadowed",".",[85,114,115],{},"Links each skill into every agent's folder, and unlinks skills the manifest dropped.",[85,117,118,119,122],{},"Saves state, runs the manifest's ",[24,120,121],{},"hooks",", and writes the report.",[20,124,125,128,129,132,133,136],{},[24,126,127],{},"--offline"," skips the fetch and links what is on disk. ",[24,130,131],{},"--dry-run"," prints what would change and writes nothing. ",[24,134,135],{},"sync \u003Csource>"," fetches one source and links the rest from disk.",[71,138,142],{"id":139,"anchor":140},"link-or-copy",{"label":141,"icon":76},"Section titled \"Link or copy\"","Link or copy",[20,144,145],{},"By default each agent folder holds a link to the skill. Edit the skill anywhere and every agent sees it. On Windows the link is a junction.",[33,147,148],{"language":35,"frame":36,"class":37,"wrap":14},[24,149,150],{"class":40},[42,151,152,154,156],{"class":44,"style":45},[42,153,30],{"style":48},[42,155,52],{"style":51},[42,157,159],{"style":158},"color:#0550AE;--shiki-dark:#79C0FF"," --copy",[20,161,162,165,166,168,169,172],{},[24,163,164],{},"--copy"," puts a copy of each skill folder in the agent folder instead, for a tool that does not follow links. ",[24,167,93],{}," remembers the choice, so later syncs copy too, until you run ",[24,170,171],{},"fleetrc sync --no-copy",". A dry run does not save it. If a Windows junction fails, fleetrc copies that folder.",[20,174,175,176,179],{},"Each agent folder keeps a ",[24,177,178],{},".fleetrc-manifest.json"," that lists what fleetrc linked there. The record tells fleetrc which entries are its own.",[71,181,185],{"id":182,"anchor":183},"state-and-lock",{"label":184,"icon":76},"Section titled \"State and lock\"","State and lock",[20,187,188,189,192,193,192,196,199,200,202,203,206,207,212],{},"The state folder is ",[24,190,191],{},"~\u002F.local\u002Fstate\u002Ffleetrc",", or ",[24,194,195],{},"$XDG_STATE_HOME\u002Ffleetrc",[24,197,198],{},"%LOCALAPPDATA%\\fleetrc"," on Windows. ",[24,201,93],{}," is in ",[24,204,205],{},"~\u002F.config\u002Ffleetrc",". ",[208,209,211],"a",{"href":210},"\u002Freference\u002Fcli#environment-variables","Environment variables"," lists what moves them.",[214,215,216,229],"table",{},[217,218,219],"thead",{},[220,221,222,226],"tr",{},[223,224,225],"th",{},"Path",[223,227,228],{},"Holds",[230,231,232,243,265,275,285],"tbody",{},[220,233,234,240],{},[235,236,237],"td",{},[24,238,239],{},"state.json",[235,241,242],{},"What the last sync linked, and each skill's install record",[220,244,245,250],{},[235,246,247],{},[24,248,249],{},"store\u002F\u003Cid>\u002F",[235,251,252,253,256,257,260,261,264],{},"One folder per fetched source, with ",[24,254,255],{},"live",", ",[24,258,259],{},"base"," and ",[24,262,263],{},"upstream"," copies of its skills",[220,266,267,272],{},[235,268,269],{},[24,270,271],{},"last-run.json",[235,273,274],{},"The report of the last sync",[220,276,277,282],{},[235,278,279],{},[24,280,281],{},"sync.lock",[235,283,284],{},"The process that is syncing now",[220,286,287,292],{},[235,288,289],{},[24,290,291],{},"backup\u002F",[235,293,294],{},"Skills a sync moved aside with your edits in them",[20,296,297,298,206,301,256,304,256,307,260,310,313],{},"Two syncs never run at once. A second one stops with ",[24,299,300],{},"another fleetrc sync is running",[24,302,303],{},"merge",[24,305,306],{},"fork",[24,308,309],{},"adopt",[24,311,312],{},"remove"," change the same files, so they wait up to 10 seconds for a running sync, then ask you to try again. A lock left by a killed sync is moved aside.",[71,315,319],{"id":316,"anchor":317},"local-edits",{"label":318,"icon":76},"Section titled \"Local edits\"","Local edits",[20,321,322,323,326,327,329],{},"You can edit a vendored skill in place: the agent folder leads into ",[24,324,325],{},"store\u002F\u003Cid>\u002Flive",". fleetrc keeps ",[24,328,259],{},", the version you installed, and compares against it.",[20,331,332],{},"An edited skill is held. When upstream changes, the new version waits and the report says so:",[33,334,335],{"language":55,"class":37,"wrap":14},[24,336,337],{"class":58},[42,338,339],{"class":44,"style":45},[42,340,341],{},"  edited tool (vendor): SKILL.md; upstream changed too, see `fleetrc diff tool` or `fleetrc merge tool`",[20,343,344,347,348,351,352,355],{},[24,345,346],{},"fleetrc diff tool"," shows your edits and the pending update. ",[24,349,350],{},"fleetrc merge tool"," does a three-way merge. When both sides changed the same lines, it writes conflict markers into the skill and exits ",[24,353,354],{},"1",":",[33,357,359],{"language":55,"filename":358,"class":37,"wrap":14},"skills\u002Ftool\u002FSKILL.md",[24,360,361,64,366,64,371,64,376,64,381],{"class":58},[42,362,363],{"class":44,"style":45},[42,364,365],{},"\u003C\u003C\u003C\u003C\u003C\u003C\u003C local",[42,367,368],{"class":44,"style":45},[42,369,370],{},"TWO (mine)",[42,372,373],{"class":44,"style":45},[42,374,375],{},"=======",[42,377,378],{"class":44,"style":45},[42,379,380],{},"TWO (theirs)",[42,382,383],{"class":44,"style":45},[42,384,385],{},">>>>>>> upstream",[20,387,388,389,391,392,260,395,398,399,401],{},"Resolve the markers by hand and run ",[24,390,303],{}," again. Until then the skill stays held, and ",[24,393,394],{},"status",[24,396,397],{},"doctor"," name it. In ",[24,400,164],{}," mode, an edit made in the agent folder counts the same way.",[71,403,407],{"id":404,"anchor":405},"review-updates",{"label":406,"icon":76},"Section titled \"Review updates\"","Review updates",[20,409,410,411,414],{},"Set ",[24,412,413],{},"\"update\": \"review\""," on a source to read changes before they land. A sync still fetches it and applies nothing:",[33,416,417],{"language":55,"class":37,"wrap":14},[24,418,419],{"class":58},[42,420,421],{"class":44,"style":45},[42,422,423],{},"  review ag-grid: updates for ag-grid; see `fleetrc diff \u003Cskill>`, apply with `fleetrc update ag-grid`",[20,425,426,429,430,433,434,437],{},[24,427,428],{},"fleetrc diff"," shows every waiting update. ",[24,431,432],{},"fleetrc update ag-grid"," applies them, and ",[24,435,436],{},"fleetrc add --review"," sets the key when you add a source.",[71,439,443],{"id":440,"anchor":441},"forks",{"label":442,"icon":76},"Section titled \"Forks\"","Forks",[20,445,446,449,450,452,453,260,456,458],{},[24,447,448],{},"fleetrc fork \u003Cskill>"," copies a vendored skill into your own repository and records the upstream commit. After that, a sync reports a pending ",[24,451,306],{}," update when upstream changes the skill. ",[24,454,455],{},"diff",[24,457,303],{}," work as they do for an edited skill.",[71,460,464],{"id":461,"anchor":462},"check-the-state",{"label":463,"icon":76},"Section titled \"Check the state\"","Check the state",[33,466,467],{"language":35,"frame":36,"class":37,"wrap":14},[24,468,469],{"class":40},[42,470,471,473],{"class":44,"style":45},[42,472,30],{"style":48},[42,474,475],{"style":51}," status",[33,477,478],{"language":55,"class":37,"wrap":14},[24,479,480,64,485,64,490,64,494,64,499,64,503],{"class":58},[42,481,482],{"class":44,"style":45},[42,483,484],{},"manifest: me\u002Fskills\u002F\u002F.fleetrc\u002Fmanifest.json",[42,486,487],{"class":44,"style":45},[42,488,489],{},"last run: 2026-12-04T09:12:41.208Z",[42,491,492],{"class":44,"style":45},[42,493,63],{},[42,495,496],{"class":44,"style":45},[42,497,498],{},"  edited tool (vendor): SKILL.md",[42,500,501],{"class":44,"style":45},[42,502,423],{},[42,504,505],{"class":44,"style":45},[42,506,507],{},"syncs start from: the session hooks of Claude Code",[20,509,510,512,513,516],{},[24,511,394],{}," reads the last report and the machine. It also lists forks that upstream changed, merge conflicts, the timer, and Codex sessions that started before the last skill change. ",[24,514,515],{},"fleetrc list"," prints each skill with its source and path. Neither needs the network.",[71,518,522],{"id":519,"anchor":520},"report",{"label":521,"icon":76},"Section titled \"Report\"","Report",[20,524,525,526,528,529,532],{},"Every sync except a dry run writes ",[24,527,271],{}," and prints the same report as text. ",[24,530,531],{},"--json"," prints it as JSON instead. After the file is written, two optional steps run:",[214,534,535,544],{},[217,536,537],{},[220,538,539,542],{},[223,540,541],{},"Manifest key",[223,543,77],{},[230,545,546,556],{},[220,547,548,553],{},[235,549,550],{},[24,551,552],{},"report.run",[235,554,555],{},"A shell command that gets the report JSON on stdin. It stops after 2 minutes.",[220,557,558,563],{},[235,559,560],{},[24,561,562],{},"hub",[235,564,565],{},"fleetrc POSTs the report to this URL.",[20,567,568,569,572,573,575],{},"If either fails, the sync still succeeds. The report gains a warning, such as ",[24,570,571],{},"report.run exited with 1",", and ",[24,574,271],{}," is written again with it.",[71,577,581],{"id":578,"anchor":579},"when-a-sync-fails",{"label":580,"icon":76},"Section titled \"When a sync fails\"","When a sync fails",[20,583,584,585,588,589,592,593,596],{},"A source that fails to fetch keeps its last good copy. The report warns ",[24,586,587],{},"kept the last good copy"," and records the failure in ",[24,590,591],{},"errors",". A manifest in ",[24,594,595],{},"extends"," that does not load keeps the skills it gave last time.",[20,598,599,600,602,603,572,605,607,608,611,612,615,616,112],{},"A failing manifest ",[24,601,121],{}," command adds an error as well. Any error makes the sync exit ",[24,604,354],{},[24,606,394],{}," shows ",[24,609,610],{},"(with errors)"," after the last run time. A usage mistake exits ",[24,613,614],{},"2",". See ",[208,617,619],{"href":618},"\u002Freference\u002Fcli#exit-codes","Command line",[621,623,624,625,626,627,628,629,630],{"id":73,"depth":622,"text":77},2,{"id":139,"depth":622,"text":142},{"id":182,"depth":622,"text":185},{"id":316,"depth":622,"text":319},{"id":404,"depth":622,"text":407},{"id":440,"depth":622,"text":443},{"id":461,"depth":622,"text":464},{"id":519,"depth":622,"text":522},{"id":578,"depth":622,"text":581},{"path":632,"title":633,"description":634},"\u002Fguide\u002Fmanifest","The manifest","Write .fleetrc\u002Fmanifest.json to list your skill sources, inherit a team manifest, pick agents, and sync instruction files, subagents and commands.",{"path":636,"title":637,"description":638},"\u002Fguide\u002Fhooks-and-mcp","Hooks and MCP servers","Start syncs from agent sessions, sync MCP servers and agent hook files into each agent, and run your own commands after a sync.",1796387377634,"d132e1fa-7946-4d59-bf8e-899a35cb66e2"]