Skip to content

Support referencing existing project files in prompts (OpenCode "@file"-style) #174

Description

@NANAMINER

Problem

The Telegram bot allows uploading files from Telegram and browsing the project with "/ls", but there is no convenient way to reference an existing file from the project when composing a prompt.

In OpenCode itself, I frequently use "@filename" to include project files in the conversation. This workflow is missing in the Telegram bot.

Currently, I have to manually type file paths in the prompt, which is slower and more error-prone, especially in larger projects.

Proposal

Add a way to attach existing project files to a prompt.

The exact UX is up to you, but some possible options are:

  • support "@filename" autocomplete similar to OpenCode;
  • add an "/attach" command;
  • allow selecting a file from "/ls" and attaching it to the next prompt.

The main goal is to make it easy to reference existing project files without manually typing their paths.

Done criteria (optional)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions