01Run it
Straight from the command's own help.
p202 click-filter set --repeat-window 6hp202 click-filter set --sign-in-addresses 0 # count clicks from your own sign-in address02What you get
Pick the shape you need. People get a table. Add
--json, --csv or --ndjson for scripts, or -q for ids only. An AI agent gets compact JSON without asking. All output formats03Build your command
Pick values and the command line writes itself, quoted and ready to paste.
p202 click-filter setSet flags below; the command updates as you type.
04Flags
5 flags, plus the global flags every command takes.
| Flag | What it does |
|---|---|
| --crawler-rangesstring | 1 filters clicks from the built-in search engine crawler ranges, 0 counts them: 0, 101 |
| --repeat-visitsstring | 1 filters a repeat click from one address within the repeat window, 0 counts it: 0, 101 |
| --repeat-windowstring | Repeat window (1h, 6h, 24h, 7d); 24h lasts until the daily cleanup1h6h24h7d |
| --sign-in-addressesstring | 1 filters clicks from an address a user of this install last signed in from, 0 counts them: 0, 101 |
| --user-idstring | Account whose click filter this is (default: the API key's own user) |
05How it works
Changes only the settings given; the rest keep their values. Changes apply to clicks from now on. The defaults are every check on and a 24h window, which keeps an address until the daily cleanup.
06For agents
Running this from an agent
- Read the same facts as JSON:
p202 commands click-filter set --json. - With
AI_AGENT,CLAUDECODEor another agent variable set, output is compact JSON and errors arrive on stderr as a JSON envelope with ahint. - Exit codes: 0 ok, 1 bad input, 2 auth, 3 network, 4 server error, 5 partial failure, 6 no Pro licence on the install.
- This command writes. Add
--stagedto record it as a proposal a person applies withp202 change apply.
{
"path": "p202 click-filter set",
"use": "set",
"short": "Switch the built-in checks on or off, and choose the repeat window",
"long": "Changes only the settings given; the rest keep their values. Changes apply to clicks from now on.\nThe defaults are every check on and a 24h window, which keeps an address until the daily cleanup.",
"runnable": true,
"example": "p202 click-filter set --repeat-window 6h\n p202 click-filter set --sign-in-addresses 0 # count clicks from your own sign-in address",
"flags": [
{
"name": "crawler-ranges",
"type": "string",
"default": "",
"usage": "1 filters clicks from the built-in search engine crawler ranges, 0 counts them: 0, 1",
"allowed_values": [
"0",
"1"
],
"required": false
},
{
"name": "repeat-visits",
"type": "string",
"default": "",
"usage": "1 filters a repeat click from one address within the repeat window, 0 counts it: 0, 1",
"allowed_values": [
"0",
"1"
],
"required": false
},
{
"name": "repeat-window",
"type": "string",
"default": "",
"usage": "Repeat window (1h, 6h, 24h, 7d); 24h lasts until the daily cleanup",
"allowed_values": [
"1h",
"6h",
"24h",
"7d"
],
"required": false
},
{
"name": "sign-in-addresses",
"type": "string",
"default": "",
"usage": "1 filters clicks from an address a user of this install last signed in from, 0 counts them: 0, 1",
"allowed_values": [
"0",
"1"
],
"required": false
},
{
"name": "user-id",
"type": "string",
"default": "",
"usage": "Account whose click filter this is (default: the API key's own user)",
"required": false
}
]
}