Skip to content

fix(config): align AGENT_ENGINE env var convention to _ID_ pattern#67

Merged
jeremylongshore merged 2 commits intomainfrom
fix/pr65-review-feedback
Feb 20, 2026
Merged

fix(config): align AGENT_ENGINE env var convention to _ID_ pattern#67
jeremylongshore merged 2 commits intomainfrom
fix/pr65-review-feedback

Conversation

@jeremylongshore
Copy link
Copy Markdown
Collaborator

@jeremylongshore jeremylongshore commented Feb 20, 2026

Summary

Fixes the env var contract mismatch flagged by Greptile and Qodo on PR #66.

Root cause: agents/config/agent_engine.py:146 constructed env var names as AGENT_ENGINE_{AGENT}_{ENV} (e.g. AGENT_ENGINE_BOB_DEV), but the canonical convention used everywhere else was AGENT_ENGINE_{AGENT}_ID_{ENV} (e.g. AGENT_ENGINE_BOB_ID_DEV).

Impact: Users following documented setup (inventory.py, docs, test examples) would set AGENT_ENGINE_BOB_ID_DEV but the runtime looked for AGENT_ENGINE_BOB_DEV — resulting in "agent not configured" errors.

Fix: Added _ID_ to the runtime env var construction to match the canonical convention. Updated all docstrings, examples, Makefile echo, and smoke script guidance to be consistent.

Files changed:

  • agents/config/agent_engine.py — runtime construction + docstrings/examples
  • Makefile — env var in echo message
  • scripts/run_agent_engine_dev_smoke.py — guidance output + docstring

Test plan

  • CI passes (existing test at test_agent_engine_client.py:49 already uses AGENT_ENGINE_BOB_ID_DEV)
  • grep -r "AGENT_ENGINE_BOB_DEV" agents/ scripts/ Makefile returns zero matches (only _ID_DEV)

🤖 Generated with Claude Code

Summary by CodeRabbit

Release Notes

  • Chores
    • Updated environment variable naming convention for agent engine configuration.

@gemini-code-assist
Copy link
Copy Markdown

Summary of Changes

Hello @jeremylongshore, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request addresses a critical inconsistency in how AGENT_ENGINE environment variables were constructed and expected, ensuring that the runtime correctly identifies agent configurations. By aligning the environment variable naming convention to include _ID_ and updating all relevant documentation and scripts, it eliminates a source of common configuration errors and improves the reliability of agent deployments.

Highlights

  • Environment Variable Alignment: The AGENT_ENGINE environment variable construction now consistently includes _ID_ (e.g., AGENT_ENGINE_BOB_ID_DEV) to match the canonical convention used across the system.
  • Documentation and Example Updates: All related docstrings, code examples, Makefile messages, and smoke test script guidance have been updated to reflect the corrected _ID_ pattern for environment variables.
  • Prevention of Configuration Errors: This fix resolves a contract mismatch that previously caused "agent not configured" errors when users followed documented setup instructions, as the runtime was looking for an incorrect environment variable name.
Changelog
  • Makefile
    • Updated the informational message for the smoke-bob-agent-engine-dev target to correctly reference AGENT_ENGINE_BOB_ID_DEV.
    • Removed the --agent bob argument from the run_agent_engine_dev_smoke.py script call.
  • agents/config/agent_engine.py
    • Corrected the expected environment variable format in docstrings and examples to AGENT_ENGINE_{AGENT}_ID_{ENV}.
    • Modified the get_agent_engine_id function to construct environment variable names with the _ID_ suffix.
    • Updated error messages and guidance in validate_config to suggest the correct _ID_ suffixed environment variable.
Activity
  • The pull request was generated using Claude Code.
  • Existing CI tests, specifically test_agent_engine_client.py:49, already validate the AGENT_ENGINE_BOB_ID_DEV convention.
  • A grep check confirmed that the incorrect AGENT_ENGINE_BOB_DEV pattern is no longer present in agents/, scripts/, and Makefile.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@qodo-code-review
