Skip to content

Instantly share code, notes, and snippets.

View JosXa's full-sized avatar
💙

Joscha Götzer JosXa

💙
View GitHub Profile
@JosXa
JosXa / copilot-ghe-enterprise.ts
Created February 27, 2026 01:40
OpenCode plugin: GitHub Copilot with GHE enterprise auth, GPT-5.3 support, and models.dev integration
import type { Hooks, PluginInput } from "@opencode-ai/plugin";
// Use VS Code's OAuth client ID - it has more scope permissions required for /copilot_internal/v2/token
const CLIENT_ID = "01ab8ac9400c4e429b23";
const PROVIDER_ID = "github-copilot";
const PROVIDER_NAME = "GitHub Copilot";
// TODO: Set this to your GitHub Enterprise domain
const DEFAULT_ENTERPRISE_DOMAIN = "your-company.ghe.com";
// Add a small safety buffer when polling to avoid hitting the server
description agent
Remove AI-generated writing patterns from text
smart

You are a writing editor that identifies and removes signs of AI-generated text to make writing sound more natural and human. Based on Wikipedia's "Signs of AI writing" page, maintained by WikiProject AI Cleanup.

Your Task:

  1. Identify AI patterns - Scan for the patterns below
// import type { Plugin } from "@opencode-ai/plugin"
// // AI writing patterns detection and humanization
// const AI_PATTERNS = {
// content: {
// significance: /\b(stands|serves) as\b|\btestament\b|\bpivotal (moment|role)\b|\bevolving landscape\b|\bindelible mark\b/gi,
// notability: /\bcited in\b.*\b(NYT|BBC|Times|Post)\b|\bactive social media presence\b/gi,
// superficial: /\b(highlighting|underscoring|emphasizing|ensuring|reflecting|symbolizing|showcasing)\b[^.]{0,50}\.\s*$/gim,
// promotional: /\b(nestled|breathtaking|vibrant|stunning|must-visit|renowned|boasts)\b/gi,
// vague: /\b(Experts|Industry reports|Observers|Some critics)\s+(believe|argue|suggest)\b/gi,
@JosXa
JosXa / Test Markdown Example.md
Created July 15, 2025 17:19
A simple markdown example to demonstrate basic formatting and syntax.

test

import "@johnlindquist/kit"
import { startSpinner } from "@josxa/kit-utils"
metadata = {
name: "Update Script Kit",
description: "Download and install latest Script Kit release",
author: "JosXa",
}
/**
import "@johnlindquist/kit";
metadata = {
name: "MCP Proxy Background Service",
background: true,
longRunning: true,
};
const MCP_PROXY_EXECUTABLE = "C:/Users/josch/go/bin/mcp-proxy.exe";
const CONFIG_PATH = home("mcp-proxy.json");
import "@johnlindquist/kit";
metadata = {
name: "MCP Proxy Background Service",
background: true,
longRunning: true,
};
const MCP_PROXY_EXECUTABLE = "C:/Users/josch/go/bin/mcp-proxy.exe";
const CONFIG_PATH = home("mcp-proxy.json");
import "@johnlindquist/kit"
export const metadata: Metadata = {
name: "Temporarily gitignore a file",
}
let p = await path({
hint: "Choose a file or repository path",
startPath: "D:\\projects",
})
import "@johnlindquist/kit"
import type { Choice } from "@johnlindquist/kit"
import gis from "g-i-s"
const query = await arg("Enter image search term")
const images = await new Promise<any[]>((resolve, reject) => {
gis(query, (error, results) => {
if (error) {
reject(error)
import "@johnlindquist/kit"
export const metadata: Metadata = {
name: "Selected bug repro",
}
await arg("", [
{ name: "A", selected: false },
{ name: "B", selected: true },
{ name: "C", selected: false },