dpeerlab

Dangerous Claude — Development skill for Claude Code

Development community

Run the Claude Code CLI on the lab HPC cluster inside a Singularity sandbox, with write access limited to the project folder and permission prompts skipped for autonomous agentic work.

How to install Dangerous Claude

This entry records only its repository, not the path inside it, so there is no exact command to give. Open dpeerlab/dangerous_claude and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Dangerous Claude does

Run the Claude Code CLI on the lab HPC cluster inside a Singularity sandbox, with write access limited to the project folder and permission prompts skipped for autonomous agentic work.

Alternatives in Development

README

dangerous_claude

Claude can easily go rogue and read or write files that have nothing to do with the project it's working on, which makes it risky to run with permission prompts skipped (`--dangerously-skip-permissions`). `dangerous_claude` runs Claude Code inside a Singularity container that restricts filesystem access at the system level, so even a rogue session stays contained to the project it was started in.

Installation

git clone https://github.com/dpeerlab/dangerous_claude.git
cd dangerous_claude
bash setup/build.sh

Launch

cd /abs/path/to/your/project
./dangerous_claude claude

Sandboxes the current directory — there's no work-dir argument, `cd` there first. First run in a project prompts for two settings and writes `.dangerous_claude.json`, e.g.:

{
  "always_use_dangerous_skip_permissions": true,
  "writeable_home": true,
  "extra_write_paths": ["/home/you/.some_tool_cache"]
}

See `docs/` for the full sandbox model and configuration reference, and `CHANGELOG.md` for what's new.