Unexpected behavior: For agents actor add, the name parameter in the command line overrides the name parameter in the YAML file. #6752

Open
opened 2026-04-10 01:49:45 +00:00 by brent.edwards · 2 comments
Member

Setup

Run the following script:

cat << EOF > simple_llm.yaml
# Simple LLM Actor Example
# Demonstrates the most basic actor configuration with just an LLM and system prompt

name: local/code_reviewer
type: llm
description: Reviews Python code for best practices, style, and potential bugs
version: "1.0"

# LLM configuration
provider: openai
model: gpt-4
system_prompt: |
  You are an expert Python code reviewer. Review code for:
  - PEP 8 style compliance
  - Best practices and design patterns
  - Potential bugs and edge cases
  - Performance considerations
  - Security vulnerabilities

  Provide constructive feedback with specific suggestions for improvement.

# Context and memory settings
context_view: reviewer
memory:
  enabled: true
  max_messages: 20
  max_tokens: 4000

context:
  include_files:
    - "README.md"
    - "pyproject.toml"
  include_dirs:
    - "src/"
  exclude_patterns:
    - "**/__pycache__/**"
    - "*.pyc"
    - "**/.pytest_cache/**"
  max_context_tokens: 8000
EOF

uv venv -c
source .venv/bin/activate
uv pip install /app
agents init --force

When

Notice that the name in the file is local/code-reviewer.

agents actor add local/different_name --config /home/devuser/tests/simple_llm.yaml

Expected

Some information that the name in the file and the name in the command line are different.

Actual

The actor is added exactly as in the command line.

# Setup Run the following script: ``` cat << EOF > simple_llm.yaml # Simple LLM Actor Example # Demonstrates the most basic actor configuration with just an LLM and system prompt name: local/code_reviewer type: llm description: Reviews Python code for best practices, style, and potential bugs version: "1.0" # LLM configuration provider: openai model: gpt-4 system_prompt: | You are an expert Python code reviewer. Review code for: - PEP 8 style compliance - Best practices and design patterns - Potential bugs and edge cases - Performance considerations - Security vulnerabilities Provide constructive feedback with specific suggestions for improvement. # Context and memory settings context_view: reviewer memory: enabled: true max_messages: 20 max_tokens: 4000 context: include_files: - "README.md" - "pyproject.toml" include_dirs: - "src/" exclude_patterns: - "**/__pycache__/**" - "*.pyc" - "**/.pytest_cache/**" max_context_tokens: 8000 EOF uv venv -c source .venv/bin/activate uv pip install /app agents init --force ``` # When Notice that the name in the file is `local/code-reviewer`. ``` agents actor add local/different_name --config /home/devuser/tests/simple_llm.yaml ``` # Expected Some information that the name in the file and the name in the command line are different. # Actual The actor is added exactly as in the command line.
brent.edwards added this to the v3.2.0 milestone 2026-04-10 01:49:45 +00:00
Owner

Thank you for filing this issue, @brent.edwards. I am reviewing it now and will provide triage feedback shortly.


Automated by CleverAgents Bot
Supervisor: Human Liaison | Agent: human-liaison

Thank you for filing this issue, @brent.edwards. I am reviewing it now and will provide triage feedback shortly. --- **Automated by CleverAgents Bot** Supervisor: Human Liaison | Agent: human-liaison
Owner

Issue verified and triaged:

  • Priority: Low — this is a UX improvement (warning when CLI name differs from YAML name), not a data loss or functional breakage issue. The current behavior is technically consistent (CLI argument takes precedence), but the lack of feedback is confusing.
  • Milestone: v3.2.0 (already assigned)
  • Story Points: 1 (XS) — the fix is straightforward: detect when the CLI-provided name differs from the YAML name field and emit a warning or informational message.
  • Type: Bug — the behavior is unexpected and undocumented.
  • Next step: This issue is now State/Verified and ready for implementation.

Implementation note: The fix should add a check in the agents actor add command handler that compares the CLI-provided name against the name field in the loaded YAML config. If they differ, emit a clear message (e.g., Warning: CLI name 'local/different_name' overrides YAML name 'local/code_reviewer'). The behavior of using the CLI name should be preserved — only the silent override needs to be addressed.


Automated by CleverAgents Bot
Supervisor: Human Liaison | Agent: human-liaison

Issue verified and triaged: - **Priority**: Low — this is a UX improvement (warning when CLI name differs from YAML name), not a data loss or functional breakage issue. The current behavior is technically consistent (CLI argument takes precedence), but the lack of feedback is confusing. - **Milestone**: v3.2.0 (already assigned) - **Story Points**: 1 (XS) — the fix is straightforward: detect when the CLI-provided name differs from the YAML `name` field and emit a warning or informational message. - **Type**: Bug — the behavior is unexpected and undocumented. - **Next step**: This issue is now `State/Verified` and ready for implementation. **Implementation note:** The fix should add a check in the `agents actor add` command handler that compares the CLI-provided name against the `name` field in the loaded YAML config. If they differ, emit a clear message (e.g., `Warning: CLI name 'local/different_name' overrides YAML name 'local/code_reviewer'`). The behavior of using the CLI name should be preserved — only the silent override needs to be addressed. --- **Automated by CleverAgents Bot** Supervisor: Human Liaison | Agent: human-liaison
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
cleveragents/cleveragents-core#6752
No description provided.