Skip to content

Commit 30a3b0a

Browse files
DarkaMaulclaude
andcommitted
Add devc sync to README
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 78af7fe commit 30a3b0a

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,10 +125,24 @@ devc shell Open zsh shell in container
125125
devc exec CMD Execute command inside the container
126126
devc upgrade Upgrade Claude Code in the container
127127
devc mount SRC DST Add a bind mount (host → container)
128+
devc sync [NAME] Sync Claude Code sessions from devcontainers to host
128129
devc template DIR Copy devcontainer files to directory
129130
devc self-install Install devc to ~/.local/bin
130131
```
131132

133+
## Session Sync for `/insights`
134+
135+
Claude Code's `/insights` command analyzes your session history, but it only reads from `~/.claude/projects/` on the host. Sessions inside devcontainer volumes are invisible to it.
136+
137+
`devc sync` copies session logs from all devcontainers (running and stopped) to the host so `/insights` can include them:
138+
139+
```bash
140+
devc sync # Sync all devcontainers
141+
devc sync crypto # Filter by project name (substring match)
142+
```
143+
144+
Devcontainers are auto-discovered via Docker labels — no need to know container names or IDs. The sync is incremental, so it's safe to run repeatedly.
145+
132146
## File Sharing
133147

134148
### VS Code / Cursor

0 commit comments

Comments
 (0)