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
FoundationAgents/OpenManus
https://github.com/FoundationAgents/OpenManus
null
null
null
null
56,012
null
null
mit
null
null
null
null
null
null
null
app/sandbox/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:18:42.096563
""" Docker Sandbox Module Provides secure containerized execution environment with resource limits and isolation for running untrusted code. """ from app.sandbox.client import ( BaseSandboxClient, LocalSandboxClient, create_sandbox_client, ) from app.sandbox.core.exceptions import ( SandboxError, S...
FoundationAgents/OpenManus
https://github.com/FoundationAgents/OpenManus
null
null
null
null
56,012
null
null
mit
null
null
null
null
null
null
null
app/sandbox/core/manager.py
null
null
null
null
null
null
Python
2026-05-04T02:18:42.113240
import asyncio import uuid from contextlib import asynccontextmanager from typing import Dict, Optional, Set import docker from docker.errors import APIError, ImageNotFound from app.config import SandboxSettings from app.logger import logger from app.sandbox.core.sandbox import DockerSandbox class SandboxManager: ...
FoundationAgents/OpenManus
https://github.com/FoundationAgents/OpenManus
null
null
null
null
56,012
null
null
mit
null
null
null
null
null
null
null
app/sandbox/client.py
null
null
null
null
null
null
Python
2026-05-04T02:18:42.148261
from abc import ABC, abstractmethod from typing import Dict, Optional, Protocol from app.config import SandboxSettings from app.sandbox.core.sandbox import DockerSandbox class SandboxFileOperations(Protocol): """Protocol for sandbox file operations.""" async def copy_from(self, container_path: str, local_pa...
FoundationAgents/OpenManus
https://github.com/FoundationAgents/OpenManus
null
null
null
null
56,012
null
null
mit
null
null
null
null
null
null
null
app/prompt/toolcall.py
null
null
null
null
null
null
Python
2026-05-04T02:18:42.151684
SYSTEM_PROMPT = "You are an agent that can execute tool calls" NEXT_STEP_PROMPT = ( "If you want to stop interaction, use `terminate` tool/function call." )
FoundationAgents/OpenManus
https://github.com/FoundationAgents/OpenManus
null
null
null
null
56,012
null
null
mit
null
null
null
null
null
null
null
app/sandbox/core/exceptions.py
null
null
null
null
null
null
Python
2026-05-04T02:18:42.152656
"""Exception classes for the sandbox system. This module defines custom exceptions used throughout the sandbox system to handle various error conditions in a structured way. """ class SandboxError(Exception): """Base exception for sandbox-related errors.""" class SandboxTimeoutError(SandboxError): """Excep...
FoundationAgents/OpenManus
https://github.com/FoundationAgents/OpenManus
null
null
null
null
56,012
null
null
mit
null
null
null
null
null
null
null
app/sandbox/core/sandbox.py
null
null
null
null
null
null
Python
2026-05-04T02:18:42.456122
import asyncio import io import os import tarfile import tempfile import uuid from typing import Dict, Optional import docker from docker.errors import NotFound from docker.models.containers import Container from app.config import SandboxSettings from app.sandbox.core.exceptions import SandboxTimeoutError from app.sa...
FoundationAgents/OpenManus
https://github.com/FoundationAgents/OpenManus
null
null
null
null
56,012
null
null
mit
null
null
null
null
null
null
null
app/sandbox/core/terminal.py
null
null
null
null
null
null
Python
2026-05-04T02:18:42.468136
""" Asynchronous Docker Terminal This module provides asynchronous terminal functionality for Docker containers, allowing interactive command execution with timeout control. """ import asyncio import re import socket from typing import Dict, Optional, Tuple, Union import docker from docker import APIClient from dock...
FoundationAgents/OpenManus
https://github.com/FoundationAgents/OpenManus
null
null
null
null
56,012
null
null
mit
null
null
null
null
null
null
null
app/schema.py
null
null
null
null
null
null
Python
2026-05-04T02:18:42.634828
from enum import Enum from typing import Any, List, Literal, Optional, Union from pydantic import BaseModel, Field class Role(str, Enum): """Message role options""" SYSTEM = "system" USER = "user" ASSISTANT = "assistant" TOOL = "tool" ROLE_VALUES = tuple(role.value for role in Role) ROLE_TYPE ...
FoundationAgents/OpenManus
https://github.com/FoundationAgents/OpenManus
null
null
null
null
56,012
null
null
mit
null
null
null
null
null
null
null
app/tool/ask_human.py
null
null
null
null
null
null
Python
2026-05-04T02:18:42.644002
from app.tool import BaseTool class AskHuman(BaseTool): """Add a tool to ask human for help.""" name: str = "ask_human" description: str = "Use this tool to ask human for help." parameters: str = { "type": "object", "properties": { "inquire": { "type": "str...
FoundationAgents/OpenManus
https://github.com/FoundationAgents/OpenManus
null
null
null
null
56,012
null
null
mit
null
null
null
null
null
null
null
app/tool/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:18:42.644515
from app.tool.base import BaseTool from app.tool.bash import Bash from app.tool.browser_use_tool import BrowserUseTool from app.tool.crawl4ai import Crawl4aiTool from app.tool.create_chat_completion import CreateChatCompletion from app.tool.planning import PlanningTool from app.tool.str_replace_editor import StrReplace...
FoundationAgents/OpenManus
https://github.com/FoundationAgents/OpenManus
null
null
null
null
56,012
null
null
mit
null
null
null
null
null
null
null
app/tool/base.py
null
null
null
null
null
null
Python
2026-05-04T02:18:42.744842
import json from abc import ABC, abstractmethod from typing import Any, Dict, Optional, Union from pydantic import BaseModel, Field from app.utils.logger import logger # class BaseTool(ABC, BaseModel): # name: str # description: str # parameters: Optional[dict] = None # class Config: # arbi...
FoundationAgents/OpenManus
https://github.com/FoundationAgents/OpenManus
null
null
null
null
56,012
null
null
mit
null
null
null
null
null
null
null
app/tool/bash.py
null
null
null
null
null
null
Python
2026-05-04T02:18:42.768591
import asyncio import os from typing import Optional from app.exceptions import ToolError from app.tool.base import BaseTool, CLIResult _BASH_DESCRIPTION = """Execute a bash command in the terminal. * Long running commands: For commands that may run indefinitely, it should be run in the background and the output sho...
FoundationAgents/OpenManus
https://github.com/FoundationAgents/OpenManus
null
null
null
null
56,012
null
null
mit
null
null
null
null
null
null
null
app/tool/browser_use_tool.py
null
null
null
null
null
null
Python
2026-05-04T02:18:42.775856
import asyncio import base64 import json from typing import Generic, Optional, TypeVar from browser_use import Browser as BrowserUseBrowser from browser_use import BrowserConfig from browser_use.browser.context import BrowserContext, BrowserContextConfig from browser_use.dom.service import DomService from pydantic imp...
FoundationAgents/OpenManus
https://github.com/FoundationAgents/OpenManus
null
null
null
null
56,012
null
null
mit
null
null
null
null
null
null
null
app/tool/chart_visualization/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:18:42.801466
from app.tool.chart_visualization.chart_prepare import VisualizationPrepare from app.tool.chart_visualization.data_visualization import DataVisualization from app.tool.chart_visualization.python_execute import NormalPythonExecute __all__ = ["DataVisualization", "VisualizationPrepare", "NormalPythonExecute"]
FoundationAgents/OpenManus
https://github.com/FoundationAgents/OpenManus
null
null
null
null
56,012
null
null
mit
null
null
null
null
null
null
null
app/tool/chart_visualization/chart_prepare.py
null
null
null
null
null
null
Python
2026-05-04T02:18:42.831501
from app.tool.chart_visualization.python_execute import NormalPythonExecute class VisualizationPrepare(NormalPythonExecute): """A tool for Chart Generation Preparation""" name: str = "visualization_preparation" description: str = "Using Python code to generates metadata of data_visualization tool. Output...
FoundationAgents/OpenManus
https://github.com/FoundationAgents/OpenManus
null
null
null
null
56,012
null
null
mit
null
null
null
null
null
null
null
app/tool/chart_visualization/data_visualization.py
null
null
null
null
null
null
Python
2026-05-04T02:18:43.048005
import asyncio import json import os from typing import Any, Hashable import pandas as pd from pydantic import Field, model_validator from app.config import config from app.llm import LLM from app.logger import logger from app.tool.base import BaseTool class DataVisualization(BaseTool): name: str = "data_visual...
FoundationAgents/OpenManus
https://github.com/FoundationAgents/OpenManus
null
null
null
null
56,012
null
null
mit
null
null
null
null
null
null
null
app/tool/chart_visualization/python_execute.py
null
null
null
null
null
null
Python
2026-05-04T02:18:43.100783
from app.config import config from app.tool.python_execute import PythonExecute class NormalPythonExecute(PythonExecute): """A tool for executing Python code with timeout and safety restrictions.""" name: str = "python_execute" description: str = """Execute Python code for in-depth data analysis / data r...
FoundationAgents/OpenManus
https://github.com/FoundationAgents/OpenManus
null
null
null
null
56,012
null
null
mit
null
null
null
null
null
null
null
app/tool/chart_visualization/test/report_demo.py
null
null
null
null
null
null
Python
2026-05-04T02:18:43.188285
import asyncio from app.agent.data_analysis import DataAnalysis # from app.agent.manus import Manus async def main(): agent = DataAnalysis() # agent = Manus() await agent.run( """Requirement: 1. Analyze the following data and generate a graphical data report in HTML format. The final product sh...
FoundationAgents/OpenManus
https://github.com/FoundationAgents/OpenManus
null
null
null
null
56,012
null
null
mit
null
null
null
null
null
null
null
app/tool/chart_visualization/test/chart_demo.py
null
null
null
null
null
null
Python
2026-05-04T02:18:43.188766
import asyncio from app.agent.data_analysis import DataAnalysis from app.logger import logger prefix = "Help me generate charts and save them locally, specifically:" tasks = [ { "prompt": "Help me show the sales of different products in different regions", "data": """Product Name,Region,Sales Cok...
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer
null
null
null
null
55,226
null
null
mit
null
null
null
null
null
null
null
gpt_engineer/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:18:47.056428
# Adding convenience imports to the package # from gpt_engineer.tools import code_vector_repository # from gpt_engineer.core.default import on_disk_repository
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer
null
null
null
null
55,226
null
null
mit
null
null
null
null
null
null
null
docs/examples/open_llms/openai_api_interface.py
null
null
null
null
null
null
Python
2026-05-04T02:18:47.106397
import os from openai import OpenAI client = OpenAI( base_url=os.getenv("OPENAI_API_BASE"), api_key=os.getenv("OPENAI_API_KEY") ) response = client.chat.completions.create( model=os.getenv("MODEL_NAME"), messages=[ { "role": "user", "content": "Provide me with only the cod...
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer
null
null
null
null
55,226
null
null
mit
null
null
null
null
null
null
null
gpt_engineer/applications/cli/cli_agent.py
null
null
null
null
null
null
Python
2026-05-04T02:18:47.164856
""" This module provides the CliAgent class which manages the lifecycle of code generation and improvement using an AI model. It includes functionalities to initialize code generation, improve existing code, and process the code through various steps defined in the step bundle. """ from typing import Callable, Optiona...
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer
null
null
null
null
55,226
null
null
mit
null
null
null
null
null
null
null
gpt_engineer/applications/cli/main.py
null
null
null
null
null
null
Python
2026-05-04T02:18:47.411494
""" Entrypoint for the CLI tool. This module serves as the entry point for a command-line interface (CLI) tool. It is designed to interact with OpenAI's language models. The module provides functionality to: - Load necessary environment variables, - Configure various parameters for the AI interaction, - Manage the gen...
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer
null
null
null
null
55,226
null
null
mit
null
null
null
null
null
null
null
gpt_engineer/benchmark/__main__.py
null
null
null
null
null
null
Python
2026-05-04T02:18:47.616345
""" Main entry point for the benchmarking tool. This module provides a command-line interface for running benchmarks using Typer. It allows users to specify the path to an agent, the benchmark(s) to run, and other options such as verbosity. Functions --------- get_agent : function Dynamically imports and returns ...
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer
null
null
null
null
55,226
null
null
mit
null
null
null
null
null
null
null
gpt_engineer/benchmark/bench_config.py
null
null
null
null
null
null
Python
2026-05-04T02:18:47.659300
from dataclasses import dataclass, field from pathlib import Path from tomlkit.items import Integer from gpt_engineer.core.project_config import read_config @dataclass class AppsConfig: active: bool | None = True test_start_index: int | None = 0 test_end_index: int | None = 1 train_start_index: int ...
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer
null
null
null
null
55,226
null
null
mit
null
null
null
null
null
null
null
docs/create_api_rst.py
null
null
null
null
null
null
Python
2026-05-04T02:18:47.670993
"""Script for auto-generating api_reference.rst""" import glob import re from pathlib import Path ROOT_DIR = Path(__file__).parents[1].absolute() print(ROOT_DIR) PKG_DIR = ROOT_DIR / "gpt_engineer" WRITE_FILE = Path(__file__).parent / "api_reference.rst" def load_members() -> dict: members: dict = {} for py...
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer
null
null
null
null
55,226
null
null
mit
null
null
null
null
null
null
null
gpt_engineer/benchmark/benchmarks/apps/load.py
null
null
null
null
null
null
Python
2026-05-04T02:18:47.728074
""" Module for loading APPS evaluation tasks. This module provides functionality to load tasks for evaluating GPT-based models on smaller, more focused tasks. It defines a set of tasks with predefined prompts and assertions to benchmark the performance of AI models. Functions --------- load_apps : function Loads ...
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer
null
null
null
null
55,226
null
null
mit
null
null
null
null
null
null
null
docs/examples/open_llms/langchain_interface.py
null
null
null
null
null
null
Python
2026-05-04T02:18:47.794189
import os from langchain.callbacks.streaming_stdout import StreamingStdOutCallbackHandler from langchain_openai import ChatOpenAI model = ChatOpenAI( model=os.getenv("MODEL_NAME"), temperature=0.1, callbacks=[StreamingStdOutCallbackHandler()], streaming=True, ) prompt = ( "Provide me with only th...
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer
null
null
null
null
55,226
null
null
mit
null
null
null
null
null
null
null
gpt_engineer/benchmark/benchmarks/apps/problem.py
null
null
null
null
null
null
Python
2026-05-04T02:18:47.974646
import json from dataclasses import dataclass from functools import cached_property from typing import List @dataclass(frozen=True) class Problem: id: int question: str input_output: str starter_code: str @property def inputs(self) -> List[str]: return self._parsed_inputs_outputs["in...
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer
null
null
null
null
55,226
null
null
mit
null
null
null
null
null
null
null
gpt_engineer/benchmark/benchmarks/gptme/load.py
null
null
null
null
null
null
Python
2026-05-04T02:18:48.036524
""" Module for loading GPT-Me evaluation tasks. This module provides functionality to load tasks for evaluating GPT-based models on smaller, more focused tasks. It defines a set of tasks with predefined prompts and assertions to benchmark the performance of AI models. Functions --------- load_gptme : function Loa...
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer
null
null
null
null
55,226
null
null
mit
null
null
null
null
null
null
null
gpt_engineer/applications/cli/collect.py
null
null
null
null
null
null
Python
2026-05-04T02:18:48.140950
""" Module `collect` - Data Handling and RudderStack Integration This module provides functionalities to handle and send learning data to RudderStack for the purpose of analysis and to improve the gpt-engineer system. The data is sent only when the user gives consent to share. Functions: send_learning(learning): ...
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer
null
null
null
null
55,226
null
null
mit
null
null
null
null
null
null
null
gpt_engineer/benchmark/benchmarks/load.py
null
null
null
null
null
null
Python
2026-05-04T02:18:48.169300
""" Module for loading benchmarks. This module provides a central point to access different benchmarks by name. It maps benchmark names to their respective loading functions. Functions --------- get_benchmark : function Retrieves a Benchmark object by name. Raises ValueError if the benchmark is unknown. """ from ...
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer
null
null
null
null
55,226
null
null
mit
null
null
null
null
null
null
null
gpt_engineer/benchmark/benchmarks/mbpp/load.py
null
null
null
null
null
null
Python
2026-05-04T02:18:48.215759
""" Module for loading MBPP evaluation tasks. This module provides functionality to load tasks for evaluating GPT-based models on smaller, more focused tasks. It defines a set of tasks with predefined prompts and assertions to benchmark the performance of AI models. Functions --------- load_mbpp : function Loads ...
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer
null
null
null
null
55,226
null
null
mit
null
null
null
null
null
null
null
gpt_engineer/benchmark/benchmarks/mbpp/problem.py
null
null
null
null
null
null
Python
2026-05-04T02:18:48.227493
from dataclasses import dataclass from typing import List @dataclass(frozen=True) class Problem: source_file: int task_id: str prompt: str code: str test_imports: str test_list: List[str] @property def starting_code(self) -> str: lines: List[str] = [] for line in self...
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer
null
null
null
null
55,226
null
null
mit
null
null
null
null
null
null
null
gpt_engineer/benchmark/run.py
null
null
null
null
null
null
Python
2026-05-04T02:18:48.382947
""" Module for running benchmarks. This module defines functions to run benchmarks using a given agent and to print the results of the benchmark tasks. Functions --------- run : function Runs the benchmark tasks using the provided agent and returns a list of TaskResult objects. print_results : function Print...
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer
null
null
null
null
55,226
null
null
mit
null
null
null
null
null
null
null
gpt_engineer/benchmark/types.py
null
null
null
null
null
null
Python
2026-05-04T02:18:48.558928
""" Module defining types used in benchmarking. This module contains dataclass definitions for various types used throughout the benchmarking process, such as Assertable, Task, Benchmark, and TaskResult. Classes: Assertable: Represents an object that can be asserted against in a benchmark task. Asser...
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer
null
null
null
null
55,226
null
null
mit
null
null
null
null
null
null
null
gpt_engineer/core/ai.py
null
null
null
null
null
null
Python
2026-05-04T02:18:48.587328
""" AI Module This module provides an AI class that interfaces with language models to perform various tasks such as starting a conversation, advancing the conversation, and handling message serialization. It also includes backoff strategies for handling rate limit errors from the OpenAI API. Classes: AI: A class...
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer
null
null
null
null
55,226
null
null
mit
null
null
null
null
null
null
null
gpt_engineer/core/base_agent.py
null
null
null
null
null
null
Python
2026-05-04T02:18:48.734674
""" Base Agent Module This module provides an abstract base class for an agent that interacts with code. It defines the interface for agents capable of initializing and improving code based on a given prompt. Implementations of this class are expected to provide concrete methods for these actions. Classes: BaseAg...
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer
null
null
null
null
55,226
null
null
mit
null
null
null
null
null
null
null
gpt_engineer/core/base_execution_env.py
null
null
null
null
null
null
Python
2026-05-04T02:18:48.742984
from abc import ABC, abstractmethod from subprocess import Popen from typing import Optional, Tuple from gpt_engineer.core.files_dict import FilesDict class BaseExecutionEnv(ABC): """ Abstract base class for an execution environment capable of running code. This class defines the interface for execution...
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer
null
null
null
null
55,226
null
null
mit
null
null
null
null
null
null
null
gpt_engineer/core/base_memory.py
null
null
null
null
null
null
Python
2026-05-04T02:18:48.794646
""" Base Memory Module This module provides a type alias for a mutable mapping that represents the base memory structure used in the GPT Engineer project. The base memory is a mapping from file names (as strings or Path objects) to their corresponding code content (as strings). Type Aliases: BaseMemory: A mutable...
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer
null
null
null
null
55,226
null
null
mit
null
null
null
null
null
null
null
gpt_engineer/core/chat_to_files.py
null
null
null
null
null
null
Python
2026-05-04T02:18:48.796267
""" This Python script provides functionalities for parsing chat transcripts that contain file paths and code blocks, applying diffs to these files, and parsing unified git diff format strings. The script is designed to work within a larger system that involves processing and manipulating code files based on chat input...
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer
null
null
null
null
55,226
null
null
mit
null
null
null
null
null
null
null
gpt_engineer/core/default/constants.py
null
null
null
null
null
null
Python
2026-05-04T02:18:48.983621
""" Module defining constants used throughout the application. This module contains definitions of constants that are used across various components of the application to maintain consistency and ease of configuration. Constants --------- MAX_EDIT_REFINEMENT_STEPS : int The maximum number of refinement steps allo...
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer
null
null
null
null
55,226
null
null
mit
null
null
null
null
null
null
null
gpt_engineer/core/default/disk_execution_env.py
null
null
null
null
null
null
Python
2026-05-04T02:18:49.126047
""" Module for managing the execution environment on the local disk. This module provides a class that handles the execution of code stored on the local file system. It includes methods for uploading files to the execution environment, running commands, and capturing the output. Classes ------- DiskExecutionEnv A...
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer
null
null
null
null
55,226
null
null
mit
null
null
null
null
null
null
null
gpt_engineer/core/default/file_store.py
null
null
null
null
null
null
Python
2026-05-04T02:18:49.181377
import tempfile from pathlib import Path from typing import Union from gpt_engineer.core.files_dict import FilesDict from gpt_engineer.core.linting import Linting class FileStore: """ Module for managing file storage in a temporary directory. This module provides a class that manages the storage of fil...
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer
null
null
null
null
55,226
null
null
mit
null
null
null
null
null
null
null
gpt_engineer/core/default/disk_memory.py
null
null
null
null
null
null
Python
2026-05-04T02:18:49.230070
""" Disk Memory Module ================== This module provides a simple file-based key-value database system, where keys are represented as filenames and values are the contents of these files. The `DiskMemory` class is responsible for the CRUD operations on the database. Attributes ---------- None Functions -------...
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer
null
null
null
null
55,226
null
null
mit
null
null
null
null
null
null
null
gpt_engineer/core/default/paths.py
null
null
null
null
null
null
Python
2026-05-04T02:18:49.307341
""" Module defining file system paths used by the application. This module contains definitions of file system paths that are used throughout the application to locate and manage various files and directories, such as logs, memory, and preprompts. Constants --------- META_DATA_REL_PATH : str The relative path to ...
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer
null
null
null
null
55,226
null
null
mit
null
null
null
null
null
null
null
gpt_engineer/core/default/simple_agent.py
null
null
null
null
null
null
Python
2026-05-04T02:18:49.310905
""" Module for defining a simple agent that uses AI to manage code generation and improvement. This module provides a class that represents an agent capable of initializing and improving a codebase using AI. It handles interactions with the AI model, memory, and execution environment to generate and refine code based ...
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer
null
null
null
null
55,226
null
null
mit
null
null
null
null
null
null
null
gpt_engineer/applications/cli/file_selector.py
null
null
null
null
null
null
Python
2026-05-04T02:18:49.312275
""" file_selector.py This module offers interactive file selection for projects. Leveraging a terminal-based, tree-structured display, users can navigate and select files for editing or processing. It integrates with system editors for direct file modification and supports saving selections for later use. Designed for...
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer
null
null
null
null
55,226
null
null
mit
null
null
null
null
null
null
null
gpt_engineer/core/default/steps.py
null
null
null
null
null
null
Python
2026-05-04T02:18:49.355354
""" Module for defining the steps involved in generating and improving code using AI. This module provides functions that represent different steps in the process of generating and improving code using an AI model. These steps include generating code from a prompt, creating an entrypoint for the codebase, executing th...
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer
null
null
null
null
55,226
null
null
mit
null
null
null
null
null
null
null
gpt_engineer/core/diff.py
null
null
null
null
null
null
Python
2026-05-04T02:18:49.359992
""" File Overview: This Python module is designed for processing and analyzing diffs in source code files. Diffs represent the changes between two versions of a file, which are crucial in version control systems for tracking file modifications. The module focuses on the detailed examination of these diffs, enabling us...
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer
null
null
null
null
55,226
null
null
mit
null
null
null
null
null
null
null
gpt_engineer/core/git.py
null
null
null
null
null
null
Python
2026-05-04T02:18:49.553236
import shutil import subprocess from pathlib import Path from typing import List from gpt_engineer.core.files_dict import FilesDict def is_git_installed(): return shutil.which("git") is not None def is_git_repo(path: Path): return ( subprocess.run( ["git", "rev-parse", "--is-inside-wor...
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer
null
null
null
null
55,226
null
null
mit
null
null
null
null
null
null
null
gpt_engineer/core/files_dict.py
null
null
null
null
null
null
Python
2026-05-04T02:18:49.553794
""" FilesDict Module This module provides a FilesDict class which is a dictionary-based container for managing code files. It extends the standard dictionary to enforce string keys and values, representing filenames and their corresponding code content. It also provides methods to format its contents for chat-based in...
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer
null
null
null
null
55,226
null
null
mit
null
null
null
null
null
null
null
gpt_engineer/core/linting.py
null
null
null
null
null
null
Python
2026-05-04T02:18:49.667133
import black from gpt_engineer.core.files_dict import FilesDict class Linting: def __init__(self): # Dictionary to hold linting methods for different file types self.linters = {".py": self.lint_python} import black def lint_python(self, content, config): """Lint Python files usi...
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer
null
null
null
null
55,226
null
null
mit
null
null
null
null
null
null
null
gpt_engineer/core/preprompts_holder.py
null
null
null
null
null
null
Python
2026-05-04T02:18:49.780260
from pathlib import Path from typing import Dict from gpt_engineer.core.default.disk_memory import DiskMemory class PrepromptsHolder: """ A holder for preprompt texts that are stored on disk. This class provides methods to retrieve preprompt texts from a specified directory. Attributes --------...
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer
null
null
null
null
55,226
null
null
mit
null
null
null
null
null
null
null
gpt_engineer/core/project_config.py
null
null
null
null
null
null
Python
2026-05-04T02:18:49.802239
""" Functions for reading and writing the `gpt-engineer.toml` configuration file. The `gpt-engineer.toml` file is a TOML file that contains project-specific configuration used by the GPT Engineer CLI and gptengineer.app. """ from dataclasses import asdict, dataclass, field from pathlib import Path import tomlkit def...
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer
null
null
null
null
55,226
null
null
mit
null
null
null
null
null
null
null
gpt_engineer/core/prompt.py
null
null
null
null
null
null
Python
2026-05-04T02:18:49.885512
import json from typing import Dict, Optional class Prompt: def __init__( self, text: str, image_urls: Optional[Dict[str, str]] = None, entrypoint_prompt: str = "", ): self.text = text self.image_urls = image_urls self.entrypoint_prompt = entrypoint_pro...
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer
null
null
null
null
55,226
null
null
mit
null
null
null
null
null
null
null
gpt_engineer/core/version_manager.py
null
null
null
null
null
null
Python
2026-05-04T02:18:49.904057
""" Version Manager Module This module provides an abstract base class for a version manager that handles the creation of snapshots for code. Implementations of this class are expected to provide methods to create a snapshot of the given code and return a reference to it. """ from abc import ABC, abstractmethod from p...
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer
null
null
null
null
55,226
null
null
mit
null
null
null
null
null
null
null
gpt_engineer/tools/custom_steps.py
null
null
null
null
null
null
Python
2026-05-04T02:18:49.920459
from platform import platform from sys import version_info from typing import List, Union from langchain.schema import AIMessage, HumanMessage, SystemMessage from gpt_engineer.core.ai import AI from gpt_engineer.core.base_execution_env import BaseExecutionEnv from gpt_engineer.core.base_memory import BaseMemory from ...
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer
null
null
null
null
55,226
null
null
mit
null
null
null
null
null
null
null
gpt_engineer/core/token_usage.py
null
null
null
null
null
null
Python
2026-05-04T02:18:49.944371
import base64 import io import logging import math from dataclasses import dataclass from typing import List, Union import tiktoken from langchain.schema import AIMessage, HumanMessage, SystemMessage from PIL import Image # workaround for function moved in: # https://github.com/langchain-ai/langchain/blob/535db7260...
Zie619/n8n-workflows
https://github.com/Zie619/n8n-workflows
null
null
null
null
54,081
null
null
mit
null
null
null
null
null
null
null
run.py
null
null
null
null
null
null
Python
2026-05-04T02:18:53.022456
#!/usr/bin/env python3 """ 🚀 N8N Workflows Search Engine Launcher Start the advanced search system with optimized performance. """ import sys import os import argparse def print_banner(): """Print application banner.""" print("🚀 n8n-workflows Advanced Search Engine") print("=" * 50) def check_require...
Zie619/n8n-workflows
https://github.com/Zie619/n8n-workflows
null
null
null
null
54,081
null
null
mit
null
null
null
null
null
null
null
scripts/update_github_pages.py
null
null
null
null
null
null
Python
2026-05-04T02:18:53.052520
#!/usr/bin/env python3 """ Update GitHub Pages Files Fixes the hardcoded timestamp and ensures proper deployment. Addresses Issues #115 and #129. """ import json from datetime import datetime from pathlib import Path import re def update_html_timestamp(html_file: str): """Update the timestamp in the HTML file to...
Zie619/n8n-workflows
https://github.com/Zie619/n8n-workflows
null
null
null
null
54,081
null
null
mit
null
null
null
null
null
null
null
src/analytics_engine.py
null
null
null
null
null
null
Python
2026-05-04T02:18:53.134229
#!/usr/bin/env python3 """ Advanced Analytics Engine for N8N Workflows Provides insights, patterns, and usage analytics. """ from fastapi import FastAPI, HTTPException, Query from fastapi.responses import HTMLResponse from pydantic import BaseModel from typing import List, Dict, Any import sqlite3 import json from dat...
Zie619/n8n-workflows
https://github.com/Zie619/n8n-workflows
null
null
null
null
54,081
null
null
mit
null
null
null
null
null
null
null
scripts/generate_search_index.py
null
null
null
null
null
null
Python
2026-05-04T02:18:53.954607
#!/usr/bin/env python3 """ Generate Static Search Index for GitHub Pages Creates a lightweight JSON index for client-side search functionality. """ import json import os import sys from pathlib import Path from typing import Dict, List, Any # Add the parent directory to path for imports sys.path.append(str(Path(__fil...
Zie619/n8n-workflows
https://github.com/Zie619/n8n-workflows
null
null
null
null
54,081
null
null
mit
null
null
null
null
null
null
null
src/ai_assistant.py
null
null
null
null
null
null
Python
2026-05-04T02:18:53.984723
#!/usr/bin/env python3 """ AI Assistant for N8N Workflow Discovery Intelligent chat interface for finding and understanding workflows. """ from fastapi import FastAPI, HTTPException from fastapi.responses import HTMLResponse from pydantic import BaseModel from typing import List, Dict, Optional import json import sqli...
Zie619/n8n-workflows
https://github.com/Zie619/n8n-workflows
null
null
null
null
54,081
null
null
mit
null
null
null
null
null
null
null
test_workflows.py
null
null
null
null
null
null
Python
2026-05-04T02:18:54.085223
#!/usr/bin/env python3 """ Test Sample Workflows Validate that our upgraded workflows are working properly """ import json from pathlib import Path def test_sample_workflows(): """Test sample workflows to ensure they're working""" print("🔍 Testing sample workflows...") samples = [] categories = ["M...
Zie619/n8n-workflows
https://github.com/Zie619/n8n-workflows
null
null
null
null
54,081
null
null
mit
null
null
null
null
null
null
null
src/community_features.py
null
null
null
null
null
null
Python
2026-05-04T02:18:54.296932
#!/usr/bin/env python3 """ Community Features Module for n8n Workflows Repository Implements rating, review, and social features """ import sqlite3 import json from datetime import datetime from typing import Dict, List, Optional from dataclasses import dataclass @dataclass class WorkflowRating: """Workflow rati...
Zie619/n8n-workflows
https://github.com/Zie619/n8n-workflows
null
null
null
null
54,081
null
null
mit
null
null
null
null
null
null
null
src/enhanced_api.py
null
null
null
null
null
null
Python
2026-05-04T02:18:54.314105
#!/usr/bin/env python3 """ Enhanced API Module for n8n Workflows Repository Advanced features, analytics, and performance optimizations """ import sqlite3 import time from datetime import datetime from typing import Dict, List, Optional from fastapi import FastAPI, HTTPException, Query from fastapi.middleware.cors imp...
Zie619/n8n-workflows
https://github.com/Zie619/n8n-workflows
null
null
null
null
54,081
null
null
mit
null
null
null
null
null
null
null
api_server.py
null
null
null
null
null
null
Python
2026-05-04T02:18:54.330754
#!/usr/bin/env python3 """ FastAPI Server for N8N Workflow Documentation High-performance API with sub-100ms response times. """ from fastapi import FastAPI, HTTPException, Query, BackgroundTasks, Request from fastapi.staticfiles import StaticFiles from fastapi.responses import HTMLResponse, FileResponse, JSONResponse...
Zie619/n8n-workflows
https://github.com/Zie619/n8n-workflows
null
null
null
null
54,081
null
null
mit
null
null
null
null
null
null
null
src/integration_hub.py
null
null
null
null
null
null
Python
2026-05-04T02:18:54.331466
#!/usr/bin/env python3 """ Integration Hub for N8N Workflows Connect with external platforms and services. """ from fastapi import FastAPI, HTTPException from fastapi.responses import HTMLResponse from pydantic import BaseModel, Field from typing import List, Dict, Any import httpx from datetime import datetime clas...
Zie619/n8n-workflows
https://github.com/Zie619/n8n-workflows
null
null
null
null
54,081
null
null
mit
null
null
null
null
null
null
null
workflow_db.py
null
null
null
null
null
null
Python
2026-05-04T02:18:54.582995
#!/usr/bin/env python3 """ Fast N8N Workflow Database SQLite-based workflow indexer and search engine for instant performance. """ import sqlite3 import json import os import datetime import hashlib from typing import Dict, List, Any, Optional, Tuple from pathlib import Path class WorkflowDatabase: """High-perfo...
Zie619/n8n-workflows
https://github.com/Zie619/n8n-workflows
null
null
null
null
54,081
null
null
mit
null
null
null
null
null
null
null
scripts/update_readme_stats.py
null
null
null
null
null
null
Python
2026-05-04T02:18:54.824741
#!/usr/bin/env python3 """ Update README.md with current workflow statistics Replaces hardcoded numbers with live data from the database. """ import os import re import sys from pathlib import Path from datetime import datetime # Add the parent directory to path for imports sys.path.append(str(Path(__file__).parent.p...
Zie619/n8n-workflows
https://github.com/Zie619/n8n-workflows
null
null
null
null
54,081
null
null
mit
null
null
null
null
null
null
null
src/user_management.py
null
null
null
null
null
null
Python
2026-05-04T02:18:58.883528
#!/usr/bin/env python3 """ User Management System for N8N Workflows Multi-user access control and authentication. """ from fastapi import FastAPI, HTTPException, Depends, status from fastapi.security import HTTPBearer, HTTPAuthorizationCredentials from fastapi.responses import HTMLResponse from pydantic import BaseMod...
Zie619/n8n-workflows
https://github.com/Zie619/n8n-workflows
null
null
null
null
54,081
null
null
mit
null
null
null
null
null
null
null
src/performance_monitor.py
null
null
null
null
null
null
Python
2026-05-04T02:18:58.885558
#!/usr/bin/env python3 """ Performance Monitoring System for N8N Workflows Real-time metrics, monitoring, and alerting. """ from fastapi import FastAPI, WebSocket, WebSocketDisconnect from fastapi.responses import HTMLResponse from pydantic import BaseModel from typing import List, Dict, Any import asyncio import time...
JuliusBrussee/caveman
https://github.com/JuliusBrussee/caveman
null
null
null
null
53,035
null
null
mit
null
null
null
null
null
null
null
caveman-compress/scripts/cli.py
null
null
null
null
null
null
Python
2026-05-04T02:19:01.294058
#!/usr/bin/env python3 """ Caveman Compress CLI Usage: caveman <filepath> """ import sys # Force UTF-8 on stdout/stderr before any code can print. Windows consoles # default to cp1252 and crash on the ❌ glyphs in error/validation branches, # masking the real error and leaving the user with a half-compressed file...
JuliusBrussee/caveman
https://github.com/JuliusBrussee/caveman
null
null
null
null
53,035
null
null
mit
null
null
null
null
null
null
null
caveman-compress/scripts/detect.py
null
null
null
null
null
null
Python
2026-05-04T02:19:01.316543
#!/usr/bin/env python3 """Detect whether a file is natural language (compressible) or code/config (skip).""" import json import re from pathlib import Path # Extensions that are natural language and compressible COMPRESSIBLE_EXTENSIONS = {".md", ".txt", ".markdown", ".rst", ".typ", ".typst", ".tex"} # Extensions tha...
JuliusBrussee/caveman
https://github.com/JuliusBrussee/caveman
null
null
null
null
53,035
null
null
mit
null
null
null
null
null
null
null
caveman-compress/scripts/compress.py
null
null
null
null
null
null
Python
2026-05-04T02:19:01.318216
#!/usr/bin/env python3 """ Caveman Memory Compression Orchestrator Usage: python scripts/compress.py <filepath> """ import os import re import subprocess from pathlib import Path from typing import List OUTER_FENCE_REGEX = re.compile( r"\A\s*(`{3,}|~{3,})[^\n]*\n(.*)\n\1\s*\Z", re.DOTALL ) # Filenames and p...
JuliusBrussee/caveman
https://github.com/JuliusBrussee/caveman
null
null
null
null
53,035
null
null
mit
null
null
null
null
null
null
null
caveman-compress/scripts/validate.py
null
null
null
null
null
null
Python
2026-05-04T02:19:01.319459
#!/usr/bin/env python3 import re from collections import Counter from pathlib import Path URL_REGEX = re.compile(r"https?://[^\s)]+") FENCE_OPEN_REGEX = re.compile(r"^(\s{0,3})(`{3,}|~{3,})(.*)$") HEADING_REGEX = re.compile(r"^(#{1,6})\s+(.*)", re.MULTILINE) BULLET_REGEX = re.compile(r"^\s*[-*+]\s+", re.MULTILINE) # ...
JuliusBrussee/caveman
https://github.com/JuliusBrussee/caveman
null
null
null
null
53,035
null
null
mit
null
null
null
null
null
null
null
evals/measure.py
null
null
null
null
null
null
Python
2026-05-04T02:19:01.330194
""" Read evals/snapshots/results.json (produced by llm_run.py) and report real token compression per skill against the *terse control arm* — i.e. how much the skill adds on top of a plain "Answer concisely." instruction. Reports median, min, max and stdev across prompts, not just the mean, so the reader can see whethe...
JuliusBrussee/caveman
https://github.com/JuliusBrussee/caveman
null
null
null
null
53,035
null
null
mit
null
null
null
null
null
null
null
evals/llm_run.py
null
null
null
null
null
null
Python
2026-05-04T02:19:01.334377
""" Run each prompt through Claude Code in three conditions and snapshot the real LLM outputs: 1. baseline — no extra system prompt at all 2. terse — system prompt: "Answer concisely." 3. terse+skill — system prompt: "Answer concisely.\n\n{SKILL.md}" The honest delta is (3) vs (2): how much does ...
JuliusBrussee/caveman
https://github.com/JuliusBrussee/caveman
null
null
null
null
53,035
null
null
mit
null
null
null
null
null
null
null
caveman-compress/scripts/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:19:01.341391
"""Caveman compress scripts. This package provides tools to compress natural language markdown files into caveman format to save input tokens. """ __all__ = ["cli", "compress", "detect", "validate"] __version__ = "1.0.0"
JuliusBrussee/caveman
https://github.com/JuliusBrussee/caveman
null
null
null
null
53,035
null
null
mit
null
null
null
null
null
null
null
benchmarks/run.py
null
null
null
null
null
null
Python
2026-05-04T02:19:01.351035
#!/usr/bin/env python3 """Benchmark caveman vs normal Claude output token counts.""" import argparse import hashlib import json import os import statistics import sys import time from datetime import datetime, timezone from pathlib import Path import anthropic # Load .env.local from repo root if it exists _env_file ...
JuliusBrussee/caveman
https://github.com/JuliusBrussee/caveman
null
null
null
null
53,035
null
null
mit
null
null
null
null
null
null
null
caveman-compress/scripts/benchmark.py
null
null
null
null
null
null
Python
2026-05-04T02:19:01.355171
#!/usr/bin/env python3 from pathlib import Path import sys # Support both direct execution and module import try: from .validate import validate except ImportError: sys.path.insert(0, str(Path(__file__).parent)) from validate import validate try: import tiktoken _enc = tiktoken.get_encoding("o200k...
JuliusBrussee/caveman
https://github.com/JuliusBrussee/caveman
null
null
null
null
53,035
null
null
mit
null
null
null
null
null
null
null
plugins/caveman/skills/compress/scripts/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:19:01.950387
"""Caveman compress scripts. This package provides tools to compress natural language markdown files into caveman format to save input tokens. """ __all__ = ["cli", "compress", "detect", "validate"] __version__ = "1.0.0"
JuliusBrussee/caveman
https://github.com/JuliusBrussee/caveman
null
null
null
null
53,035
null
null
mit
null
null
null
null
null
null
null
evals/plot.py
null
null
null
null
null
null
Python
2026-05-04T02:19:01.980604
""" Generate a boxplot showing the distribution of token compression per skill, compared against a plain "Answer concisely." control. Reads evals/snapshots/results.json and writes: - evals/snapshots/results.html (interactive plotly) - evals/snapshots/results.png (static export for README/PR embed) Run: uv run ...
JuliusBrussee/caveman
https://github.com/JuliusBrussee/caveman
null
null
null
null
53,035
null
null
mit
null
null
null
null
null
null
null
plugins/caveman/skills/compress/scripts/compress.py
null
null
null
null
null
null
Python
2026-05-04T02:19:01.981299
#!/usr/bin/env python3 """ Caveman Memory Compression Orchestrator Usage: python scripts/compress.py <filepath> """ import os import re import subprocess from pathlib import Path from typing import List OUTER_FENCE_REGEX = re.compile( r"\A\s*(`{3,}|~{3,})[^\n]*\n(.*)\n\1\s*\Z", re.DOTALL ) # Filenames and p...
JuliusBrussee/caveman
https://github.com/JuliusBrussee/caveman
null
null
null
null
53,035
null
null
mit
null
null
null
null
null
null
null
skills/compress/scripts/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:19:01.994556
"""Caveman compress scripts. This package provides tools to compress natural language markdown files into caveman format to save input tokens. """ __all__ = ["cli", "compress", "detect", "validate"] __version__ = "1.0.0"
JuliusBrussee/caveman
https://github.com/JuliusBrussee/caveman
null
null
null
null
53,035
null
null
mit
null
null
null
null
null
null
null
plugins/caveman/skills/compress/scripts/detect.py
null
null
null
null
null
null
Python
2026-05-04T02:19:01.996175
#!/usr/bin/env python3 """Detect whether a file is natural language (compressible) or code/config (skip).""" import json import re from pathlib import Path # Extensions that are natural language and compressible COMPRESSIBLE_EXTENSIONS = {".md", ".txt", ".markdown", ".rst", ".typ", ".typst", ".tex"} # Extensions tha...
JuliusBrussee/caveman
https://github.com/JuliusBrussee/caveman
null
null
null
null
53,035
null
null
mit
null
null
null
null
null
null
null
plugins/caveman/skills/compress/scripts/benchmark.py
null
null
null
null
null
null
Python
2026-05-04T02:19:01.997156
#!/usr/bin/env python3 from pathlib import Path import sys # Support both direct execution and module import try: from .validate import validate except ImportError: sys.path.insert(0, str(Path(__file__).parent)) from validate import validate try: import tiktoken _enc = tiktoken.get_encoding("o200k...
JuliusBrussee/caveman
https://github.com/JuliusBrussee/caveman
null
null
null
null
53,035
null
null
mit
null
null
null
null
null
null
null
plugins/caveman/skills/compress/scripts/cli.py
null
null
null
null
null
null
Python
2026-05-04T02:19:01.999559
#!/usr/bin/env python3 """ Caveman Compress CLI Usage: caveman <filepath> """ import sys # Force UTF-8 on stdout/stderr before any code can print. Windows consoles # default to cp1252 and crash on the ❌ glyphs in error/validation branches, # masking the real error and leaving the user with a half-compressed file...
JuliusBrussee/caveman
https://github.com/JuliusBrussee/caveman
null
null
null
null
53,035
null
null
mit
null
null
null
null
null
null
null
plugins/caveman/skills/compress/scripts/validate.py
null
null
null
null
null
null
Python
2026-05-04T02:19:02.000908
#!/usr/bin/env python3 import re from collections import Counter from pathlib import Path URL_REGEX = re.compile(r"https?://[^\s)]+") FENCE_OPEN_REGEX = re.compile(r"^(\s{0,3})(`{3,}|~{3,})(.*)$") HEADING_REGEX = re.compile(r"^(#{1,6})\s+(.*)", re.MULTILINE) BULLET_REGEX = re.compile(r"^\s*[-*+]\s+", re.MULTILINE) # ...
JuliusBrussee/caveman
https://github.com/JuliusBrussee/caveman
null
null
null
null
53,035
null
null
mit
null
null
null
null
null
null
null
tests/test_compress_safety.py
null
null
null
null
null
null
Python
2026-05-04T02:19:03.358496
"""Tests for the data-loss guards in `compress_file` (issue #237). The compress orchestrator used to overwrite the input even when Claude returned an empty string or a no-op echo, and used to write a backup without verifying that the bytes survived the round-trip. These tests pin the new defensive checks: nothing on d...
JuliusBrussee/caveman
https://github.com/JuliusBrussee/caveman
null
null
null
null
53,035
null
null
mit
null
null
null
null
null
null
null
tests/test_validate_inline.py
null
null
null
null
null
null
Python
2026-05-04T02:19:03.359556
import sys import tempfile import unittest from pathlib import Path REPO_ROOT = Path(__file__).resolve().parent.parent sys.path.insert(0, str(REPO_ROOT)) from skills.compress.scripts.validate import ( # noqa: E402 ValidationResult, extract_inline_codes, validate, validate_inline_codes, ) class Test...
JuliusBrussee/caveman
https://github.com/JuliusBrussee/caveman
null
null
null
null
53,035
null
null
mit
null
null
null
null
null
null
null
skills/compress/scripts/compress.py
null
null
null
null
null
null
Python
2026-05-04T02:19:03.360403
#!/usr/bin/env python3 """ Caveman Memory Compression Orchestrator Usage: python scripts/compress.py <filepath> """ import os import re import subprocess from pathlib import Path from typing import List OUTER_FENCE_REGEX = re.compile( r"\A\s*(`{3,}|~{3,})[^\n]*\n(.*)\n\1\s*\Z", re.DOTALL ) # Filenames and p...
JuliusBrussee/caveman
https://github.com/JuliusBrussee/caveman
null
null
null
null
53,035
null
null
mit
null
null
null
null
null
null
null
tests/test_hooks.py
null
null
null
null
null
null
Python
2026-05-04T02:19:03.361030
import json import os import subprocess import tempfile import unittest from pathlib import Path REPO_ROOT = Path(__file__).resolve().parent.parent class HookScriptTests(unittest.TestCase): def run_cmd(self, cmd, home): env = os.environ.copy() env["HOME"] = str(home) env["USERPROFILE"] =...
JuliusBrussee/caveman
https://github.com/JuliusBrussee/caveman
null
null
null
null
53,035
null
null
mit
null
null
null
null
null
null
null
skills/compress/scripts/detect.py
null
null
null
null
null
null
Python
2026-05-04T02:19:03.361654
#!/usr/bin/env python3 """Detect whether a file is natural language (compressible) or code/config (skip).""" import json import re from pathlib import Path # Extensions that are natural language and compressible COMPRESSIBLE_EXTENSIONS = {".md", ".txt", ".markdown", ".rst", ".typ", ".typst", ".tex"} # Extensions tha...
JuliusBrussee/caveman
https://github.com/JuliusBrussee/caveman
null
null
null
null
53,035
null
null
mit
null
null
null
null
null
null
null
skills/compress/scripts/benchmark.py
null
null
null
null
null
null
Python
2026-05-04T02:19:03.627596
#!/usr/bin/env python3 from pathlib import Path import sys # Support both direct execution and module import try: from .validate import validate except ImportError: sys.path.insert(0, str(Path(__file__).parent)) from validate import validate try: import tiktoken _enc = tiktoken.get_encoding("o200k...
JuliusBrussee/caveman
https://github.com/JuliusBrussee/caveman
null
null
null
null
53,035
null
null
mit
null
null
null
null
null
null
null
tests/verify_repo.py
null
null
null
null
null
null
Python
2026-05-04T02:19:03.663385
#!/usr/bin/env python3 """Local verification runner for caveman install surfaces.""" from __future__ import annotations import json import os import shutil import subprocess import sys import tempfile import zipfile from pathlib import Path ROOT = Path(__file__).resolve().parents[1] class CheckFailure(RuntimeErro...
JuliusBrussee/caveman
https://github.com/JuliusBrussee/caveman
null
null
null
null
53,035
null
null
mit
null
null
null
null
null
null
null
skills/compress/scripts/cli.py
null
null
null
null
null
null
Python
2026-05-04T02:19:03.774254
#!/usr/bin/env python3 """ Caveman Compress CLI Usage: caveman <filepath> """ import sys # Force UTF-8 on stdout/stderr before any code can print. Windows consoles # default to cp1252 and crash on the ❌ glyphs in error/validation branches, # masking the real error and leaving the user with a half-compressed file...
JuliusBrussee/caveman
https://github.com/JuliusBrussee/caveman
null
null
null
null
53,035
null
null
mit
null
null
null
null
null
null
null
skills/compress/scripts/validate.py
null
null
null
null
null
null
Python
2026-05-04T02:19:03.775318
#!/usr/bin/env python3 import re from collections import Counter from pathlib import Path URL_REGEX = re.compile(r"https?://[^\s)]+") FENCE_OPEN_REGEX = re.compile(r"^(\s{0,3})(`{3,}|~{3,})(.*)$") HEADING_REGEX = re.compile(r"^(#{1,6})\s+(.*)", re.MULTILINE) BULLET_REGEX = re.compile(r"^\s*[-*+]\s+", re.MULTILINE) # ...
karpathy/nanochat
https://github.com/karpathy/nanochat
null
null
null
null
52,868
null
null
mit
null
null
null
null
null
null
null
nanochat/dataloader.py
null
null
null
null
null
null
Python
2026-05-04T02:19:06.341529
""" Distributed dataloaders for pretraining. BOS-aligned bestfit: - Every row starts with BOS token - Documents packed using best-fit algorithm to minimize cropping - When no document fits remaining space, crops a document to fill exactly - 100% utilization (no padding), ~35% tokens cropped at T=2048 Comp...