-
Notifications
You must be signed in to change notification settings - Fork 155
feat(init): detect agentrc and suggest it in Next Steps #518
Copy link
Copy link
Open
Labels
area/cliCLI command surface, flags, help text (cross-cutting).CLI command surface, flags, help text (cross-cutting).enhancementDeprecated: use type/feature. Kept for issue history; will be removed in milestone 0.10.0.Deprecated: use type/feature. Kept for issue history; will be removed in milestone 0.10.0.priority/lowAccepted but not time-sensitiveAccepted but not time-sensitivestatus/acceptedDirection approved, safe to start work.Direction approved, safe to start work.status/triagedInitial agentic triage complete; pending maintainer ratification (silence = approval).Initial agentic triage complete; pending maintainer ratification (silence = approval).type/featureNew capability, new flag, new primitive.New capability, new flag, new primitive.
Milestone
Metadata
Metadata
Assignees
Labels
area/cliCLI command surface, flags, help text (cross-cutting).CLI command surface, flags, help text (cross-cutting).enhancementDeprecated: use type/feature. Kept for issue history; will be removed in milestone 0.10.0.Deprecated: use type/feature. Kept for issue history; will be removed in milestone 0.10.0.priority/lowAccepted but not time-sensitiveAccepted but not time-sensitivestatus/acceptedDirection approved, safe to start work.Direction approved, safe to start work.status/triagedInitial agentic triage complete; pending maintainer ratification (silence = approval).Initial agentic triage complete; pending maintainer ratification (silence = approval).type/featureNew capability, new flag, new primitive.New capability, new flag, new primitive.
Type
Projects
Status
Todo
Why
APM and agentrc are complementary tools: agentrc generates tailored agent instructions from real code analysis, APM distributes and governs them across teams. The agentrc side already bridges to APM —
agentrc initdetects APM and offers to runapm init(agentrc PR #94, merged).The reverse bridge is missing. Developers who discover APM first should learn about agentrc at the right moment: when they just initialized a project and have no agent instructions yet.
What
After
apm initcreatesapm.yml, the "Next Steps" panel should contextually suggest agentrc — not as a prompt or subprocess call, but as an informational next step alongside the existing ones.Behavior matrix
agentrcin PATH + no instructions existGenerate agent instructions: agentrc initagentrcnot in PATH + no instructions existTip: use agentrc to generate tailored agent instructions from your codebase. https://github.com/microsoft/agentrc.github/copilot-instructions.md,AGENTS.md, etc.)--yesmodeWhy "Next Steps" and not a prompt
APM init is fast and deterministic — no LLM calls, no network beyond git config detection. Running
agentrc initas a subprocess would take 30-60s (Copilot SDK calls) and break the flow. A next step is a suggestion the user acts on when ready. Same pattern as npm scaffolders printing what to do next.How
~30 lines in
src/apm_cli/commands/init.py:Modify next steps building (around line 134-157) to conditionally prepend the agentrc step.
Add tip after the panel when agentrc not installed and no instructions found.
No new dependencies, no prompts, no subprocess calls.
Related