Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Claudiu is a native desktop app, written in Rust with [GPUI](https://gpui.rs), t

## What it does

Each session is your own `claude` process in a real pseudo-terminal, so Claude Code's keys, mouse and paste work unchanged. Claudiu has no API keys and never calls the Anthropic API. Sign-in stays with Claude Code. The first launch opens a setup window that checks for `claude` (required) and `gh` (optional), links to their install pages and installs nothing. Settings has a Check setup button to open it again. A sidebar lists your projects and sessions. Ended sessions resume through `claude --resume`, and sessions that were running come back at the next start.
Each session is your own `claude` process in a real pseudo-terminal, so Claude Code's keys, mouse and paste work unchanged. Claudiu has no API keys and never calls the Anthropic API. Sign-in stays with Claude Code. The first launch opens a setup window that checks for `claude` (required) and `gh` (optional), links to their install pages and installs nothing. It also has an optional switch that turns off six Claude Code features that add tokens to every request and that coding rarely uses, such as Artifacts and bundled skills. Settings → Claude Code tools shows each switch as high, medium or low savings. Settings has a Check setup button to open it again. A sidebar lists your projects and sessions. Ended sessions resume through `claude --resume`, and sessions that were running come back at the next start.

Around the terminal, Claudiu adds an editor mode (Ctrl+Shift+E) with files, tabs, search, Git change marks and language-server diagnostics, definitions and completion. It also adds usage and context meters, a GitHub pane for issues and pull requests through your `gh` login, defaults for the model, effort and permission mode of new sessions, and extra Claude accounts that share one configuration. When a reply needs a table, chart or diagram, Claude draws it as a card inside the terminal, under the tool call, and the card scrolls with the transcript. Cards can hold buttons that send a message for you, collapsible sections, tabs and charts, and they come back when you reopen a session. A session can move between git worktrees the way it switches branches, so several agents work on separate branches at once: the worktree button in the top bar switches the shown session into another worktree, or into a new one that Claudiu makes on a branch you name, and its conversation continues there (a session that has no conversation yet starts over in the new folder). Claude can switch the session itself with the `switch_worktree` tool, after you approve it and once its turn ends. In the menu, the hover x removes a worktree, the branch button's x deletes a local branch after telling you which commits would be lost, and ending the last session in a worktree offers to remove it. Claudiu keeps the worktrees it makes in its own data folder, outside your repositories, so they never show up in `git status`; Settings has a Worktrees page that lists them to show in the file manager or remove. Settings lists the rest.

Expand Down
7 changes: 6 additions & 1 deletion src/app/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,10 @@ pub enum Modal {
trimmed: Vec<crate::claude::trim::Trim>,
/// Claudiu tools turned off (Claudiu tools page).
claudiu_off: Vec<crate::claude::mcp::Feature>,
/// Skills to turn off, separated by commas (Claude Code tools page).
skills_field: Entity<InputState>,
/// Settings found at open time that make Claude Code cost more (Claude Code tools page).
costly: Vec<crate::claude::costly::Finding>,
/// Focus of the category list, which has the keyboard when the dialog opens.
list_focus: FocusHandle,
},
Expand Down Expand Up @@ -793,10 +797,11 @@ impl Workspace {
let claude = self.modal_input(&claude_t, &claude_hint, window, cx);
let model = self.modal_input(defaults.model.as_deref().unwrap_or_default(), "Claude Code default", window, cx);
let shell = self.modal_input(&shell_t, &platform::default_shell(None).0, window, cx);
let skills_field = self.modal_input(&self.store.data.settings.limits.text(), "none, e.g. dataviz, claude-api", window, cx);
let list_focus = cx.focus_handle();
window.focus(&list_focus, cx);
self.set_settings_page(self.settings_page, cx);
self.modal = Some(Modal::Settings { shell, claude, model, effort: defaults.effort, permission: defaults.permission_mode, updates, chrome, scale: crate::panels::scale::percent(), trimmed: self.store.data.settings.trimmed_tools.clone(), claudiu_off: self.store.data.settings.claudiu_tools_off.clone(), list_focus });
self.modal = Some(Modal::Settings { shell, claude, model, effort: defaults.effort, permission: defaults.permission_mode, updates, chrome, scale: crate::panels::scale::percent(), trimmed: self.store.data.settings.trimmed_tools.clone(), claudiu_off: self.store.data.settings.claudiu_tools_off.clone(), skills_field, costly: claude::costly::scan(), list_focus });
}
Act::PickEffort(choice) => {
if let Some(Modal::Settings { effort, .. }) = self.modal.as_mut() {
Expand Down
17 changes: 11 additions & 6 deletions src/app/modal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ impl Workspace {
}
}
}
Some(Modal::Settings { shell, claude, model, effort, permission, updates, chrome, scale, trimmed, claudiu_off, list_focus }) => {
Some(Modal::Settings { shell, claude, model, effort, permission, updates, chrome, scale, trimmed, claudiu_off, skills_field, costly, list_focus }) => {
let clean = |s: &str| s.trim().trim_matches('"').to_string();
let (shell_t, claude_t) = (clean(shell.read(cx).value().as_ref()), clean(claude.read(cx).value().as_ref()));
let model_name = claude::defaults::parse_model(model.read(cx).value().as_ref());
Expand All @@ -118,10 +118,12 @@ impl Workspace {
.find(|(_, _, t)| !t.is_empty() && platform::resolve_program(t).is_none())
.map(|(what, field, t)| (SettingsPage::General, field.clone(), format!("{what}: “{t}” is not a file or a program on PATH")));
let bad_model = model_name.is_err().then(|| (SettingsPage::Sessions, model.clone(), "Use a model alias or id (letters, digits, . _ -).".to_string()));
if let Some((page, field, msg)) = paths.or(bad_model) {
let limits = claude::trim::Limits::parse(skills_field.read(cx).value().as_ref());
let bad_limits = limits.as_ref().err().map(|why| (SettingsPage::ClaudeTools, skills_field.clone(), why.clone()));
if let Some((page, field, msg)) = paths.or(bad_model).or(bad_limits) {
self.settings_page = page;
field.update(cx, |s, cx| s.focus(window, cx));
self.modal = Some(Modal::Settings { shell, claude, model, effort, permission, updates, chrome, scale, trimmed, claudiu_off, list_focus });
self.modal = Some(Modal::Settings { shell, claude, model, effort, permission, updates, chrome, scale, trimmed, claudiu_off, skills_field, costly, list_focus });
self.toast(msg, true, cx);
return;
}
Expand All @@ -141,20 +143,23 @@ impl Workspace {
// When that fails the old trims stay, so what the page shows is what Claude Code has.
let mut trim_error = None;
let mut trimmed = trimmed;
if s.trimmed_tools != trimmed {
let mut limits = limits.unwrap_or_default();
if s.trimmed_tools != trimmed || s.limits != limits {
let written = claude::claude_home()
.ok_or_else(|| std::io::Error::other("Claude Code's folder was not found"))
.and_then(|home| claude::trim::write_global(&home.join("settings.json"), &trimmed, &s.applied_trims));
.and_then(|home| claude::trim::write_global(&home.join("settings.json"), &trimmed, &limits, &s.applied_trims));
match written {
Ok(owned) => s.applied_trims = owned,
Err(e) => {
trim_error = Some(e);
trimmed = s.trimmed_tools.clone();
limits = s.limits.clone();
}
}
}
let tools_changed = s.trimmed_tools != trimmed || s.claudiu_tools_off != claudiu_off;
let tools_changed = s.trimmed_tools != trimmed || s.limits != limits || s.claudiu_tools_off != claudiu_off;
s.trimmed_tools = trimmed;
s.limits = limits;
s.claudiu_tools_off = claudiu_off;
crate::panels::scale::set(scale);
self.shell = platform::default_shell(s.shell.as_deref());
Expand Down
3 changes: 2 additions & 1 deletion src/app/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,12 @@ impl Workspace {
/// Keys for the open Settings dialog, seen before the focused control. Up and Down change the page and Enter saves
/// only while the category list has focus; Tab and Shift+Tab cycle the list and the current page's text fields.
pub(crate) fn settings_key(&mut self, ev: &KeyDownEvent, window: &mut Window, cx: &mut Context<Self>) {
let Some(Modal::Settings { shell, claude, model, list_focus, .. }) = &self.modal else { return };
let Some(Modal::Settings { shell, claude, model, skills_field, list_focus, .. }) = &self.modal else { return };
let list_focus = list_focus.clone();
let fields = match self.settings_page {
SettingsPage::General => vec![shell.clone(), claude.clone()],
SettingsPage::Sessions => vec![model.clone()],
SettingsPage::ClaudeTools => vec![skills_field.clone()],
_ => Vec::new(),
};
let on_list = list_focus.is_focused(window);
Expand Down
Loading
Loading