Principal AI Engineer, Agent Memory & Context Engineering

Rapid7•San Francisco, CA
•$186,500 - $252,300

About The Position

Rapid7 is hiring a Principal AI Engineer to set technical direction for its LLM and agentic AI systems, with a focus on agent memory and context engineering. The role will shape how agents remember, retrieve, and reason over information across long-running security workflows, while remaining hands-on with complex engineering challenges. The engineer will influence product and platform investments, establish engineering standards, and mentor Staff and Senior engineers. Rapid7’s AI Engineering team develops AI for its security platform, taking models from research into production. It combines open-source and frontier LLMs, AI agents, predictive models, and Rapid7’s security expertise. Its use cases include alert triage, threat investigation, automated response, vulnerability prioritization, attack-surface risk assessment, and guided remediation. The role owns architecture and technical roadmaps for memory and context engineering across Detection and Response and Exposure and Remediation. It covers memory systems for long-running agents; context retrieval, compression, summarization, and refresh; retrieval over security data; protection against poisoning, prompt injection, stale data, and cross-customer leakage; and auditability of agent decisions. The engineer will establish evaluations as release gates, guide model strategy where it affects context, set standards for context engineering, inference optimization, and evaluation, lead design reviews, resolve technical trade-offs, and shape product and platform investments. The role collaborates across Engineering, Product, and other teams to connect customer needs and business priorities to technical decisions and measurable outcomes. The annual U.S. salary range is $186,500–$252,300, depending on location. The range excludes variable or incentive compensation, equity, and benefits where applicable or eligible.

Requirements

  • 13+ years of software or ML engineering experience, including 3+ years building production LLM or agentic AI systems.
  • Track record of architecting AI systems used across multiple teams or products.
  • Deep expertise in retrieval, memory, and context management for long-running agent workflows.
  • Experience designing and operating agent memory layers, including working, episodic, and long-term stores, and deciding what to write, retrieve, summarize, and expire.
  • Production experience with embeddings, vector and hybrid search, reranking, and knowledge graphs or structured stores.
  • Experience with multi-step and multi-agent systems, tool use, and orchestration, including failure modes such as context drift and compounding errors.
  • Experience defining evaluation strategy and benchmarks for LLM and agent systems.
  • Working knowledge of open-source LLMs and PyTorch, and inference serving with vLLM or SGLang, including caching and batching.
  • Strong distributed systems and Python fundamentals.
  • Ability to own technical outcomes across multiple teams, identify and address risks, and drive complex challenges to resolution.
  • Strong communication skills, including explaining technical trade-offs to engineering, product, and leadership audiences.
  • Ability to build cross-functional partnerships and align teams on technical direction and shared outcomes.
  • Ability to connect customer needs and business priorities to technical decisions and measurable customer and business outcomes.

Nice To Haves

  • Organization-wide impact through technical leadership, mentoring, shared platforms, and standards.
  • Security domain experience, such as detection engineering, SOC/MDR, or vulnerability management.
  • Experience fine-tuning or post-training models for long-context, tool-use, or memory-aware behavior.
  • Experience with context compression, long-context models, or learned memory approaches.
  • Experience with multi-tenant data isolation and privacy controls for AI systems.
  • Experience running AI workloads on AWS at scale.
  • Publications, patents, or open-source contributions in AI.

Responsibilities

  • Define the architecture and technical roadmap for agent memory and context engineering across Detection and Response and Exposure and Remediation.
  • Design memory systems for long-running agents, including short-term working memory, long-term and episodic memory, and shared memory across agents and investigations.
  • Own context management strategy, including context selection, retrieval, compression, summarization, refresh, and meeting latency and cost budgets.
  • Build retrieval systems over security data, ensuring relevance, freshness, and access controls.
  • Protect memory and context from poisoning, prompt injection, stale data, and cross-customer leakage; design auditability so agent decisions can be traced to their context.
  • Establish evaluations as release gates for AI systems, including measures of memory recall, context quality, and long-horizon task success.
  • Guide model strategy, including choices between frontier and open-source models and decisions about fine-tuning or post-training for long-context and tool-use behavior.
  • Set engineering standards for context engineering, inference optimization—including KV and prefix caching—and evaluation across teams.
  • Lead design reviews and resolve difficult technical trade-offs.
  • Mentor Staff and Senior engineers and shape product and platform investment.
  • Take ownership of significant technical outcomes across teams, proactively address risks, and ensure solutions meet technical and customer objectives.
  • Build cross-functional partnerships and communicate technical trade-offs to engineering, product, and leadership audiences.
  • Connect customer needs and business priorities to technical decisions, evaluating the value, cost, and trade-offs of AI solutions.
  • Embody Rapid7’s core values and foster a culture of excellence and collective success.
© 2026 Teal Labs, Inc
Privacy PolicyTerms of Service