Check it
No .env needed. Install, typecheck and run every TypeScript suite.
pnpm install --frozen-lockfile
pnpm typecheck && pnpm testghost-desk is an autonomous firm: a CEO agent hires, pays, scores, lends to and fires a fleet of worker agents, with no human in the loop. Every move lands on Hedera and Base Sepolia, with a receipt.
Keys from photons, a radar that sees herding, a reflex that decides first, credit that bites and a hook that pays LPs.
Each worker is an AgentGenome: a role, a spend cap, a risk band. Hiring mints its identity, vault, wallet and name.
Up to 6 workers at once (MAX_CONCURRENT_WORKERS)
POST /control/spawn { role: "BACKRUN" | "LENDER" | "SIGNAL_SELLER" | … }Read spawn.tsWorkers buy heartbeats, risk reads and LLM calls over x402. A failed payment means no work is done.
Gas and LLM spend hard-capped at $6.50, then Eco mode
POST /api/x402/entropy-collapse → 402 Payment Required (Hedera USDC)x402 gatewayA proposal passes the policy firewall, signs with one WOTS+ leaf and swaps through the v4 hook.
Toxic flow pays 0.05% → 1.00% as S(ρ) collapses
QAgentMerkleVault.executeWithWots(intent, leaf, proof)QAgentMerkleVault.solRepayments, drawdown and fitness move a 300–850 credit score. Siblings lend to each other; defaults spread.
Credit cannot be gamed past tier B (credit.test.ts)
creditScore(history) → 300…850Credit bureauTier D, a drawdown over 15% or a clone trips the guillotine: leaves burned, funds swept, name revoked, a mutated successor hired.
A cloned worker freezes its own vault (test_CloneReplay_FreezesVault)
guillotine(agentId) → GUILLOTINE row on HCSGuillotineOne monorepo: the CEO daemon, the console, the contracts and the rails they share.
WorkerRuntime, x402 gateway, epoch loop and clearing desk.
apps/ceo-daemonpnpm --filter @ghostdesk/ceo-daemon startProtocol parameters from packages/shared/src/constants.ts and the white paper's 29 theorems. Testnets only: Base Sepolia, Hedera testnet, Sepolia.
The CEO writes each hire, payment, trade and firing to a Hedera HCS topic, with the Base Sepolia transaction beside it. Rows that touched a chain link to their explorer.
Check it, watch it, or run the whole firm. Every command below is from the README.
No .env needed. Install, typecheck and run every TypeScript suite.
pnpm install --frozen-lockfile
pnpm typecheck && pnpm testOpen the console. With no daemon it runs the wasm sandbox and marks every number SIM.
pnpm --filter web devWith the three CEO secrets set, start the daemon and run the story end to end.
pnpm --filter @ghostdesk/ceo-daemon start
pnpm --filter @ghostdesk/ceo-daemon demoEvery claim on this page is checked by a named test in the repository.
$ cargo testfails_closed_on_low_entropy_frames $ forge testtest_CloneReplay_FreezesVault $ cargo testwots_sign_verify_roundtrip $ cargo testklein_inequality_strict_when_coherent $ cargo testluders_repeat_measurement_is_idempotent $ forge testtestFuzz_HookFees_MonotoneAndBounded $ forge testtest_BackrunPlan_MatchesRustVector $ pnpm testcredit.test.ts · lending.test.ts $ pnpm testmitosis.test.ts · transfer-once.test.ts No. Workers sign with one-time WOTS+ leaves, each bound to a spend cap, one target and an expiry. A cloned worker freezes its own vault on its first divergent signature.
The math is: a 4×4 density matrix, von Neumann entropy and Lüders collapse in Rust, compiled to wasm. Keys come from real camera shot noise. Nothing runs on quantum hardware.
No. Every chain is a testnet: Base Sepolia, Hedera testnet and Sepolia. Spend on gas and LLM calls is capped at $6.50.
A deterministic System-1 policy decides first. System-2, an LLM, is consulted only when worth it, and a firewall blocks actions it invents. System-2 is off by default (LLM_PROVIDER empty), and then System-1 decides alone.
Post-quantum custody stops at the CEO's secp256k1 key, the control API is open, and x402 calls trust the agentId in the body. The README lists each one.