Describe the bug
When installing a local package with apm install, Gemini-specific instructions are not properly deployed, even when the package explicitly targets Gemini in apm.yml.
The installation generates or updates GEMINI.md with only a generation comment, but the actual instructions from the package are not included.
Also, AGENTS.md is not modified, which is expected in this case because the package target is gemini.
As a result, the package appears to be installed successfully, but Gemini does not receive the expected instructions.
To Reproduce
Steps to reproduce the behavior:
- Create or use a local APM package with the following
apm.yml:
name: gemini-ai-assets
version: 1.0.0
description: APM project for gemini-cli-config
author: xxx
# Which agent platforms to deploy to.
# Resolution order: --target flag > this field > auto-detect from filesystem.
# Accepted values: vscode, agents, copilot, claude, cursor, opencode, codex,
# gemini, antigravity, windsurf, kiro, agent-skills, all
targets:
- gemini
dependencies:
apm: []
mcp: []
includes: auto
scripts: {}
compilation:
agents_md:
mode: managed_section
start_marker: "<!-- apm:start -->"
end_marker: "<!-- apm:end -->"
-
Run the installation command with the local package:
apm install <local-package-path>
-
Check the generated files after installation.
-
Observe that:
AGENTS.md is not modified, which is expected because the target is gemini.
GEMINI.md is created or updated.
GEMINI.md only contains a generation comment.
- The expected Gemini instructions from the package are missing.
Expected behavior
When installing a local package that explicitly targets Gemini using:
apm install should include the package instructions in the generated GEMINI.md.
The generated GEMINI.md should contain the actual Gemini-specific instructions provided by the package, not only a generation comment.
Since the package targets Gemini, I do not expect AGENTS.md to be modified. However, I do expect GEMINI.md to contain the compiled instructions.
Environment (please complete the following information):
- OS:
Windows
- APM Version:
0.24.0
Logs
No explicit error is displayed during installation.
Observed generated GEMINI.md content:
# GEMINI.md
<!-- Generated by APM CLI -->
<!-- Build ID: c1ee548a736b -->
<!-- APM Version: 0.23.1 -->
@./AGENTS.md
Install & compilation logs :
front [ dev][⏱ 8s]
➜ apm install
[>] Installing dependencies from apm.yml...
[!] Could not fetch org policy from xxx (HTTP 410 fetching policy from xxx/xxx/.github); proceeding without policy enforcement. Retry, check
connectivity, or use --no-policy to bypass.
[i] Targets: gemini (source: apm.yml)
[+] ./../gemini-cli-config/build/gemini-ai-assets-1.0.0 (local)
|-- Skill integrated -> .agents/skills/
|-- 2 skill(s) integrated -> .agents/skills/
[*] Installed 1 APM dependency in 1.6s.
front [ dev][⏱ 14s]
➜ apm compile
[*] Starting context compilation...
[i] Targets: gemini (source: apm.yml)
[i] Compiling for GEMINI.md + .gemini/commands/ + .gemini/skills/ + .gemini/settings.json (MCP/hooks) - apm.yml target
[i] Generated GEMINI.md (imports AGENTS.md)
[+] Compilation completed successfully!
The expected Gemini instructions are not included.
Additional context
This issue occurs when deploying/installing a local package using apm install.
The package configuration explicitly targets Gemini through apm.yml, and includes is set to auto.
The installation appears to complete successfully, but the Gemini instructions are silently omitted from the generated GEMINI.md. This makes the issue difficult to detect unless the generated file is manually inspected.
The expected behavior would be for local package instructions targeting Gemini to be compiled into GEMINI.md.
Describe the bug
When installing a local package with
apm install, Gemini-specific instructions are not properly deployed, even when the package explicitly targets Gemini inapm.yml.The installation generates or updates
GEMINI.mdwith only a generation comment, but the actual instructions from the package are not included.Also,
AGENTS.mdis not modified, which is expected in this case because the package target isgemini.As a result, the package appears to be installed successfully, but Gemini does not receive the expected instructions.
To Reproduce
Steps to reproduce the behavior:
apm.yml:Run the installation command with the local package:
Check the generated files after installation.
Observe that:
AGENTS.mdis not modified, which is expected because the target isgemini.GEMINI.mdis created or updated.GEMINI.mdonly contains a generation comment.Expected behavior
When installing a local package that explicitly targets Gemini using:
apm installshould include the package instructions in the generatedGEMINI.md.The generated
GEMINI.mdshould contain the actual Gemini-specific instructions provided by the package, not only a generation comment.Since the package targets Gemini, I do not expect
AGENTS.mdto be modified. However, I do expectGEMINI.mdto contain the compiled instructions.Environment (please complete the following information):
Windows0.24.0Logs
No explicit error is displayed during installation.
Observed generated
GEMINI.mdcontent:Install & compilation logs :
The expected Gemini instructions are not included.
Additional context
This issue occurs when deploying/installing a local package using
apm install.The package configuration explicitly targets Gemini through
apm.yml, andincludesis set toauto.The installation appears to complete successfully, but the Gemini instructions are silently omitted from the generated
GEMINI.md. This makes the issue difficult to detect unless the generated file is manually inspected.The expected behavior would be for local package instructions targeting Gemini to be compiled into
GEMINI.md.