Overleaf Sync Now — Development skill for Claude Code
Stops Claude Code and Codex CLI from silently overwriting your Overleaf web edits with a stale local Dropbox copy.
How to install Overleaf Sync Now
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open hanlulong/overleaf-sync-now and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Overleaf Sync Now does
Stops Claude Code and Codex CLI from silently overwriting your Overleaf web edits with a stale local Dropbox copy. PreToolUse hook + CLI + agent skill.
Alternatives in Development
- Pi Reserved Keybindings — Extensions cannot override these shortcuts — they are silently skipped by registerShortcut() 526 ★
- Install Global — Install global Claude config — merges into existing ~/.claude/ without overwriting 335 ★
- HERO Anti OverDefense — HERO = Hashing · Edge cases · Rubrics · Overbuild — the four shapes coding agents over-defend in 333 ★
README
overleaf-sync-now
**Stops Claude Code and Codex CLI from silently overwriting your Overleaf web edits with a stale local Dropbox copy.**
[](https://github.com/hanlulong/overleaf-sync-now/actions/workflows/ci.yml) [](LICENSE) [](https://www.python.org/) [](https://github.com/astral-sh/uv)
The failure mode
You write a paper in Overleaf with Dropbox sync enabled. You edit on overleaf.com from another device, then come back to your laptop and ask Claude Code (or Codex CLI) to keep working on the paper. The AI agent reads the local `.tex` file — but Overleaf only pushes web edits to Dropbox **every 10–20 minutes**, so the local copy is stale. The AI proceeds to edit the stale file and saves it back, **silently overwriting your fresh web edits**. The tool call reports success. Paragraphs you wrote on the web vanish.
`overleaf-sync-now` is an **agent skill** (plus a CLI and a Claude Code PreToolUse hook) that closes this gap. Before every AI Read / Edit / Write of a `.tex` / `.bib` / `.cls` / `.sty` / `.bst` file under `Apps/Overleaf/`, it probes Overleaf's version history and pulls down anything new — without changing your existing Dropbox setup, so cross-device sync still works exactly as before.
Is this for you?
- ✅ You write papers in Overleaf Premium with Dropbox sync enabled (
Dropbox/Apps/Overleaf//) - ✅ You edit
.texfiles locally with Claude Code or Codex CLI - ✅ You also edit on overleaf.com sometimes — from another device, in a browser, or with collaborators
If you only ever edit locally *or* only ever edit on the web, your local copy is never stale and you don't need this. Same if you don't use Dropbox or AI agents.
Install
Related Skills
Claude Code Permissions Hook
A PreToolUse hook for Claude Code for more granular permission controls
Pursue
Hand Kimi an objective to pursue AUTONOMOUSLY across multiple turns (experimental goal mode), bounded by a har
Freeze
Freeze files matching a pattern — blocks Edit/Write to matched files via a session-scoped PreToolUse hook. Use
Narthex
Prompt-injection defenses for Claude Code. A PreToolUse Bash hook blocks compositional credential-exfiltration
Agent Approval Gate
PreToolUse hook for Claude Code: blocks agent spending, account creation and fund moves, queues them for human
Verify Gate
Manage the verify-gate skill — install/uninstall the PreToolUse hook, add custom claim rules, or check status.
Related Agents
Clickup Sync
Pushes a local Markdown file to a ClickUp Doc page, overwriting it. Receives a file path, workspace ID, doc ID
Config Fixer
Applies ONE approved Claude Code config repair from the claude-checkup plan — mechanical edits like deleting a
Wd Researcher
Use this agent for time-boxed investigations that feed specs - provider TOS and rate-limit realities, Claude C