Skip to content

chore: update Claude settings and fish function, remove README-nix - #511

Merged
shunkakinoki merged 1 commit into
mainfrom
feat/claude-settings-update
Jan 7, 2026
Merged

chore: update Claude settings and fish function, remove README-nix#511
shunkakinoki merged 1 commit into
mainfrom
feat/claude-settings-update

Conversation

@shunkakinoki

@shunkakinoki shunkakinoki commented Jan 7, 2026

Copy link
Copy Markdown
Owner

Summary

  • Updated Claude settings configuration
  • Modified fish function for _clxe_function
  • Removed README-nix.md file

This commit includes configuration updates and cleanup of documentation.


Summary by cubic

Expanded Claude GitHub CLI support and simplified the clxe fish function to use the main claude command. Removed the outdated README-nix.md.

  • New Features

    • Allow "gh pr checks" and "gh run list/view/watch" in settings.json.
  • Refactors

    • clxe now calls "claude" (not "claude code") with --dangerously-skip-permissions, including print mode when a prompt is provided.

Written for commit 4994d1f. Summary will update on new commits.

Copilot AI review requested due to automatic review settings January 7, 2026 08:47
@coderabbitai

coderabbitai Bot commented Jan 7, 2026

Copy link
Copy Markdown
📝 Walkthrough

Summary by CodeRabbit

  • Documentation

    • Removed Nix + dream2nix setup documentation.
  • Chores

    • Expanded GitHub CLI permissions for additional pull request and workflow management commands.
    • Updated command-line interface invocation for improved usability.

✏️ Tip: You can customize this high-level summary in your review settings.

Walkthrough

Documentation file removed, Claude CLI invocation simplified by dropping the "code" subcommand, and GitHub PR/workflow-related permissions added to the Claude permissions configuration.

Changes

Cohort / File(s) Change Summary
Documentation Removal
README-nix.md
File deleted; previously contained Nix + dream2nix setup documentation for CLI tools and package management.
Claude Invocation Update
home-manager/programs/fish/functions/_clxe_function.fish
Removed "code" subcommand from Claude CLI calls; changed claude code --dangerously-skip-permissions to claude --dangerously-skip-permissions in both conditional branches.
Permissions Expansion
config/claude/settings.json
Added four new Bash permissions to allow list: gh pr checks:*, gh run list:*, gh run view:*, gh run watch:* for GitHub workflow and PR-related commands.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Possibly related PRs

Suggested labels

codex

Poem

🐰 Away with Nix docs, a hoppy goodbye,
Claude calls without "code"—a simpler reply,
GitHub workflows granted, permissions now wide,
Changes so nimble, with config as our guide! 🌿

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the main changes: Claude settings and fish function updates, plus README-nix removal.
Description check ✅ Passed The description accurately covers all three main changes: Claude settings updates, fish function modification, and README-nix removal.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feat/claude-settings-update

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@gemini-code-assist

Copy link
Copy Markdown
Contributor

Summary of Changes

Hello @shunkakinoki, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request refines the project's configuration and documentation by updating the Claude settings to support a broader range of GitHub CLI commands, simplifying a fish shell function for interacting with Claude, and removing a no longer relevant Nix-specific README file. The changes aim to improve the development environment's usability and maintain a clean codebase.

Highlights

  • Claude settings update: The Claude configuration has been updated to include recognition for several new GitHub CLI commands, specifically gh pr checks, gh run list, gh run view, and gh run watch.
  • Fish function modification: The _clxe_function in the fish shell has been simplified by removing the explicit code subcommand when invoking the claude command, streamlining its usage.
  • Documentation removal: The README-nix.md file, which contained detailed instructions and notes regarding Nix + dream2nix setup, has been entirely removed from the repository.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@mesa-dot-dev

mesa-dot-dev Bot commented Jan 7, 2026

Copy link
Copy Markdown

Mesa Description

TL;DR

Updated Claude settings, modified a fish function, and removed the README-nix.md file.

What changed?

  • Updated Claude settings configuration.
  • Modified fish function for _clxe_function.
  • Removed README-nix.md file.

Description generated by Mesa. Update settings

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 3 files

