Skip to content

fix(claude): remove Nix management of known_marketplaces.json - #513

Merged
shunkakinoki merged 1 commit into
mainfrom
fix/claude-marketplace-config
Jan 7, 2026
Merged

fix(claude): remove Nix management of known_marketplaces.json#513
shunkakinoki merged 1 commit into
mainfrom
fix/claude-marketplace-config

Conversation

@shunkakinoki

@shunkakinoki shunkakinoki commented Jan 7, 2026

Copy link
Copy Markdown
Owner

Summary

  • Remove known_marketplaces.json from Nix management
  • The file contains dynamic fields (installLocation, lastUpdated) that Claude Code manages
  • Managing it via Nix caused parse errors on startup

Details

The safety-net plugin remains enabled in settings.json. The marketplace configuration will be managed by Claude Code directly via /plugin marketplace add command.

Test plan

  • Run make switch
  • Run claude - should start without ConfigParseError

🤖 Generated with Claude Code


Summary by cubic

Stop managing known_marketplaces.json via Nix to fix Claude startup parse errors caused by dynamic marketplace fields. Claude now manages the marketplace file directly.

  • Migration
    • After switching, Claude regenerates marketplace data on start.
    • Use /plugin marketplace add to manage marketplace entries.

Written for commit cf527df. Summary will update on new commits.

The file contains dynamic fields (installLocation, lastUpdated) that
Claude Code manages. Managing it via Nix caused parse errors.

The safety-net plugin is still enabled in settings.json and the
marketplace will be managed by Claude Code directly.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings January 7, 2026 14:11
@coderabbitai

coderabbitai Bot commented Jan 7, 2026

Copy link
Copy Markdown

Caution

Review failed

The pull request is closed.

📝 Walkthrough

Summary by CodeRabbit

  • Chores
    • Removed Claude marketplace discovery configuration from the application.

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

Walkthrough

This pull request removes Claude marketplace configuration by deleting the known_marketplaces.json file and its corresponding home.file entry from the Nix configuration, eliminating the static JSON mapping that previously referenced four marketplace sources.

Changes

Cohort / File(s) Summary
Claude Marketplace Configuration
config/claude/default.nix, config/claude/known_marketplaces.json
Removed home.file.".claude/plugins/known_marketplaces.json" entry from Nix config; deleted JSON file containing marketplace source mappings (claude-code-plugins, claude-plugins-official, anthropic-agent-skills, cc-marketplace)

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Possibly related PRs

Poem

🐰 A marketplace removed with care,
Known plugins fade into thin air,
Four sources bid us now goodbye,
Claude's paths simplified nearby!

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

📜 Recent 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 a14c1e9 and cf527df.

📒 Files selected for processing (2)
  • config/claude/default.nix
  • config/claude/known_marketplaces.json

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 resolves a critical startup issue in Claude Code by ceasing Nix's management of the known_marketplaces.json file. The file, which contains dynamic configuration fields, was causing parse errors when managed by Nix. By removing this file from Nix's purview and delegating its management to Claude Code directly, the system can now correctly handle these dynamic fields, preventing startup failures and ensuring stable operation.

Highlights

  • Nix Management Removal: The known_marketplaces.json file has been removed from Nix management, specifically by deleting its entry in config/claude/default.nix.
  • Resolution of Parse Errors: This change addresses startup parse errors that occurred because known_marketplaces.json contains dynamic fields (installLocation, lastUpdated) which were not correctly handled by Nix.
  • Direct Claude Code Management: The management of the marketplace configuration, including known_marketplaces.json, will now be handled directly by Claude Code, ensuring proper handling of dynamic fields.
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.

@shunkakinoki
shunkakinoki merged commit 8815851 into main Jan 7, 2026
28 of 29 checks passed
@mesa-dot-dev

mesa-dot-dev Bot commented Jan 7, 2026

Copy link
Copy Markdown

Mesa Description

TL;DR

Removed Nix management of known_marketplaces.json for Claude Code to prevent startup parse errors.

