Security and environment safety are non-negotiable foundations of DevSet CLI.
- No Remote Telemetry or API Calls: The detection and planning process runs 100% locally.
- No Cloud Inference: No dependencies on OpenAI, Anthropic, Gemini, or any LLM provider.
- Offline Capable: Analysis works fully disconnected from the internet. Package installation only interacts with official package registries (e.g. npmjs, PyPI) as instructed by lockfiles.
- Argument Array Execution: DevSet never passes untrusted shell strings or performs string interpolation into shell commands (
execa(file, args[])). - No Unvetted Script Execution: DevSet never automatically executes arbitrary preinstall, postinstall, or arbitrary scripts declared in untrusted files during analysis.
- Cross-Platform Path Resolution: On Windows,
.cmdand.batwrappers (such asnpm.cmdormvnw.cmd) are resolved safely without invoking raw arbitrary command lines.
- No Secret Printing: DevSet scans
.envand.env.examplesolely to extract variable keys (KEY=). It never prints, logs, or transmits secret values. - Non-Destructive Environment Creation: Existing
.envfiles are never overwritten. - User Consent Required: If
.env.exampleexists and.envis absent,.envis created only with user confirmation.
- Symlink Protection: The file scanner does not blindly follow circular symbolic links.
- Directory Traversal Defense: All relative component paths are validated against
projectRootusingpath.resolveto prevent directory traversal attacks. - Bounded Resource Limits: Maximum scan depth (default 6 levels) and file count bounds (default 10,000 files) prevent resource exhaustion on large repositories.
- Non-Destructive Cleanup (
devset clean): Only targeted, generated files (devset.config.jsonand.venvdirectories) can be cleaned, and only after explicit interactive user confirmation. Source code and dependencies are never touched.