guilhermeft
← ← back
2025–2026·IA generativa · LLM agents · AWS

Clausive

Document risk intelligence with an LLM agent at its core.

Clausive

Context

Clausive is BlueMetrics' AI product for preventing legal, regulatory and operational risk in documents. Users upload a document, the platform extracts what matters, validates it against criteria and drives approval and e-signature workflows. Two engineers drive development, validation with design partners and launch.

What I did

  • Codebase and architecture: top contributor (about 45% of 2,800+ commits) to a Turborepo monorepo with a NestJS modular monolith (DDD, 9 domain modules that only talk through async events) plus Next.js web and admin apps.
  • LLM agent: rewrote the chat engine (Claude on Amazon Bedrock) from a hand-rolled LangChain loop to a LangGraph state machine, with human-in-the-loop approvals, durable per-tenant checkpoints in PostgreSQL and state-driven termination.
  • Document pipeline: S3 uploads, Amazon Textract OCR, classification, entity extraction, criteria-based validation, document and PDF generation.
  • Multi-tenancy: RBAC with per-tenant roles and permissions, and the document template editor.
  • Infrastructure: led the production cutover of messaging from Kafka (MSK) to Amazon SQS: 70+ queues with dead-letter queues, graceful shutdown on ECS and MSK kept in parallel as a rollback path. I contribute to the Terraform (ECS Fargate, Lambda with KMS, Cognito, WAF, CloudFront, Bedrock Guardrails).
  • AI-native workflow: set up a Claude Code workflow where agent skills take Linear tickets through spec, implementation, code review and a pre-merge audit.

Outcome

Validated with a design partner and getting ready for commercial launch. Moving from Kafka to SQS cut the estimated messaging cost by about 90%.