Skip to content

Change configuration loading #633

Description

@mickume

Currently, the configuration file is by default located at .agent-fox/config.toml.

I want to add a central, shared configuration file at location $HOME/.agent-fox/config.toml. This configuration is used as a default configuration and can be shared with multiple repos.

Desired behaviour

  • On start-up, af looks for a configuration file at $HOME/.agent-fox/config.toml. It provides the base-line configuration.
  • On start-up af also looks for a configuration file in the current repo at .agent-fox/config.toml. If it exists, both configuration files are merged, i.e. values from the local config file overwrite values from the global config file.
  • If none exist, af creates a default config file $HOME/.agent-fox/config.toml and uses it

Change to af init

  • "init" creates a default config file $HOME/.agent-fox/config.toml, if it does not exists. An existing one is not modified
  • "init" creates a local config file .agent-fox/config.toml, with all possible config values commented out. An existing file is not changed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    af:implementedSpec implementation complete — awaiting manual verificationenhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions