diff --git a/rust/.claude/sessions/session-1775009769569.json b/rust/.claude/sessions/session-1775009769569.json new file mode 100644 index 0000000..3d27efd --- /dev/null +++ b/rust/.claude/sessions/session-1775009769569.json @@ -0,0 +1 @@ +{"messages":[{"blocks":[{"text":"hello","type":"text"}],"role":"user"},{"blocks":[{"text":"\n\nHello! 👋 How can I help you today? I see you're working in a Rust project (`rusty-claude-cli`) with some changes to the argument parsing in `main.rs` — specifically loading the model from config with a fallback to a default. \n\nWhat would you like to work on?","type":"text"}],"role":"assistant","usage":{"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"input_tokens":324,"output_tokens":73}}],"version":1} \ No newline at end of file diff --git a/rust/.claude/sessions/session-1775009841982.json b/rust/.claude/sessions/session-1775009841982.json new file mode 100644 index 0000000..2031fba --- /dev/null +++ b/rust/.claude/sessions/session-1775009841982.json @@ -0,0 +1 @@ +{"messages":[{"blocks":[{"text":"--dangerously-skip-permissions","type":"text"}],"role":"user"},{"blocks":[{"text":"\n\nI see you're working in the `rusty-claude-cli` project. The git diff shows a simplification of the `max_tokens_for_model` function - collapsing sonnet/haiku/default cases into a single `else` branch returning 64,000.\n\nHow can I help you today? What would you like to work on?","type":"text"}],"role":"assistant","usage":{"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"input_tokens":2126,"output_tokens":81}}],"version":1} \ No newline at end of file diff --git a/rust/.claude/sessions/session-1775009869734.json b/rust/.claude/sessions/session-1775009869734.json new file mode 100644 index 0000000..d45e491 --- /dev/null +++ b/rust/.claude/sessions/session-1775009869734.json @@ -0,0 +1 @@ +{"messages":[],"version":1} \ No newline at end of file diff --git a/rust/crates/rusty-claude-cli/src/main.rs b/rust/crates/rusty-claude-cli/src/main.rs index b5a4e57..ce5a0e4 100644 --- a/rust/crates/rusty-claude-cli/src/main.rs +++ b/rust/crates/rusty-claude-cli/src/main.rs @@ -38,12 +38,8 @@ const DEFAULT_MODEL: &str = "claude-opus-4-6"; fn max_tokens_for_model(model: &str) -> u32 { if model.contains("opus") { 32_000 - } else if model.contains("sonnet") { - 64_000 - } else if model.contains("haiku") { - 64_000 } else { - 16_384 + 64_000 } } const DEFAULT_DATE: &str = "2026-03-31"; @@ -196,6 +192,10 @@ fn parse_args(args: &[String]) -> Result { permission_mode = parse_permission_mode_arg(&flag[18..])?; index += 1; } + "--dangerously-skip-permissions" => { + permission_mode = PermissionMode::DangerFullAccess; + index += 1; + } "--allowedTools" | "--allowed-tools" => { let value = args .get(index + 1) @@ -2348,6 +2348,7 @@ fn print_help_to(out: &mut impl Write) -> io::Result<()> { out, " --permission-mode MODE Set read-only, workspace-write, or danger-full-access" )?; + writeln!(out, " --dangerously-skip-permissions Skip all permission checks")?; writeln!(out, " --allowedTools TOOLS Restrict enabled tools (repeatable; comma-separated aliases supported)")?; writeln!( out,