Principal AI Engineer - Agent Memory & Context Engineering

Rapid7

San Francisco (CA)

On-site

USD 221,000 - 299,000

Full time

7 days ago
Be an early applicant

A complete application in a minute

Tailored resume and cover letter, ready to send.

Get past ATS filters

Job summary

Rapid7 is seeking a Principal AI Engineer to define the technical vision for agent memory, context engineering, and long-running security workflows. You will own architecture across teams, decide what to store, how to retrieve, and how to balance latency and cost while remaining hands-on.

You will lead design reviews, mentor staff and senior engineers, and shape product investments. Ideal candidates have 13+ years in software/ML, production LLM/agent systems experience, and strong Python and

Qualifications

  • 13+ years of software or ML engineering experience; production LLM or agent systems desired.
  • Context engineering: retrieval, memory, and context management for long-running workflows.
  • Agent memory: working, episodic, and long-term stores; decide what to write/retrieve/summarize.

Responsibilities

  • Define architecture and roadmap for agent memory and context across teams.
  • Design memory systems for long-running agents (short-term, long-term, episodic).
  • Own context management: what goes in the context window, retrieval, summarization, and refresh.
  • Build retrieval systems over security data with strong relevance and access controls.
  • Protect memory/context from poisoning, prompt injection, stale data, and leakage; ensure auditability.
  • Establish evals as release gates; define benchmarks for memory recall and long-horizon tasks.
  • Guide model strategy for context impact and tool use; balance latency and cost.
  • Lead design reviews and mentor Staff/Senior engineers; shape investment across product/platform.

Skills

Agent memory
Context engineering
LLM systems
Retrieval systems
Agent architectures
Evals
Open‑source models
Python
Distributed systems
Leadership
Cross-functional collaboration
Communication

Tools

PyTorch
vLLM
SGLang

Job description

Our Engineering organisation is scaling its AI Engineering capabilities under new leadership, creating an opportunity to build the next generation of AI at Rapid7. We’re looking for Principal AI Engineers to join us and help shape what comes next by defining and influencing the technical direction of our LLM and agentic AI systems. As a Principal AI Engineer, you’ll raise the bar for engineering standards, and build truly cutting edge greenfield solutions that deliver real impact for our Global customers. Through your technical leadership and mentoring, you’ll help shape our product and platform investments and influence how we build and scale AI across the organisation.


About the Team


Rapid7's AI Engineering team builds the AI that powers our security platform. We are AI engineers and applied scientists who take models from research to production, combining open-source and frontier LLMs, AI agents, and fast predictive models with more than 20 years of Rapid7 security expertise. Our work drives core use cases across Detection and Response, such as alert triage, threat investigation, and automated response, and Exposure and Remediation, such as vulnerability prioritization, attack surface risk assessment, and guided remediation. Together, these help customers stop threats faster and fix what matters most.


About the Role


As a Principal AI Engineer, you will set the technical vision for how Rapid7's agents remember, retrieve, and reason over information across long-running security workflows. You will own the architecture of agent memory and context engineering across teams, make the key calls on what an agent keeps in context, what it stores, and what it forgets, and stay hands‑on with the hardest problems. Your work decides whether an agent investigating an incident over hours or days stays accurate, consistent, and affordable to run. Specifically your focus will be to:

  • 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: what goes into the context window, how it is retrieved, compressed, summarized, and refreshed, and how it is kept within latency and cost budgets
  • Build retrieval systems over security data such as alerts, logs, asset inventories, vulnerability records, and past investigations, with strong relevance, freshness, and access controls
  • Protect memory and context from poisoning, prompt injection, stale data, and cross-customer leakage, and design for auditability so every agent decision can be traced to the context behind it
  • Establish evals as the release gate for every AI system we ship, including evals that measure memory recall, context quality, and long-horizon task success
  • Guide model strategy where it affects context, including when to use frontier or open-source models and when to fine-tune or post-train 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 the hardest technical trade-offs
  • Mentor Staff and Senior engineers and shape product and platform investment