Copy link
Copy Markdown

Review Summary by Qodo

Align Agent Engine env var convention to ID pattern across codebase

🐞 Bug fix

Grey Divider

Walkthroughs

Description
• Align runtime env var construction to canonical AGENT_ENGINE_{AGENT}_ID_{ENV} pattern
• Fix contract mismatch between documented setup and actual runtime expectations
• Update all docstrings, examples, and guidance across config, scripts, and Makefile
• Add clarifying separator comment in CLAUDE.md directory tree diagram
Diagram
flowchart LR
  A["Runtime Code<br/>agent_engine.py:146"] -->|"Add _ID_ to<br/>env var construction"| B["AGENT_ENGINE_{AGENT}_ID_{ENV}"]
  C["Docstrings &<br/>Examples"] -->|"Update to match<br/>canonical pattern"| B
  D["Makefile &<br/>Scripts"] -->|"Fix guidance &<br/>echo messages"| B
  B -->|"Matches documented<br/>setup in inventory.py"| E["Consistent Contract"]
Loading

Grey Divider

File Changes

1. agents/config/agent_engine.py 🐞 Bug fix +7/-7

Fix env var pattern to include ID throughout

• Updated env var construction from AGENT_ENGINE_{AGENT}_{ENV} to AGENT_ENGINE_{AGENT}_ID_{ENV}
 at line 146
• Fixed module docstring to reflect canonical pattern AGENT_ENGINE_{AGENT}_ID_{ENV}
• Updated docstring examples in get_agent_engine_id() to use correct env var format
• Updated docstring examples in build_agent_config() to use correct env var format
• Fixed error message in validate_config() to reference correct env var pattern
• Fixed guidance output in validate_config() to show correct env var export syntax

agents/config/agent_engine.py


2. Makefile 🐞 Bug fix +2/-2

Fix smoke test env var reference and remove redundant flag

• Updated smoke test echo message from legacy BOB_AGENT_ENGINE_NAME_DEV to correct
 AGENT_ENGINE_BOB_ID_DEV
• Removed redundant --agent bob flag from smoke test command (bob is default)

Makefile


3. scripts/run_agent_engine_dev_smoke.py 🐞 Bug fix +0/-0

Smoke test script guidance alignment

• No changes shown in diff (referenced in commit message as having guidance output fixed)

scripts/run_agent_engine_dev_smoke.py


View more (1)
4. CLAUDE.md 📝 Documentation +1/-1

Add separator comment in directory tree diagram

• Added clarifying separator comment between agent tier directories and infrastructure/utility
 directories in tree diagram

CLAUDE.md


Grey Divider

Qodo Logo

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Feb 20, 2026

📝 Walkthrough

Walkthrough

Updated environment variable naming convention from AGENT_ENGINE_{AGENT}_{ENV} to AGENT_ENGINE_{AGENT}_ID_{ENV} across build configuration and agent engine code, with corresponding updates to documentation, examples, and guidance messages.

Changes

Cohort / File(s) Summary
Build Configuration
Makefile
Updated dev smoke test help text to reference AGENT_ENGINE_BOB_ID_DEV instead of AGENT_ENGINE_BOB_DEV.
Agent Engine Configuration
agents/config/agent_engine.py
Updated environment variable naming pattern in docstrings, examples, error messages, and CLI guidance to reflect the new AGENT_ENGINE_{AGENT}_ID_{ENV} naming scheme; get_agent_engine_id(), build_agent_config(), and validate_config() references updated accordingly.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Possibly related PRs

Poem

🐰 A rabbit hops through code with glee,
Renaming variables with identity,
BOB_ID now shines so bright,
Environment strings set just right! ✨

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'fix(config): align AGENT_ENGINE env var convention to ID pattern' directly and accurately describes the main change: correcting the environment variable naming pattern across agent engine configuration.
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
  • 📝 Generate docstrings (stacked PR)
  • 📝 Generate docstrings (commit on current branch)
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch fix/pr65-review-feedback

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request correctly fixes a bug where an incorrect environment variable name was being constructed, leading to 'agent not configured' errors. The fix aligns the runtime environment variable construction with the canonical AGENT_ENGINE_{AGENT}_ID_{ENV} pattern. The changes are applied consistently across the core logic, documentation, examples, and helper scripts. My review includes one suggestion to improve the maintainability of the Makefile by making a build target more explicit.

@echo "$(YELLOW)ℹ️ Requires BOB_AGENT_ENGINE_NAME_DEV to be set after dev deployment$(NC)"
@$(PYTHON) scripts/run_agent_engine_dev_smoke.py --agent bob
@echo "$(YELLOW)ℹ️ Requires AGENT_ENGINE_BOB_ID_DEV to be set after dev deployment$(NC)"
@$(PYTHON) scripts/run_agent_engine_dev_smoke.py
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

While the run_agent_engine_dev_smoke.py script defaults to agent bob, it's more explicit and robust to specify the agent directly in this make target. The smoke-bob-agent-engine-dev target is specifically for 'bob', and relying on the script's default creates a tight coupling. If the script's default ever changes, this target would silently start testing a different agent. Explicitly passing --agent bob makes the Makefile's intent clear and independent of the script's internal defaults.

	@$(PYTHON) scripts/run_agent_engine_dev_smoke.py --agent bob

@greptile-apps
Copy link
Copy Markdown

greptile-apps bot commented Feb 20, 2026

Greptile Summary

This PR fixes an environment variable naming mismatch that would cause runtime failures. The runtime code in agents/config/agent_engine.py:146 was constructing env vars as AGENT_ENGINE_{AGENT}_{ENV} (e.g., AGENT_ENGINE_BOB_DEV), but the documented convention across inventory.py, tests, and all examples uses AGENT_ENGINE_{AGENT}_ID_{ENV} (e.g., AGENT_ENGINE_BOB_ID_DEV).

Key changes:

  • Fixed runtime env var construction at agents/config/agent_engine.py:146 by adding _ID_ segment
  • Updated all docstrings, examples, and error messages throughout agent_engine.py for consistency
  • Corrected Makefile smoke test target to reference the right env var name
  • The CLAUDE.md change is cosmetic (added an inline comment)

Impact: This fix ensures users following the documented setup will have their environment variables correctly read by the runtime, preventing "agent not configured" errors.

Confidence Score: 5/5

  • This PR is safe to merge - it fixes a critical bug without introducing any new risks
  • The fix is surgical and correct: changes a single string interpolation to add the missing _ID_ segment, aligns all documentation, and is already validated by existing tests that use the correct pattern
  • No files require special attention

Important Files Changed

Filename Overview
CLAUDE.md Added inline comment separator for infrastructure/utility directories - cosmetic change
Makefile Updated smoke test target to reference correct env var AGENT_ENGINE_BOB_ID_DEV and removed redundant --agent bob parameter
agents/config/agent_engine.py Fixed runtime env var construction to match canonical _ID_ pattern - updated line 146 and all documentation/examples

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A[User sets env var] --> B{Which pattern?}
    B -->|Before fix| C[AGENT_ENGINE_BOB_DEV]
    B -->|After fix| D[AGENT_ENGINE_BOB_ID_DEV]
    
    C --> E[Runtime constructs:<br/>AGENT_ENGINE_BOB_DEV]
    D --> F[Runtime constructs:<br/>AGENT_ENGINE_BOB_ID_DEV]
    
    E --> G{Match?}
    F --> H{Match?}
    
    G -->|NO| I[❌ Variable not found<br/>Agent not configured error]
    H -->|YES| J[✅ Variable found<br/>Agent configured successfully]
    
    K[Documentation/Tests/inventory.py] --> L[Canonical pattern:<br/>AGENT_ENGINE_*_ID_*]
    L --> D
    
    style I fill:#ffcccc
    style J fill:#ccffcc
    style C fill:#ffffcc
    style D fill:#ccffcc
Loading

Last reviewed commit: 6123ee1

Copy link
Copy Markdown

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

3 files reviewed, no comments

Edit Code Review Agent Settings | Greptile

Copy link
Copy Markdown

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
CLAUDE.md (1)

219-253: ⚠️ Potential issue | 🟠 Major

Move the new directory layout documentation into 000-docs/.

This added layout detail is documentation content in CLAUDE.md, which is outside the required docs folder. Please relocate this block to a properly named file under 000-docs/ and keep CLAUDE.md as a pointer. As per coding guidelines, "All documentation must be placed in 000-docs/ folder with NNN-CC-ABCD or 000-CC-ABCD naming format - Hard Mode Rule R6."

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@CLAUDE.md` around lines 219 - 253, The "Agent Directory Layout" block in
CLAUDE.md is documentation and must be moved into a new file under 000-docs
using the required naming format (NNN-CC-ABCD or 000-CC-ABCD); create a new doc
file with that name containing the directory layout content (the agents/ tree
and its description) and replace the original block in CLAUDE.md with a short
pointer line that references the new 000-docs file; ensure the new doc preserves
the exact layout text and that CLAUDE.md only contains the pointer.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Outside diff comments:
In `@CLAUDE.md`:
- Around line 219-253: The "Agent Directory Layout" block in CLAUDE.md is
documentation and must be moved into a new file under 000-docs using the
required naming format (NNN-CC-ABCD or 000-CC-ABCD); create a new doc file with
that name containing the directory layout content (the agents/ tree and its
description) and replace the original block in CLAUDE.md with a short pointer
line that references the new 000-docs file; ensure the new doc preserves the
exact layout text and that CLAUDE.md only contains the pointer.

jeremylongshore pushed a commit that referenced this pull request Feb 20, 2026
@qodo-code-review
Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (2) 📘 Rule violations (0) 📎 Requirement gaps (0)

Grey Divider


Action required

1. Docs use wrong env var 🐞 Bug ✓ Correctness
Description
Docs/CHANGELOG still instruct setting BOB_AGENT_ENGINE_NAME_DEV (full resource name), but runtime
+ Makefile now require AGENT_ENGINE_BOB_ID_DEV (ID only). Users following docs will be “not
configured” or may paste a full resource name into an *_ID_* var and produce invalid resource paths.
Code

Makefile[R435-436]

+	@echo "$(YELLOW)ℹ️  Requires AGENT_ENGINE_BOB_ID_DEV to be set after dev deployment$(NC)"
+	@$(PYTHON) scripts/run_agent_engine_dev_smoke.py
Evidence
The Makefile now tells users to set AGENT_ENGINE_BOB_ID_DEV and runs the new smoke script. The
smoke script and config module expect AGENT_ENGINE_{AGENT}_ID_DEV and treat missing config as
non-configured. However, docs and CHANGELOG still instruct BOB_AGENT_ENGINE_NAME_DEV (a different
variable holding a full resource name), which will not be read by the runtime config. Additionally,
the config module builds full resource paths by appending the env var value as an ID, so providing a
full resource name would create an invalid path.

Makefile[433-437]
scripts/run_agent_engine_dev_smoke.py[121-137]
CHANGELOG.md[629-639]
000-docs/000-DR-STND-inline-source-deployment-for-vertex-agent-engine.md[514-524]
agents/config/agent_engine.py[166-193]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

### Issue description
Docs and CHANGELOG still instruct `BOB_AGENT_ENGINE_NAME_DEV` (full resource name) while the runtime/Makefile now requires `AGENT_ENGINE_BOB_ID_DEV` (ID only). This will cause users following docs to fail configuration.

### Issue Context
- Runtime reads `AGENT_ENGINE_{AGENT}_ID_{ENV}`.
- Some docs still describe the old env var and a full resource-name value.

### Fix Focus Areas
- Makefile[433-437]
- scripts/run_agent_engine_dev_smoke.py[16-26]
- CHANGELOG.md[629-639]
- 000-docs/000-DR-STND-inline-source-deployment-for-vertex-agent-engine.md[508-546]
- 000-docs/130-AA-REPT-phase-5-first-dev-deploy-and-smoke-test.md[83-91]
- agents/config/agent_engine.py[166-193]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


2. Docs cite wrong smoke script 🐞 Bug ⛯ Reliability
Description
Multiple docs/CHANGELOG reference scripts/smoke_test_bob_agent_engine_dev.py, but the Makefile
target runs scripts/run_agent_engine_dev_smoke.py. This will break the documented smoke workflow
and create confusion about which script is canonical.
Code

Makefile[436]

+	@$(PYTHON) scripts/run_agent_engine_dev_smoke.py
Evidence
The Makefile target executes scripts/run_agent_engine_dev_smoke.py. However, docs and CHANGELOG
still refer to a different script name/path for the smoke test, so following the docs won’t match
what make smoke-bob-agent-engine-dev actually runs.

Makefile[433-437]
CHANGELOG.md[629-635]
000-docs/000-DR-STND-inline-source-deployment-for-vertex-agent-engine.md[508-546]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

### Issue description
Docs/CHANGELOG point to `scripts/smoke_test_bob_agent_engine_dev.py` while the Makefile runs `scripts/run_agent_engine_dev_smoke.py`. The documented smoke workflow is inconsistent.

### Issue Context
Users will follow docs for smoke testing and expect the Makefile target to run the same script.

### Fix Focus Areas
- Makefile[433-437]
- CHANGELOG.md[629-639]
- 000-docs/000-DR-STND-inline-source-deployment-for-vertex-agent-engine.md[508-546]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


Grey Divider

ⓘ The new review experience is currently in Beta. Learn more

Grey Divider

Qodo Logo

Comment on lines +435 to +436
@echo "$(YELLOW)ℹ️ Requires AGENT_ENGINE_BOB_ID_DEV to be set after dev deployment$(NC)"
@$(PYTHON) scripts/run_agent_engine_dev_smoke.py
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Action required

1. Docs use wrong env var 🐞 Bug ✓ Correctness

Docs/CHANGELOG still instruct setting BOB_AGENT_ENGINE_NAME_DEV (full resource name), but runtime
+ Makefile now require AGENT_ENGINE_BOB_ID_DEV (ID only). Users following docs will be “not
configured” or may paste a full resource name into an *_ID_* var and produce invalid resource paths.
Agent Prompt
### Issue description
Docs and CHANGELOG still instruct `BOB_AGENT_ENGINE_NAME_DEV` (full resource name) while the runtime/Makefile now requires `AGENT_ENGINE_BOB_ID_DEV` (ID only). This will cause users following docs to fail configuration.

### Issue Context
- Runtime reads `AGENT_ENGINE_{AGENT}_ID_{ENV}`.
- Some docs still describe the old env var and a full resource-name value.

### Fix Focus Areas
- Makefile[433-437]
- scripts/run_agent_engine_dev_smoke.py[16-26]
- CHANGELOG.md[629-639]
- 000-docs/000-DR-STND-inline-source-deployment-for-vertex-agent-engine.md[508-546]
- 000-docs/130-AA-REPT-phase-5-first-dev-deploy-and-smoke-test.md[83-91]
- agents/config/agent_engine.py[166-193]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

@echo "$(YELLOW)ℹ️ Requires BOB_AGENT_ENGINE_NAME_DEV to be set after dev deployment$(NC)"
@$(PYTHON) scripts/run_agent_engine_dev_smoke.py --agent bob
@echo "$(YELLOW)ℹ️ Requires AGENT_ENGINE_BOB_ID_DEV to be set after dev deployment$(NC)"
@$(PYTHON) scripts/run_agent_engine_dev_smoke.py
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Action required

2. Docs cite wrong smoke script 🐞 Bug ⛯ Reliability

Multiple docs/CHANGELOG reference scripts/smoke_test_bob_agent_engine_dev.py, but the Makefile
target runs scripts/run_agent_engine_dev_smoke.py. This will break the documented smoke workflow
and create confusion about which script is canonical.
Agent Prompt
### Issue description
Docs/CHANGELOG point to `scripts/smoke_test_bob_agent_engine_dev.py` while the Makefile runs `scripts/run_agent_engine_dev_smoke.py`. The documented smoke workflow is inconsistent.

### Issue Context
Users will follow docs for smoke testing and expect the Makefile target to run the same script.

### Fix Focus Areas
- Makefile[433-437]
- CHANGELOG.md[629-639]
- 000-docs/000-DR-STND-inline-source-deployment-for-vertex-agent-engine.md[508-546]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

jeremylongshore and others added 2 commits February 19, 2026 18:29
The runtime code in agent_engine.py:146 constructed env var names as
AGENT_ENGINE_{AGENT}_{ENV} (e.g. AGENT_ENGINE_BOB_DEV), but the
canonical convention used by inventory.py, tests, and all docs is
AGENT_ENGINE_{AGENT}_ID_{ENV} (e.g. AGENT_ENGINE_BOB_ID_DEV).

This caused a contract mismatch where following the documented setup
would result in "agent not configured" errors at runtime.

Fixed by adding _ID_ to the runtime construction and aligning all
docstrings, examples, and guidance messages across:
- agents/config/agent_engine.py (runtime + docstrings)
- scripts/run_agent_engine_dev_smoke.py (guidance output)
- Makefile (env var echo message)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@jeremylongshore jeremylongshore force-pushed the fix/pr65-review-feedback branch from 6a18ee6 to a526e94 Compare February 20, 2026 00:29
Copy link
Copy Markdown

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
agents/config/agent_engine.py (1)

325-343: ⚠️ Potential issue | 🟡 Minor

Docstring still references the old env var pattern.

Line 331 says AGENT_ENGINE_*_{ENV} but should say AGENT_ENGINE_*_ID_{ENV} to match the updated convention. This inconsistency could confuse developers reading the docs.

📝 Proposed fix
     """
     List all agents configured in a specific environment.

-    Scans environment variables for AGENT_ENGINE_*_{ENV} patterns.
+    Scans environment variables for AGENT_ENGINE_*_ID_{ENV} patterns.

     Args:
         env: Environment (if None, uses current environment)
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@agents/config/agent_engine.py` around lines 325 - 343, The docstring for
list_configured_agents incorrectly describes the env var pattern as
AGENT_ENGINE_*_{ENV}; update that description to the new convention
AGENT_ENGINE_*_ID_{ENV} so the docs match the implemented parsing logic in
list_configured_agents; edit the docstring within the function
list_configured_agents to replace the old pattern text with
AGENT_ENGINE_*_ID_{ENV} (and adjust any example or explanatory text if it
references the old pattern).
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Outside diff comments:
In `@agents/config/agent_engine.py`:
- Around line 325-343: The docstring for list_configured_agents incorrectly
describes the env var pattern as AGENT_ENGINE_*_{ENV}; update that description
to the new convention AGENT_ENGINE_*_ID_{ENV} so the docs match the implemented
parsing logic in list_configured_agents; edit the docstring within the function
list_configured_agents to replace the old pattern text with
AGENT_ENGINE_*_ID_{ENV} (and adjust any example or explanatory text if it
references the old pattern).

@jeremylongshore jeremylongshore merged commit e1b3efe into main Feb 20, 2026
16 checks passed
@jeremylongshore jeremylongshore deleted the fix/pr65-review-feedback branch February 20, 2026 00:33
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.

1 participant