Skip to content

Let OpenCode ask the source code directly by integrating Better Context CLI

License

Notifications You must be signed in to change notification settings

koichincom/opencode-btca

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenCode Btca

Scripts and configuration for integrating Better Context (btca) with OpenCode. Better Context and OpenCode must be installed and configured prior to use.

Contents

Files

Note

Combine the files with your existing configuration. You don't need to use all the files.

Allow OpenCode agents to invoke btca commands as standard command-line tools (for example, ls or grep). The tool supports these btca CLI commands:

  • btca ask - supports single and multiple sources
  • btca config model - the CLI currently does not exit automatically, so a timeout is used as a workaround (Opened a PR in btca to fix this! #98)
  • btca config resources list
  • btca config resources add
  • btca config resources remove
  • btca clear

Warning

The btca ask tool may call itself recursively and cause an infinite loop. Report occurrences at this issue. Prevention measures are in progress.

Reference:

Set permissions for the btca tools. Explicit permissions are recommended for destructive commands such as btca clear, although they are not strictly required.

Reference:

Contributions

  • Open issues or pull requests for bug reports, feature requests, or improvements.
  • Create branches from dev and target dev when opening a pull request.
  • Consider starring the repository if it is useful!

About

Let OpenCode ask the source code directly by integrating Better Context CLI

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published