Skip to content

Repomix local config breaks when using --remote option #1025

@leovigna

Description

@leovigna

Description

Bug / Unintuitive DX

Running repomix --remote https://github.com/user/repo.git ignores the local repomix.config.json in my workspace because repomix first clones the remote repo and then searches for the config in the target repo instead of my current working directory.

Specifying a custom config with -c myconfig.json also initially seems to fail as well.

Solution

Technically, you can get the custom config working with an explicity path as opposed to a relative one but this is a bit unintuitive.
repomix --remote https://github.com/user/repo.git -c "$PWD/repomix.config.json"

The challenge is there are 3 potentiall options to pull config from

  1. Global config (home directory)
  2. Local workspace (local directory)
  3. Target repo (remote repo)

Since the purpose of the config file is for the library consumer rather than the library author it would be better if repomix used the local config instead of search the target repo for a config file.

Usage Context

Repomix CLI

Repomix Version

1.11.0

Node.js Version

v22.19.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingneeds discussionIssues needing discussion and a decision to be made before action can be takentriage

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions