Sierra Software Engineer Interview Experience — 45-Minute Agent Coding Round on Conversation History

Sierra·Software Engineer·Nov 2026
Technical Screenmedium

I just finished Sierra's Agent coding round. It was 45 minutes of hands-on coding, so here is my writeup.

The task was to work inside an existing codebase built around conversation history, with a few API classes that return conversations and their content. The first thing I had to do was figure out how these classes relate to each other, otherwise there is no way to extend anything.

I started by asking the interviewer a few questions:

  • Which class/method actually fetches a page, and what is in a page? How do I know I've reached the end: is it that next_cursor is gone, an empty value, or a page of empty conversations?
  • What exactly is returned: a list of conversations, all the messages of one conversation, or both? How is the ordering defined?
  • Where is token_count: a number on each message, or is it buried in a string or nested metadata that I have to parse myself?
  • What does "compacting" mean here: deleting messages, merging them, or replacing the old ones with a summary? What is the token limit?
  • Which messages must not be touched, for example the system instruction or the most recent user turn?

Part 1 was to follow next_cursor and fetch every page. Using the provided API, I had to get the full history: each call returns one page plus a next_cursor, and I keep passing the cursor to get the next page until there isn't one, then return everything in order. This part mainly tests whether you can use the existing classes and the cursor convention. The result has to be complete and ordered, with no duplicates and without dropping the last page, and it also has to handle transient errors and the cases where the cursor repeats or never ends.

Part 2 was to compress the conversation using token_count. I had to parse the token_count of each message and compress the conversation to fit a token budget. The budget and the rules were decided on the spot by talking with the interviewer.

There were a few follow-ups:

  • What if the history is too big to fit in memory? How would I change the fetch so that the compression can run on a stream of pages?
  • If deleted messages are replaced with a summary, how do I count the tokens of the summary itself?
  • If the API rate-limits me or dies midway, how do I resume instead of starting over?
  • How would I test the compression rules?

Part 3 wasn't in the original report, so I'm leaving it blank for now and will add it if I remember.

Published

Curated and edited by PracHub

Practice the questions from this interview

Discussion

Sign in to join the discussion. The author is notified of every comment.

Loading comments…

Interview at a glance

Company
Sierra
Role
Software Engineer
Rounds
Technical Screen
Difficulty
medium
Interview date
Nov 2026
Questions from this interview
1 question

Related interview experiences

Explore more interview rounds, questions, and outcomes.

Browse interview experiences