eca icon indicating copy to clipboard operation
eca copied to clipboard

Support `config.local.json` for machine-specific global overrides

Open shohi opened this issue 6 months ago • 0 comments

To upvote this issue, give it a thumbs up. See this list for the most upvoted issues.

Problem

I sync my dotfiles (including ~/.config/eca/config.json) across multiple machines (work + personal). Some skills and MCP servers only apply to my work machine, others only to my personal one. Currently there's no way to have machine-specific global config that applies to all workspaces without diverging the shared config.json.

Proposal

Support a ~/.config/eca/config.local.json that deep-merges on top of config.json — machine-specific, gitignored, applied to all workspaces.

Similarly, .eca/config.local.json at the project level for project-specific overrides that shouldn't be committed.

Inspiration: mise's config hierarchy

Use case example

Shared (~/.config/eca/config.json — synced):

{
  "defaultModel": "anthropic/claude-sonnet-4-20250514",
  "skills": ["shared-skill-1", "shared-skill-2"]
}

Work machine only (~/.config/eca/config.local.json — not synced):

{
  "skills": ["work-only-skill"],
  "mcpServers": { "internal-db": { ... } }
}

Additional context

The current documentation lists config sources (global, local) but doesn't document merge semantics between them. Clarifying that would also be helpful. https://eca.dev/config/introduction/#configuration

shohi avatar Jun 03 '26 15:06 shohi