openclaw - 💡(How to fix) Fix Feature request: per-agent bootstrap profile support [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#69966Fetched 2026-04-23 07:30:56
View on GitHub
Comments
0
Participants
1
Timeline
0
Reactions
0
Author
Participants

Related config that gets modified by the Profile selector in the Control UI (from gateway logs):

changedPaths=agents.defaults.contextInjection,agents.defaults.bootstrapMaxChars,agents.defaults.bootstrapTotalMaxChars

This confirms the Profile UI is modifying agents.defaults — which are by definition global. A per-agent equivalent is needed.

Root Cause

Related config that gets modified by the Profile selector in the Control UI (from gateway logs):

changedPaths=agents.defaults.contextInjection,agents.defaults.bootstrapMaxChars,agents.defaults.bootstrapTotalMaxChars

This confirms the Profile UI is modifying agents.defaults — which are by definition global. A per-agent equivalent is needed.

Code Example

{
  "agents": {
    "defaults": {
      "bootstrapMaxChars": 20000,
      "bootstrapTotalMaxChars": 150000
    },
    "list": [
      {
        "id": "coder-agent",
        "bootstrapMaxChars": 50000,
        "bootstrapTotalMaxChars": 300000
      }
    ]
  }
}

---

{
  "profiles": {
    "coding": {
      "bootstrapMaxChars": 50000,
      "bootstrapTotalMaxChars": 300000
    },
    "assistant": {
      "bootstrapMaxChars": 20000,
      "bootstrapTotalMaxChars": 300000
    }
  },
  "agents": {
    "defaults": { "profile": "assistant" },
    "list": [
      { "id": "coder-agent", "profile": "coding" }
    ]
  }
}

---

changedPaths=agents.defaults.contextInjection,agents.defaults.bootstrapMaxChars,agents.defaults.bootstrapTotalMaxChars
RAW_BUFFERClick to expand / collapse

Problem

Currently, the Profile settings in the Control UI (and the equivalent agents.defaults config) apply globally to ALL agents in a multi-agent setup. The profiles adjust three key parameters:

  • contextInjection
  • bootstrapMaxChars
  • bootstrapTotalMaxChars

For teams with heterogeneous agents — e.g., a personal assistant agent needing large context windows, a coding agent needing generous bootstrap limits, and lightweight utility agents — a single global profile is insufficient.

Use Case

Example agent team:

  • Personal assistant (Cici): long conversation context, needs bootstrapTotalMaxChars: 300000
  • Coding agents (Elon, Cao): large system prompts, needs bootstrapMaxChars: 50000
  • Ops agent (me): minimal bootstrap, small footprint

All currently share the same global agents.defaults limits, meaning no single profile satisfies everyone.

Requested Feature

Allow per-agent override of bootstrap profile settings, e.g.:

{
  "agents": {
    "defaults": {
      "bootstrapMaxChars": 20000,
      "bootstrapTotalMaxChars": 150000
    },
    "list": [
      {
        "id": "coder-agent",
        "bootstrapMaxChars": 50000,
        "bootstrapTotalMaxChars": 300000
      }
    ]
  }
}

Or alternatively, named profiles referenced by agent ID:

{
  "profiles": {
    "coding": {
      "bootstrapMaxChars": 50000,
      "bootstrapTotalMaxChars": 300000
    },
    "assistant": {
      "bootstrapMaxChars": 20000,
      "bootstrapTotalMaxChars": 300000
    }
  },
  "agents": {
    "defaults": { "profile": "assistant" },
    "list": [
      { "id": "coder-agent", "profile": "coding" }
    ]
  }
}

Context

Related config that gets modified by the Profile selector in the Control UI (from gateway logs):

changedPaths=agents.defaults.contextInjection,agents.defaults.bootstrapMaxChars,agents.defaults.bootstrapTotalMaxChars

This confirms the Profile UI is modifying agents.defaults — which are by definition global. A per-agent equivalent is needed.

Priority

Medium — blocking effective multi-agent team management for teams with diverse agent roles.

extent analysis

TL;DR

Implement per-agent override of bootstrap profile settings to allow for customized configurations for each agent in a multi-agent setup.

Guidance

  • Introduce a new configuration option to allow agents to override the global agents.defaults settings, such as adding a bootstrap section to each agent's configuration.
  • Consider using named profiles that can be referenced by agent ID, as shown in the requested feature example, to simplify configuration management.
  • Update the Control UI to support the new configuration option and allow users to select a profile or customize settings for each agent.
  • Verify that the new configuration option does not introduce any compatibility issues with existing agents or workflows.

Example

{
  "agents": {
    "defaults": {
      "bootstrapMaxChars": 20000,
      "bootstrapTotalMaxChars": 150000
    },
    "list": [
      {
        "id": "coder-agent",
        "bootstrapMaxChars": 50000,
        "bootstrapTotalMaxChars": 300000
      }
    ]
  }
}

Notes

The implementation details may vary depending on the underlying architecture and configuration management system. It is essential to ensure that the new configuration option is properly validated and handled to avoid any potential issues.

Recommendation

Apply workaround by introducing per-agent override of bootstrap profile settings, as this will allow for more flexible and customized configurations for each agent in a multi-agent setup, addressing the current limitation of global profiles.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING