repo_full_name
stringlengths
6
93
repo_url
stringlengths
25
112
repo_api_url
stringclasses
28 values
owner
stringclasses
28 values
repo_name
stringclasses
28 values
description
stringclasses
28 values
stars
int64
617
98.8k
forks
int64
31
355
watchers
int64
990
999
license
stringclasses
2 values
default_branch
stringclasses
2 values
repo_created_at
timestamp[s]date
2012-07-24 23:12:50
2025-06-16 08:07:28
repo_updated_at
timestamp[s]date
2026-02-23 15:23:15
2026-05-03 18:52:12
repo_topics
listlengths
0
13
repo_languages
unknown
is_fork
bool
1 class
open_issues
int64
3
104
file_path
stringlengths
3
208
file_name
stringclasses
509 values
file_extension
stringclasses
1 value
file_size_bytes
int64
101
84k
file_url
stringclasses
627 values
file_raw_url
stringclasses
627 values
file_sha
stringclasses
624 values
language
stringclasses
8 values
parsed_at
stringdate
2026-05-04 01:12:36
2026-05-04 19:41:55
text
stringlengths
100
102k
KoljaB/RealtimeSTT
https://github.com/KoljaB/RealtimeSTT
null
null
null
null
9,755
null
null
mit
null
null
null
null
null
null
null
RealtimeSTT/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:03:45.457949
from .audio_recorder import AudioToTextRecorder from .audio_recorder_client import AudioToTextRecorderClient from .audio_input import AudioInput
KoljaB/RealtimeSTT
https://github.com/KoljaB/RealtimeSTT
null
null
null
null
9,755
null
null
mit
null
null
null
null
null
null
null
RealtimeSTT_server/install_packages.py
null
null
null
null
null
null
Python
2026-05-04T02:03:45.461281
import subprocess import sys import importlib def check_and_install_packages(packages): """ Checks if the specified packages are installed, and if not, prompts the user to install them. Parameters: - packages: A list of dictionaries, each containing: - 'module_name': The module or package ...
KoljaB/RealtimeSTT
https://github.com/KoljaB/RealtimeSTT
null
null
null
null
9,755
null
null
mit
null
null
null
null
null
null
null
RealtimeSTT/safepipe.py
null
null
null
null
null
null
Python
2026-05-04T02:03:45.471530
import sys import multiprocessing as mp import queue import threading import time import logging # Configure logging. Adjust level and formatting as needed. # logging.basicConfig(level=logging.DEBUG, # format='[%(asctime)s] %(levelname)s:%(name)s: %(message)s') logger = logging.getLogger(__name__) ...
KoljaB/RealtimeSTT
https://github.com/KoljaB/RealtimeSTT
null
null
null
null
9,755
null
null
mit
null
null
null
null
null
null
null
RealtimeSTT/audio_input.py
null
null
null
null
null
null
Python
2026-05-04T02:03:45.473315
from colorama import init, Fore, Style from scipy.signal import butter, filtfilt, resample_poly import pyaudio import logging DESIRED_RATE = 16000 CHUNK_SIZE = 1024 AUDIO_FORMAT = pyaudio.paInt16 CHANNELS = 1 class AudioInput: def __init__( self, input_device_index: int = None, ...
KoljaB/RealtimeSTT
https://github.com/KoljaB/RealtimeSTT
null
null
null
null
9,755
null
null
mit
null
null
null
null
null
null
null
example_app/ui_openai_voice_interface.py
null
null
null
null
null
null
Python
2026-05-04T02:03:45.474471
if __name__ == '__main__': from RealtimeTTS import TextToAudioStream, AzureEngine, ElevenlabsEngine, SystemEngine from RealtimeSTT import AudioToTextRecorder from PyQt5.QtCore import Qt, QTimer, QEvent, pyqtSignal, QThread from PyQt5.QtGui import QColor, QPainter, QFontMetrics, QFont, QMouseEvent ...
KoljaB/RealtimeSTT
https://github.com/KoljaB/RealtimeSTT
null
null
null
null
9,755
null
null
mit
null
null
null
null
null
null
null
RealtimeSTT/audio_recorder_client.py
null
null
null
null
null
null
Python
2026-05-04T02:03:45.475686
log_outgoing_chunks = False debug_mode = False from typing import Iterable, List, Optional, Union from urllib.parse import urlparse from datetime import datetime from websocket import WebSocketApp from websocket import ABNF import numpy as np import subprocess import threading import platform import logging import str...
KoljaB/RealtimeSTT
https://github.com/KoljaB/RealtimeSTT
null
null
null
null
9,755
null
null
mit
null
null
null
null
null
null
null
RealtimeSTT_server/stt_server.py
null
null
null
null
null
null
Python
2026-05-04T02:03:45.496852
""" Speech-to-Text (STT) Server with Real-Time Transcription and WebSocket Interface This server provides real-time speech-to-text (STT) transcription using the RealtimeSTT library. It allows clients to connect via WebSocket to send audio data and receive real-time transcription updates. The server supports configurab...
KoljaB/RealtimeSTT
https://github.com/KoljaB/RealtimeSTT
null
null
null
null
9,755
null
null
mit
null
null
null
null
null
null
null
example_webserver/client.py
null
null
null
null
null
null
Python
2026-05-04T02:03:46.124061
from colorama import Fore, Style import websockets import colorama import keyboard import asyncio import json import os colorama.init() SEND_START_COMMAND = False HOST = 'localhost:5025' URI = f'ws://{HOST}' RECONNECT_DELAY = 5 full_sentences = [] def clear_console(): os.system('clear' if os.name == 'posix' e...
KoljaB/RealtimeSTT
https://github.com/KoljaB/RealtimeSTT
null
null
null
null
9,755
null
null
mit
null
null
null
null
null
null
null
example_browserclient/server.py
null
null
null
null
null
null
Python
2026-05-04T02:03:46.125795
if __name__ == '__main__': print("Starting server, please wait...") from RealtimeSTT import AudioToTextRecorder import asyncio import websockets import threading import numpy as np from scipy.signal import resample import json import logging import sys logging.basicConfig( ...
KoljaB/RealtimeSTT
https://github.com/KoljaB/RealtimeSTT
null
null
null
null
9,755
null
null
mit
null
null
null
null
null
null
null
tests/feed_audio.py
null
null
null
null
null
null
Python
2026-05-04T02:03:46.139696
if __name__ == "__main__": import threading import pyaudio from RealtimeSTT import AudioToTextRecorder # Audio stream configuration constants CHUNK = 1024 # Number of audio samples per buffer FORMAT = pyaudio.paInt16 # Sample format (16-bit integer) CHANNELS = 1 ...
KoljaB/RealtimeSTT
https://github.com/KoljaB/RealtimeSTT
null
null
null
null
9,755
null
null
mit
null
null
null
null
null
null
null
example_webserver/stt_server.py
null
null
null
null
null
null
Python
2026-05-04T02:03:46.140251
end_of_sentence_detection_pause = 0.45 unknown_sentence_detection_pause = 0.7 mid_sentence_detection_pause = 2.0 from install_packages import check_and_install_packages check_and_install_packages([ { 'module_name': 'RealtimeSTT', # Import module 'attribute': 'AudioToTextRecorder', ...
KoljaB/RealtimeSTT
https://github.com/KoljaB/RealtimeSTT
null
null
null
null
9,755
null
null
mit
null
null
null
null
null
null
null
tests/advanced_talk.py
null
null
null
null
null
null
Python
2026-05-04T02:03:46.148330
from RealtimeSTT import AudioToTextRecorder from RealtimeTTS import TextToAudioStream, SystemEngine, AzureEngine, ElevenlabsEngine import os import openai # pip install openai import keyboard # pip install keyboard import time if __name__ == '__main__': print() print("Initializing") print() openai....
KoljaB/RealtimeSTT
https://github.com/KoljaB/RealtimeSTT
null
null
null
null
9,755
null
null
mit
null
null
null
null
null
null
null
tests/openai_voice_interface.py
null
null
null
null
null
null
Python
2026-05-04T02:03:46.148837
""" pip install realtimestt realtimetts[edge] """ # Set this to False to start by waiting for a wake word first # Set this to True to start directly in voice activity mode START_IN_VOICE_ACTIVITY_MODE = False if __name__ == '__main__': import os import openai from RealtimeTTS import TextToAudioStream, Edg...
KoljaB/RealtimeSTT
https://github.com/KoljaB/RealtimeSTT
null
null
null
null
9,755
null
null
mit
null
null
null
null
null
null
null
tests/minimalistic_talkbot.py
null
null
null
null
null
null
Python
2026-05-04T02:03:46.151375
import RealtimeSTT, RealtimeTTS import openai, os if __name__ == '__main__': openai.api_key = os.environ.get("OPENAI_API_KEY") character_prompt = 'Answer precise and short with the polite sarcasm of a butler.' stream = RealtimeTTS.TextToAudioStream(RealtimeTTS.AzureEngine(os.environ.get("AZURE_SPEECH_KEY")...
KoljaB/RealtimeSTT
https://github.com/KoljaB/RealtimeSTT
null
null
null
null
9,755
null
null
mit
null
null
null
null
null
null
null
example_webserver/server.py
null
null
null
null
null
null
Python
2026-05-04T02:03:46.152384
WAIT_FOR_START_COMMAND = False if __name__ == '__main__': server = "0.0.0.0" port = 5025 print (f"STT speech to text server") print (f"runs on http://{server}:{port}") print () print ("starting") print ("└─ ... ", end='', flush=True) from RealtimeSTT import AudioToTextRecorder fro...
KoljaB/RealtimeSTT
https://github.com/KoljaB/RealtimeSTT
null
null
null
null
9,755
null
null
mit
null
null
null
null
null
null
null
tests/install_packages.py
null
null
null
null
null
null
Python
2026-05-04T02:03:46.236340
import subprocess import sys def check_and_install_packages(packages): """ Checks if the specified packages are installed, and if not, prompts the user to install them. Parameters: - packages: A list of dictionaries, each containing: - 'import_name': The name used in the import statement. ...
KoljaB/RealtimeSTT
https://github.com/KoljaB/RealtimeSTT
null
null
null
null
9,755
null
null
mit
null
null
null
null
null
null
null
setup.py
null
null
null
null
null
null
Python
2026-05-04T02:03:46.239841
import setuptools import os # Get the absolute path of requirements.txt req_path = os.path.join(os.path.dirname(__file__), "requirements.txt") # Read requirements.txt safely with open(req_path, "r", encoding="utf-8") as f: requirements = f.read().splitlines() # Read README.md with open("README.md", "r", encoding...
KoljaB/RealtimeSTT
https://github.com/KoljaB/RealtimeSTT
null
null
null
null
9,755
null
null
mit
null
null
null
null
null
null
null
tests/openwakeword_test.py
null
null
null
null
null
null
Python
2026-05-04T02:03:46.857113
if __name__ == '__main__': print("Starting...") from RealtimeSTT import AudioToTextRecorder detected = False say_wakeword_str = "Listening for wakeword 'samantha'." def on_wakeword_detected(): global detected detected = True def on_recording_stop(): print ("Transcribi...
KoljaB/RealtimeSTT
https://github.com/KoljaB/RealtimeSTT
null
null
null
null
9,755
null
null
mit
null
null
null
null
null
null
null
tests/realtimestt_chinese.py
null
null
null
null
null
null
Python
2026-05-04T02:03:46.864367
from RealtimeSTT import AudioToTextRecorder from colorama import Fore, Style import colorama import os if __name__ == '__main__': print("Initializing RealtimeSTT test...") colorama.init() full_sentences = [] displayed_text = "" def clear_console(): os.system('clear' if os.name == 'posix...
KoljaB/RealtimeSTT
https://github.com/KoljaB/RealtimeSTT
null
null
null
null
9,755
null
null
mit
null
null
null
null
null
null
null
tests/realtimestt_speechendpoint.py
null
null
null
null
null
null
Python
2026-05-04T02:03:46.868321
IS_DEBUG = False import os import sys import threading import queue import time from collections import deque from difflib import SequenceMatcher from install_packages import check_and_install_packages # Check and install required packages check_and_install_packages([ {'import_name': 'rich'}, {'import_name': ...
KoljaB/RealtimeSTT
https://github.com/KoljaB/RealtimeSTT
null
null
null
null
9,755
null
null
mit
null
null
null
null
null
null
null
tests/realtime_loop_test.py
null
null
null
null
null
null
Python
2026-05-04T02:03:46.976897
from PyQt5.QtWidgets import QApplication, QWidget, QVBoxLayout, QTextEdit, QPushButton from PyQt5.QtGui import QFont from PyQt5.QtCore import pyqtSignal import sys import os from RealtimeTTS import TextToAudioStream, AzureEngine from RealtimeSTT import AudioToTextRecorder if __name__ == '__main__': class Simple...
KoljaB/RealtimeSTT
https://github.com/KoljaB/RealtimeSTT
null
null
null
null
9,755
null
null
mit
null
null
null
null
null
null
null
tests/realtimestt_test.py
null
null
null
null
null
null
Python
2026-05-04T02:03:46.998497
EXTENDED_LOGGING = False # set to 0 to deactivate writing to keyboard # try lower values like 0.002 (fast) first, take higher values like 0.05 in case it fails WRITE_TO_KEYBOARD_INTERVAL = 0.002 if __name__ == '__main__': import argparse parser = argparse.ArgumentParser(description='Start the realtime Speech...
KoljaB/RealtimeSTT
https://github.com/KoljaB/RealtimeSTT
null
null
null
null
9,755
null
null
mit
null
null
null
null
null
null
null
tests/realtimestt_test_stereomix.py
null
null
null
null
null
null
Python
2026-05-04T02:03:47.054771
EXTENDED_LOGGING = False def main(): from install_packages import check_and_install_packages check_and_install_packages([ { 'import_name': 'rich', } ]) if EXTENDED_LOGGING: import logging logging.basicConfig(level=logging.DEBUG) import os import sy...
KoljaB/RealtimeSTT
https://github.com/KoljaB/RealtimeSTT
null
null
null
null
9,755
null
null
mit
null
null
null
null
null
null
null
tests/simple_test.py
null
null
null
null
null
null
Python
2026-05-04T02:03:47.055517
if __name__ == '__main__': import os import sys if os.name == "nt" and (3, 8) <= sys.version_info < (3, 99): from torchaudio._extension.utils import _init_dll_path _init_dll_path() from RealtimeSTT import AudioToTextRecorder recorder = AudioToTextRecorder( spinner=False, ...
KoljaB/RealtimeSTT
https://github.com/KoljaB/RealtimeSTT
null
null
null
null
9,755
null
null
mit
null
null
null
null
null
null
null
tests/realtimestt_test_hotkeys_v2.py
null
null
null
null
null
null
Python
2026-05-04T02:03:47.055998
EXTENDED_LOGGING = False if __name__ == '__main__': import subprocess import sys import threading import time def install_rich(): subprocess.check_call([sys.executable, "-m", "pip", "install", "rich"]) try: import rich except ImportError: user_input = input("This ...
KoljaB/RealtimeSTT
https://github.com/KoljaB/RealtimeSTT
null
null
null
null
9,755
null
null
mit
null
null
null
null
null
null
null
tests/realtimestt_speechendpoint_binary_classified.py
null
null
null
null
null
null
Python
2026-05-04T02:03:47.090217
#IS_DEBUG = True IS_DEBUG = False USE_STEREO_MIX = True LOOPBACK_DEVICE_NAME = "stereomix" LOOPBACK_DEVICE_HOST_API = 0 import os import re import sys import threading import queue import time from collections import deque from difflib import SequenceMatcher from install_packages import check_and_install_packages # C...
KoljaB/RealtimeSTT
https://github.com/KoljaB/RealtimeSTT
null
null
null
null
9,755
null
null
mit
null
null
null
null
null
null
null
tests/recorder_client.py
null
null
null
null
null
null
Python
2026-05-04T02:03:47.167814
from RealtimeSTT import AudioToTextRecorderClient # ANSI escape codes for terminal control CLEAR_LINE = "\033[K" # Clear from cursor to end of line RESET_CURSOR = "\r" # Move cursor to the beginning of the line GREEN_TEXT = "\033[92m" # Set text color to green RESET_COLOR = "\033[0m" # Reset text col...
KoljaB/RealtimeSTT
https://github.com/KoljaB/RealtimeSTT
null
null
null
null
9,755
null
null
mit
null
null
null
null
null
null
null
tests/translator.py
null
null
null
null
null
null
Python
2026-05-04T02:03:47.498353
import os import openai from RealtimeSTT import AudioToTextRecorder from RealtimeTTS import TextToAudioStream, AzureEngine if __name__ == '__main__': # Setup OpenAI API key openai.api_key = os.environ.get("OPENAI_API_KEY") # Text-to-Speech Stream Setup (alternative engines: SystemEngine or ElevenlabsEngin...
KoljaB/RealtimeSTT
https://github.com/KoljaB/RealtimeSTT
null
null
null
null
9,755
null
null
mit
null
null
null
null
null
null
null
tests/vad_test.py
null
null
null
null
null
null
Python
2026-05-04T02:03:47.498857
import asyncio import time from RealtimeSTT import AudioToTextRecorder # Voice Activity Detection (VAD) start handler def on_vad_detect_start(): print(f"VAD Start detected at {time.time():.2f}") # Voice Activity Detection (VAD) stop handler def on_vad_detect_stop(): print(f"VAD Stop detected at {time.time(...
KoljaB/RealtimeSTT
https://github.com/KoljaB/RealtimeSTT
null
null
null
null
9,755
null
null
mit
null
null
null
null
null
null
null
tests/type_into_textbox.py
null
null
null
null
null
null
Python
2026-05-04T02:03:47.499591
from RealtimeSTT import AudioToTextRecorder import pyautogui def process_text(text): pyautogui.typewrite(text + " ") if __name__ == '__main__': print("Wait until it says 'speak now'") recorder = AudioToTextRecorder() while True: recorder.text(process_text)
NVIDIA/personaplex
https://github.com/NVIDIA/personaplex
null
null
null
null
9,742
null
null
mit
null
null
null
null
null
null
null
moshi/moshi/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:03:51.624623
# Copyright (c) Kyutai, all rights reserved. # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. """ moshi is the inference codebase for Kyutai audio generation models. The code has been adapted from Audiocraft, see LICENSE.audiocraft Copyright (c)...
NVIDIA/personaplex
https://github.com/NVIDIA/personaplex
null
null
null
null
9,742
null
null
mit
null
null
null
null
null
null
null
moshi/moshi/client_utils.py
null
null
null
null
null
null
Python
2026-05-04T02:03:51.626584
# Copyright (c) Kyutai, all rights reserved. # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. """Utilities for the command line client, in particular for handling interactions with the terminal. """ from dataclasses import dataclass import sys de...
NVIDIA/personaplex
https://github.com/NVIDIA/personaplex
null
null
null
null
9,742
null
null
mit
null
null
null
null
null
null
null
moshi/moshi/modules/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:03:51.627638
# Copyright (c) Kyutai, all rights reserved. # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # Copyright (c) Meta Platforms, Inc. and affiliates. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file...
NVIDIA/personaplex
https://github.com/NVIDIA/personaplex
null
null
null
null
9,742
null
null
mit
null
null
null
null
null
null
null
moshi/moshi/modules/conv.py
null
null
null
null
null
null
Python
2026-05-04T02:03:51.640193
# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. # SPDX-License-Identifier: MIT # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the "Software"), # to deal in the Software without res...
NVIDIA/personaplex
https://github.com/NVIDIA/personaplex
null
null
null
null
9,742
null
null
mit
null
null
null
null
null
null
null
moshi/moshi/modules/gating.py
null
null
null
null
null
null
Python
2026-05-04T02:03:51.641509
# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. # SPDX-License-Identifier: MIT # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the "Software"), # to deal in the Software without res...
NVIDIA/personaplex
https://github.com/NVIDIA/personaplex
null
null
null
null
9,742
null
null
mit
null
null
null
null
null
null
null
moshi/moshi/models/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:03:51.642724
# Copyright (c) Kyutai, all rights reserved. # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. """ Models for the compression model Moshi, """ # flake8: noqa from .compression import ( CompressionModel, MimiModel, ) from .lm import LMModel, ...
NVIDIA/personaplex
https://github.com/NVIDIA/personaplex
null
null
null
null
9,742
null
null
mit
null
null
null
null
null
null
null
moshi/moshi/models/compression.py
null
null
null
null
null
null
Python
2026-05-04T02:03:51.655225
# Copyright (c) Kyutai, all rights reserved. # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # Part of this file is adapted from encodec.py in https://github.com/facebookresearch/audiocraft # released under the following license. # Copyright (c) M...
NVIDIA/personaplex
https://github.com/NVIDIA/personaplex
null
null
null
null
9,742
null
null
mit
null
null
null
null
null
null
null
moshi/moshi/models/lm.py
null
null
null
null
null
null
Python
2026-05-04T02:03:51.656986
# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. # SPDX-License-Identifier: MIT # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the "Software"), # to deal in the Software without res...
NVIDIA/personaplex
https://github.com/NVIDIA/personaplex
null
null
null
null
9,742
null
null
mit
null
null
null
null
null
null
null
moshi/moshi/modules/resample.py
null
null
null
null
null
null
Python
2026-05-04T02:03:51.686249
# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. # SPDX-License-Identifier: MIT # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the "Software"), # to deal in the Software without res...
NVIDIA/personaplex
https://github.com/NVIDIA/personaplex
null
null
null
null
9,742
null
null
mit
null
null
null
null
null
null
null
moshi/moshi/models/loaders.py
null
null
null
null
null
null
Python
2026-05-04T02:03:51.687324
# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. # SPDX-License-Identifier: MIT # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the "Software"), # to deal in the Software without res...
NVIDIA/personaplex
https://github.com/NVIDIA/personaplex
null
null
null
null
9,742
null
null
mit
null
null
null
null
null
null
null
moshi/moshi/modules/seanet.py
null
null
null
null
null
null
Python
2026-05-04T02:03:52.240542
# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. # SPDX-License-Identifier: MIT # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the "Software"), # to deal in the Software without res...
NVIDIA/personaplex
https://github.com/NVIDIA/personaplex
null
null
null
null
9,742
null
null
mit
null
null
null
null
null
null
null
moshi/moshi/modules/streaming.py
null
null
null
null
null
null
Python
2026-05-04T02:03:52.257235
# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. # SPDX-License-Identifier: MIT # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the "Software"), # to deal in the Software without res...
NVIDIA/personaplex
https://github.com/NVIDIA/personaplex
null
null
null
null
9,742
null
null
mit
null
null
null
null
null
null
null
moshi/moshi/modules/rope.py
null
null
null
null
null
null
Python
2026-05-04T02:03:52.309491
# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. # SPDX-License-Identifier: MIT # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the "Software"), # to deal in the Software without res...
NVIDIA/personaplex
https://github.com/NVIDIA/personaplex
null
null
null
null
9,742
null
null
mit
null
null
null
null
null
null
null
moshi/moshi/offline.py
null
null
null
null
null
null
Python
2026-05-04T02:03:52.316803
# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. # SPDX-License-Identifier: MIT # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the "Software"), # to deal in the Software without res...
NVIDIA/personaplex
https://github.com/NVIDIA/personaplex
null
null
null
null
9,742
null
null
mit
null
null
null
null
null
null
null
moshi/moshi/quantization/base.py
null
null
null
null
null
null
Python
2026-05-04T02:03:52.320155
# Copyright (c) Kyutai, all rights reserved. # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # Copyright (c) Meta Platforms, Inc. and affiliates. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file...
NVIDIA/personaplex
https://github.com/NVIDIA/personaplex
null
null
null
null
9,742
null
null
mit
null
null
null
null
null
null
null
moshi/moshi/server.py
null
null
null
null
null
null
Python
2026-05-04T02:03:52.321231
# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. # SPDX-License-Identifier: MIT # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the "Software"), # to deal in the Software without res...
NVIDIA/personaplex
https://github.com/NVIDIA/personaplex
null
null
null
null
9,742
null
null
mit
null
null
null
null
null
null
null
moshi/moshi/quantization/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:03:52.322261
# Copyright (c) Kyutai, all rights reserved. # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # Copyright (c) Meta Platforms, Inc. and affiliates. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file...
NVIDIA/personaplex
https://github.com/NVIDIA/personaplex
null
null
null
null
9,742
null
null
mit
null
null
null
null
null
null
null
moshi/moshi/modules/transformer.py
null
null
null
null
null
null
Python
2026-05-04T02:03:52.329677
# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. # SPDX-License-Identifier: MIT # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the "Software"), # to deal in the Software without res...
NVIDIA/personaplex
https://github.com/NVIDIA/personaplex
null
null
null
null
9,742
null
null
mit
null
null
null
null
null
null
null
moshi/moshi/quantization/core_vq.py
null
null
null
null
null
null
Python
2026-05-04T02:03:52.355301
# Copyright (c) Kyutai, all rights reserved. # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # Copyright (c) Meta Platforms, Inc. and affiliates. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file...
NVIDIA/personaplex
https://github.com/NVIDIA/personaplex
null
null
null
null
9,742
null
null
mit
null
null
null
null
null
null
null
moshi/moshi/quantization/vq.py
null
null
null
null
null
null
Python
2026-05-04T02:03:52.385130
# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. # SPDX-License-Identifier: MIT # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the "Software"), # to deal in the Software without res...
NVIDIA/personaplex
https://github.com/NVIDIA/personaplex
null
null
null
null
9,742
null
null
mit
null
null
null
null
null
null
null
moshi/moshi/utils/logging.py
null
null
null
null
null
null
Python
2026-05-04T02:03:53.241321
# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. # SPDX-License-Identifier: MIT # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the "Software"), # to deal in the Software without res...
NVIDIA/personaplex
https://github.com/NVIDIA/personaplex
null
null
null
null
9,742
null
null
mit
null
null
null
null
null
null
null
moshi/moshi/utils/compile.py
null
null
null
null
null
null
Python
2026-05-04T02:03:53.241941
# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. # SPDX-License-Identifier: MIT # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the "Software"), # to deal in the Software without res...
NVIDIA/personaplex
https://github.com/NVIDIA/personaplex
null
null
null
null
9,742
null
null
mit
null
null
null
null
null
null
null
moshi/moshi/utils/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:03:53.277425
# Copyright (c) Kyutai, all rights reserved. # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # Copyright (c) Meta Platforms, Inc. and affiliates. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file...
NVIDIA/personaplex
https://github.com/NVIDIA/personaplex
null
null
null
null
9,742
null
null
mit
null
null
null
null
null
null
null
moshi/moshi/utils/autocast.py
null
null
null
null
null
null
Python
2026-05-04T02:03:53.278085
# Copyright (c) Kyutai, all rights reserved. # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # Copyright (c) Meta Platforms, Inc. and affiliates. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file...
NVIDIA/personaplex
https://github.com/NVIDIA/personaplex
null
null
null
null
9,742
null
null
mit
null
null
null
null
null
null
null
moshi/moshi/utils/connection.py
null
null
null
null
null
null
Python
2026-05-04T02:03:53.315227
# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. # SPDX-License-Identifier: MIT # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the "Software"), # to deal in the Software without res...
NVIDIA/personaplex
https://github.com/NVIDIA/personaplex
null
null
null
null
9,742
null
null
mit
null
null
null
null
null
null
null
moshi/moshi/utils/sampling.py
null
null
null
null
null
null
Python
2026-05-04T02:03:54.477664
# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. # SPDX-License-Identifier: MIT # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the "Software"), # to deal in the Software without res...
geerlingguy/ansible-for-devops
https://github.com/geerlingguy/ansible-for-devops
null
null
null
null
9,735
null
null
mit
null
null
null
null
null
null
null
dynamic-inventory/custom/inventory.py
null
null
null
null
null
null
Python
2026-05-04T02:03:57.530387
#!/usr/bin/env python3 ''' Example custom dynamic inventory script for Ansible, in Python. ''' import os import sys import argparse import json class ExampleInventory(object): def __init__(self): self.inventory = {} self.read_cli_args() # Called with `--list`. if self.args.list:...
geerlingguy/ansible-for-devops
https://github.com/geerlingguy/ansible-for-devops
null
null
null
null
9,735
null
null
mit
null
null
null
null
null
null
null
test-plugin/test_plugins/blue.py
null
null
null
null
null
null
Python
2026-05-04T02:03:57.531282
# Ansible custom 'blue' test plugin definition. def is_blue(string): ''' Return True if a valid CSS value of 'blue'. ''' blue_values = [ 'blue', '#0000ff', '#00f', 'rgb(0,0,255)', 'rgb(0%,0%,100%)', ] if string in blue_values: return True else: ...
geerlingguy/ansible-for-devops
https://github.com/geerlingguy/ansible-for-devops
null
null
null
null
9,735
null
null
mit
null
null
null
null
null
null
null
collection/collections/ansible_collections/local/colors/plugins/test/blue.py
null
null
null
null
null
null
Python
2026-05-04T02:03:57.531930
# Ansible custom 'blue' test plugin definition. def is_blue(string): ''' Return True if a valid CSS value of 'blue'. ''' blue_values = [ 'blue', '#0000ff', '#00f', 'rgb(0,0,255)', 'rgb(0%,0%,100%)', ] if string in blue_values: return True else: ...
geerlingguy/ansible-for-devops
https://github.com/geerlingguy/ansible-for-devops
null
null
null
null
9,735
null
null
mit
null
null
null
null
null
null
null
dynamic-inventory/digitalocean/digital_ocean.py
null
null
null
null
null
null
Python
2026-05-04T02:03:57.578925
#!/usr/bin/env python """ DigitalOcean external inventory script ====================================== Generates Ansible inventory of DigitalOcean Droplets. In addition to the --list and --host options used by Ansible, there are options for generating JSON of other DigitalOcean data. This is useful when creating d...
geerlingguy/ansible-for-devops
https://github.com/geerlingguy/ansible-for-devops
null
null
null
null
9,735
null
null
mit
null
null
null
null
null
null
null
lamp-infrastructure/inventories/digitalocean/digital_ocean.py
null
null
null
null
null
null
Python
2026-05-04T02:03:57.692958
#!/usr/bin/env python """ DigitalOcean external inventory script ====================================== Generates Ansible inventory of DigitalOcean Droplets. In addition to the --list and --host options used by Ansible, there are options for generating JSON of other DigitalOcean data. This is useful when creating d...
jadore801120/attention-is-all-you-need-pytorch
https://github.com/jadore801120/attention-is-all-you-need-pytorch
null
null
null
null
9,714
null
null
mit
null
null
null
null
null
null
null
transformer/Layers.py
null
null
null
null
null
null
Python
2026-05-04T02:04:00.598403
''' Define the Layers ''' import torch.nn as nn import torch from transformer.SubLayers import MultiHeadAttention, PositionwiseFeedForward __author__ = "Yu-Hsiang Huang" class EncoderLayer(nn.Module): ''' Compose with two layers ''' def __init__(self, d_model, d_inner, n_head, d_k, d_v, dropout=0.1): ...
jadore801120/attention-is-all-you-need-pytorch
https://github.com/jadore801120/attention-is-all-you-need-pytorch
null
null
null
null
9,714
null
null
mit
null
null
null
null
null
null
null
transformer/Optim.py
null
null
null
null
null
null
Python
2026-05-04T02:04:00.599471
'''A wrapper class for scheduled optimizer ''' import numpy as np class ScheduledOptim(): '''A simple wrapper class for learning rate scheduling''' def __init__(self, optimizer, lr_mul, d_model, n_warmup_steps): self._optimizer = optimizer self.lr_mul = lr_mul self.d_model = d_model ...
jadore801120/attention-is-all-you-need-pytorch
https://github.com/jadore801120/attention-is-all-you-need-pytorch
null
null
null
null
9,714
null
null
mit
null
null
null
null
null
null
null
transformer/SubLayers.py
null
null
null
null
null
null
Python
2026-05-04T02:04:00.603224
''' Define the sublayers in encoder/decoder layer ''' import numpy as np import torch.nn as nn import torch.nn.functional as F from transformer.Modules import ScaledDotProductAttention __author__ = "Yu-Hsiang Huang" class MultiHeadAttention(nn.Module): ''' Multi-Head Attention module ''' def __init__(self, n...
jadore801120/attention-is-all-you-need-pytorch
https://github.com/jadore801120/attention-is-all-you-need-pytorch
null
null
null
null
9,714
null
null
mit
null
null
null
null
null
null
null
apply_bpe.py
null
null
null
null
null
null
Python
2026-05-04T02:04:00.604407
#!/usr/bin/env python # -*- coding: utf-8 -*- # Author: Rico Sennrich """Use operations learned with learn_bpe.py to encode a new text. The text will not be smaller, but use only a fixed vocabulary, with rare words encoded as variable-length sequences of subword units. Reference: Rico Sennrich, Barry Haddow and Alexa...
jadore801120/attention-is-all-you-need-pytorch
https://github.com/jadore801120/attention-is-all-you-need-pytorch
null
null
null
null
9,714
null
null
mit
null
null
null
null
null
null
null
learn_bpe.py
null
null
null
null
null
null
Python
2026-05-04T02:04:00.612433
#!/usr/bin/env python # -*- coding: utf-8 -*- # Author: Rico Sennrich """Use byte pair encoding (BPE) to learn a variable-length encoding of the vocabulary in a text. Unlike the original BPE, it does not compress the plain text, but can be used to reduce the vocabulary of a text to a configurable number of symbols, wi...
jadore801120/attention-is-all-you-need-pytorch
https://github.com/jadore801120/attention-is-all-you-need-pytorch
null
null
null
null
9,714
null
null
mit
null
null
null
null
null
null
null
transformer/Models.py
null
null
null
null
null
null
Python
2026-05-04T02:04:00.632414
''' Define the Transformer model ''' import torch import torch.nn as nn import numpy as np from transformer.Layers import EncoderLayer, DecoderLayer __author__ = "Yu-Hsiang Huang" def get_pad_mask(seq, pad_idx): return (seq != pad_idx).unsqueeze(-2) def get_subsequent_mask(seq): ''' For masking out the su...
jadore801120/attention-is-all-you-need-pytorch
https://github.com/jadore801120/attention-is-all-you-need-pytorch
null
null
null
null
9,714
null
null
mit
null
null
null
null
null
null
null
preprocess.py
null
null
null
null
null
null
Python
2026-05-04T02:04:00.633507
''' Handling the data io ''' import os import argparse import logging import dill as pickle import urllib from tqdm import tqdm import sys import codecs import spacy import torch import tarfile import torchtext.data import torchtext.datasets from torchtext.datasets import TranslationDataset import transformer.Constants...
jadore801120/attention-is-all-you-need-pytorch
https://github.com/jadore801120/attention-is-all-you-need-pytorch
null
null
null
null
9,714
null
null
mit
null
null
null
null
null
null
null
train.py
null
null
null
null
null
null
Python
2026-05-04T02:04:00.637843
''' This script handles the training process. ''' import argparse import math import time import dill as pickle from tqdm import tqdm import numpy as np import random import os import torch import torch.nn.functional as F import torch.optim as optim from torchtext.data import Field, Dataset, BucketIterator from torch...
jadore801120/attention-is-all-you-need-pytorch
https://github.com/jadore801120/attention-is-all-you-need-pytorch
null
null
null
null
9,714
null
null
mit
null
null
null
null
null
null
null
transformer/Modules.py
null
null
null
null
null
null
Python
2026-05-04T02:04:00.638710
import torch import torch.nn as nn import torch.nn.functional as F __author__ = "Yu-Hsiang Huang" class ScaledDotProductAttention(nn.Module): ''' Scaled Dot-Product Attention ''' def __init__(self, temperature, attn_dropout=0.1): super().__init__() self.temperature = temperature self....
jadore801120/attention-is-all-you-need-pytorch
https://github.com/jadore801120/attention-is-all-you-need-pytorch
null
null
null
null
9,714
null
null
mit
null
null
null
null
null
null
null
transformer/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:04:01.319888
import transformer.Constants import transformer.Modules import transformer.Layers import transformer.SubLayers import transformer.Models import transformer.Translator import transformer.Optim __all__ = [ transformer.Constants, transformer.Modules, transformer.Layers, transformer.SubLayers, transformer.Models, ...
jadore801120/attention-is-all-you-need-pytorch
https://github.com/jadore801120/attention-is-all-you-need-pytorch
null
null
null
null
9,714
null
null
mit
null
null
null
null
null
null
null
translate.py
null
null
null
null
null
null
Python
2026-05-04T02:04:01.320338
''' Translate input text with trained model. ''' import torch import argparse import dill as pickle from tqdm import tqdm import transformer.Constants as Constants from torchtext.data import Dataset from transformer.Models import Transformer from transformer.Translator import Translator def load_model(opt, device):...
jadore801120/attention-is-all-you-need-pytorch
https://github.com/jadore801120/attention-is-all-you-need-pytorch
null
null
null
null
9,714
null
null
mit
null
null
null
null
null
null
null
transformer/Translator.py
null
null
null
null
null
null
Python
2026-05-04T02:04:01.320774
''' This module will handle the text generation with beam search. ''' import torch import torch.nn as nn import torch.nn.functional as F from transformer.Models import Transformer, get_pad_mask, get_subsequent_mask class Translator(nn.Module): ''' Load a trained model and translate in beam search fashion. ''' ...
langchain-ai/open-swe
https://github.com/langchain-ai/open-swe
null
null
null
null
9,710
null
null
mit
null
null
null
null
null
null
null
agent/middleware/ensure_no_empty_msg.py
null
null
null
null
null
null
Python
2026-05-04T02:04:08.568447
from typing import Any from uuid import uuid4 from langchain.agents.middleware import AgentState, after_model from langchain_core.messages import AnyMessage, ToolMessage from langgraph.runtime import Runtime def get_every_message_since_last_human(state: AgentState) -> list[AnyMessage]: messages = state["messages...
langchain-ai/open-swe
https://github.com/langchain-ai/open-swe
null
null
null
null
9,710
null
null
mit
null
null
null
null
null
null
null
agent/integrations/langsmith.py
null
null
null
null
null
null
Python
2026-05-04T02:04:08.573633
"""LangSmith sandbox backend integration.""" from __future__ import annotations import base64 import logging import os from abc import ABC, abstractmethod from typing import Any import httpx from deepagents.backends import LangSmithSandbox from deepagents.backends.protocol import SandboxBackendProtocol from langsmit...
langchain-ai/open-swe
https://github.com/langchain-ai/open-swe
null
null
null
null
9,710
null
null
mit
null
null
null
null
null
null
null
agent/integrations/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:04:08.590590
"""Sandbox provider integrations.""" from deepagents.backends import LangSmithSandbox from agent.integrations.langsmith import LangSmithProvider __all__ = ["LangSmithProvider", "LangSmithSandbox"]
langchain-ai/open-swe
https://github.com/langchain-ai/open-swe
null
null
null
null
9,710
null
null
mit
null
null
null
null
null
null
null
agent/encryption.py
null
null
null
null
null
null
Python
2026-05-04T02:04:08.598764
"""Encryption utilities for sensitive data like tokens.""" import logging import os from cryptography.fernet import Fernet, InvalidToken logger = logging.getLogger(__name__) class EncryptionKeyMissingError(ValueError): """Raised when TOKEN_ENCRYPTION_KEY environment variable is not set.""" def _get_encryptio...
langchain-ai/open-swe
https://github.com/langchain-ai/open-swe
null
null
null
null
9,710
null
null
mit
null
null
null
null
null
null
null
agent/integrations/local.py
null
null
null
null
null
null
Python
2026-05-04T02:04:08.600722
import os from deepagents.backends import LocalShellBackend def create_local_sandbox(sandbox_id: str | None = None): """Create a local shell sandbox with no isolation. WARNING: This runs commands directly on the host machine with no sandboxing. Only use for local development with human-in-the-loop enabl...
langchain-ai/open-swe
https://github.com/langchain-ai/open-swe
null
null
null
null
9,710
null
null
mit
null
null
null
null
null
null
null
agent/middleware/check_message_queue.py
null
null
null
null
null
null
Python
2026-05-04T02:04:08.601675
"""Before-model middleware that injects queued messages into state. Checks the LangGraph store for pending messages (e.g. follow-up Linear comments that arrived while the agent was busy) and injects them as new human messages before the next model call. """ from __future__ import annotations import logging from typi...
langchain-ai/open-swe
https://github.com/langchain-ai/open-swe
null
null
null
null
9,710
null
null
mit
null
null
null
null
null
null
null
agent/integrations/modal.py
null
null
null
null
null
null
Python
2026-05-04T02:04:08.602838
import os import modal from langchain_modal import ModalSandbox MODAL_APP_NAME = os.getenv("MODAL_APP_NAME", "open-swe") def create_modal_sandbox(sandbox_id: str | None = None): """Create or reconnect to a Modal sandbox. Args: sandbox_id: Optional existing sandbox ID to reconnect to. If...
langchain-ai/open-swe
https://github.com/langchain-ai/open-swe
null
null
null
null
9,710
null
null
mit
null
null
null
null
null
null
null
agent/middleware/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:04:08.603950
from .check_message_queue import check_message_queue_before_model from .ensure_no_empty_msg import ensure_no_empty_msg from .notify_step_limit import notify_step_limit_reached from .open_pr import open_pr_if_needed from .sanitize_tool_inputs import SanitizeToolInputsMiddleware from .tool_error_handler import ToolErrorM...
langchain-ai/open-swe
https://github.com/langchain-ai/open-swe
null
null
null
null
9,710
null
null
mit
null
null
null
null
null
null
null
agent/integrations/daytona.py
null
null
null
null
null
null
Python
2026-05-04T02:04:08.605125
import os from daytona import CreateSandboxFromSnapshotParams, Daytona, DaytonaConfig from langchain_daytona import DaytonaSandbox DEFAULT_DAYTONA_SANDBOX_SNAPSHOT = "daytonaio/sandbox:0.6.0" DAYTONA_SANDBOX_SNAPSHOT_ENV = "DAYTONA_SANDBOX_SNAPSHOT" def _get_daytona_sandbox_params() -> CreateSandboxFromSnapshotPara...
langchain-ai/open-swe
https://github.com/langchain-ai/open-swe
null
null
null
null
9,710
null
null
mit
null
null
null
null
null
null
null
agent/integrations/runloop.py
null
null
null
null
null
null
Python
2026-05-04T02:04:08.607748
import os from langchain_runloop import RunloopSandbox from runloop_api_client import Client def create_runloop_sandbox(sandbox_id: str | None = None): """Create or reconnect to a Runloop devbox sandbox. Requires the RUNLOOP_API_KEY environment variable to be set. Args: sandbox_id: Optional exi...
langchain-ai/open-swe
https://github.com/langchain-ai/open-swe
null
null
null
null
9,710
null
null
mit
null
null
null
null
null
null
null
agent/middleware/sanitize_tool_inputs.py
null
null
null
null
null
null
Python
2026-05-04T02:04:09.819445
"""Sanitize tool input middleware. Coerces malformed integer fields in read_file calls before they reach Pydantic validation. The LLM occasionally generates strings like ``'1, 80'`` or ``'170, "limit": 60'`` for integer parameters; we extract the leading digit sequence so the call succeeds instead of burning an LLM t...
langchain-ai/open-swe
https://github.com/langchain-ai/open-swe
null
null
null
null
9,710
null
null
mit
null
null
null
null
null
null
null
agent/tools/edit_pull_request.py
null
null
null
null
null
null
Python
2026-05-04T02:04:09.820546
import asyncio import logging from typing import Any from langgraph.config import get_config from ..utils.github import edit_github_pr from ..utils.github_app import get_github_app_installation_token from ..utils.github_token import get_github_token logger = logging.getLogger(__name__) def edit_pull_request( p...
langchain-ai/open-swe
https://github.com/langchain-ai/open-swe
null
null
null
null
9,710
null
null
mit
null
null
null
null
null
null
null
agent/middleware/tool_error_handler.py
null
null
null
null
null
null
Python
2026-05-04T02:04:09.823082
"""Tool error handling middleware. Wraps all tool calls in try/except so that unhandled exceptions are returned as error ToolMessages instead of crashing the agent run. """ from __future__ import annotations import json import logging from collections.abc import Awaitable, Callable from langchain.agents.middleware....
langchain-ai/open-swe
https://github.com/langchain-ai/open-swe
null
null
null
null
9,710
null
null
mit
null
null
null
null
null
null
null
agent/middleware/open_pr.py
null
null
null
null
null
null
Python
2026-05-04T02:04:09.824477
"""After-agent middleware that creates a GitHub PR if needed. Runs once after the agent finishes as a safety net. If the agent called ``commit_and_open_pr`` and it already succeeded, this is a no-op. Otherwise it commits any remaining changes, pushes to a feature branch, and opens a GitHub PR. """ from __future__ imp...
langchain-ai/open-swe
https://github.com/langchain-ai/open-swe
null
null
null
null
9,710
null
null
mit
null
null
null
null
null
null
null
agent/tools/commit_and_open_pr.py
null
null
null
null
null
null
Python
2026-05-04T02:04:09.825824
import asyncio import logging from typing import Any from langgraph.config import get_config from ..utils.authorship import ( OPEN_SWE_BOT_EMAIL, OPEN_SWE_BOT_NAME, add_pr_collaboration_note, add_user_coauthor_trailer, resolve_triggering_user_identity, ) from ..utils.github import ( create_git...
langchain-ai/open-swe
https://github.com/langchain-ai/open-swe
null
null
null
null
9,710
null
null
mit
null
null
null
null
null
null
null
agent/middleware/notify_step_limit.py
null
null
null
null
null
null
Python
2026-05-04T02:04:09.827289
"""After-agent middleware that notifies users when the step limit is reached.""" from __future__ import annotations import logging from collections.abc import Mapping from typing import Any from langchain.agents.middleware import AgentState, after_agent from langgraph.config import get_config from langgraph.runtime ...
langchain-ai/open-swe
https://github.com/langchain-ai/open-swe
null
null
null
null
9,710
null
null
mit
null
null
null
null
null
null
null
agent/prompt.py
null
null
null
null
null
null
Python
2026-05-04T02:04:09.828132
import logging import os from pathlib import Path from .utils.github_comments import UNTRUSTED_GITHUB_COMMENT_OPEN_TAG logger = logging.getLogger(__name__) DEFAULT_PROMPT_PATH = os.environ.get( "DEFAULT_PROMPT_PATH", str(Path(__file__).resolve().parent.parent / "default_prompt.md"), ) def _load_default_pro...
langchain-ai/open-swe
https://github.com/langchain-ai/open-swe
null
null
null
null
9,710
null
null
mit
null
null
null
null
null
null
null
agent/tools/fetch_url.py
null
null
null
null
null
null
Python
2026-05-04T02:04:09.829205
from typing import Any import requests from markdownify import markdownify from .http_request import _request_with_safe_redirects def fetch_url(url: str, timeout: int = 30) -> dict[str, Any]: """Fetch content from a URL and convert HTML to markdown format. This tool fetches web page content and converts it...
langchain-ai/open-swe
https://github.com/langchain-ai/open-swe
null
null
null
null
9,710
null
null
mit
null
null
null
null
null
null
null
agent/tools/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:04:09.830254
from .commit_and_open_pr import commit_and_open_pr from .edit_pull_request import edit_pull_request from .fetch_url import fetch_url from .get_branch_name import get_branch_name from .get_pr_review_comments import get_pr_review_comments from .github_ci import get_pr_check_runs, rerun_failed_workflow_runs from .github_c...
langchain-ai/open-swe
https://github.com/langchain-ai/open-swe
null
null
null
null
9,710
null
null
mit
null
null
null
null
null
null
null
agent/server.py
null
null
null
null
null
null
Python
2026-05-04T02:04:09.831346
"""Main entry point and CLI loop for Open SWE agent.""" # ruff: noqa: E402 # Suppress deprecation warnings from langchain_core (e.g., Pydantic V1 on Python 3.14+) # ruff: noqa: E402 import logging import os import warnings logger = logging.getLogger(__name__) from langgraph.graph.state import RunnableConfig from lan...
langchain-ai/open-swe
https://github.com/langchain-ai/open-swe
null
null
null
null
9,710
null
null
mit
null
null
null
null
null
null
null
agent/tools/linear_comment.py
null
null
null
null
null
null
Python
2026-05-04T02:04:11.472336
import asyncio from typing import Any from ..utils.linear import comment_on_linear_issue def linear_comment(comment_body: str, ticket_id: str) -> dict[str, Any]: """Post a comment to a Linear issue. Use this tool to communicate progress and completion to stakeholders on Linear. **When to use:** - A...
langchain-ai/open-swe
https://github.com/langchain-ai/open-swe
null
null
null
null
9,710
null
null
mit
null
null
null
null
null
null
null
agent/tools/http_request.py
null
null
null
null
null
null
Python
2026-05-04T02:04:11.474295
import ipaddress import socket from typing import Any from urllib.parse import urljoin, urlparse import requests _MAX_REDIRECTS = 5 def _is_url_safe(url: str) -> tuple[bool, str]: """Check if a URL is safe to request (not targeting private/internal networks).""" try: parsed = urlparse(url) i...
langchain-ai/open-swe
https://github.com/langchain-ai/open-swe
null
null
null
null
9,710
null
null
mit
null
null
null
null
null
null
null
agent/tools/github_comment.py
null
null
null
null
null
null
Python
2026-05-04T02:04:11.475377
import asyncio from typing import Any from langgraph.config import get_config from ..utils.github_app import get_github_app_installation_token from ..utils.github_comments import post_github_comment def github_comment(message: str, issue_number: int) -> dict[str, Any]: """Post a comment to a GitHub issue or pul...
langchain-ai/open-swe
https://github.com/langchain-ai/open-swe
null
null
null
null
9,710
null
null
mit
null
null
null
null
null
null
null
agent/tools/get_pr_review_comments.py
null
null
null
null
null
null
Python
2026-05-04T02:04:11.476304
import asyncio from typing import Any from langgraph.config import get_config from ..utils.github_app import get_github_app_installation_token from ..utils.github_comments import _fetch_paginated def get_pr_review_comments( pr_number: int, repo_owner: str | None = None, repo_name: str | None = None, ) -...
langchain-ai/open-swe
https://github.com/langchain-ai/open-swe
null
null
null
null
9,710
null
null
mit
null
null
null
null
null
null
null
agent/tools/linear_create_issue.py
null
null
null
null
null
null
Python
2026-05-04T02:04:11.477238
import asyncio from typing import Any from ..utils.linear import create_issue def linear_create_issue( team_id: str, title: str, description: str | None = None, assignee_id: str | None = None, priority: int | None = None, state_id: str | None = None, label_ids: list[str] | None = None, ...
langchain-ai/open-swe
https://github.com/langchain-ai/open-swe
null
null
null
null
9,710
null
null
mit
null
null
null
null
null
null
null
agent/tools/linear_delete_issue.py
null
null
null
null
null
null
Python
2026-05-04T02:04:11.478226
import asyncio from typing import Any from ..utils.linear import delete_issue def linear_delete_issue(issue_id: str) -> dict[str, Any]: """Delete a Linear issue. Args: issue_id: The Linear issue UUID to delete. Returns: Dictionary with 'success' bool. """ return asyncio.run(dele...
langchain-ai/open-swe
https://github.com/langchain-ai/open-swe
null
null
null
null
9,710
null
null
mit
null
null
null
null
null
null
null
agent/tools/get_branch_name.py
null
null
null
null
null
null
Python
2026-05-04T02:04:11.479764
from typing import Any from langgraph.config import get_config def get_branch_name() -> dict[str, Any]: """Return the git branch name for this thread. Returns the branch_name from thread metadata if set, otherwise falls back to open-swe/{thread_id}. """ config = get_config() metadata = confi...