Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RawdogReverend/TermNet
/ functions
Functions
105 in github.com/RawdogReverend/TermNet
⨍
Functions
105
◇
Types & classes
15
↳
Endpoints
7
↓ 14 callers
Method
_send_command
Send a command to the browser server and get response - creates new connection each time
backend/termnet/tools/browser_search_websocket.py:17
↓ 8 callers
Function
get_structured_data
Extract structured data from a webpage
backend/extensions/browser_server.py:105
↓ 7 callers
Method
run
(self)
run.py:181
↓ 6 callers
Function
clean_text
Clean and normalize text content
backend/extensions/browser_server.py:60
↓ 5 callers
Method
run
(self, action: str, content: str = "")
backend/termnet/tools/scratchpad.py:37
↓ 5 callers
Method
search
Navigate to a URL and collect structured interactive elements using the WebSocket server. Returns both structured data and a human-re
backend/termnet/tools/browser_search_websocket.py:51
↓ 4 callers
Method
cleanup
Clean up all processes
run.py:20
↓ 4 callers
Method
reconnect
Silently attempt to reconnect to the server
ui/terminal/terminal_ui.py:90
↓ 4 callers
Method
start
(self)
backend/termnet/tools/scratchpad.py:31
↓ 3 callers
Method
_get_system_prompt
(self)
backend/termnet/agent.py:87
↓ 3 callers
Method
_llm_chat_stream
(self, tools: List[Dict])
backend/termnet/agent.py:161
↓ 3 callers
Method
add
(self, title: str, message: str, reminder_time: Optional[float] = None)
backend/termnet/tools/notification_tool.py:12
↓ 3 callers
Method
connect
(self)
ui/terminal/terminal_ui.py:12
↓ 3 callers
Method
flush
(self)
backend/termnet/main.py:32
↓ 3 callers
Method
write
(self, text)
backend/termnet/main.py:28
↓ 2 callers
Method
_execute_tool
(self, tool_name: str, args: dict, reasoning: str)
backend/termnet/agent.py:123
↓ 2 callers
Method
_generate_final_response
Generate final response when step limit is reached
backend/termnet/agent.py:391
↓ 2 callers
Method
_save_notes
Save notes to disk
backend/termnet/tools/scratchpad.py:23
↓ 2 callers
Method
_score_text
Score text based on length and content quality
backend/termnet/tools/browser_search_websocket.py:264
↓ 2 callers
Method
close
No longer needed - using fresh connections for each command
backend/termnet/tools/browser_search_websocket.py:271
↓ 2 callers
Method
close
(self)
ui/terminal/terminal_ui.py:102
↓ 2 callers
Method
close
(self)
ui/webserver/web_ui_server.py:84
↓ 2 callers
Method
process_buffer
(self)
backend/termnet/main.py:35
↓ 2 callers
Method
send_message
(self, message)
ui/terminal/terminal_ui.py:24
↓ 1 callers
Method
_auto_refresh_prompt
Query notification server every 10s and refresh system prompt.
backend/termnet/agent.py:417
↓ 1 callers
Method
_detect_os
Detect operating system and return relevant info
backend/termnet/agent.py:44
↓ 1 callers
Method
_get_tool_definitions
(self)
backend/termnet/agent.py:120
↓ 1 callers
Method
_handle_lmstudio_chat
Handle chat for LM Studio with OpenAI-style tool support
backend/termnet/agent.py:270
↓ 1 callers
Method
_handle_ollama_chat
Handle chat for Ollama with tool support
backend/termnet/agent.py:342
↓ 1 callers
Method
_load_notes
Load notes from disk if the file exists
backend/termnet/tools/scratchpad.py:13
↓ 1 callers
Method
chat
(self, goal: str)
backend/termnet/agent.py:254
↓ 1 callers
Method
click_and_collect
Navigate to a URL, follow a link, or search for content. Returns cleaned text content from the page.
backend/termnet/tools/browser_search_websocket.py:153
↓ 1 callers
Method
connect
(self)
ui/webserver/web_ui_server.py:40
↓ 1 callers
Function
extract_readable_content
Extract the main readable content from HTML
backend/extensions/browser_server.py:70
↓ 1 callers
Method
free_ports
Kill any process already listening on TermNet ports
run.py:46
↓ 1 callers
Function
generate
Generator that yields data as it becomes available
ui/webserver/web_ui_server.py:140
↓ 1 callers
Method
get_tool_definitions
Return JSON schema tool definitions (for LLM)
backend/termnet/toolloader.py:33
↓ 1 callers
Method
get_tool_instance
(self, name: str)
backend/termnet/toolloader.py:37
↓ 1 callers
Function
handle_single_command
Handle a single command from a WebSocket connection
backend/extensions/browser_server.py:225
↓ 1 callers
Function
initialize_browser
Initialize the global browser instance with anti-bot measures
backend/extensions/browser_server.py:28
↓ 1 callers
Method
initialize_termnet
Initialize the TerminalSession and TermNetAgent
backend/termnet/main.py:87
↓ 1 callers
Method
is_safe
(cls, command: str)
backend/termnet/safety.py:22
↓ 1 callers
Method
load_tools
Dynamically import tool classes defined in toolregistry.json
backend/termnet/toolloader.py:17
↓ 1 callers
Function
main
Start the WebSocket server
backend/extensions/browser_server.py:455
↓ 1 callers
Function
main
Main function to run the WebSocket server
backend/termnet/main.py:227
↓ 1 callers
Function
main
()
backend/termnet/tools/browser_search_websocket.py:277
↓ 1 callers
Function
main
()
ui/terminal/terminal_ui.py:111
↓ 1 callers
Method
send_and_stream_to_queue
Stream responses to a queue that can be consumed by Flask
ui/webserver/web_ui_server.py:46
↓ 1 callers
Method
send_email
(self, to: str, subject: str, body: str)
backend/termnet/tools/communication_tools.py:18
↓ 1 callers
Function
set_password
()
ui/webserver/web_ui_server.py:99
↓ 1 callers
Method
start_backend
Start the main backend
run.py:57
↓ 1 callers
Method
start_extensions
Start all extensions in the extensions folder
run.py:76
↓ 1 callers
Function
start_server
(port=5003)
backend/extensions/notification_server.py:43
↓ 1 callers
Method
start_server
Start the WebSocket server
backend/termnet/main.py:204
↓ 1 callers
Method
start_terminal_ui
(self)
run.py:158
↓ 1 callers
Method
start_web_ui
(self)
run.py:110
↓ 1 callers
Method
stop
(self)
backend/termnet/tools/scratchpad.py:34
↓ 1 callers
Method
stop_server
Stop the server and clean up
backend/termnet/main.py:219
↓ 1 callers
Method
stream_agent_response
Stream the agent's response back to the client with real-time capture
backend/termnet/main.py:94
Method
__init__
(self)
run.py:14
Method
__init__
(self)
backend/termnet/toolloader.py:14
Method
__init__
(self, terminal, notification_server_url: str = "http://localhost:5003")
backend/termnet/agent.py:15
Method
__init__
(self, websocket)
backend/termnet/main.py:21
Method
__init__
(self, host="localhost", port=876)
backend/termnet/main.py:80
Method
__init__
(self)
backend/termnet/tools/scratchpad.py:9
Method
__init__
(self)
backend/termnet/tools/terminal.py:10
Method
__init__
(self, email_address: str, password: str, imap_server='imap.gmail.com', smtp_server='smtp.gma
backend/termnet/tools/communication_tools.py:10
Method
__init__
(self, server_url: str = "http://localhost:5003")
backend/termnet/tools/notification_tool.py:9
Method
__init__
(self, websocket_url="ws://localhost:8765")
backend/termnet/tools/browser_search_websocket.py:10
Method
__init__
(self, uri="ws://localhost:876")
ui/terminal/terminal_ui.py:7
Method
__init__
(self, uri=WEBSOCKET_URI)
ui/webserver/web_ui_server.py:17
Method
_connect
No longer needed - using fresh connections
backend/termnet/tools/browser_search_websocket.py:13
Method
_pump
(stream, sink: List[str])
backend/termnet/tools/terminal.py:51
Function
chat
()
ui/webserver/web_ui_server.py:116
Method
delete_email
(self, uid: str, folder='inbox')
backend/termnet/tools/communication_tools.py:61
Method
dismiss
(self, index: int)
backend/termnet/tools/notification_tool.py:27
Function
dismiss_notification
()
backend/extensions/notification_server.py:35
Method
execute_command
(self, command: str, timeout: int = CONFIG["COMMAND_TIMEOUT"])
backend/termnet/tools/terminal.py:22
Method
fill_form
Fill and submit a form
backend/termnet/tools/browser_search_websocket.py:248
Method
follow_link
Follow a link by index from previous search results
backend/termnet/tools/browser_search_websocket.py:206
Method
get_context_info
(self)
backend/termnet/tools/scratchpad.py:64
Method
get_context_info
(self)
backend/termnet/tools/terminal.py:74
Method
get_help
Get available commands
backend/termnet/tools/browser_search_websocket.py:260
Method
get_llm_url_and_payload
(conversation, tools)
backend/termnet/agent.py:162
Method
get_page_info
Get current page information
backend/termnet/tools/browser_search_websocket.py:256
Method
handle_client
Handle a WebSocket client connection
backend/termnet/main.py:147
Method
list
(self)
backend/termnet/tools/notification_tool.py:22
Function
list_notifications
()
backend/extensions/notification_server.py:31
Method
list_unread
(self, folder='inbox')
backend/termnet/tools/communication_tools.py:33
Function
login
()
ui/webserver/web_ui_server.py:105
Function
logout
()
ui/webserver/web_ui_server.py:163
Method
navigate_forward
Go forward to the next page
backend/termnet/tools/browser_search_websocket.py:236
Function
new_notification
()
backend/extensions/notification_server.py:16
Method
normalize_text
(text: str)
ui/webserver/web_ui_server.py:24
Method
open_browser_when_ready
()
run.py:131
Method
reload_page
Reload the current page
backend/termnet/tools/browser_search_websocket.py:240
Function
run_async_in_thread
Run async coroutine in a separate thread
ui/webserver/web_ui_server.py:89
Method
scratchpad
(self, **kwargs)
backend/termnet/tools/scratchpad.py:61
Method
search_emails
(self, query: str, folder='inbox')
backend/termnet/tools/communication_tools.py:47
Method
search_page
Search for text on the current page
backend/termnet/tools/browser_search_websocket.py:244
next →
1–100 of 105, ranked by callers