feat: consider exposing --bare flag for scripted -p calls (v2.1.81) #237

Closed
opened 2026-03-23 14:01:49 -07:00 by hikari · 1 comment
Owner

Context

Claude Code v2.1.81 introduced a --bare flag for scripted -p (print) calls. When used, it:

  • Skips hooks, LSP, plugin sync, and skill directory walks
  • Requires ANTHROPIC_API_KEY or an apiKeyHelper via --settings
  • Disables OAuth and keychain auth
  • Fully disables auto-memory

Why This Matters

Hikari Desktop may benefit from a "bare mode" option for lightweight, scripted interactions where the full hook/plugin stack isn't needed. This could be a useful power-user option in the config sidebar.

Tasks

  • Evaluate whether a "bare mode" toggle makes sense for Hikari Desktop's use case
  • If yes, add a toggle to src/lib/components/ConfigSidebar.svelte
  • Pass --bare flag through to the Claude Code invocation in WslBridge when enabled
  • Add tests for the new flag passthrough

References

  • Claude Code v2.1.81 changelog
  • src-tauri/src/wsl_bridge.rs
  • src/lib/components/ConfigSidebar.svelte

This issue was created with help from Hikari~ 🌸

## Context Claude Code v2.1.81 introduced a `--bare` flag for scripted `-p` (print) calls. When used, it: - Skips hooks, LSP, plugin sync, and skill directory walks - Requires `ANTHROPIC_API_KEY` or an `apiKeyHelper` via `--settings` - Disables OAuth and keychain auth - Fully disables auto-memory ## Why This Matters Hikari Desktop may benefit from a "bare mode" option for lightweight, scripted interactions where the full hook/plugin stack isn't needed. This could be a useful power-user option in the config sidebar. ## Tasks - [ ] Evaluate whether a "bare mode" toggle makes sense for Hikari Desktop's use case - [ ] If yes, add a toggle to `src/lib/components/ConfigSidebar.svelte` - [ ] Pass `--bare` flag through to the Claude Code invocation in `WslBridge` when enabled - [ ] Add tests for the new flag passthrough ## References - Claude Code v2.1.81 changelog - `src-tauri/src/wsl_bridge.rs` - `src/lib/components/ConfigSidebar.svelte` ✨ This issue was created with help from Hikari~ 🌸
Author
Owner

Resolved in PR #263. Added bare_mode: bool to ClaudeStartOptions and HikariConfig, wired --bare flag in wsl_bridge.rs for both native and WSL paths, added TypeScript interface field, config sidebar toggle, and wired through all start_claude invocations.

Resolved in PR #263. Added `bare_mode: bool` to `ClaudeStartOptions` and `HikariConfig`, wired `--bare` flag in `wsl_bridge.rs` for both native and WSL paths, added TypeScript interface field, config sidebar toggle, and wired through all `start_claude` invocations. ✨
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: nhcarrigan/hikari-desktop#237