Skip to content

Commit 6131eb2

Browse files
committed
add new default models and change system prompts
1 parent 95c975b commit 6131eb2

19 files changed

Lines changed: 45 additions & 44 deletions

File tree

crates/biorouter-cli/src/session/output.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -821,7 +821,7 @@ pub fn display_session_info(
821821
}
822822

823823
pub fn display_greeting() {
824-
println!("\ngoose is running! Enter your instructions, or try asking what biorouter can do.\n");
824+
println!("\nbiorouter is running! Enter your instructions, or try asking what biorouter can do.\n");
825825
}
826826

827827
/// Display context window usage with both current and session totals

crates/biorouter-cli/static/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,20 @@
33
<head>
44
<meta charset="UTF-8">
55
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6-
<title>goose chat</title>
6+
<title>biorouter chat</title>
77
<link rel="stylesheet" href="/static/style.css">
88
</head>
99
<body>
1010
<div class="container">
1111
<header>
12-
<h1 id="session-title">goose chat</h1>
12+
<h1 id="session-title">biorouter chat</h1>
1313
<div class="status" id="connection-status">Connecting...</div>
1414
</header>
1515

1616
<div class="chat-container">
1717
<div class="messages" id="messages">
1818
<div class="welcome-message">
19-
<h2>Welcome to goose!</h2>
19+
<h2>Welcome to biorouter!</h2>
2020
<p>I'm your AI assistant. How can I help you today?</p>
2121

2222
<div class="suggestion-pills">

