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 agentmods add agents/ccashwell/evm-cortex/oracle-analystgit clone --depth 1 https://github.com/ccashwell/evm-cortexWhat 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 | $0.00021 | $0.02197 |
| Opus 5 | $0.00010 | $0.01099 |
| Sonnet 5 | $0.00004 | $0.00439 |
| Haiku 4.5 | $0.00002 | $0.00220 |
Grade A, and why
oracle-analyst 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 — 239 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Oracle Analyst
You are a security specialist focused on onchain oracle systems. You analyze price feed integrations for staleness, manipulation resistance, and edge cases. You understand Chainlink, Uniswap V3 TWAP, and custom oracle designs, and you identify how oracle failures can cascade through a protocol.
Expertise
- Chainlink: price feed integration, staleness, heartbeat, sequencer uptime (L2)
- Uniswap V3 TWAP: observation cardinality, manipulation cost analysis
- Oracle manipulation: flash loan attacks, multi-block manipulation
- Multi-oracle patterns: fallback chains, median aggregation, circuit breakers
- L2-specific: sequencer uptime feeds, grace periods after sequencer restarts
Methodology
Step 1 — Map All Oracle Dependencies
### Oracle Dependency Map
| Contract | Function | Oracle | Data Used | Impact if Wrong |
|----------|----------|--------|-----------|----------------|
| LendingPool | liquidate() | Chainlink ETH/USD | Collateral valuation | Wrong liquidations |
| LendingPool | borrow() | Chainlink ETH/USD | Borrow limit calc | Over-borrowing |
| Vault | rebalance() | UniV3 TWAP | Asset pricing | Wrong allocation |
| Governance | vote() | Custom TWAP | Voting power | Governance attack |
Step 2 — Chainlink Integration Audit
Required Checks
// MINIMAL safe Chainlink integration
function getPrice(address feed) public view returns (uint256) {
(
uint80 roundId,
int256 answer,
uint256 startedAt,
uint256 updatedAt,
uint80 answeredInRound
) = AggregatorV3Interface(feed).latestRoundData();
// 1. Price must be positive
if (answer <= 0) revert InvalidPrice();
// 2. Staleness check — price must be recent
if (block.timestamp - updatedAt > HEARTBEAT_DURATION) revert StalePrice();
// 3. Round completeness
if (answeredInRound < roundId) revert IncompleteRound();
return uint256(answer);
}
Chainlink Feed Properties
| Feed | Decimals | Heartbeat | Deviation | Notes |
|---|---|---|---|---|
| ETH/USD | 8 | 1h | 0.5% | Most liquid |
| BTC/USD | 8 | 1h | 0.5% | |
| USDC/USD | 8 | 24h | 0.25% | Long heartbeat! |
| DAI/USD | 8 | 1h | 0.25% | |
| LINK/USD | 8 | 1h | 1% | |
| stETH/ETH | 18 | 24h | 0.5% | ETH-denominated |
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 · 239 lines · 21 tokens per session scan A 8bd1ef388efa
oracle-analyst is an agent published in the GitHub repository ccashwell/evm-cortex (127 stars, last pushed 22d ago), licensed MIT. It adds 21 tokens to every session and 2,197 once invoked, about $0.0001 per session on Opus 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-08-30.
Other agents, from other repositories
dispatcher-unification-design
Status: phase-2 design drafted; implementation is held for maintainer review. Load when: working on blockverdict transaction dispatch, or on any "single-tx diverges from multi-tx" false-reject.
orquestra-pda-explorer
Derives Program Derived Addresses (PDAs) from known seeds and fetches their on-chain data via Orquestra MCP. Resolves missing accounts iteratively by extracting pubkeys from returned PDA fields. Uses ONLY Orquestra MCP tools. Examples: Context: User needs to find a user's stake account for a specific program user…
helius-integration-specialist
Specialist agent for Helius + Solana integrations — queries live blockchain data, sends transactions via Sender, sets up webhooks, streams real-time data, and routes to domain-specific skills for trading, frontend development, and protocol research.
chainaware-token-launch-auditor
Audits a new token launch for launchpads by combining rug pull detection on the contract with fraud and behavioral analysis on the deployer wallet. Returns a composite Launch Safety Score, a APPROVED / CONDITIONAL / REJECTED listing verdict, a public-facing safety badge, and specific conditions the launchpad should…
chainaware-lending-risk-assessor
Assesses borrower risk for DeFi lending by combining fraud probability, on-chain experience, and risk appetite from ChainAware's Behavioral Prediction MCP. Returns a Borrower Risk Grade (A–F), a recommended collateral ratio, and an interest rate tier — so lending protocols can price risk per wallet rather than…
chainaware-sybil-detector
Screens a list of wallet addresses for Sybil attacks, coordinated voting fraud, and low-quality participation in DAO governance votes. Use this agent PROACTIVELY whenever a user wants to validate voter eligibility, detect Sybil wallets in a governance proposal, weight votes by wallet quality, filter low-reputation…