@shunkakinoki
shunkakinoki enabled auto-merge (squash) January 7, 2026 08:49

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request provides configuration updates for Claude, modifies a fish function, and removes a documentation file. The changes are well-contained and look good. The new permissions for gh commands in the Claude settings are correctly added and maintain alphabetical order. The fish function _clxe_function is properly updated to use the claude command instead of claude code. I have one minor suggestion to improve the documentation of this function for consistency.

Comment on lines 5 to 10
if test (count $argv) -eq 0
claude code --dangerously-skip-permissions
claude --dangerously-skip-permissions
else
set -l prompt (string join " " -- $argv)
claude code --dangerously-skip-permissions --print -- "$prompt"
claude --dangerously-skip-permissions --print -- "$prompt"
end

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Since the command has been updated from claude code to claude, the function's description and internal comment are now slightly out of sync. To maintain consistency, I suggest updating them to remove the reference to code.

For example:

  • Line 1: ... --description "Run Claude with a free-form prompt..."
  • Line 2: # Run Claude with a free-form prompt...

@mesa-dot-dev mesa-dot-dev Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Performed full review of 5f69c41...4994d1f

Analysis

  1. Removal of README-nix.md eliminates crucial setup instructions for dream2nix integration with no indication of where this documentation has been migrated or if the approach is being deprecated.

  2. The fish function change from claude code to claude represents a potential breaking change if these commands have different default behaviors, which could disrupt existing workflows dependent on code-specific features.

  3. No testing or validation is mentioned for the fish function change to ensure compatibility with existing use cases.

  4. While the Claude Settings expansion for GitHub CLI commands follows established patterns, there's no context provided on why these specific additions are needed now or how they've been tested.

Tip

Help

Slash Commands:

  • /review - Request a full code review
  • /review latest - Review only changes since the last review
  • /describe - Generate PR description. This will update the PR body or issue comment depending on your configuration
  • /help - Get help with Mesa commands and configuration options

3 files reviewed | 1 comments | Edit Agent SettingsRead Docs


if test (count $argv) -eq 0
claude code --dangerously-skip-permissions
claude --dangerously-skip-permissions

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Medium

This change from claude code to claude may be a breaking change if these commands have different behaviors. The code subcommand might provide specific context or features tailored for code-related tasks. Before merging, please verify: 1) Does claude (without subcommand) provide identical functionality to claude code? 2) Have existing workflows using clxe been tested with this change? 3) Is this change documented anywhere for users who might be affected? Consider testing this in isolation or documenting the behavioral differences if any exist.

Agent: 🏛 Architecture • Fix in Cursor • Fix in Claude

Prompt for Agent
Task: Address review feedback left on GitHub.
Repository: shunkakinoki/dotfiles#511
File: home-manager/programs/fish/functions/_clxe_function.fish#L6
Action: Open this file location in your editor, inspect the highlighted code, and resolve the issue described below.

Feedback:
This change from `claude code` to `claude` may be a breaking change if these commands have different behaviors. The `code` subcommand might provide specific context or features tailored for code-related tasks. Before merging, please verify: 1) Does `claude` (without subcommand) provide identical functionality to `claude code`? 2) Have existing workflows using `clxe` been tested with this change? 3) Is this change documented anywhere for users who might be affected? Consider testing this in isolation or documenting the behavioral differences if any exist.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR performs configuration updates and documentation cleanup across the repository. The changes modernize the Claude CLI command usage and expand GitHub CLI permissions for workflow management.

  • Updated fish function to use claude command directly instead of claude code subcommand
  • Added GitHub CLI permissions for PR checks and workflow run operations
  • Removed outdated Nix/dream2nix documentation

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
home-manager/programs/fish/functions/_clxe_function.fish Simplified claude command invocations by removing the "code" subcommand
config/claude/settings.json Added permissions for gh pr checks, gh run list, gh run view, and gh run watch commands
README-nix.md Removed documentation file (complete deletion)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (1)
home-manager/programs/fish/functions/_clxe_function.fish (1)

1-2: Update function description and comments to reflect the CLI change.

The function description and comments still reference "Claude Code", but the implementation now uses the claude command directly without the "code" subcommand. Consider updating the documentation for consistency.