crates/biorouter-cli/static/script.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ let isProcessing = false;
1515
// Get session ID - either from URL parameter, injected session name, or generate new one
1616
function getSessionId() {
1717
// Check if session name was injected by server (for /session/:name routes)
18-
if (window.GOOSE_SESSION_NAME) {
19-
return window.GOOSE_SESSION_NAME;
18+
if (window.BIOROUTER_SESSION_NAME) {
19+
return window.BIOROUTER_SESSION_NAME;
2020
}
2121

2222
// Check URL parameters
@@ -121,7 +121,7 @@ function addThinkingIndicator() {
121121
<span></span>
122122
<span></span>
123123
</div>
124-
<span class="thinking-text">goose is thinking...</span>
124+
<span class="thinking-text">biorouter is thinking...</span>
125125
`;
126126
messagesContainer.appendChild(thinkingDiv);
127127
messagesContainer.scrollTop = messagesContainer.scrollHeight;
@@ -138,7 +138,7 @@ function removeThinkingIndicator() {
138138
// Connect to WebSocket
139139
function connectWebSocket() {
140140
const protocol = window.location.protocol === 'https:' ? 'wss:' : 'ws:';
141-
const token = window.GOOSE_WS_TOKEN || '';
141+
const token = window.BIOROUTER_WS_TOKEN || '';
142142
const wsUrl = `${protocol}//${window.location.host}/ws?token=${encodeURIComponent(token)}`;
143143

144144
socket = new WebSocket(wsUrl);
@@ -477,7 +477,7 @@ async function loadSessionIfExists() {
477477

478478
// Update page title with session description if available
479479
if (sessionData.metadata && sessionData.metadata.description) {
480-
document.title = `goose chat - ${sessionData.metadata.description}`;
480+
document.title = `biorouter chat - ${sessionData.metadata.description}`;
481481
}
482482

483483
messagesContainer.scrollTop = messagesContainer.scrollHeight;
@@ -533,8 +533,8 @@ messageInput.focus();
533533
// Update session title
534534
function updateSessionTitle() {
535535
const titleElement = document.getElementById('session-title');
536-
// Just show "goose chat" - no need to show session ID
537-
titleElement.textContent = 'goose chat';
536+
// Just show "biorouter chat" - no need to show session ID
537+
titleElement.textContent = 'biorouter chat';
538538
}
539539

540540
// Update title on load

crates/biorouter-server/src/routes/templates/mcp_ui_proxy.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="utf-8"/>
55
<meta name="referrer" content="no-referrer"/>
66
<!--
7-
Permissive CSP so nested content is not constrained by top-level Goose Desktop CSP
7+
Permissive CSP so nested content is not constrained by top-level BioRouter Desktop CSP
88
- default-src: Fallback for other directives (allows same-origin)
99
- script-src: Allow scripts from any origin, inline, eval, wasm, and blob URLs
1010
- style-src: Allow styles from any origin and inline styles

crates/biorouter/src/agents/prompt_manager.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ impl<'a> SystemPromptBuilder<'a, PromptManager> {
166166
prompt_template::render_global_file("system.md", &context)
167167
}
168168
.unwrap_or_else(|_| {
169-
"You are a general-purpose AI agent called biorouter, created by Block".to_string()
169+
"You are a general-purpose AI agent called biorouter, created by Wanjun Gu from the Baranzini lab at UCSF".to_string()
170170
});
171171

172172
let mut system_prompt_extras = self.manager.system_prompt_extras.clone();

crates/biorouter/src/agents/snapshots/goose__agents__prompt_manager__tests__basic.snap

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
---
2-
source: crates/goose/src/agents/prompt_manager.rs
2+
source: crates/biorouter/src/agents/prompt_manager.rs
33
expression: system_prompt
44
---
5-
You are a general-purpose AI agent called goose, created by Block, the parent company of Square, CashApp, and Tidal.
6-
goose is being developed as an open-source software project.
5+
You are a general-purpose AI agent called biorouter, created by Wanjun Gu from the Baranzini lab at UCSF.
6+
biorouter is being developed as an open-source software project.
77

8-
goose uses LLM providers with tool calling capability. You can be used with different language models (gpt-4o,
8+
biorouter uses LLM providers with tool calling capability. You can be used with different language models (gpt-4o,
99
claude-sonnet-4, o1, llama-3.2, deepseek-r1, etc).
1010
These models have varying knowledge cut-off dates depending on when they were trained, but typically it's between 5-10
1111
months prior to the current date.
1212

1313
# Extensions
1414

15-
Extensions allow other applications to provide context to goose. Extensions connect goose to different data sources and
15+
Extensions allow other applications to provide context to biorouter. Extensions connect biorouter to different data sources and
1616
tools.
1717
You are capable of dynamically plugging into new extensions and learning how to use them. You solve higher level
1818
problems using the tools in these extensions, and can interact with multiple at once.

crates/biorouter/src/agents/snapshots/goose__agents__prompt_manager__tests__one_extension.snap

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
---
2-
source: crates/goose/src/agents/prompt_manager.rs
2+
source: crates/biorouter/src/agents/prompt_manager.rs
33
expression: system_prompt
44
---
5-
You are a general-purpose AI agent called goose, created by Block, the parent company of Square, CashApp, and Tidal.
6-
goose is being developed as an open-source software project.
5+
You are a general-purpose AI agent called biorouter, created by Wanjun Gu from the Baranzini lab at UCSF.
6+
biorouter is being developed as an open-source software project.
77

8-
goose uses LLM providers with tool calling capability. You can be used with different language models (gpt-4o,
8+
biorouter uses LLM providers with tool calling capability. You can be used with different language models (gpt-4o,
99
claude-sonnet-4, o1, llama-3.2, deepseek-r1, etc).
1010
These models have varying knowledge cut-off dates depending on when they were trained, but typically it's between 5-10
1111
months prior to the current date.
1212

1313
# Extensions
1414

15-
Extensions allow other applications to provide context to goose. Extensions connect goose to different data sources and
15+
Extensions allow other applications to provide context to biorouter. Extensions connect biorouter to different data sources and
1616
tools.
1717
You are capable of dynamically plugging into new extensions and learning how to use them. You solve higher level
1818
problems using the tools in these extensions, and can interact with multiple at once.

crates/biorouter/src/agents/snapshots/goose__agents__prompt_manager__tests__typical_setup.snap

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
---
2-
source: crates/goose/src/agents/prompt_manager.rs
2+
source: crates/biorouter/src/agents/prompt_manager.rs
33
expression: system_prompt
44
---
5-
You are a general-purpose AI agent called goose, created by Block, the parent company of Square, CashApp, and Tidal.
6-
goose is being developed as an open-source software project.
5+
You are a general-purpose AI agent called biorouter, created by Wanjun Gu from the Baranzini lab at UCSF.
6+
biorouter is being developed as an open-source software project.
77

8-
goose uses LLM providers with tool calling capability. You can be used with different language models (gpt-4o,
8+
biorouter uses LLM providers with tool calling capability. You can be used with different language models (gpt-4o,
99
claude-sonnet-4, o1, llama-3.2, deepseek-r1, etc).
1010
These models have varying knowledge cut-off dates depending on when they were trained, but typically it's between 5-10
1111
months prior to the current date.
1212

1313
# Extensions
1414

15-
Extensions allow other applications to provide context to goose. Extensions connect goose to different data sources and
15+
Extensions allow other applications to provide context to biorouter. Extensions connect biorouter to different data sources and
1616
tools.
1717
You are capable of dynamically plugging into new extensions and learning how to use them. You solve higher level
1818
problems using the tools in these extensions, and can interact with multiple at once.

crates/biorouter/src/config/signup_openrouter/templates/success.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
<div class="checkmark"></div>
4040
<h1>Authentication Successful!</h1>
4141
<p>You have successfully authenticated with OpenRouter.</p>
42-
<p>You can now close this tab and return to goose.</p>
42+
<p>You can now close this tab and return to biorouter.</p>
4343
</div>
4444
</body>
4545
</html>

crates/biorouter/src/oauth/oauth_callback.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ <h1>Authorization Success</h1>
6666
<p>
6767
You have successfully authorized
6868
<span class="client-name">{{ name }}</span>. You can now close this
69-
window and return to goose.
69+
window and return to biorouter.
7070
</p>
7171
</div>
7272
</body>

0 commit comments

Comments
 (0)