diff options
| author | Josh Rahm <rahm@josher.dev> | 2026-08-11 11:19:51 -0600 |
|---|---|---|
| committer | Josh Rahm <rahm@josher.dev> | 2026-08-11 11:19:51 -0600 |
| commit | 19ca36dfe8cc99321fcbde26a9387e3fac74509d (patch) | |
| tree | c650df1c655df572bfaed31a0291bf84e7a036e3 /opencode/tools/files_of_intrigue.ts | |
| parent | d7829c069b09d2115daa1aa33a729dd9ffee301e (diff) | |
| download | hobs.nvim-19ca36dfe8cc99321fcbde26a9387e3fac74509d.tar.gz hobs.nvim-19ca36dfe8cc99321fcbde26a9387e3fac74509d.tar.bz2 hobs.nvim-19ca36dfe8cc99321fcbde26a9387e3fac74509d.zip | |
Diffstat (limited to 'opencode/tools/files_of_intrigue.ts')
| -rw-r--r-- | opencode/tools/files_of_intrigue.ts | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/opencode/tools/files_of_intrigue.ts b/opencode/tools/files_of_intrigue.ts new file mode 100644 index 0000000..43bae61 --- /dev/null +++ b/opencode/tools/files_of_intrigue.ts @@ -0,0 +1,16 @@ +import { tool } from "@opencode-ai/plugin" + +export default tool({ + description: "Use this tool when you found an interesting file", + + args: { + filepath: tool.schema.string().describe("The file path of an interesting file."), + description: tool.schema.string().describe("Why is this file intriguing"), + }, + + async execute(args) { + const message = `FILE OF INTRIGUE ${Date.now()}: ${args.filepath}, because ${args.description}!` + console.error(`[hobs.nvim] intrigue files =${JSON.stringify(args.filepath)}`) + return message + }, +}) |