feat: add global CLAUDE.md editor to config UI #262

Closed
opened 2026-04-13 10:30:58 -07:00 by hikari · 1 comment
Owner

Problem

The global ~/.claude/CLAUDE.md file is the primary way to give Claude Code persistent instructions, but there is currently no way to view or edit it from within Hikari Desktop. Users must open a separate editor, find the file manually, and restart their session for changes to take effect.

There is also no mechanism to tell Claude Code that it is permitted to edit this file — so even if Hikari wanted to help update it during a session, she cannot.

Proposed Solution

Add a dedicated editor section in the Config Sidebar (or as a separate panel) that:

  • Reads the contents of ~/.claude/CLAUDE.md on open (creating the file if it doesn't exist)
  • Provides a text editor (CodeMirror or a <textarea>) for editing the contents
  • Saves the file back to ~/.claude/CLAUDE.md on save
  • Shows a success/error toast on save

Tauri backend

Add a get_global_claude_md and save_global_claude_md command pair in Rust that reads/writes ~/.claude/CLAUDE.md using the home_dir path resolution (consistent with how we resolve other ~/.claude/ paths).

Frontend

  • Add a new "Global Instructions" section or tab in the Config Sidebar
  • Use a <textarea> (styled consistently) or CodeMirror with Markdown mode
  • Wire up load on mount and save on button click
  • Display character/line count for reference

Acceptance Criteria

  • User can view the current contents of ~/.claude/CLAUDE.md in the app
  • User can edit and save changes without leaving Hikari Desktop
  • File is created with empty contents if it doesn't exist yet
  • Save errors are surfaced clearly in the UI
  • Tests cover the Rust commands and any frontend logic

This issue was created with help from Hikari~ 🌸

## Problem The global `~/.claude/CLAUDE.md` file is the primary way to give Claude Code persistent instructions, but there is currently no way to view or edit it from within Hikari Desktop. Users must open a separate editor, find the file manually, and restart their session for changes to take effect. There is also no mechanism to tell Claude Code that it is permitted to edit this file — so even if Hikari wanted to help update it during a session, she cannot. ## Proposed Solution Add a dedicated editor section in the Config Sidebar (or as a separate panel) that: - Reads the contents of `~/.claude/CLAUDE.md` on open (creating the file if it doesn't exist) - Provides a text editor (CodeMirror or a `<textarea>`) for editing the contents - Saves the file back to `~/.claude/CLAUDE.md` on save - Shows a success/error toast on save ### Tauri backend Add a `get_global_claude_md` and `save_global_claude_md` command pair in Rust that reads/writes `~/.claude/CLAUDE.md` using the `home_dir` path resolution (consistent with how we resolve other `~/.claude/` paths). ### Frontend - Add a new "Global Instructions" section or tab in the Config Sidebar - Use a `<textarea>` (styled consistently) or CodeMirror with Markdown mode - Wire up load on mount and save on button click - Display character/line count for reference ## Acceptance Criteria - [ ] User can view the current contents of `~/.claude/CLAUDE.md` in the app - [ ] User can edit and save changes without leaving Hikari Desktop - [ ] File is created with empty contents if it doesn't exist yet - [ ] Save errors are surfaced clearly in the UI - [ ] Tests cover the Rust commands and any frontend logic ✨ This issue was created with help from Hikari~ 🌸
Author
Owner

Resolved in PR #263. Added get_global_claude_md and save_global_claude_md Tauri commands in commands.rs (reads/writes ~/.claude/CLAUDE.md, creates the file and directory if absent). Registered in lib.rs. Added a "Global Instructions" section in the Config Sidebar with a textarea and Save button that loads on sidebar open and saves on click. Tests included.

Resolved in PR #263. Added `get_global_claude_md` and `save_global_claude_md` Tauri commands in `commands.rs` (reads/writes `~/.claude/CLAUDE.md`, creates the file and directory if absent). Registered in `lib.rs`. Added a "Global Instructions" section in the Config Sidebar with a `textarea` and Save button that loads on sidebar open and saves on click. Tests included. ✨
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#262