cuck-code 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +57 -0
- package/bin/cuck +33 -0
- package/bin/darwin-arm64/cuck +0 -0
- package/bin/darwin-x64/cuck +0 -0
- package/bin/linux-arm64/cuck +0 -0
- package/bin/linux-x64/cuck +0 -0
- package/bin/win32-arm64/cuck.exe +0 -0
- package/bin/win32-x64/cuck.exe +0 -0
- package/install.js +43 -0
- package/lib/resolve.js +23 -0
- package/package.json +44 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Ishaan Sinha (ruskaruma)
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
<div align="center">
|
|
2
|
+
|
|
3
|
+
<img src="https://raw.githubusercontent.com/ruskaruma/cuck-code/main/docs/assets/logo.svg" alt="Cuck Code" width="560">
|
|
4
|
+
|
|
5
|
+
**Your coding agent does the work. You watch from the chair.**
|
|
6
|
+
|
|
7
|
+
A cinematic ANSI intro that plays before Claude Code, Codex, Cursor, Gemini and every other terminal coding agent.
|
|
8
|
+
|
|
9
|
+
[](https://www.npmjs.com/package/cuck-code)
|
|
10
|
+
[](https://github.com/ruskaruma/cuck-code/actions/workflows/ci.yml)
|
|
11
|
+
[](LICENSE)
|
|
12
|
+
|
|
13
|
+

|
|
14
|
+
|
|
15
|
+
</div>
|
|
16
|
+
|
|
17
|
+
## The story
|
|
18
|
+
|
|
19
|
+
You like delegating your work to agents. You hand over the task, lean back, and watch someone else do what you were supposed to do. Cuck Code just makes it honest.
|
|
20
|
+
|
|
21
|
+
Every time you start your agent, your terminal becomes the view from the chair in the corner of the bedroom. She's already in bed, and she isn't waiting for you. The sign above her says it plainly: *take the back seat, let it do the work.*
|
|
22
|
+
|
|
23
|
+
The door opens and your agent walks in, name tag and all. She doesn't hide her relief. Finally, someone who does it right. He climbs onto the bed, leans in and kisses her, while you sit there doing exactly nothing. Then he turns around, looks you dead in the eye, smirks, and winks.
|
|
24
|
+
|
|
25
|
+
The lights go out. Your agent gets to work.
|
|
26
|
+
|
|
27
|
+
There are no dependencies. It's one small binary you install and forget about.
|
|
28
|
+
|
|
29
|
+
## Install
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
npm install -g cuck-code
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
At the end of the install it asks **"Do you really want to get cucked?"** If you say yes, typing `claude`, `codex`, `cursor-agent`, `gemini` or any other supported agent plays the intro first.
|
|
36
|
+
|
|
37
|
+
No npm:
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
curl -fsSL https://raw.githubusercontent.com/ruskaruma/cuck-code/main/packaging/install.sh | sh # macOS / Linux
|
|
41
|
+
irm https://raw.githubusercontent.com/ruskaruma/cuck-code/main/packaging/install.ps1 | iex # Windows PowerShell
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
## Usage
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
claude # after setup: the intro plays, then Claude Code opens
|
|
48
|
+
cuck codex --full-auto # or launch any agent through cuck directly
|
|
49
|
+
cuck setup # get cucked later / cuck uninstall to undo it
|
|
50
|
+
command claude # skip the intro once
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
Any key skips ahead during the intro, and Ctrl+C cancels. Config, every flag, the full list of supported agents and troubleshooting are in the [docs](docs/README.md).
|
|
54
|
+
|
|
55
|
+
## License
|
|
56
|
+
|
|
57
|
+
[MIT](LICENSE) © 2026 Ishaan Sinha ([@ruskaruma](https://github.com/ruskaruma))
|
package/bin/cuck
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
// Launcher for the native cuck binary. On macOS and Linux the postinstall
|
|
5
|
+
// script replaces this file with the binary itself, so this only runs on
|
|
6
|
+
// Windows or when install scripts were disabled.
|
|
7
|
+
const { spawnSync } = require("child_process");
|
|
8
|
+
const { binaryPath } = require("../lib/resolve.js");
|
|
9
|
+
|
|
10
|
+
let bin;
|
|
11
|
+
try {
|
|
12
|
+
bin = binaryPath();
|
|
13
|
+
} catch (err) {
|
|
14
|
+
console.error(err.message);
|
|
15
|
+
process.exit(1);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
// The native binary handles Ctrl+C itself; don't let Node die underneath it.
|
|
19
|
+
const ignore = () => {};
|
|
20
|
+
process.on("SIGINT", ignore);
|
|
21
|
+
process.on("SIGTERM", ignore);
|
|
22
|
+
|
|
23
|
+
const result = spawnSync(bin, process.argv.slice(2), { stdio: "inherit" });
|
|
24
|
+
if (result.error) {
|
|
25
|
+
console.error(`cuck-code: ${result.error.message}`);
|
|
26
|
+
process.exit(1);
|
|
27
|
+
}
|
|
28
|
+
if (result.signal) {
|
|
29
|
+
process.removeListener("SIGINT", ignore);
|
|
30
|
+
process.removeListener("SIGTERM", ignore);
|
|
31
|
+
process.kill(process.pid, result.signal);
|
|
32
|
+
}
|
|
33
|
+
process.exit(result.status === null ? 1 : result.status);
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/install.js
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
// postinstall: swap the JS launcher for the native binary, then ask whether
|
|
4
|
+
// to hook the user's shells ("Do you really want to get cucked?"). The
|
|
5
|
+
// question is asked on the terminal directly, because npm hides script
|
|
6
|
+
// output. Nothing here may ever fail the install.
|
|
7
|
+
const fs = require("fs");
|
|
8
|
+
const path = require("path");
|
|
9
|
+
const { spawnSync } = require("child_process");
|
|
10
|
+
const { binaryPath } = require("./lib/resolve.js");
|
|
11
|
+
|
|
12
|
+
function main() {
|
|
13
|
+
let bin;
|
|
14
|
+
try {
|
|
15
|
+
bin = binaryPath();
|
|
16
|
+
} catch (err) {
|
|
17
|
+
console.warn(err.message);
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
if (process.platform !== "win32") {
|
|
22
|
+
// Running the binary directly starts instantly and gives it the signals
|
|
23
|
+
// and exit codes, with no Node process in between.
|
|
24
|
+
const launcher = path.join(__dirname, "bin", "cuck");
|
|
25
|
+
const tmp = `${launcher}.${process.pid}.tmp`;
|
|
26
|
+
try {
|
|
27
|
+
fs.copyFileSync(bin, tmp);
|
|
28
|
+
fs.chmodSync(tmp, 0o755);
|
|
29
|
+
fs.renameSync(tmp, launcher);
|
|
30
|
+
bin = launcher;
|
|
31
|
+
} catch {
|
|
32
|
+
try {
|
|
33
|
+
fs.unlinkSync(tmp);
|
|
34
|
+
} catch {}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
spawnSync(bin, ["setup", "--npm"], { stdio: "inherit" });
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
try {
|
|
42
|
+
main();
|
|
43
|
+
} catch {}
|
package/lib/resolve.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
// All six native binaries ship inside this one package, under
|
|
4
|
+
// bin/<platform>-<arch>/; pick the one for this machine.
|
|
5
|
+
const fs = require("fs");
|
|
6
|
+
const path = require("path");
|
|
7
|
+
|
|
8
|
+
const PLATFORMS = ["linux-x64", "linux-arm64", "darwin-x64", "darwin-arm64", "win32-x64", "win32-arm64"];
|
|
9
|
+
|
|
10
|
+
function binaryPath() {
|
|
11
|
+
const key = `${process.platform}-${process.arch}`;
|
|
12
|
+
if (!PLATFORMS.includes(key)) {
|
|
13
|
+
throw new Error(`cuck-code: ${key} is not supported. Supported: ${PLATFORMS.join(", ")}.`);
|
|
14
|
+
}
|
|
15
|
+
const exe = process.platform === "win32" ? "cuck.exe" : "cuck";
|
|
16
|
+
const bin = path.join(__dirname, "..", "bin", key, exe);
|
|
17
|
+
if (!fs.existsSync(bin)) {
|
|
18
|
+
throw new Error(`cuck-code: the ${key} binary is missing from this install; reinstall with: npm install -g cuck-code`);
|
|
19
|
+
}
|
|
20
|
+
return bin;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
module.exports = { binaryPath, PLATFORMS };
|
package/package.json
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "cuck-code",
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "Your coding agent does the work. You watch from the chair. A cinematic ANSI intro for Claude Code, Codex, Cursor, Gemini and every other terminal agent.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"claude",
|
|
7
|
+
"claude-code",
|
|
8
|
+
"codex",
|
|
9
|
+
"cursor",
|
|
10
|
+
"gemini",
|
|
11
|
+
"ai",
|
|
12
|
+
"agent",
|
|
13
|
+
"cli",
|
|
14
|
+
"terminal",
|
|
15
|
+
"ansi",
|
|
16
|
+
"animation",
|
|
17
|
+
"meme"
|
|
18
|
+
],
|
|
19
|
+
"homepage": "https://github.com/ruskaruma/cuck-code#readme",
|
|
20
|
+
"bugs": "https://github.com/ruskaruma/cuck-code/issues",
|
|
21
|
+
"repository": {
|
|
22
|
+
"type": "git",
|
|
23
|
+
"url": "git+https://github.com/ruskaruma/cuck-code.git"
|
|
24
|
+
},
|
|
25
|
+
"license": "MIT",
|
|
26
|
+
"author": {
|
|
27
|
+
"name": "Ishaan Sinha",
|
|
28
|
+
"url": "https://github.com/ruskaruma"
|
|
29
|
+
},
|
|
30
|
+
"bin": {
|
|
31
|
+
"cuck": "bin/cuck"
|
|
32
|
+
},
|
|
33
|
+
"files": [
|
|
34
|
+
"bin",
|
|
35
|
+
"lib",
|
|
36
|
+
"install.js"
|
|
37
|
+
],
|
|
38
|
+
"scripts": {
|
|
39
|
+
"postinstall": "node install.js"
|
|
40
|
+
},
|
|
41
|
+
"engines": {
|
|
42
|
+
"node": ">=16"
|
|
43
|
+
}
|
|
44
|
+
}
|