Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By katareayushv0.1.0MIT
Local-first risk simulation for EVM & Solana. Drive the Forkscope CLI from Claude Code: reconstruct a dependency graph, run forked-mainnet scenarios, and summarize risk before a PR — all on your machine.
You run one by typing its /name in Claude Code.
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
ethereum, solana, foundry, anvil, simulation, risk, mev, local-first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Local-first risk simulation for Ethereum and Solana. Point it at a contract or a repo, and Forkscope reconstructs a live dependency graph from onchain traces, then runs realistic simulations on a forked mainnet — large trades, MEV, liquidity shocks, oracle changes — so you see the failure paths before your users do.
local-first · deterministic · EVM (Foundry/Anvil) · Solana (test-validator) · MIT
Most onchain incidents don't come from the code you wrote — they come from a dependency you forgot you had: a pool that goes thin, an oracle that drifts inside its threshold, a lending market whose repay leg reverts under stress. Testnets don't have real liquidity, and reading traces by hand doesn't scale.
Forkscope reconstructs what you actually depend on and stress-tests it against real forked state, then hands you plain-language risk insights instead of raw logs — while keeping your code and data entirely on your machine.
| Live dependency graph | Index onchain traces via your own RPC (Alchemy / Helius) and fuse them with static analysis to map every external contract, token, oracle, and account you touch. |
| Forked-mainnet simulations | Replay scenarios on Foundry/Anvil (EVM) and solana-test-validator (Solana) against real mainnet state — no testnet drift, no mocked liquidity. |
| Risk insights | Failure paths, PnL impact, slippage bounds, and liquidation edges, each attributed to the exact call path that triggers it. |
| Local-first | Your code and data never leave the machine. Remote RPC is read-only, used only to sync state, and everything is cached. |
| Deterministic | Pinned blocks, seeded randomness, and content-addressed fork snapshots — a run today reproduces byte-for-byte next quarter. |
| Plugin layer | Add custom scenarios and detectors through a sandboxed API without touching core. |
# reconstruct the dependency graph for a target
npx forkscope init 0x9a3f…c21b --chain eth --rpc $ALCHEMY_URL
# run a scenario on a forked mainnet
npx forkscope sim liquidity-shock --drain 60%
# read the deterministic report
cat .forkscope/reports/liquidity-shock.md
initis live. Pass--rpc <url>(or setFORKSCOPE_RPC) and Forkscope reconstructs a real dependency graph over plain JSON-RPC against any EVM chain — pinning a block and caching every read, so re-runs are instant and fully offline. With no RPC it falls back to bundled fixtures, so the wholeinit → sim → reportflow works with zero keys.simstill drives the fork engines from fixtures for now (next on the roadmap).# live — trace a real contract (any provider: Alchemy, Infura, a local node) node cli/bin/forkscope.mjs init 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D --rpc $RPC_URL # → 2 deps: WETH (ERC-20) + Uniswap V2 Factory # offline — bundled fixtures, no keys or network node cli/bin/forkscope.mjs init 0x9a3fc21b node cli/bin/forkscope.mjs sim --all node cli/bin/forkscope.mjs report
| Scenario | Chain | What it models |
|---|---|---|
large-trade | EVM | realized slippage vs. assumed tolerance |
mev | EVM | value extractable by an optimal sandwich |
liquidity-shock | EVM | draining backing liquidity and liquidation cascades |
oracle | EVM | mispricing from an in-threshold feed move |
cpi-blast | Solana | cross-program invocation failure radius |
upgrade | EVM | storage-layout / selector breaks on a proxy swap |
Run one, or run them all with forkscope sim --all.
The repo ships a Claude Code plugin under
.claude-plugin/ that lets an agent drive the local CLI and reason
over the deterministic report. It shells out to your machine — the model interprets results,
it doesn't re-run the chain — so it adds effectively no cost and keeps everything private.
/forkscope-init reconstruct the dependency graph
/forkscope-sim run a scenario on the local fork
/forkscope-review summarize risk before a PR
┌──────────────────────────────────────────────┐
address/repo → │ ingest → reconstruct → simulate → report │ → .forkscope/
└──────────────────────────────────────────────┘
│ │ │ │
pin block traces + static anvil / plain-language
analysis → graph test-validator findings
read-only RPC (yours) ─┘ everything else stays on the machine · cached · deterministic
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Generated from the plugin's indexed repository (katareayush/forkscope) — no native marketplace selected
npx claudepluginhub p/katareayush-forkscopePlugins from other owners that cover similar ground