Skip to content

feat(agents): add --targets and --link-mode for non-interactive IDE wiring#158

Merged
SutuSebastian merged 1 commit into
mainfrom
feat/agents-init-non-interactive-targets
May 27, 2026
Merged

feat(agents): add --targets and --link-mode for non-interactive IDE wiring#158
SutuSebastian merged 1 commit into
mainfrom
feat/agents-init-non-interactive-targets

Conversation

@SutuSebastian
Copy link
Copy Markdown
Contributor

Summary

  • Add codemap agents init --targets <ids> for non-interactive IDE wiring (Cursor rules, Copilot instructions, etc.) without --interactive.
  • Add --link-mode symlink|copy when targets include rule-mirror integrations.
  • Combine --targets with --mcp to write MCP config only for selected integrations (e.g. cursor,copilot without Continue/Cline/root .mcp.json unless claude-md is targeted).
  • Mutually exclusive with --interactive; unknown ids fail fast with the valid list.

Motivation

Hosted-checkout and CI/sandbox flows need to refresh committed .cursor/ + .vscode/ MCP without blasting every defaultOnMcp registry entry. Core plumbing already existed in runAgentsInit; this PR exposes it on the CLI.

Test plan

  • bun test src/cli.test.ts src/cli/cmd-agents.test.ts src/agents-init-targets.test.ts
  • Pre-commit lint-staged on both commits
  • Manual: codemap agents init --force --targets cursor,copilot --mcp writes only Cursor + VS Code MCP

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 27, 2026

Warning

Review limit reached

@SutuSebastian, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 26 minutes and 29 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: f2ab0313-dd2c-47f5-839b-88e459908a61

📥 Commits

Reviewing files that changed from the base of the PR and between 33cd88c and 051826e.

📒 Files selected for processing (13)
  • .changeset/agents-init-targets.md
  • docs/agents.md
  • docs/roadmap.md
  • src/agents-init-targets.test.ts
  • src/agents-init-targets.ts
  • src/agents-init.test.ts
  • src/agents-init.ts
  • src/cli.test.ts
  • src/cli/bootstrap.ts
  • src/cli/cmd-agents.test.ts
  • src/cli/cmd-agents.ts
  • src/cli/main.ts
  • templates/agent-content/skill/10-recipes-context.md
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/agents-init-non-interactive-targets

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 27, 2026

🦋 Changeset detected

Latest commit: 051826e

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@stainless-code/codemap Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@SutuSebastian SutuSebastian force-pushed the feat/agents-init-non-interactive-targets branch from 38c465d to 386c325 Compare May 27, 2026 16:49
Expose --targets and --link-mode on codemap agents init for CI and sandboxes.
Combine with --mcp to write MCP configs only for selected integrations.
Side-effect paths compose targets with --git-hooks or --mcp on existing .agents/
without --force.
@SutuSebastian SutuSebastian force-pushed the feat/agents-init-non-interactive-targets branch from 386c325 to 051826e Compare May 27, 2026 16:51
@SutuSebastian SutuSebastian merged commit e8ea640 into main May 27, 2026
11 checks passed
@SutuSebastian SutuSebastian deleted the feat/agents-init-non-interactive-targets branch May 27, 2026 16:53
@github-actions github-actions Bot mentioned this pull request May 27, 2026
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