Skip to content

dirmacs/dlaunch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

dlaunch

Persistent Claude CLI session manager — one session per project, zero context loss.

crates.io MIT License Rust


dlaunch is a lightweight Rust CLI that wraps claude code --dangerously-skip-permissions with per-project session persistence. Every directory gets its own Claude session stored in ~/.claude_session_<project>. Optionally run inside tmux so sessions survive terminal crashes and reboots.

A Rust rewrite of claunch, built on the DIRMACS toolchain alongside dstack, dwasm, and friends.

Install

cargo install dlaunch
# From source
git clone https://github.com/dirmacs/dlaunch && cd dlaunch
cargo install --path .

Usage

# Start or resume the Claude session for the current directory
dlaunch

# Same, but inside a persistent tmux window
dlaunch --tmux

# After Claude starts, save the session ID it prints
dlaunch save sess-abc123def456

# List all sessions across all projects
dlaunch list

# Remove session files whose tmux window is gone
dlaunch clean

# Inspect or delete the current project's session
dlaunch session show
dlaunch session delete

How it works

Scenario Behaviour
No session file exists Starts a fresh claude code --dangerously-skip-permissions
Session file found (sess-…) Resumes with claude code --resume <id> --dangerously-skip-permissions
--tmux flag Wraps the above in tmux new-session -A -s claude-<project>
tmux not installed Auto-installs via brew (macOS) or apt (Debian/Ubuntu)

Session IDs are stored in ~/.claude_session_<project> — one plain-text file per directory name.

First run

On the first invocation dlaunch shows a one-time security notice about --dangerously-skip-permissions. Acknowledging it writes ~/.dlaunch_warning_acknowledged so the prompt never repeats.

Comparison with claunch

claunch dlaunch
Language bash Rust
Explicit save command no (manual echo) dlaunch save sess-…
Session inspection no dlaunch session show
Session deletion no dlaunch session delete
Install curl pipe bash cargo install dlaunch
Validation errors silent descriptive

Built by

DIRMACS — see also dstack, dwasm, ares, eruka.

About

Persistent Claude CLI session manager — per-project sessions with optional tmux

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages