Skip to content

Commit aab871d

Browse files
committed
fix: persist guidance filename in project config for enhance flow
The enhance command re-invokes itself via subprocess with saved config args. Without persisting agent_guidance_filename, it always defaulted to GEMINI.md, creating a duplicate file instead of merging into the correct one (e.g., CLAUDE.md). - Persist agent_guidance_filename in create_params across all templates (Python, Go, TypeScript, Java) when non-default - Pass agent_guidance_filename through cli_override_args in enhance
1 parent f125583 commit aab871d

File tree

5 files changed

+14
-0
lines changed

5 files changed

+14
-0
lines changed

agent_starter_pack/base_templates/go/.asp.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,6 @@ language = "go"
88
base_template = "{{cookiecutter.agent_name}}"
99
deployment_target = "{{cookiecutter.deployment_target}}"
1010
cicd_runner = "{{cookiecutter.cicd_runner}}"
11+
{%- if cookiecutter.agent_guidance_filename != "GEMINI.md" %}
12+
agent_guidance_filename = "{{cookiecutter.agent_guidance_filename}}"
13+
{%- endif %}

agent_starter_pack/base_templates/java/pom.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@
4343
<asp.agent_directory>src/main/java</asp.agent_directory>
4444
<asp.deployment_target>{{cookiecutter.deployment_target}}</asp.deployment_target>
4545
<asp.cicd_runner>{{cookiecutter.cicd_runner}}</asp.cicd_runner>
46+
{%- if cookiecutter.agent_guidance_filename != "GEMINI.md" %}
47+
<asp.agent_guidance_filename>{{cookiecutter.agent_guidance_filename}}</asp.agent_guidance_filename>
48+
{%- endif %}
4649
</properties>
4750

4851
<dependencies>

agent_starter_pack/base_templates/python/pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,3 +129,6 @@ session_type = "{{cookiecutter.session_type or 'none'}}"
129129
cicd_runner = "{{cookiecutter.cicd_runner}}"
130130
include_data_ingestion = {{ cookiecutter.data_ingestion | lower }}
131131
datastore = "{{cookiecutter.datastore_type or 'none'}}"
132+
{%- if cookiecutter.agent_guidance_filename != "GEMINI.md" %}
133+
agent_guidance_filename = "{{cookiecutter.agent_guidance_filename}}"
134+
{%- endif %}

agent_starter_pack/base_templates/typescript/.asp.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,6 @@ language = "typescript"
88
base_template = "{{cookiecutter.agent_name}}"
99
deployment_target = "{{cookiecutter.deployment_target}}"
1010
cicd_runner = "{{cookiecutter.cicd_runner}}"
11+
{%- if cookiecutter.agent_guidance_filename != "GEMINI.md" %}
12+
agent_guidance_filename = "{{cookiecutter.agent_guidance_filename}}"
13+
{%- endif %}

agent_starter_pack/cli/commands/enhance.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -666,6 +666,8 @@ def enhance(
666666
cli_override_args["include_data_ingestion"] = include_data_ingestion
667667
if prototype:
668668
cli_override_args["prototype"] = prototype
669+
if agent_guidance_filename != "GEMINI.md":
670+
cli_override_args["agent_guidance_filename"] = agent_guidance_filename
669671

670672
if check_and_execute_with_saved_config(
671673
current_dir, auto_approve=auto_approve, cli_overrides=cli_override_args

0 commit comments

Comments
 (0)