Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add 8b-is/smart-tree --skill ramsey-karp-fptgit clone --depth 1 https://github.com/8b-is/smart-treeWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/8b-is/smart-tree/ramsey-karp-fpt)<a href="https://agentmods.dev/skills/8b-is/smart-tree/ramsey-karp-fpt"><img src="https://agentmods.dev/badge/skills/8b-is/smart-tree/ramsey-karp-fpt/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/8b-is/smart-tree/ramsey-karp-fpt"><img src="https://agentmods.dev/badge/skills/8b-is/smart-tree/ramsey-karp-fpt.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00095 | $0.01107 |
| Opus 5.5 | $0.00038 | $0.00443 |
| Sonnet 5.5 | $0.00019 | $0.00221 |
| Haiku 4.5 | $0.00010 | $0.00111 |
Grade A, and why
ramsey-karp-fpt scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 50 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Ramsey, Erdős–Hajnal & Karp-21 FPT Engine (smart-tree v10.10.0+)
"Complete disorder is impossible." — Ramsey Theory (Paul Erdős, 1935–1989)
ramsey-karp-fpt (src/mem8/regularity/ramsey_erdos_hajnal.rs & salience_karp_manybody.rs) turns NP-complete graph problems into sub-millisecond static analysis over the 5-color AST symbol graph (Import, CallRef, TraitImpl, TypeBound, MutableShared) plus the 6th anti-color $c_\emptyset$.
1. 256-Bit Bitboard Bron–Kerbosch & Erdős–Hajnal Bi-Cliques
- Matula–Beck Degeneracy Ordering ($d \ll n$): Computes $(v_1, \dots, v_n)$ in $O(|V| + |E|)$ bucket-queue time so every forward monochromatic neighborhood $N_c^+(v_i)$ has size $\le d \le 255$.
BitSet256([u64; 4])Hardware Bitboard: Executes Tomita-pivoted Bron–Kerbosch set intersections ($P \cap N(u)$, $X \cap N(u)$) in four CPUAND+felix_popcnt_u64/felix_tzcnt_u64instructions with zero heap allocations inside the recursion.- Erdős–Moser Tournament vs. Cyclic Deadlock Knot (
CliqueTopology):TransitiveTournament($\vec{T}_k^{(c)}$): Clean acyclic compilation/call pipeline.CyclicDeadlockKnot: Mutual lock/call cycle; emitsfeedback_back_edges(Minimum Feedback Arc Set) andRefactorPrescription::BreakDeadlockCycleorFlattenCircularImports.
- Fox–Sudakov / Rödl Pure & Almost-Pure Bi-Cliques (
ErdosHajnalBiClique):- Pure Bi-Clique ($d_c(A, B) = 1.0$): $|A|$ structs all depend on the exact same $|B|$ targets $\rightarrow$
ExtractSharedTraitFacade. - Almost-Pure Bi-Clique ($1 - \delta \le d_c(A, B) < 1.0$): Pinpoints API Conformance Bugs via
missing_anomaly_edges— the exact pair $(a^, b^)$ where struct $a^$ forgot to implement or call sibling method $b^$.
- Pure Bi-Clique ($d_c(A, B) = 1.0$): $|A|$ structs all depend on the exact same $|B|$ targets $\rightarrow$
2. Taming Karp's 21 NP-Complete Problems in smart-tree
| Karp NP-Complete Problem | smart-tree Reduction & Algorithm |
Complexity |
|---|---|---|
| #3 Clique ($\omega(G)$) | Degeneracy-ordered BitSet256 Tomita Bron–Kerbosch |
$O(d \cdot |
| #4 Independent Set ($\alpha(G)$) | Caro–Wei greedy minimum-degree anti-color $c_\emptyset$ | $O( |
| #2 Vertex Cover | Gavril maximal-matching 2-Approximation (vertex_cover_2approx_size) |
$O( |
| #7 Feedback Arc Set | Tournament degree-rank back-edge isolation (feedback_back_edges) |
$O(k^2)$ per clique |
| #11 Chromatic Number ($\chi$) | Moser–Tardos Constructive LLL worktree solver (moser_tardos.rs) |
$O( |
| #12 Clique Cover | Szemerédi $\varepsilon$-regular partition (super_nodes_k) |
$O(K^2 \cdot |
| #15 Steiner Tree | Mehlhorn Voronoi Dijkstra + Kruskal MST 2-Approximation | $O( |
| #18 Knapsack | Erdős-distance radial shell packer (knapsack_budget_utilization) |
$O(K \log K)$ |
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2d ago First seen · 50 lines · 95 tokens per session scan A 9a62eea94297
ramsey-karp-fpt is a skill published in the GitHub repository 8b-is/smart-tree (272 stars, last pushed yesterday), licensed MIT. It adds 95 tokens to every session and 1,107 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-04.
ramsey-karp-fpt compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| ramsey-karp-fpt8b-is/smart-tree | Skill | 272 | yesterday | MIT | A | 95 | Claude Code, Codex |
| axiom-sreopenclaw/clawhub | Skill | 9.5k | yesterday | MIT | A | 48 | Claude Code, Codex |
| sentry-fix-issuesopenclaw/clawhub | Skill | 9.5k | yesterday | MIT | A | 58 | Claude Code |
| clawhub-clawscanopenclaw/clawhub | Skill | 9.5k | yesterday | MIT | A | 46 | Claude Code, Codex |
| convex-performance-auditopenclaw/clawhub | Skill | 9.5k | yesterday | MIT | A | 38 | Codex |
| convex-insightsopenclaw/clawhub | Skill | 9.5k | yesterday | MIT | A | 45 | Claude Code, Codex |
| convex-self-healopenclaw/clawhub | Skill | 9.5k | yesterday | MIT | A | 52 | Claude Code, Codex |