The skills and qualities you’ll bring include:

  • 13+ years of software or ML engineering experience, including 3+ years building production LLM or agentic AI systems
  • A track record of architecting AI systems used across multiple teams or products
  • Context engineering: deep expertise in retrieval, memory, and context management for long-running agent workflows
  • Agent memory: experience designing and operating memory layers for agents, such as working, episodic, and long‑term stores, with decisions about what to write, retrieve, summarize, and expire
  • Retrieval systems: experience with embeddings, vector and hybrid search, reranking, and knowledge graphs or structured stores in production
  • Agent architectures: experience with multi-step and multi-agent systems, tool use, and orchestration, including failure modes such as context drift and compounding errors
  • Evals: defining evaluation strategy and benchmarks for LLM and agent systems
  • Open‑source models: working knowledge of open‑source LLMs and PyTorch, and of inference serving with vLLM or SGLang, including caching and batching
  • Strong distributed systems and Python fundamentals
  • Takes ownership of significant technical outcomes across multiple teams, proactively identifying and addressing risks, driving complex challenges to resolution and ensuring solutions deliver against agreed technical and customer objectives
  • Strong communicator with the ability to explain technical trade‑offs to engineering, product, and leadership audiences
  • Builds strong cross functional partnerships across Engineering, Product, and other teams to align on technical direction and deliver shared outcomes
  • Connects customer needs and business priorities to technical decisions, evaluating the value, cost and trade‑offs of AI solutions to ensure investments deliver measurable customer and business outcomes
  • Embody our core values to foster a culture of excellence that drives meaningful impact and collective success

Preferred Skills and Experience include:

  • A strong history of organization-wide impact through technical leadership, mentoring, and 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
  • Ability to explain technical trade‑offs to engineering, product, and leadership audiences
  • Publications, patents, or open‑source contributions in AI

We know that the best ideas and solutions come from multi‑dimensional teams. That’s because these teams reflect a variety of backgrounds and professional experiences.


About Rapid7

At Rapid7, our vision is to create a secure digital world for our customers, our industry, and our communities. We do this by harnessing our collective expertise and passion to challenge what’s possible and drive extraordinary impact. We’re building a dynamic and collaborative workplace where new ideas are welcome.


Protecting 11,500+ customers against bad actors and threats means we’re continuing to push the envelope just like we’ ve been doing for the past 20 years. If you ’re ready to solve some of the toughest challenges in cybersecurity, we’re ready to help you take command of your career. Join us.


Rapid7, Inc. is committed to fair and equitable compensation practices. A candidate’s salary is determined by various factors including, but not limited to, relevant work experience, skills, and certifications. We evaluate compensation decisions on a case‑by‑case basis, and it is not typical for an individual to be hired at the very top of the salary range.


The annual salary range for this role, depending on location, is:

United States: $221,000.00 - 299,000.00 USD Annual

Salary ranges may vary based on geographical location. This range does not include variable/incentive compensation, equity and benefits (where applicable/eligible).

All qualified applicants will receive consideration for employment without regard to race, color, religion, sex, sexual orientation, gender identity, age, national origin, disability, protected veteran status or any other status protected by applicable national, federal, state or local law.

Get your free, confidential resume review.

or drag and drop your file here.

Similar jobs

Similar jobs worth comparing

Senior Principal AI Engineer
Senior Principal AI Engineer

Rapid7 • San Francisco (CA)

On-site
USD 256,000 - 346,000
Principal AI Engineer - Model Optimization & Inference
Principal AI Engineer - Model Optimization & Inference

Rapid7 • San Francisco (CA)

On-site
USD 221,000 - 299,000
Staff AI Engineer
Staff AI Engineer

Rapid7 • San Francisco (CA)

On-site
USD 187,000 - 252,000
Senior Principal AI Engineer - Model Optimization & Inference
Senior Principal AI Engineer - Model Optimization & Inference

Rapid7 • San Francisco (CA)

On-site
USD 256,000 - 346,000
Principal AI Engineer - Model Optimization & Inference
Principal AI Engineer - Model Optimization & Inference

Software • United States

On-site
USD 221,000 - 299,000
Senior Principal AI Engineer - Model Optimization & Inference
Senior Principal AI Engineer - Model Optimization & Inference

X4V Rapid7 LLC • California

Hybrid
USD 256,000 - 346,000
Staff Engineer - MLOps & AI Infrastructure
Staff Engineer - MLOps & AI Infrastructure

Rapid7 • San Francisco (CA)

On-site
USD 187,000 - 252,000
Security-focused culture
Staff Engineer - MLOps & AI Infrastructure
Staff Engineer - MLOps & AI Infrastructure

X4V Rapid7 LLC • California

Hybrid
USD 187,000 - 252,000
Principal AI Engineer: Agent Memory & Context
Principal AI Engineer: Agent Memory & Context

Rapid7 • San Francisco (CA)

On-site
USD 221,000 - 299,000
Sr. Staff Software Engineer (AI Platform)
Sr. Staff Software Engineer (AI Platform)

Palo Alto Networks, Inc. • Santa Clara (CA)

On-site
USD 154,000 - 249,000