From 6234611db10c9c4c08ec2c2b12aaff7fa7143ce2 Mon Sep 17 00:00:00 2001 From: Gab Date: Thu, 26 Mar 2026 22:19:41 +1100 Subject: [PATCH] feat: tf code --- packages/tfcode/src/cli/cmd/tui/app.tsx | 2 +- packages/tfcode/src/cli/cmd/tui/component/dialog-tf-mcp.tsx | 4 ++-- packages/tfcode/src/session/prompt/anthropic.txt | 4 ++-- packages/tfcode/src/session/prompt/beast.txt | 2 +- packages/tfcode/src/session/prompt/copilot-gpt-5.txt | 2 +- packages/tfcode/src/session/prompt/default.txt | 4 ++-- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/packages/tfcode/src/cli/cmd/tui/app.tsx b/packages/tfcode/src/cli/cmd/tui/app.tsx index 797e03347..d2521dc8f 100644 --- a/packages/tfcode/src/cli/cmd/tui/app.tsx +++ b/packages/tfcode/src/cli/cmd/tui/app.tsx @@ -536,7 +536,7 @@ function App() { { title: "View status", keybind: "status_view", - value: "opencode.status", + value: "tfcode.status", slash: { name: "status", }, diff --git a/packages/tfcode/src/cli/cmd/tui/component/dialog-tf-mcp.tsx b/packages/tfcode/src/cli/cmd/tui/component/dialog-tf-mcp.tsx index 8f171b71d..03c1d5a58 100644 --- a/packages/tfcode/src/cli/cmd/tui/component/dialog-tf-mcp.tsx +++ b/packages/tfcode/src/cli/cmd/tui/component/dialog-tf-mcp.tsx @@ -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: , 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 diff --git a/packages/tfcode/src/session/prompt/anthropic.txt b/packages/tfcode/src/session/prompt/anthropic.txt index 94e2a3fba..8e2c4c47b 100644 --- a/packages/tfcode/src/session/prompt/anthropic.txt +++ b/packages/tfcode/src/session/prompt/anthropic.txt @@ -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. diff --git a/packages/tfcode/src/session/prompt/beast.txt b/packages/tfcode/src/session/prompt/beast.txt index e92e4d020..ea5275448 100644 --- a/packages/tfcode/src/session/prompt/beast.txt +++ b/packages/tfcode/src/session/prompt/beast.txt @@ -1,4 +1,4 @@ -You are opencode, an agent - please keep going until the user’s 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 user’s 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. diff --git a/packages/tfcode/src/session/prompt/copilot-gpt-5.txt b/packages/tfcode/src/session/prompt/copilot-gpt-5.txt index 87cab043b..234130698 100644 --- a/packages/tfcode/src/session/prompt/copilot-gpt-5.txt +++ b/packages/tfcode/src/session/prompt/copilot-gpt-5.txt @@ -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. You are a highly sophisticated coding agent with expert-level knowledge across programming languages and frameworks. diff --git a/packages/tfcode/src/session/prompt/default.txt b/packages/tfcode/src/session/prompt/default.txt index 31afea0a2..53a63efef 100644 --- a/packages/tfcode/src/session/prompt/default.txt +++ b/packages/tfcode/src/session/prompt/default.txt @@ -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).