📝 Suggested documentation updates
-function _clxe_function --description "Run Claude Code with a free-form prompt while skipping permissions"
-  # Run Claude Code with a free-form prompt (spaces allowed) and bypass permission checks
+function _clxe_function --description "Run Claude with a free-form prompt while skipping permissions"
+  # Run Claude with a free-form prompt (spaces allowed) and bypass permission checks
   # Usage: clxe [<prompt words...>]
📜 Review details

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Disabled knowledge base sources:

  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 5f69c41 and 4994d1f.

📒 Files selected for processing (3)
  • README-nix.md
  • config/claude/settings.json
  • home-manager/programs/fish/functions/_clxe_function.fish
💤 Files with no reviewable changes (1)
  • README-nix.md
🧰 Additional context used
📓 Path-based instructions (4)
**/*.{js,ts,jsx,tsx,json}

📄 CodeRabbit inference engine (CLAUDE.md)

Use Biome with 2-space indentation, 80-character line width, double quotes, and trailing commas (ES5) for JSON/JavaScript/TypeScript files

Files:

  • config/claude/settings.json
**/*.{json,yaml,yml,toml}

📄 CodeRabbit inference engine (.cursor/rules/formatting.mdc)

**/*.{json,yaml,yml,toml}: Use consistent indentation (2 spaces) in configuration files
Sort keys alphabetically when possible in configuration files
Use clear, descriptive names in configuration files

Files:

  • config/claude/settings.json
**/*.{js,jsx,ts,tsx,json}

📄 CodeRabbit inference engine (.cursor/rules/formatting.mdc)

**/*.{js,jsx,ts,tsx,json}: Format JavaScript/TypeScript/JSON files using Biome with 2-space indentation and 80 character line width
Enable Biome linter with recommended rules for JavaScript/TypeScript/JSON files

Files:

  • config/claude/settings.json
**/*.{js,jsx,ts,tsx,json,jsonc,md}

📄 CodeRabbit inference engine (.cursor/rules/general.mdc)

Use Biome for code formatting as configured in biome.json

Files:

  • config/claude/settings.json
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (13)
  • GitHub Check: Agent
  • GitHub Check: nix-darwin
  • GitHub Check: e2e-run (NixOS, ubuntu-latest)
  • GitHub Check: e2e-run (Ubuntu, ubuntu-latest)
  • GitHub Check: nix-nixos
  • GitHub Check: nix-linux
  • GitHub Check: shell-lint
  • GitHub Check: docker-build-push (linux/amd64, amd64, ubuntu-latest)
  • GitHub Check: lua-hammerspoon
  • GitHub Check: shell-test
  • GitHub Check: lua-neovim
  • GitHub Check: docker-build-push (linux/arm64, arm64, ubuntu-24.04-arm)
  • GitHub Check: lua-neovim-test
🔇 Additional comments (3)
config/claude/settings.json (2)

27-27: LGTM! Permission additions follow best practices.

The new GitHub CLI permissions are appropriately scoped for PR checks and workflow run monitoring. The entries maintain alphabetical ordering within the allow list and follow the consistent format of existing permissions.

Also applies to: 36-38


1-246: File is already compliant with Biome formatting rules. No changes needed; biome check confirms the JSON file meets the configured standards (2-space indentation, 80-character line width).

home-manager/programs/fish/functions/_clxe_function.fish (1)

6-6: This review comment is based on an incorrect premise and should be disregarded.

This file is being added for the first time (not modified from a prior version), so there is no "removal" of a "code" subcommand. The commit shows a new file creation with no prior state. The function description "Run Claude Code" refers to the Claude product feature, not a CLI subcommand.

The flags used (--dangerously-skip-permissions and --print) are both valid and documented in the Claude CLI, so no compatibility verification is needed.

Likely an incorrect or invalid review comment.

@shunkakinoki
shunkakinoki merged commit 3d22c0f into main Jan 7, 2026
39 checks passed
@shunkakinoki
shunkakinoki deleted the feat/claude-settings-update branch January 7, 2026 09:17
@coderabbitai coderabbitai Bot mentioned this pull request Mar 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants