pin_file
Boost or demote a file's PageRank weight to surface canonical examples, architectural keystones, or files central to a feature. Set a multiplicative weight (0.1-3) with an optional expiry.
Instructions
Boost (or demote) a specific file in PageRank-driven ranking by setting a multiplicative weight on its PageRank score. Use to surface canonical examples, architectural keystones, or files central to a work-in-progress feature. Capped at 50 active pins per project. Returns JSON: { ok, pin? }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | File path to pin (project-relative) | |
| weight | No | Pin weight multiplier in [0.1, 3]. Default 2. Values < 1 demote. | |
| expires_in_days | No | Days until the pin expires (default: 7). Omit to set the default TTL. |