Skip to content

Make Codex and Claude Code subscriptions go further: a local model router that gives routine agent work to economical models and keeps your strongest model for the hard parts.

301 B
Raw Blame
#![cfg(unix)]

use std::os::unix::fs::PermissionsExt;

pub fn private_tempdir() -> tempfile::TempDir {
    let directory = tempfile::tempdir().expect("temp dir");
    std::fs::set_permissions(directory.path(), std::fs::Permissions::from_mode(0o700))
        .expect("chmod temp dir");
    directory
}