microsoft / microsoft/agentrc

Extension: batch instructions should support nested strategy

Open
#58 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement vscode-extension
Dominant language
TypeScript
Stars
1.1k
Forks
94
Avg merge
8d 3h
Merged PRs (30d)
7

Description

The batch instructions command (vscode-extension/src/commands/batch.ts) always calls generateCopilotInstructions() (flat generation), even when agentrc.config.json specifies strategy: "nested". It adjusts the output path to AGENTS.md but doesn't actually generate nested output (hub + detail files + optional CLAUDE.md).

Current behavior: Generates flat content, writes to AGENTS.md path when config says nested.
Expected: Use generateNestedInstructions() + writeNestedInstructions() when strategy is nested.

Complexity: Nested generation involves multi-file writes and interactive choices (detailDir, claudeMd) that are harder to batch. May need to read these from config rather than prompting per-root.

Ref: PR #55 review comment batch.ts

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in vscode-extension/src/commands/batch.ts and trace how agentrc.config.json supplies the strategy and related nested options. Compare the flat and nested generation paths, then verify that nested configuration writes the hub, detail files, and optional CLAUDE.md without per-root prompts.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
developer-experience, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.