Bernardo Castro bernardocastro.dev
~/bernardo $ ls production/

AI Engineer.
voice agents in production_

Co-founder of Pinecall, a real-time voice AI platform (100k+ calls) now maintained by the deutschepolska.com team. Currently building a survivorship-free crypto quant lake with Cloudacio. Author of megabrain (PyPI, MIT) — code retrieval used to migrate a 26-year legacy codebase. Before Pinecall: 5 years at DigitalBGA (5,000+ e-apps shipped; a Twilio + LLM voice bot that recovered $250k+ in leads previously lost to unanswered calls). 18+ years shipping full-stack, most recently as a Claude Code specialist.

alicante · utc+118+ yrs shippingclaude code expertsolo builderenglish · español
▸ open bernaOS hello@bernardocastro.dev // open bernaOS to see each system running live
// PINECALL · VOICE AI
100k+ calls
Co-founder (2025–2026) · solo-built the real-time media server + TypeScript SDK. Clients: Naffco (fire safety, UAE), Cointel (Zenitel intercom agents). Now maintained by deutschepolska.com.
// DIGITALBGA · 2020–2025
5,000+ e-apps
Solo build of the e-app system for US life-insurance carriers — form builder, PDF field mapping, signature flow. Plus a Twilio + LLM voice bot that recovered $250k+ in leads lost to unanswered calls.
// MEGABRAIN · CODE RETRIEVAL
26-yr legacy
Open source (PyPI, MIT). Migrated a 26-year legacy PHP codebase for ServiceHub. cAST chunks, dual-granularity fusion, no LLM in the retrieval path. SWE-bench @5 0.83 with generic embeddings.
// AXION · WITH CLOUDACIO
520M rows
Survivorship-free crypto quant lake · 940 perps · $0 data cost. 7 orthogonal strategies under live forward evaluation with Claude Code sub-agents.
// WORK

selected work

open bernaOS to see each running live
01 / PINECALL 2025 — 2026 · handed off
pinecall
real-time voice AI platform · co-founder · solo dev

All-in-one real-time voice AI for phone, WhatsApp and WebRTC. I co-founded and solo-built the whole stack — media server, SDK, provider matrix, deployment. Serving Naffco (UAE fire safety) and Cointel (Zenitel intercoms) in production. Now maintained by deutschepolska.com.

// CALLS
100k+
// PROVIDERS
25
// CHANNELS
3
// LATENCY
≤1s

What I built

  • Media server — async python, barge-in, VAD, twilio & sip
  • TypeScript SDK — @pinecall/sdk, agent = fn(state, event)
  • Zenitel bridge — portia, agents on physical intercoms
pythontypescriptwebrtctwilio
02 / AXION 2026 — now · 2 months
axion
quant research platform with Cloudacio · solo dev

A survivorship-free crypto derivatives quant platform I'm building hand-in-hand with Juan (Cloudacio). Two months in and we already have edges under a strict forward clock — an append-only design that refuses look-ahead. Claude Code sub-agents run as co-routines.

// LAKE
520M
// PERPS
940
// FEATURES
52PIT
// STRATEGIES
7

What's inside

  • Survivorship-free lake — defunct symbols kept, point-in-time joins
  • Forward clock — append-only, peek_future() raises. On purpose.
  • Agentic core — Claude Code sub-agents, 60+ living lessons, 394 tests
pythonclickhousepolarsclaude code
03 / MEGABRAIN 2025 — now · MIT
megabrain
code-retrieval engine · OSS release of brainbank v1

The OSS release of the retrieval engine I built to migrate a 26-year legacy PHP codebase for ServiceHub. Internally it was brainbank; hardened, generalized and shipped to PyPI as megabrain. Ask a natural-language question, get the real source spliced in verbatim.

// LEGACY
26yrs
// SWE @5
0.83
// LATENCY
10–200ms
// LICENSE
MIT

How it works

  • cAST chunks — code-aware syntax-tree chunking
  • Dual-granularity fusion — file + chunk level combined
  • LLM as noise filter — reranks top-K, cite & splice verbatim
pythontree-sitterpypimit
04 / LUMICRM 2025 — 2026
lumicrm
AI-operator CRM for spas & salons · solo dev

Built as a proof of what Pinecall could do. A full AI-operator CRM where 96% of operational tasks are AI-solved. Voice / WhatsApp / web receptionist books appointments, upsells, and answers inventory in real time. Now maintained by deutschepolska.com.

// AI-SOLVED
96%
// CHANNELS
3
// INVOICING
SUNAT
// SDK
pinecall

Modules

  • AI receptionist — voice / WhatsApp / web on the Pinecall SDK
  • Appointment engine — recurring, packages, waitlist, reminders
  • SUNAT invoicing + vision — end-to-end, receipt scanning by LLM
pythonnext.jspinecall sdkvision
// SKILLS

shipping stack

the tools I reach for daily
AI & AGENTS
  • Claude Code expert
  • Claude Agent SDK
  • MCP tools · servers
  • Multi-agent orchestration
  • Sub-agents as co-routines
  • Prompt engineering
VOICE & REALTIME
  • WebRTC media servers
  • Twilio · SIP trunks
  • STT · TTS · streaming
  • VAD · barge-in · sub-1s
  • WhatsApp Business API
  • 25+ provider matrix
