You can configure that. It's a feature called memory in claude/chatgpt web. For claude code, take a look at CLAUDE.md.