# TIL: One escape sequence makes my terminal follow my AI agent into a worktree

> Source: <https://davidpoblador.com/blog/til-one-escape-sequence-makes-my-terminal-follow-my-ai-agent-into-a-worktree.html>
> Published: 2026-06-30 10:29:10+00:00

The thing that made me grin today: I tell [Claude Code](https://claude.com/claude-code) to *“work in a * the agent jumps into a fresh checkout, and my

Escape sequences aren’t just colors. **OSC** — *Operating System Command* — is the family that sends side-channel messages to your terminal: window title, clipboard, and the one here, the **current directory** ([OSC 7](https://en.wikipedia.org/wiki/ANSI_escape_code#OSC_(Operating_System_Command)_sequences)):
