anomalyco / anomalyco/opencode

[FEATURE]: Add support for @file

Open
#49,782 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
209k
Forks
27.5k
PR merge metrics
PR metrics pending

Description

Feature hasn't been suggested before.
  • I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request

Claude Code uses the @file syntax to include a file. OpenCode will read CLAUDE.md if AGENTS.md is not specified but if it doesn't understand the @file syntax, an important feature is missed. My request is to add Claude Code's @file feature to OpenCode.

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 by locating the prompt-input parsing and the existing CLAUDE.md or AGENTS.md handling in OpenCode. Compare how Claude Code interprets @file, then define completion as OpenCode recognizing that syntax and including the referenced file content in the request.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
ai, cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.