RETRIEVAL & ML
  • Tree-sitter · cAST chunks
  • Embeddings · dual fusion
  • LightGBM · rankers
  • HAR-RV · HRP · GMM
  • Purged / embargoed CV
  • Forward-clock discipline
DATA
  • ClickHouse lakes
  • Postgres · SQL Server
  • Polars · pandas
  • Redis · pubsub
  • Kafka-style pipelines
  • Survivorship-free joins
BACKEND
  • Python asyncio · fastapi
  • Ruby rails · sidekiq
  • TypeScript · Node · Hono
  • PHP legacy migrations
  • API design · OpenAPI
  • Queues · workers · cron
FRONTEND
  • React · Next.js · Astro
  • SolidJS · Svelte
  • TypeScript
  • Tailwind · CSS Grid
  • Design systems
  • Realtime UIs · WebRTC
INFRA & DEVOPS
  • GCP · Cloud Run · gVisor
  • AWS Lambda · Route 53
  • Docker · systemd
  • GitHub Actions
  • Nginx · reverse proxies
  • Cost-aware scaling
PRACTICES
  • Solo dev · full-stack
  • Pure-core testing
  • Honest reports · error bars
  • Living lessons
  • Remote since 2010
  • ES · EN
// EXPERIENCE

18 years shipping

2008 now · remote since 2010
2026 — now
Axion AGENTIC QUANT · CLAUDE CODE
Quant Systems Engineer · with Cloudacio
Building a production quant research platform for crypto derivatives with Juan (Cloudacio). Two months in: a 520M-row survivorship-free lake (940 perps, $0 data cost), 12 collectors, append-only forward clock, 394-test pure core — and the codebase itself is agentic: Claude Code sub-agents run as co-routines for research, audits, backfills and 60+ living lessons.
python · clickhouse · claude code · gcp
2025 — 2026
Pinecall.io HANDED OFF
Co-Founder · solo dev
Built an all-in-one real-time voice-AI platform (phone / WhatsApp / web) — ~100,000 calls processed for clients in fire-safety, healthcare and access control. Full stack solo: media server, TypeScript SDK, provider matrix. Now operated & maintained by the deutschepolska.com team.
python · typescript · webrtc · twilio
2025 — 2026
ServiceHub 26-YR LEGACY · MULTI-AGENT
AI Engineer · via Cloudacio
Migrated a year-2000 legacy PHP system (healthcare interpreter platform, 2.5M+ encounters/yr) with a near-unsupervised multi-agent architecture — an MCP sync tool, a schema-aware database agent, and brainbank (the internal alpha of megabrain) for retrieval. Bulk of core modules landed in the final 6–8 weeks.
claude code · mcp · php · sql server
2020 — 2025
DigitalBGA INC. 5000 ×3 · 5 YRS
Software Architect
Five years at one of the fastest-growing life-insurance agencies in the US (3× consecutive Inc. 5000). Single-handedly built a Twilio voice bot that recovered $250k+ in leads previously lost to unanswered calls, and a complete e-app system (form builder, PDF field-mapping editor, signature flow) — 5,000+ e-apps processed with carriers like Mutual of Omaha.
ruby · php · react · python
2017 — 2019
Crisalix
Full-Stack · Barcelona
3D medical imaging. Built the public API from scratch, an image editor with comparison tools, subscription manager and KPI dashboards. Won the first company hackathon (selfie → 3D model).
ruby · js
2008 — 2020
+ 8 earlier roles
full-stack · US & EU clients · since age 17
CallAction (serverless migration), PUSHTech, Teamitup NY, Tarmac, Cubox, Dawson — plus flypluna.com, a CMS I shipped for a Uruguayan airline at age 18. Twelve+ years of shipping full-stack before the AI chapter. The details live in the CV.
résumé (pdf) ↓
// OPEN SOURCE

tools I made public

github.com/bernatch22 · all MIT
// TS · NODE 22+ · MCP MIT
mypry
The interactive full-stack debugger for AI agents.

Pause, step and inspect live state across your Node backend AND browser frontend in one MCP session. Agents set breakpoints, drive the browser, and eval on both sides — follow a request from click to handler without leaving the loop. Turbopack + source-map aware.

typescriptcdpplaywrightmcp
▸ github/mypry
// TS · CLI · SSH+RSYNC MIT
shipway
Deploy apps over SSH — no Docker, no cloud lock-in.

Build locally, sync via rsync, restart with pm2 or systemd, health-check — all from a 7-line YAML. Multi-service, per-environment overrides, dry-run mode, project registry. Ships with an MCP server so agents can inspect & manage production.

typescriptnode 20+rsyncmcp
▸ github/shipway
// PY · PYPI · TREE-SITTER MIT
megabrain
Code-retrieval engine that migrates 26-year legacy PHP.

The OSS release of the retrieval engine I built for ServiceHub (internally brainbank). cAST syntax-tree chunks, dual-granularity fusion, LLM as noise filter on top-K. Ask a natural-language question, get the real source spliced in verbatim. SWE-bench @5 = 0.83 with generic embeddings.

pythontree-sitterpypi
▸ github/megabrain
// TS · PDF · CLAUDE AGENT SDK MIT
aldus
Pixel-perfect PDF editing agent.

Parses the real content graph of a PDF (text ops, graphics, forms) and edits in situ — no white-box paint-over, no font approximation. The agent sees the graph in its context and edits it like code. Built on Claude Agent SDK; bake writes back through the content stream with tests.

typescriptpdf-libclaude agent sdk
▸ github/aldus