You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the binary is looking for a configuration file the home directory of the user, but it's not ideal. Ideal would be to have also project based configurations.
Acceptance Criteria
There is a project based configuration for the infer CLI
There is a project based configuration for the infer CLI
It is created when running infer init
It is documented
The feature is complete and ready for use! Users can now run infer init in any project directory to create a local configuration file, and all infer commands will use that project-specific configuration instead of a global one.
I've successfully moved the configuration from .infer.yaml to .infer/config.yaml as requested.
Todo List
Analyze current configuration implementation
Update config path in config/config.go to use .infer/config.yaml
Modify init command to create .infer/ directory structure
Update documentation in CLAUDE.md
Test the changes work correctly
Run quality checks (build, lint, test)
Commit changes to branch
Changes Made:
Updated config/config.go: Changed getDefaultConfigPath() to return .infer/config.yaml
Modified cmd/init.go: Updated to create .infer/config.yaml and adjusted help text
Updated cmd/root.go: Changed config flag help text to reflect new default path
Updated CLAUDE.md: Updated documentation to reference .infer/config.yaml
Testing Results:
✅ infer init creates .infer/config.yaml in directory structure
✅ infer init prevents overwriting existing configs
✅ infer init --overwrite allows overwriting
✅ Commands load config from new location properly
✅ Build successful
✅ All quality checks passed
The configuration is now organized in a .infer/ directory structure with the config file at .infer/config.yaml, providing better organization for project-level configuration files.
Activity
edenreich commentedon Aug 10, 2025
@claude Can you work on this feature?
I want that the project settings will override whatever global settings exists.
Actually let's also remove the global settings. Everything should be local to the project.
claude commentedon Aug 10, 2025
Claude finished @edenreich's task —— View job •
claude/issue-7-20250810-1738• Create PR ➔I'll work on implementing local project-based configuration for the infer CLI. Let me start by analyzing the current setup and creating a plan.
Todo List
infer initcommandImplementation Complete ✅
I've successfully implemented local project-based configuration as requested:
Changes Made:
config/config.go: ChangedgetDefaultConfigPath()to use current working directory instead of home directorycmd/init.go: New command to initialize local.infer.yamlconfiguration filescmd/root.go: Updated help text for--configflag to reflect local pathCLAUDE.md: Updated documentation to reflect project-based configurationFeatures:
infer initcreates.infer.yamlin current directoryinfer init --overwritereplaces existing config.infer.yamlinstead of~/.infer.yamlTesting Results:
✅ Build successful
✅
infer initcreates config file✅
infer initprevents overwriting existing configs✅
infer init --overwriteallows overwriting✅ Commands load local config properly
✅ Tests pass
✅ Code formatted successfully
Acceptance Criteria Met:
infer initThe feature is complete and ready for use! Users can now run
infer initin any project directory to create a local configuration file, and all infer commands will use that project-specific configuration instead of a global one.edenreich commentedon Aug 10, 2025
@claude Let's move the configurations to .infer/config.yaml
claude commentedon Aug 10, 2025
Claude finished @edenreich's task —— View job •
claude/issue-7-20250810-1744• Create PR ➔Configuration moved to
.infer/config.yaml✅I've successfully moved the configuration from
.infer.yamlto.infer/config.yamlas requested.Todo List
.infer/config.yaml.infer/directory structureChanges Made:
config/config.go: ChangedgetDefaultConfigPath()to return.infer/config.yamlcmd/init.go: Updated to create.infer/config.yamland adjusted help textcmd/root.go: Changed config flag help text to reflect new default pathCLAUDE.md: Updated documentation to reference.infer/config.yamlTesting Results:
✅
infer initcreates.infer/config.yamlin directory structure✅
infer initprevents overwriting existing configs✅
infer init --overwriteallows overwriting✅ Commands load config from new location properly
✅ Build successful
✅ All quality checks passed
The configuration is now organized in a
.infer/directory structure with the config file at.infer/config.yaml, providing better organization for project-level configuration files.chore(release): 0.3.1 [skip ci]
inference-gateway-releaser commentedon Aug 10, 2025
🎉 This issue has been resolved in version 0.3.1 🎉
The release is available on:
v0.3.1Your semantic-release bot 📦🚀