René's URL Explorer Experiment


Title: Add deep merge support for array fields in .cecli.conf.yml · Issue #604 · cecli-dev/cecli · GitHub

Open Graph Title: Add deep merge support for array fields in .cecli.conf.yml · Issue #604 · cecli-dev/cecli

X Title: Add deep merge support for array fields in .cecli.conf.yml · Issue #604 · cecli-dev/cecli

Description: Feature Request Add support for array fields in configuration files with different merge behaviors: .cecli.conf.yml: Deep merge on array fields (merge entries into existing arrays) .cecli/conf.yml: Shallow merge (existing behavior - repl...

Open Graph Description: Feature Request Add support for array fields in configuration files with different merge behaviors: .cecli.conf.yml: Deep merge on array fields (merge entries into existing arrays) .cecli/conf.yml:...

X Description: Feature Request Add support for array fields in configuration files with different merge behaviors: .cecli.conf.yml: Deep merge on array fields (merge entries into existing arrays) .cecli/conf.yml:...

Opengraph URL: https://github.com/cecli-dev/cecli/issues/604

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add deep merge support for array fields in .cecli.conf.yml","articleBody":"## Feature Request\n\nAdd support for array fields in configuration files with different merge behaviors:\n- **`.cecli.conf.yml`**: Deep merge on array fields (merge entries into existing arrays)\n- **`.cecli/conf.yml`**: Shallow merge (existing behavior - replaces entire arrays)\n\n### Current Behavior\nBoth `.cecli.conf.yml` and `.cecli/conf.yml` perform shallow merges on array fields, meaning that when an array is specified in a config file, it completely replaces the existing array values rather than merging with them.\n\n### Problem\nUsers cannot additively extend configuration arrays (like `read`, `rules`, `skills_paths`, `mcp-servers-files`, `subagents_paths`, `tools_paths`, etc.) without completely overriding the defaults. This makes it difficult to incrementally add configuration entries.\n\n### Example Use Case\nIf the default configuration includes:\n```yaml\nread:\n  - \"src/**/*.py\"\n  - \"tests/**/*.py\"\n```\n\nA user who wants to add `docs/**/*.md` must currently specify ALL files:\n```yaml\nread:\n  - \"src/**/*.py\"\n  - \"tests/**/*.py\"\n  - \"docs/**/*.md\"  # Must remember to include defaults\n```\n\nWith deep merge, they could simply add:\n```yaml\nread:\n  - \"docs/**/*.md\"  # Automatically merged with defaults\n```\n\n### Proposed Solution\n\n1. **Configuration Hierarchy**: Maintain existing hierarchy where `.cecli.conf.yml` (in project root) has higher precedence than `.cecli/conf.yml` (in `.cecli` directory).\n\n2. **Merge Behavior**:\n   - `.cecli.conf.yml`: Perform **deep merge** on array fields. New entries are appended/merged with existing values rather than replacing them.\n   - `.cecli/conf.yml`: Maintain **shallow merge** (current behavior) for backward compatibility.\n\n3. **Array Field Detection**: Identify which configuration fields are arrays that should support deep merging:\n   - `read`\n   - `rules`\n   - `skills_paths`\n   - `mcp-servers-files`\n   - `subagents_paths`\n   - `tools_paths`\n   - Other array fields as needed\n\n4. **Implementation Strategy**:\n   - Modify the configuration loading/merging logic to detect the config file type.\n   - For `.cecli.conf.yml`, use a deep merge algorithm for arrays (append unique entries, preserve order).\n   - For `.cecli/conf.yml`, continue using shallow merge (replace).\n   - Ensure backward compatibility: existing configs continue to work unchanged.\n\n5. **Deduplication**: When deep merging arrays, deduplicate entries based on value to avoid duplicates.\n\n### Technical Considerations\n\n- **Order Preservation**: Deep merge should append new entries to the end of existing arrays, maintaining the order of both existing and new items.\n- **Deduplication**: Use value-based deduplication (not object identity) to prevent duplicate entries.\n- **Nested Arrays**: Determine if nested arrays should also be deep-merged (likely yes, but need to define scope).\n- **Performance**: Deep merge should be efficient even with large configuration arrays.\n- **Error Handling**: Handle malformed YAML gracefully with clear error messages.\n\n### Acceptance Criteria\n\n- [ ] Identify all array configuration fields that need deep merge support.\n- [ ] Implement deep merge algorithm for arrays in `.cecli.conf.yml`.\n- [ ] Maintain shallow merge behavior for `.cecli/conf.yml`.\n- [ ] Ensure backward compatibility - existing configs work without changes.\n- [ ] Add comprehensive tests for:\n  - Deep merge of arrays\n  - Shallow merge preservation\n  - Deduplication\n  - Nested array handling\n  - Error cases (malformed YAML, invalid arrays)\n- [ ] Update documentation to explain the new merge behavior and configuration options.\n- [ ] Add examples showing how to use the new feature.\n\n### Jira Task\n\nThis issue is aligned with Jira task [CLI-57](https://team-16702636586024.atlassian.net/browse/CLI-57).\n\n### Configuration File Precedence\n\nReminder of existing precedence (highest to lowest):\n1. Command-line arguments\n2. `.cecli.conf.yml` (project root) - **Will support deep merge on arrays**\n3. `.cecli/conf.yml` (in `.cecli` directory) - **Shallow merge (existing)**\n4. Default values","author":{"url":"https://github.com/szmania","@type":"Person","name":"szmania"},"datePublished":"2026-07-14T17:59:11.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/604/cecli/issues/604"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:cf7a13c9-1fb0-7cde-78db-7e751e4c0f8d
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD678:145FC1:329FD03:48FB91C:6A60F19F
html-safe-nonce9f0c6fcccb8f6fd3f82dcd212af940ced7b9b5bca3f4778c83402491889e19dc
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENjc4OjE0NUZDMTozMjlGRDAzOjQ4RkI5MUM6NkE2MEYxOUYiLCJ2aXNpdG9yX2lkIjoiMTEyMTAyODM0MTk3MTg3NDIwNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac98482657ed6bcca872102e6f05aa210fe238eb158875f49a084bc64a844765c8
hovercard-subject-tagissue:4885727331
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/cecli-dev/cecli/604/issue_layout
twitter:imagehttps://opengraph.githubassets.com/d98515f1be51027d57c0ae8b3a2eee7410d95856f29080bb8f68ed492f471308/cecli-dev/cecli/issues/604
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/d98515f1be51027d57c0ae8b3a2eee7410d95856f29080bb8f68ed492f471308/cecli-dev/cecli/issues/604
og:image:altFeature Request Add support for array fields in configuration files with different merge behaviors: .cecli.conf.yml: Deep merge on array fields (merge entries into existing arrays) .cecli/conf.yml:...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameszmania
hostnamegithub.com
expected-hostnamegithub.com
None01a0f3379195d313175de239776b09dd4a079d5b2ea29dd9c37e85cd4cd5e990
turbo-cache-controlno-preview
go-importgithub.com/cecli-dev/cecli git https://github.com/cecli-dev/cecli.git
octolytics-dimension-user_id250452847
octolytics-dimension-user_logincecli-dev
octolytics-dimension-repository_id1030985330
octolytics-dimension-repository_nwocecli-dev/cecli
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forktrue
octolytics-dimension-repository_parent_id638629097
octolytics-dimension-repository_parent_nwoAider-AI/aider
octolytics-dimension-repository_network_root_id638629097
octolytics-dimension-repository_network_root_nwoAider-AI/aider
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release00ca1a9089c8f2453e5d118d0554c8a26883d159
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/cecli-dev/cecli/issues/604#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcecli-dev%2Fcecli%2Fissues%2F604
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcecli-dev%2Fcecli%2Fissues%2F604
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=cecli-dev%2Fcecli
Reloadhttps://github.com/cecli-dev/cecli/issues/604
Reloadhttps://github.com/cecli-dev/cecli/issues/604
Reloadhttps://github.com/cecli-dev/cecli/issues/604
Please reload this pagehttps://github.com/cecli-dev/cecli/issues/604
cecli-dev https://github.com/cecli-dev
ceclihttps://github.com/cecli-dev/cecli
Aider-AI/aiderhttps://github.com/Aider-AI/aider
Notifications https://github.com/login?return_to=%2Fcecli-dev%2Fcecli
Fork 44 https://github.com/login?return_to=%2Fcecli-dev%2Fcecli
Star 385 https://github.com/login?return_to=%2Fcecli-dev%2Fcecli
Code https://github.com/cecli-dev/cecli
Issues 30 https://github.com/cecli-dev/cecli/issues
Pull requests 9 https://github.com/cecli-dev/cecli/pulls
Actions https://github.com/cecli-dev/cecli/actions
Projects https://github.com/cecli-dev/cecli/projects
Security and quality 0 https://github.com/cecli-dev/cecli/security
Insights https://github.com/cecli-dev/cecli/pulse
Code https://github.com/cecli-dev/cecli
Issues https://github.com/cecli-dev/cecli/issues
Pull requests https://github.com/cecli-dev/cecli/pulls
Actions https://github.com/cecli-dev/cecli/actions
Projects https://github.com/cecli-dev/cecli/projects
Security and quality https://github.com/cecli-dev/cecli/security
Insights https://github.com/cecli-dev/cecli/pulse
Add deep merge support for array fields in .cecli.conf.ymlhttps://github.com/cecli-dev/cecli/issues/604#top
https://github.com/szmania
szmaniahttps://github.com/szmania
on Jul 14, 2026https://github.com/cecli-dev/cecli/issues/604#issue-4885727331
CLI-57https://team-16702636586024.atlassian.net/browse/CLI-57
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.