You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+14Lines changed: 14 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -125,10 +125,24 @@ devc shell Open zsh shell in container
125
125
devc exec CMD Execute command inside the container
126
126
devc upgrade Upgrade Claude Code in the container
127
127
devc mount SRC DST Add a bind mount (host → container)
128
+
devc sync [NAME] Sync Claude Code sessions from devcontainers to host
128
129
devc template DIR Copy devcontainer files to directory
129
130
devc self-install Install devc to ~/.local/bin
130
131
```
131
132
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.
0 commit comments