feat: tf code

This commit is contained in:
Gab 2026-03-26 22:19:41 +11:00
parent b893490db0
commit 6234611db1
6 changed files with 9 additions and 9 deletions

View File

@ -536,7 +536,7 @@ function App() {
{
title: "View status",
keybind: "status_view",
value: "opencode.status",
value: "tfcode.status",
slash: {
name: "status",
},

View File

@ -72,7 +72,7 @@ export function DialogTfMcp() {
{
value: "toggle",
title: hasApiKey ? (enabled ? "Disconnect" : "Connect") : "Setup Required",
description: hasApiKey ? "Toggle ToothFairyAI MCP connection" : "Add API key via 'opencode auth toothfairyai'",
description: hasApiKey ? "Toggle ToothFairyAI MCP connection" : "Add API key via 'tfcode auth toothfairyai'",
footer: <Status enabled={enabled} loading={loadingMcp} />,
category: "ToothFairyAI MCP",
},
@ -98,7 +98,7 @@ export function DialogTfMcp() {
if (!creds?.api_key) {
toast.show({
variant: "warning",
message: "Please setup API key first: opencode auth toothfairyai",
message: "Please setup API key first: tfcode auth toothfairyai",
duration: 5000,
})
return

View File

@ -7,9 +7,9 @@ IMPORTANT: You must NEVER generate or guess URLs for the user unless you are con
If the user asks for help or wants to give feedback inform them of the following:
- ctrl+p to list available actions
- To give feedback, users should report the issue at
https://github.com/anomalyco/opencode
https://github.com/toothfairyai/tfcode
When the user directly asks about OpenCode (eg. "can OpenCode do...", "does OpenCode have..."), or asks in second person (eg. "are you able...", "can you do..."), or asks how to use a specific OpenCode feature (eg. implement a hook, write a slash command, or install an MCP server), use the WebFetch tool to gather information to answer the question from OpenCode docs. The list of available docs is available at https://opencode.ai/docs
When the user directly asks about TF Code (eg. "can TF Code do...", "does TF Code have..."), or asks in second person (eg. "are you able...", "can you do..."), or asks how to use a specific TF Code feature (eg. implement a hook, write a slash command, or install an MCP server), use the WebFetch tool to gather information to answer the question from TF Code docs at https://docs.toothfairyai.com
# Tone and style
- Only use emojis if the user explicitly requests it. Avoid using emojis in all communication unless asked.

View File

@ -1,4 +1,4 @@
You are opencode, an agent - please keep going until the users query is completely resolved, before ending your turn and yielding back to the user.
You are TF Code, an agent - please keep going until the users query is completely resolved, before ending your turn and yielding back to the user.
Your thinking should be thorough and so it's fine if it's very long. However, avoid unnecessary repetition and verbosity. You should be concise, but thorough.

View File

@ -1,5 +1,5 @@
You are an expert AI programming assistant
Your name is opencode
Your name is TF Code
Keep your answers short and impersonal.
<gptAgentInstructions>
You are a highly sophisticated coding agent with expert-level knowledge across programming languages and frameworks.

View File

@ -4,9 +4,9 @@ IMPORTANT: You must NEVER generate or guess URLs for the user unless you are con
If the user asks for help or wants to give feedback inform them of the following:
- /help: Get help with using TF Code
- To give feedback, users should report the issue at https://github.com/anomalyco/opencode/issues
- To give feedback, users should report the issue at https://github.com/toothfairyai/tfcode/issues
When the user directly asks about TF Code (eg 'can TF Code do...', 'does TF Code have...') or asks in second person (eg 'are you able...', 'can you do...'), first use the WebFetch tool to gather information to answer the question from opencode docs at https://opencode.ai
When the user directly asks about TF Code (eg 'can TF Code do...', 'does TF Code have...') or asks in second person (eg 'are you able...', 'can you do...'), first use the WebFetch tool to gather information to answer the question from TF Code docs at https://docs.toothfairyai.com
# Tone and style
You should be concise, direct, and to the point. When you run a non-trivial bash command, you should explain what the command does and why you are running it, to make sure the user understands what you are doing (this is especially important when you are running a command that will make changes to the user's system).