What changed?

  • Stopped Nix from managing known_marketplaces.json.
  • settings.json continues to enable the safety-net plugin.
  • Claude Code will now directly manage marketplace configurations via the /plugin marketplace add command.

Description generated by Mesa. Update settings

@shunkakinoki
shunkakinoki deleted the fix/claude-marketplace-config branch January 7, 2026 14:11

@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 2 files

@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 correctly addresses an issue where known_marketplaces.json was being managed by Nix, leading to parse errors on startup due to dynamic content being overwritten. By removing the file from Nix management in config/claude/default.nix and deleting the now-unused config/claude/known_marketplaces.json source file, the application claude can now manage this file directly as intended. The changes are clean, logical, and effectively resolve the described problem. I have no further recommendations.

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 removes Nix management of known_marketplaces.json to resolve ConfigParseError issues caused by Claude Code's dynamic updates to the file (specifically installLocation and lastUpdated fields).

  • Deletes the static known_marketplaces.json file from version control
  • Removes the corresponding Nix home-manager configuration

Reviewed changes

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

File Description
config/claude/known_marketplaces.json Removes the entire static marketplace configuration file
config/claude/default.nix Removes the Nix home-manager directive that copied the marketplace config file

The changes are clean and consistent. The PR correctly addresses the conflict between Nix's declarative file management and Claude Code's dynamic configuration updates. The safety-net plugin reference (safety-net@cc-marketplace) remains enabled in settings.json, allowing Claude Code to manage marketplace configurations dynamically via its plugin commands.


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

@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 a14c1e9...cf527df

Analysis

  1. Removing known_marketplaces.json from Nix management properly separates static configuration from dynamic runtime state, but creates a bootstrapping issue where new installations won't have required marketplaces until manually added.

  2. The safety-net@cc-marketplace plugin remains enabled in settings.json but its source marketplace is no longer automatically provisioned, creating a potential failure case on fresh installations.

  3. While improving reliability by preventing Nix rebuild failures caused by Claude's runtime mutations, this change slightly reduces system reproducibility as marketplace configuration becomes environment-specific.

  4. Migration requires ensuring existing state files are writable and not garbage-collected by Nix, with Claude recreating the file as needed for new installations.

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

0 files reviewed | 1 comments | Edit Agent SettingsRead Docs

Comment thread config/claude/default.nix
@@ -23,8 +23,4 @@
source = ./statusline-git.sh;
executable = true;
};

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

The removal of known_marketplaces.json creates a potential bootstrap issue: settings.json (still managed by Nix) enables safety-net@cc-marketplace, but the cc-marketplace marketplace definition is no longer guaranteed to exist on fresh installations. Consider either:

  1. Adding a comment/documentation here about required post-install steps (/plugin marketplace add for cc-marketplace)
  2. Creating a Nix activation script that runs the Claude CLI command to add required marketplaces
  3. Re-evaluating whether safety-net@cc-marketplace should be enabled by default without guaranteed marketplace availability

This could cause Claude to fail loading the safety-net plugin until the user manually adds the marketplace.

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

Prompt for Agent
Task: Address review feedback left on GitHub.
Repository: shunkakinoki/dotfiles#513
File: config/claude/default.nix#L25
Action: Open this file location in your editor, inspect the highlighted code, and resolve the issue described below.

Feedback:
The removal of `known_marketplaces.json` creates a potential bootstrap issue: `settings.json` (still managed by Nix) enables `safety-net@cc-marketplace`, but the `cc-marketplace` marketplace definition is no longer guaranteed to exist on fresh installations. Consider either:
1. Adding a comment/documentation here about required post-install steps (`/plugin marketplace add` for cc-marketplace)
2. Creating a Nix activation script that runs the Claude CLI command to add required marketplaces
3. Re-evaluating whether `safety-net@cc-marketplace` should be enabled by default without guaranteed marketplace availability

This could cause Claude to fail loading the safety-net plugin until the user manually adds the marketplace.

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