Skip to content

feat: add config presets module for quick agent mode switching (#36)#38

Open
zsxh1990 wants to merge 1 commit into
Rose22:mainfrom
zsxh1990:feat/config-presets
Open

feat: add config presets module for quick agent mode switching (#36)#38
zsxh1990 wants to merge 1 commit into
Rose22:mainfrom
zsxh1990:feat/config-presets

Conversation

@zsxh1990

Copy link
Copy Markdown

What

Add a presets module that allows saving and loading configuration presets for quick switching between different agent modes.

Why

From #36: Users want to quickly switch between different settings presets (e.g., Coder, Researcher, Writer) without manually editing config.yaml each time.

How

New file: modules/presets.py

class Presets(core.module.Module):
    """Manage configuration presets for quick switching."""
    
    async def save(self, name: str, description: str = "") -> str:
        """Save current config as preset."""
    
    async def load(self, name: str) -> str:
        """Load a configuration preset."""
    
    async def list(self) -> str:
        """List all saved presets."""
    
    async def delete(self, name: str) -> str:
        """Delete a preset."""

Features

  • Save/Load presets: /preset save coder / /preset load coder
  • List presets: /preset list
  • Delete presets: /preset delete coder
  • Sensitive data redaction: API keys are redacted when saving
  • Non-destructive merge: Loading a preset only overrides specified values

Storage

Presets are stored as YAML files in ~/.openlumara/presets/:

~/.openlumara/presets/
├── coder.yaml
├── researcher.yaml
└── writer.yaml

Usage

/preset save coder Coder mode with limited modules
/preset load coder
/preset list
/preset delete coder

Closes #36

Signed-off-by: zsxh1990 zsxh1990@users.noreply.github.com

Add presets module that allows saving and loading configuration
presets for quick switching between agent modes (Coder, Researcher, etc).

Usage:
  /preset save coder - Save current config as coder preset
  /preset load coder - Load coder preset
  /preset list      - List all presets
  /preset delete    - Delete a preset

Closes Rose22#36

Signed-off-by: zsxh1990 <zsxh1990@users.noreply.github.com>
@zsxh1990

zsxh1990 commented Jul 7, 2026

Copy link
Copy Markdown
Author

Hi — friendly check-in on the config presets module PR. It has been about 10 days since the last update. Happy to rebase or adjust. Thanks!

@Rose22

Rose22 commented Jul 10, 2026

Copy link
Copy Markdown
Owner

this is so AI generated that it redacts sensitive info in the step where it saves the preset to disk, and then later on when merging the preset into the in-memory config. so basically you're destroying any saved usernames, passwords, keys, and tokens. that will cause total breakage, broken API connections, etcetera.

the idea is nice, but this implementation won't do at all! also, you're breaking the AI usage policy. also, i have no reason to believe you're not an AI, considering your use of em dashes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Suggestion: Agent presets or personas

2 participants