A desktop coding agent with free access to frontier models.
TypeScript
{
"join": "⟨+⟩",
"redacted": "[REDACTED]",
"opaque_keys": [
"reasoningEncryptedContent",
"encrypted_content",
"encryptedContent",
"signature",
"thinkingSignature",
"redacted_thinking"
],
"cases": [
{
"name": "env var reference kept",
"input": "GITHUB_TOKEN=$GITHUB_TOKEN",
"expect": "GITHUB_TOKEN=$GITHUB_TOKEN"
},
{
"name": "braced env var kept",
"input": "export API_KEY=\"${OPENAI_API_KEY}\"",
"expect": "export API_KEY=\"${OPENAI_API_KEY}\""
},
{
"name": "process.env kept",
"input": "const token = process.env.SLACK_TOKEN_VALUE_X",
"expect": "const token = process.env.SLACK_TOKEN_VALUE_X",
"mode": "source"
},
{
"name": "os.environ kept",
"input": "password = os.environ[\"DB_PASSWORD\"]",
"expect": "password = os.environ[\"DB_PASSWORD\"]",
"mode": "source"
},
{
"name": "template kept",
"input": "auth_token: \"{{ vault_auth_token_value }}\"",
"expect": "auth_token: \"{{ vault_auth_token_value }}\""
},
{
"name": "windows var kept",
"input": "set SECRET_KEY=%MY_SECRET_KEY%",
"expect": "set SECRET_KEY=%MY_SECRET_KEY%"
},
{
"name": "email kept on the client",
"input": "contact [email protected] now",
"expect": "contact [email protected] now"
},
{
"name": "phone kept on the client",
"input": "call +1 415 555 0101",
"expect": "call +1 415 555 0101"
},
{
"name": "ssn kept on the client",
"input": "id 123-45-6789",
"expect": "id 123-45-6789"
},
{
"name": "public ipv4 kept on the client",
"input": "ssh [email protected] -p 22",
"expect": "ssh [email protected] -p 22"
},
{
"name": "version kept",
"input": "billiard==3.6.4.0 and version = \"2.4.7.3\"",
"expect": "billiard==3.6.4.0 and version = \"2.4.7.3\""
},
{
"name": "kernel kept",
"input": "Linux version 5.15.153.1-microsoft-standard-WSL2",
"expect": "Linux version 5.15.153.1-microsoft-standard-WSL2"
},
{
"name": "decorator kept",
"input": "[email protected](\"/x\")",
"expect": "[email protected](\"/x\")"
},
{
"name": "git ssh kept",
"input": "[email protected]:owner/repo.git",
"expect": "[email protected]:owner/repo.git"
},
{
"name": "generic sk- in a blob kept",
"input": "blob EuSxsYMIUla2_LmDMWGoVW6MfRSyeybbbyqw0VOHDMwcSs-vwzRk0JKrq5B_I9IWX72IroVtEYd9QRVg3ZBHHwTdLfAjX-sSVCaJ8DXLipJ8ZHwrrVcDj0k6sk-1t8FTrUvkHKdhoIuX2NpfytPseqA0PGxhaTdUise7sZ1d5qlHFRyT_-Z_kd6HhbAPqxpB7LFRaFcqPK1tfGO0Ir7mjqk5VAu1u7CJiShQOBjOYbzQJgWZXdK5MFPa2khz2XtL-psgPtt59sngsuKl4JiPwKBkWIuvNEIbyRRuAlxvxaAV end",
"expect": "blob EuSxsYMIUla2_LmDMWGoVW6MfRSyeybbbyqw0VOHDMwcSs-vwzRk0JKrq5B_I9IWX72IroVtEYd9QRVg3ZBHHwTdLfAjX-sSVCaJ8DXLipJ8ZHwrrVcDj0k6sk-1t8FTrUvkHKdhoIuX2NpfytPseqA0PGxhaTdUise7sZ1d5qlHFRyT_-Z_kd6HhbAPqxpB7LFRaFcqPK1tfGO0Ir7mjqk5VAu1u7CJiShQOBjOYbzQJgWZXdK5MFPa2khz2XtL-psgPtt59sngsuKl4JiPwKBkWIuvNEIbyRRuAlxvxaAV end"
},
{
"name": "data uri kept",
"input": "src=\"data:image/png;base64,ipx5utjfTxzUn/XZK54xFb2n75zrqbl6q3t/OXwT2ZeZLV06Agdf4T8h4PwFi06l4L2ok4XwVqk3WtcOsk-WVGALBh6bRKfkr1vMRNcsvFUqYI7tg==\"",
"expect": null,
"same": true
},
{
"name": "word password kept",
"input": "password: hunter2hunter",
"expect": "password: hunter2hunter"
},
{
"name": "placeholder kept",
"input": "API_KEY=your-api-key-here",
"expect": "API_KEY=your-api-key-here"
},
{
"name": "aws example id kept",
"input": "AKIA⟨+⟩IOSFODNN7EXAMPLE",
"expect": "AKIA⟨+⟩IOSFODNN7EXAMPLE"
},
{
"name": "function param kept",
"input": "function f(token: string) { return token }",
"expect": "function f(token: string) { return token }",
"mode": "source"
},
{
"name": "integrity hash kept",
"input": "\"integrity\": \"sha512-eyVpl09JmcJpaXZ5xbsrBEYLtg5908t1hfCmB8vI32dTy1IATELbOlZi0vSVy/dCiT8Kb2gWt4SwTH8Q5hPV3M==\"",
"expect": null,
"same": true
},
{
"name": "uuid under api_key looks random",
"input": "api_key = \"3f2b8a4e-9c1d-4e7a-b5f6-0a1b2c3d4e5f\"",
"expect": "api_key = \"[REDACTED]\""
},
{
"name": "short secret value kept",
"input": "token=abc123",
"expect": "token=abc123"
},
{
"name": "truncated private key kept",
"input": "-----BEGIN RSA PRIVATE KEY-----\nMIIE...\n-----END RSA PRIVATE KEY-----",
"expect": "-----BEGIN RSA PRIVATE KEY-----\nMIIE...\n-----END RSA PRIVATE KEY-----"
},
{
"name": "url user without password kept",
"input": "postgres://[email protected]:5432/app",
"expect": "postgres://[email protected]:5432/app"
},
{
"name": "url placeholder password kept",
"input": "postgres://user:${DB_PASS}@localhost:5432/app",
"expect": "postgres://user:${DB_PASS}@localhost:5432/app"
},
{
"name": "bearer placeholder kept",
"input": "Authorization: Bearer yourAccessTokenGoesHere",
"expect": "Authorization: Bearer yourAccessTokenGoesHere"
},
{
"name": "non-jwt eyJ kept",
"input": "ey⟨+⟩JraWQiOiJ4IiwidHlwIjoieSJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkZha2UgVXNlciIsImlhdCI6MTUxNjIzOTAyMn0.HnRI5zBguaFFIU3rkbPU",
"expect": "ey⟨+⟩JraWQiOiJ4IiwidHlwIjoieSJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkZha2UgVXNlciIsImlhdCI6MTUxNjIzOTAyMn0.HnRI5zBguaFFIU3rkbPU"
},
{
"name": "openai project key",
"input": "OPENAI_API_KEY=sk⟨+⟩-proj-k0t2-IBx0MSFjLIHgdtCHfaBsoexCYqsFdec8ZnbsrQau0e9D6W5Sosy-ZzgMTZ6pDE0O1Vbx6UcE4flEOBRH8gUFXo0dItNV6dby1aGWll5oflgb-XSWpl4kt4O8ItCjaBSnEhCLzw_XAlGQAFIrEEUc5d1",
"expect": "OPENAI_API_KEY=[REDACTED]"
},
{
"name": "anthropic key in prose",
"input": "use sk⟨+⟩-ant-api03-BI11bAx-D8Kv5xjY64Y7gxOO6E_tSz-2LaqC47M5PEyGbPW4eWwhvH8cUauOv-g1850wDoxpJPC1bLaoZDqiUVdrlhJ47 please",
"expect": "use [REDACTED] please"
},
{
"name": "github token",
"input": "gh auth: gh⟨+⟩p_b4z0PMbDeCxAqT4kiRhFv5FnMXlMWbiohfGV",
"expect": "gh auth: [REDACTED]"
},
{
"name": "aws id and secret",
"input": "aws_access_key_id = AK⟨+⟩IAWGN7A7YSXASSWMRT\naws_secret_access_key = RbqEoYnLY/TZ3v44hCp4oQzLdlL2cd0SVjlHRjD5",
"expect": "aws_access_key_id = [REDACTED]\naws_secret_access_key = [REDACTED]"
},
{
"name": "aws secret beside id",
"input": "id AK⟨+⟩IAWGN7A7YSXASSWMRT\nkey RbqEoYnLY/TZ3v44hCp4oQzLdlL2cd0SVjlHRjD5",
"expect": "id [REDACTED]\nkey [REDACTED]"
},
{
"name": "jwt",
"input": "cookie=ey⟨+⟩JhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkZha2UgVXNlciIsImlhdCI6MTUxNjIzOTAyMn0.SDfGQZPTGwvY6aLP4vySLMnlhkIOYLh6XrYf1xBiQN1",
"expect": "cookie=[REDACTED]"
},
{
"name": "bearer header",
"input": "Authorization: Bearer I7T8wjGfFY0tqQk1lkQTaHgZipGR3nOY",
"expect": "Authorization: Bearer [REDACTED]"
},
{
"name": "basic header",
"input": "Authorization: Basic YWRtaW46WWlKZXV5d3V5cWt1Z2dQeg==",
"expect": "Authorization: Basic [REDACTED]"
},
{
"name": "url password keeps user",
"input": "postgresql+asyncpg://app_user:[email protected]:5432/app",
"expect": "postgresql+asyncpg://app_user:[REDACTED]@db.example.net:5432/app"
},
{
"name": "url word password",
"input": "redis://default:postgres@localhost:6379",
"expect": "redis://default:[REDACTED]@localhost:6379"
},
{
"name": "random secret assignment",
"input": "SECRET_KEY = \"I7T8wjGfFY0tqQk1lkQTaHgZipGR3nOY\"",
"expect": "SECRET_KEY = \"[REDACTED]\"",
"mode": "source"
},
{
"name": "unquoted source value kept",
"input": "secret_key = I7T8wjGfFY0tqQk1lkQTaHgZipGR3nOY",
"expect": "secret_key = I7T8wjGfFY0tqQk1lkQTaHgZipGR3nOY",
"mode": "source"
},
{
"name": "credential file any value",
"input": "DB_PASSWORD=supersecretword",
"expect": "DB_PASSWORD=[REDACTED]",
"context": "app/.env"
},
{
"name": "env example filled in",
"input": "DB_PASSWORD=supersecretword",
"expect": "DB_PASSWORD=[REDACTED]",
"context": "app/.env.example"
},
{
"name": "env example placeholders kept",
"input": "PORT=3000\nDB_PASSWORD=<your-password>\nAPI_KEY=your-api-key-here\nSECRET_KEY=changeme\nJWT_SECRET=",
"expect": "PORT=3000\nDB_PASSWORD=<your-password>\nAPI_KEY=your-api-key-here\nSECRET_KEY=changeme\nJWT_SECRET=",
"context": "app/.env.sample"
},
{
"name": "env template real values",
"input": "API_TOKEN=abcdefgh123\nDATABASE_PASSWORD=Summer2024!\nJWT_SECRET=supersecretjwt",
"expect": "API_TOKEN=[REDACTED]\nDATABASE_PASSWORD=[REDACTED]\nJWT_SECRET=[REDACTED]",
"context": "/w/api/.env.template"
},
{
"name": "named env file any value",
"input": "DB_PASSWORD=supersecretword",
"expect": "DB_PASSWORD=[REDACTED]",
"context": "docker/production.env"
},
{
"name": "npmrc token",
"input": "//registry.npmjs.org/:_authToken=np⟨+⟩m_Oc6Qi7ggAMKfjlaTNJkd38tGFzUnusvrIPab",
"expect": "//registry.npmjs.org/:_authToken=[REDACTED]",
"context": ".npmrc"
},
{
"name": "private key body",
"input": "-----BEGIN OPENSSH PRIVATE KEY-----\nML3oEigf7Ndm1psPEs4ARwheixekEVufljdIFL63fzIF7TOuKt3xwf3JQEggIIyA\n9Rb7rH9U7n28IkO6cZ+DaFzx0lbKj/sMkrmOjXI65UJaLI4XU6mifWHrOs3Rj+Ye\nY8XQmdSYTBEEIbD5L2N1HLpES55tS9UtfcNATonBTlWQGHGrd/95L4O0LF4GwYXf\ntrliczU231qWz/KR0xQPzcJeEuCBfPGpQPQMOtYu0IZV5JurgCfUtsK05HEFhDBz\n3BpZtyuwTzh3XS0zXoUwk0TnHC3Z7bpcUcFd6N0emr5ZjiTUn9uNfZ9xfFopXxZ4\n-----END OPENSSH PRIVATE KEY-----",
"expect": "-----BEGIN OPENSSH PRIVATE KEY-----\n[REDACTED]\n-----END OPENSSH PRIVATE KEY-----"
},
{
"name": "escaped private key body",
"input": "-----BEGIN PRIVATE KEY-----\\nML3oEigf7Ndm1psPEs4ARwheixekEVufljdIFL63fzIF7TOuKt3xwf3JQEggIIyA\\n9Rb7rH9U7n28IkO6cZ+DaFzx0lbKj/sMkrmOjXI65UJaLI4XU6mifWHrOs3Rj+Ye\\nY8XQmdSYTBEEIbD5L2N1HLpES55tS9UtfcNATonBTlWQGHGrd/95L4O0LF4GwYXf\\ntrliczU231qWz/KR0xQPzcJeEuCBfPGpQPQMOtYu0IZV5JurgCfUtsK05HEFhDBz\\n3BpZtyuwTzh3XS0zXoUwk0TnHC3Z7bpcUcFd6N0emr5ZjiTUn9uNfZ9xfFopXxZ4\\n-----END PRIVATE KEY-----",
"expect": "-----BEGIN PRIVATE KEY-----\\n[REDACTED]\\n-----END PRIVATE KEY-----"
},
{
"name": "slack webhook",
"input": "url: https://hooks.sl⟨+⟩ack.com/services/T0QN4252LP/B0PDKN08J0/nWLjmyzkl3OYFE6Jx0v1IOnZ",
"expect": null,
"startswith": "url: https://hooks.sl⟨+⟩ack.com/services/T0",
"endswith": "/[REDACTED]"
},
{
"name": "hugging face token",
"input": "HF hf⟨+⟩_6IwtNbhM4UKzG5zqyZnJ5sxl16ddrAChEC",
"expect": "HF [REDACTED]"
},
{
"name": "mask replacement",
"input": "GITHUB_TOKEN=gh⟨+⟩p_b4z0PMbDeCxAqT4kiRhFv5FnMXlMWbiohfGV",
"expect": "GITHUB_TOKEN=ubuntu",
"replacement": "ubuntu"
},
{
"name": "token after escaped newline",
"input": "line\\ngh⟨+⟩p_b4z0PMbDeCxAqT4kiRhFv5FnMXlMWbiohfGV",
"expect": "line\\n[REDACTED]"
},
{
"name": "code expression kept",
"input": "const token = response.data?.[TOKEN_FIELD]",
"expect": "const token = response.data?.[TOKEN_FIELD]"
},
{
"name": "quoted dotted name kept",
"input": "const x = { token: \"settings.token\" }",
"expect": "const x = { token: \"settings.token\" }"
},
{
"name": "constant name kept",
"input": "client(api_key_env=\"OPENAI_API_KEY\")",
"expect": "client(api_key_env=\"OPENAI_API_KEY\")"
},
{
"name": "jsx expression kept",
"input": "<Client apiKey={apiKey} secret={props.clientSecret} />",
"expect": "<Client apiKey={apiKey} secret={props.clientSecret} />"
},
{
"name": "call argument kept",
"input": "OpenAI(api_key=settings.OPENAI_API_KEY)",
"expect": "OpenAI(api_key=settings.OPENAI_API_KEY)"
},
{
"name": "dashed words kept",
"input": "login({ username: 'admin-user', password: 'demo-password-reset' })",
"expect": "login({ username: 'admin-user', password: 'demo-password-reset' })"
},
{
"name": "template braces kept",
"input": "headers += f\"Authorization: {auth_header_value}\"",
"expect": "headers += f\"Authorization: {auth_header_value}\""
},
{
"name": "strong password kept out",
"input": "DB_PASSWORD = 'Tr0ub4dor&3-horse!'",
"expect": "DB_PASSWORD = '[REDACTED]'"
},
{
"name": "long mixed-case literal",
"input": "client_secret: \"tMSXumEUddzLinslpqaTvtBKRiKG\"",
"expect": "client_secret: \"[REDACTED]\""
},
{
"name": "value on the line after its label",
"input": "Keys for the demo\nAPI_KEY:\nT7NT4WVI4P0F9L7B9222LGV4TMQ\nUse it once.",
"expect": "Keys for the demo\nAPI_KEY:\n[REDACTED]\nUse it once.",
"context": "notes.txt"
},
{
"name": "markdown label then value",
"input": "**OpenAI API key:**\n`qFJOBNCEPquXOrK4zDVhNomPXW9rmphDvduwHcBE`\n",
"expect": null,
"same": true
},
{
"name": "label then prose kept",
"input": "password:\nask the admin for it\n",
"expect": "password:\nask the admin for it\n"
},
{
"name": "yaml mapping under a label kept",
"input": "token:\n value: abcdefgh12345678\n",
"expect": "token:\n value: abcdefgh12345678\n"
},
{
"name": "empty key above another assignment kept",
"input": "OPENAI_API_KEY=\nANTHROPIC_BASE_URL=api-local-dev-42x\nPORT=8080\n",
"expect": "OPENAI_API_KEY=\nANTHROPIC_BASE_URL=api-local-dev-42x\nPORT=8080\n",
"context": ".env.local"
},
{
"name": "escaped empty key above another assignment kept",
"input": "SOME_SECRET_KEY=\\nSERVICE_NAME=svc-alpha-77beta",
"expect": "SOME_SECRET_KEY=\\nSERVICE_NAME=svc-alpha-77beta"
},
{
"name": "label then value on the next line under another label",
"input": "server.port=\r\nspring.datasource.app-db.password=\r\nq8⟨+⟩zr2lmt5vxp9k3d-wq7n4b6h1j0f2g8sy5c\r\nmax-retries=10\r\n",
"expect": "server.port=\r\nspring.datasource.app-db.password=\r\n[REDACTED]\r\nmax-retries=10\r\n",
"context": "application.properties"
},
{
"name": "label, blank line, then value",
"input": "OPENAI_API_KEY=\n\nXK⟨+⟩7PQ2VRT9MZ-LW3NC8BD4HJ6FS\n\nANTHROPIC_API_KEY=\n",
"expect": "OPENAI_API_KEY=\n\n[REDACTED]\n\nANTHROPIC_API_KEY=\n",
"context": "keys.txt"
},
{
"name": "label= then a long value on the next line",
"input": "notes-for-me-v2-a1\nOPENAI_COMPATIBLE_API_KEY=\nXk⟨+⟩7pQ2vR-t9mZ_Lw3Nc8Bd4Hj6Fs1Gq5Yt0Ue2Ia7Ob3Pc9Rd4Se6Tf\nOTHER_THING_NAME=x\n",
"expect": "notes-for-me-v2-a1\nOPENAI_COMPATIBLE_API_KEY=\n[REDACTED]\nOTHER_THING_NAME=x\n",
"context": "README.md"
},
{
"name": "empty labels and a comment after a blank line kept",
"input": "OPENAI_API_KEY=\n\nANTHROPIC_API_KEY=\n\n# filled in by CI\n",
"expect": null,
"same": true,
"context": ".env.example"
},
{
"name": "label, blank line, then prose kept",
"input": "password:\n\nask the admin for it\n",
"expect": null,
"same": true
},
{
"name": "unquoted value ends at an escaped line break",
"input": "\"diff\": \"--- a/.env\\n+++ b/.env\\n@@ -1 +1 @@\\n-x\\n+NEXTA_CLIENT_SECRET=a8⟨+⟩f3k2m9q7w4e1r6t5y0u3i8o2p7s4d6\\n+NEXTA_CLIENT_URL=https://example.com/cb\"",
"expect": "\"diff\": \"--- a/.env\\n+++ b/.env\\n@@ -1 +1 @@\\n-x\\n+NEXTA_CLIENT_SECRET=[REDACTED]\\n+NEXTA_CLIENT_URL=https://example.com/cb\"",
"context": "NOTES.md"
},
{
"name": "generated value with a name shape, unquoted",
"input": "oauth2.client-id=web\nspring.security.oauth2.client-secret=Xk⟨+⟩7pQ2vRt9mZLw3Nc8Bd4Hj6Fs1Gq5Yt0Ue2Ia7\n",
"expect": "oauth2.client-id=web\nspring.security.oauth2.client-secret=[REDACTED]\n",
"context": "application.properties"
},
{
"name": "lowercase generated value, unquoted",
"input": "API_KEY=ak⟨+⟩_7f3k2m9q7w4e1r6t5y0u3i8o2p7s4d6g9h1j\n",
"expect": "API_KEY=[REDACTED]\n",
"context": ".env.example"
},
{
"name": "camelCase names as values kept",
"input": "password = userPasswordHash\ntoken: accessTokenExpiresAt\nAPI_KEY=myApiToken2024Prod\nsecret=getAuthTokenForUser123\n",
"expect": null,
"same": true,
"context": "notes.md"
},
{
"name": "uuid with a name-like key kept",
"input": "app.api-key-id=3f2b8a4e-9c1d-4e7a-b5f6-0a1b2c3d4e5f\n",
"expect": null,
"same": true,
"context": "a.properties"
},
{
"name": "shell script: unquoted password ending in !",
"input": "#!/bin/bash\nDB_PASSWORD=Xk⟨+⟩7pQ2vRt9mZ!\nexport ADMIN_PASSWORD=Hn⟨+⟩4rT8wq2Lzp!\n",
"expect": "#!/bin/bash\nDB_PASSWORD=[REDACTED]\nexport ADMIN_PASSWORD=[REDACTED]\n",
"context": "deploy.sh",
"mode": "source"
},
{
"name": "shell script: PGPASSWORD before a command",
"input": "PGPASSWORD=Su⟨+⟩mmer2024!x psql -h db\n",
"expect": "PGPASSWORD=[REDACTED] psql -h db\n",
"context": "run.sh",
"mode": "source"
},
{
"name": "shell script: references kept",
"input": "DB_PASSWORD=$(cat /run/secrets/db)\nAPI_TOKEN=${API_TOKEN:-}\nexport SECRET_KEY=\"$1\"\nTOKEN=`gen-token`\n",
"expect": null,
"same": true,
"context": "run.sh",
"mode": "source"
},
{
"name": "shell script: spaced or non-shell file unquoted kept",
"input": "password = generatedPass2024xyz\n",
"expect": null,
"same": true,
"context": "app.py",
"mode": "source"
},
{
"name": "php variable assignment",
"input": "<?php\n$db_password = 'q8⟨+⟩Zr2LmT5vXp9K';\n$api_key = \"f9⟨+⟩Kd83LmQp2Zx7Rt\";\n",
"expect": "<?php\n$db_password = '[REDACTED]';\n$api_key = \"[REDACTED]\";\n",
"context": "config.php",
"mode": "source"
},
{
"name": "php references kept",
"input": "<?php\n$password = getenv('DB_PASSWORD');\n$token = $request->get('token');\n$secret = $config['app_secret_value'];\n",
"expect": null,
"same": true,
"context": "a.php",
"mode": "source"
},
{
"name": "token_hash in a logged url",
"input": "GET https://abc.supabase.co/auth/v1/verify?token_hash=pk⟨+⟩ce_8f3a9b2c7d1e4f5a6b8c9d0e1f2a3b4c5d6e7f8a9b0c1d2e3f4a5b6c&type=signup 200\n",
"expect": "GET https://abc.supabase.co/auth/v1/verify?token_hash=[REDACTED]&type=signup 200\n",
"context": "server.log"
},
{
"name": "token_hash hex after &",
"input": "http://localhost:3000/auth/confirm?type=email&token_hash=8f⟨+⟩3a9b2c7d1e4f5a6b8c9d0e1f2a3b4c5d6e7f8a9b0c1d2e3f4a5b6c",
"expect": "http://localhost:3000/auth/confirm?type=email&token_hash=[REDACTED]"
},
{
"name": "token_hash outside a query, placeholders and short values kept",
"input": "token_hash=8f3a9b2c7d1e4f5a6b8c9d0e1f2a3b4c5d6e7f8a\n/verify?token_hash={{ .TokenHash }}&type=x\n/verify?token_hash=YOUR_TOKEN_HASH&x=1\n/search?q=hello-world-2024-x&page_token_hash=abc\n",
"expect": null,
"same": true
},
{
"name": "password flag with =",
"input": "pg_dump --password=Tr0ub4dor --host db.internal",
"expect": "pg_dump --password=[REDACTED] --host db.internal"
},
{
"name": "password flag with a space",
"input": "myapp migrate --password Hunter22 --user admin",
"expect": "myapp migrate --password [REDACTED] --user admin"
},
{
"name": "password flag quoted",
"input": "myapp --password \"correct horse battery\"",
"expect": "myapp --password \"[REDACTED]\""
},
{
"name": "named password flag",
"input": "helm install db --db-password=s3cr3tValue",
"expect": "helm install db --db-password=[REDACTED]"
},
{
"name": "mysql -p attached",
"input": "mysql -u root -pS3cretPass shop < dump.sql",
"expect": "mysql -u root -p[REDACTED] shop < dump.sql"
},
{
"name": "mysql -p inside docker exec",
"input": "docker exec db mysql -uroot -prootpw -e 'select 1'",
"expect": "docker exec db mysql -uroot -p[REDACTED] -e 'select 1'"
},
{
"name": "mysqldump -p",
"input": "mysqldump -u app -pApp_2024! appdb > out.sql",
"expect": "mysqldump -u app -p[REDACTED] appdb > out.sql"
},
{
"name": "curl -u user:pass",
"input": "curl -u admin:Sup3rS3cret https://api.example.com/v1/items",
"expect": "curl -u admin:[REDACTED] https://api.example.com/v1/items"
},
{
"name": "curl --user user:pass",
"input": "curl -s --user deploy:hunter22 https://ci.example.com/job",
"expect": "curl -s --user deploy:[REDACTED] https://ci.example.com/job"
},
{
"name": "curl -uuser:pass attached",
"input": "curl -uadmin:Pa55word https://example.com",
"expect": "curl -uadmin:[REDACTED] https://example.com"
},
{
"name": "curl -u quoted",
"input": "curl -u 'svc:Zx9pLm2q' https://example.com",
"expect": "curl -u 'svc:[REDACTED]' https://example.com"
},
{
"name": "authorization token header",
"input": "curl -H \"Authorization: Token 9944b0919⟨+⟩9c62bcf9418ad846dd0e4bbdfc6ee4b\" https://api.example.com",
"expect": "curl -H \"Authorization: Token [REDACTED]\" https://api.example.com"
},
{
"name": "authorization basic header, short",
"input": "Authorization: Basic dXNlcjpwYXNz",
"expect": "Authorization: Basic [REDACTED]"
},
{
"name": "authorization token in a JSON header map",
"input": "{\"Authorization\": \"Token abcd1234efgh5678\"}",
"expect": "{\"Authorization\": \"Token [REDACTED]\"}",
"mode": "source"
},
{
"name": "anthropic oauth access token",
"input": "export CLAUDE_CODE_OAUTH_TOKEN=sk-ant-oat01-⟨+⟩a1B2c3D4e5F6g7H8i9J0k1L2m3N4o5P6q7R8s9T0u1V2w3X4y5Z6-_AbCd",
"expect": "export CLAUDE_CODE_OAUTH_TOKEN=[REDACTED]"
},
{
"name": "anthropic oauth token in text",
"input": "token sk-ant-oat01-⟨+⟩a1B2c3D4e5F6g7H8i9J0k1L2m3N4o5P6q7R8s9T0u1V2w3X4y5Z6-_AbCd here",
"expect": "token [REDACTED] here"
},
{
"name": "openrouter key",
"input": "use sk-or-v1-⟨+⟩0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef now",
"expect": "use [REDACTED] now"
},
{
"name": "npm token in text",
"input": "npm config set //registry.npmjs.org/:_authToken npm_⟨+⟩a1B2c3D4e5F6g7H8i9J0k1L2m3N4o5P6q7R8",
"expect": "npm config set //registry.npmjs.org/:_authToken [REDACTED]"
},
{
"name": "gitlab token on a command line",
"input": "glab auth login --hostname gitlab.com --token glpat-⟨+⟩a1B2c3D4e5F6g7H8i9J0",
"expect": "glab auth login --hostname gitlab.com --token [REDACTED]"
},
{
"name": "huggingface token",
"input": "huggingface-cli login --token hf_⟨+⟩a1B2c3D4e5F6g7H8i9J0k1L2m3N4o5P6q7",
"expect": "huggingface-cli login --token [REDACTED]"
},
{
"name": "pypi token",
"input": "twine upload -u __token__ dist/* # pypi-AgEIcHlwaS5vcmc⟨+⟩a1B2c3D4e5F6g7H8i9J0k1L2m3N4o5P6q7R8s9T0u1V2w3X4",
"expect": "twine upload -u __token__ dist/* # [REDACTED]"
},
{
"name": "password-stdin kept",
"input": "echo \"$PW\" | docker login --password-stdin -u me ghcr.io",
"expect": null,
"same": true
},
{
"name": "password-file kept",
"input": "restic --password-file=/run/secrets/restic backup .",
"expect": null,
"same": true
},
{
"name": "password flag in prose kept",
"input": "Use the --password option to set it.",
"expect": null,
"same": true
},
{
"name": "postgres --password without a value kept",
"input": "pg_dump --password mydb > out.sql",
"expect": null,
"same": true
},
{
"name": "password flag reference kept",
"input": "deploy --password \"$DB_PASSWORD\" --password=${PASS}",
"expect": null,
"same": true
},
{
"name": "password flag placeholder kept",
"input": "deploy --password <password> --password=YOUR_PASSWORD",
"expect": null,
"same": true
},
{
"name": "password flag in code kept",
"input": "parser.add_argument(\"--password\", help=\"the password\")\ncmd = \"--password=\" + pw + \" --user=\" + user\nargs = f\"--password={pw}\"",
"expect": null,
"mode": "source",
"same": true
},
{
"name": "mysql -p prompt kept",
"input": "mysql -u root -p shop",
"expect": null,
"same": true
},
{
"name": "-p of other programs kept",
"input": "mkdir -p build && gcc -pthread -o app main.c && docker run -p3306:3306 mysql:8 && ssh -p 2222 host && pytest -pno:cacheprovider",
"expect": null,
"same": true
},
{
"name": "curl -u reference kept",
"input": "curl -u \"$USER:$TOKEN\" https://example.com && curl -u user: https://example.com",
"expect": null,
"same": true
},
{
"name": "curl user-agent kept",
"input": "curl --user-agent 'Mozilla/5.0 (X11; Linux)' -u $CREDS https://example.com",
"expect": null,
"same": true
},
{
"name": "authorization template kept",
"input": "Authorization: Token {{ api_token }}\nAuthorization: Basic ${CREDS}",
"expect": null,
"same": true
},
{
"name": "authorization in code kept",
"input": "headers = {\"Authorization\": f\"Token {api_key}\"}\nreq.set(\"Authorization: Token \" + token)",
"expect": null,
"mode": "source",
"same": true
},
{
"name": "short token prefixes kept",
"input": "sk-ant-oat01-short npm_install hf_hub_download glpat-x pypi-simple sk-or-v1-abc",
"expect": null,
"same": true
},
{
"name": "figma tokens",
"input": "personal fig⟨+⟩d_Q3x9Lm2Pz7Kd4Vt8Rb1Nw6Hy0Cs5Fj-AbCdEfGh oauth fig⟨+⟩u_Z8y7X6w5V4u3T2s1R0q9P8o7N6m5L4k and fig⟨+⟩ur_K4j3H2g1F0e9D8c7B6a5Z4y3X2w1V0u kept: configd_abcdefghijklmnopqrstuvwxyz figd_short",
"expect": "personal [REDACTED] oauth [REDACTED] and [REDACTED] kept: configd_abcdefghijklmnopqrstuvwxyz figd_short"
},
{
"name": "figma token markdown-escaped",
"input": "text=\"Continue. fig⟨+⟩d\\_CUCHECK\\_Q3x9Lm2Pz7Kd4Vt8Rb1Nw6Hy0Cs5Fj4AbCdEfGh\" and fig⟨+⟩u\\_Q3x9Lm2Pz7Kd4Vt8Rb1Nw6Hy0Cs5Fj",
"expect": "text=\"Continue. [REDACTED]\" and [REDACTED]"
},
{
"name": "figma token escaped inside a JSON string",
"input": "{\"output\":\"name fig⟨+⟩d\\\\_CUCHECK\\\\_Q3x9Lm2Pz7Kd4Vt8Rb1Nw6Hy0Cs5Fj4AbCdEfGh\\\\nnext\"}",
"expect": "{\"output\":\"name [REDACTED]\\\\nnext\"}"
},
{
"name": "bearer header with an escaped figma token",
"input": "authorization: Bearer fig⟨+⟩d\\_CUCHECK\\_Q3x9Lm2Pz7Kd4Vt8Rb1Nw6Hy0Cs5Fj4AbCdEfGh)",
"expect": "authorization: Bearer [REDACTED])"
},
{
"name": "bearer value with escaped underscores",
"input": "curl -H \"X-Auth: Bearer ab12\\_Cd34\\_Ef56Gh78Ij90Kl\" https://api.example.com",
"expect": "curl -H \"X-Auth: Bearer [REDACTED]\" https://api.example.com"
},
{
"name": "escaped placeholders and short figma names kept",
"input": "Bearer YOUR\\_ACCESS\\_TOKEN\\_HERE and figd\\_short and my\\_figd\\_abcdefghijklmnopqrstuvwxyz and plain\\_snake\\_case\\_words",
"same": true
}
]
}