HOOKAI LABS
Uniswap v4-native engineering studio

Build Smarter V4 Hooks.

Describe your hook, shape its lifecycle visually, and move from a constrained workflow toward reproducible Solidity and an explicit wallet-controlled deployment.

AI flow generation, graph validation, deterministic source, isolated builds, simulation, CREATE2 mining, versioning, and exports are live. Ethereum mainnet deployment requires successful evidence and an explicit wallet signature.
HOOKAI / VOLUME-FEE.flowWorkflow Valid
Increase fees when rolling volume exceeds $1M…Generate Flow
Validated visual workflow
Trigger
Before SwapConfigured
Condition
Volume Threshold24h · > 1,000,000
Action
Dynamic FeeConfigured
Action
Treasury SplitConfigured
Uniswap v4-native
Deterministic Solidity
Permission-aware
CREATE2-ready
Wallet-controlled
A constrained build path

From idea to deployment evidence.

Each stage consumes a typed artifact from the stage before it. AI proposes intent; it does not become the compiler or deployment authority.

1
Natural languageAvailable
2
Validated Hook DSLAvailable
3
Visual workflowAvailable
4
Deterministic SolidityAvailable
5
Compile & testsAvailable
6
Automated checksAvailable
7
SimulationAvailable
8
CREATE2 miningAvailable
9
Ethereum mainnet deploymentEvidence-gated
Product capabilities

Built around the realities of PoolManager.

HookAI models callbacks, permissions, accounting, evidence, and deployment constraints as separate domain boundaries.

Available

AI workflow generation

Schema-constrained intent becomes a capability-bound graph.

Available

Visual node editor

Build, connect, inspect, and validate v4 lifecycle logic.

Available

Permission derivation

Callback and return-delta bits derive from reachable behavior.

Available

Deterministic generation

Versioned templates lower validated DSL into reproducible Solidity.

Available

Foundry build evidence

Compile, test, and retain diagnostics in an isolated worker.

Available

Automated checks

Static source rules and Slither report findings without audit claims.

Available

Scenario simulation

Deterministic swap and liquidity scenarios with explicit inputs.

Available

CREATE2 address mining

Mine a salt whose address encodes the derived permission bitmap.

Evidence-gated

Ethereum mainnet deployment

The connected wallet reviews and signs an evidence-gated mainnet plan.

Available

Versioning and export

Preserve immutable revisions and export a standalone Foundry project.

Example architecture

Volume-aware fees, without imaginary protocol features.

“Raise swap fees when rolling 24-hour volume exceeds $1M and route 10% of a separately disclosed hook charge to treasury.”
  • Dynamic LP fees remain LP revenue.
  • Treasury accounting is a separate hook-owned charge.
  • Rolling volume comes from hook-maintained state.
  • The treasury destination must be supplied explicitly.
  • Return-delta accounting receives additional review gates.
Before SwapCallback
24h VolumeHook state
Fee + accrualSeparate paths
How it works

A clear artifact at every step.

Nothing silently jumps from a prompt to a wallet transaction.

01

Describe

State the behavior in plain language. Unsupported capabilities return an explicit response.

02

Design and validate

Review the generated nodes, edit parameters, and resolve graph or permission errors.

03

Build and test

Generate reproducible source, compile it, and inspect deterministic test and check evidence.

04

Review and deploy

Confirm address bits, salt, bytecode, risks, and Ethereum mainnet before the wallet signs.

Developer-first by design

The model proposes. Typed systems decide.

HookAI uses a strict JSON DSL as the contract between natural language, the editor, protocol validation, generation, simulation, and deployment planning.

Strict JSON DSL Zod at client and server boundaries Permission bitmap derivation Pinned Uniswap dependencies Standalone Foundry export No authoritative AI-written Solidity
{
  "callbacks": ["beforeSwap", "afterSwap"],
  "nodes": [
    { "type": "trigger", "subtype": "beforeSwap" },
    {
      "type": "condition",
      "subtype": "volumeThreshold",
      "config": {
        "source": { "type": "hookState" },
        "windowSeconds": 86400
      }
    }
  ]
}
Security boundary

Financial actions stay human-controlled.

Automated checks help identify known classes of risk. They do not replace an independent smart-contract audit.

No private-key custody

HookAI never requests or stores private keys or seed phrases.

Wallet-side signatures

Authentication and deployment confirmations happen in the connected wallet.

AI cannot deploy

AI can propose workflows but cannot sign, broadcast, or silently change destinations.

Schema-constrained output

Unknown nodes and fields are rejected before editor state changes.

Isolated build workers

Compiler and analysis jobs run outside the frontend process with hard limits.

Explicit deployment review

Source identity, permissions, salt, address, findings, and Ethereum mainnet are shown first.

Architecture templates

Start from a disclosed pattern.

Templates are workflow starting points—not claims of compilation, review, or deployment.

View all templates
HOOKAI LABS

Turn your hook idea into a reviewable workflow.

Start in demo mode. Connect a wallet only when identity or deployment requires it.