Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Extension: config write-back should respect existing config file location

Open
#57 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
55/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
typescript
Domain
tooling

Research direction

Start in vscode-extension/src/commands/instructions.ts and trace loadAgentrcConfig() to see how it resolves the root and .github/agentrc.config.json candidates. Update write-back to use the resolved existing location, creating the root file only when neither candidate exists. Done means write-back preserves the repository's existing config location.

Written by the indexing model from the issue text.

Description

bug vscode-extension

The strategy write-back in vscode-extension/src/commands/instructions.ts always targets <repo>/agentrc.config.json, but loadAgentrcConfig() also supports .github/agentrc.config.json. If a repo uses the .github/ location, this silently creates a second config file, and future reads may not pick up the intended one.

Proposed: Check loadAgentrcConfig() resolution path to determine which candidate file exists, and update that one. Only create a new file at the root when neither exists.

Ref: PR #55 review comment instructions.ts

Dominant language
TypeScript
Stars
1.1k
Forks
94
Avg merge
3d 3h
Merged PRs (30d)
34

Getting set up

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.

More from microsoft/agentrc

All issues in microsoft/agentrc

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.