<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/your-ai-coding-rules-shouldn-t-reset-every-few-sessions-tbty4thpx" -->

---
title: Your AI coding rules shouldn’t reset every few sessions
description: A developer raises a recurring frustration with AI coding tools: context and preferences (repo structure, patterns, test conventions, past mistakes) don't...
canonical: https://daily.dev/posts/your-ai-coding-rules-shouldn-t-reset-every-few-sessions-tbty4thpx
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Your AI coding rules shouldn’t reset every few sessions | daily.dev
og:description: A developer raises a recurring frustration with AI coding tools: context and preferences (repo structure, patterns, test conventions, past mistakes) don't...
og:url: https://daily.dev/posts/your-ai-coding-rules-shouldn-t-reset-every-few-sessions-tbty4thpx
og:image: https://api.daily.dev/og/posts/Tbty4THPX.png
og:image:alt: Your AI coding rules shouldn’t reset every few sessions
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Your AI coding rules shouldn’t reset every few sessions

**[Ojas Aklecha](https://daily.dev/sources/ikqb3nxtcncjaqwcaczka)** · [@ojasaklecha](https://daily.dev/ojasaklecha) · 1 min read · 1 upvotes · 0 comments

## Summary

A developer raises a recurring frustration with AI coding tools: context and preferences (repo structure, patterns, test conventions, past mistakes) don't persist across sessions, forcing repeated re-explanation. The post proposes framing these as evolving 'coding policies' that should be automatically extracted from repeated corrections and made available to future sessions, then asks the community how they currently manage this problem.

## Content

One thing that keeps bothering me with AI coding tools is how temporary the context feels.

You tell the AI things like:

- how your repo is structured
- which patterns you prefer
- what not to do
- how tests should be written
- mistakes it has already made before

For a while, it follows them.

Then a few sessions later, you’re explaining the same things again.

I’ve started thinking of these instructions as **coding policies** - rules that should evolve from how you actually work, instead of living in one prompt or context window.

Ideally, the system should notice repeated corrections and coding patterns, extract them automatically, and make them available to the AI in future sessions.

Basically: your coding agent should learn the way your codebase works instead of starting from scratch every time.

How are you handling this today?

## Similar posts on daily.dev

- [Your AI Coding Tool Has Amnesia](https://daily.dev/posts/your-ai-coding-tool-has-amnesia-tl4nqc3zj) · SD Times · 1 upvotes · 0 comments
- [Your AI has no memory. Your Rails codebase does.](https://daily.dev/posts/your-ai-has-no-memory-your-rails-codebase-does--a5o0rsd4l) · Ruby Flow · 0 upvotes · 0 comments
- [Why AI Coding Advice Contradicts Itself](https://daily.dev/posts/why-ai-coding-advice-contradicts-itself-wgo3hza8l) · Lobsters · 1 upvotes · 0 comments
- [I struggled to code with AI until I learned this workflow](https://daily.dev/posts/i-struggled-to-code-with-ai-until-i-learned-this-workflow-habxlgdyu) · System Design Newsletter · 90 upvotes · 3 comments

---

Tags: [#ai-coding](https://daily.dev/tags/ai-coding), [#prompt-engineering](https://daily.dev/tags/prompt-engineering)

[View this post on daily.dev](https://daily.dev/posts/your-ai-coding-rules-shouldn-t-reset-every-few-sessions-tbty4thpx)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"DiscussionForumPosting","mainEntityOfPage":"https://daily.dev/posts/your-ai-coding-rules-shouldn-t-reset-every-few-sessions-tbty4thpx","headline":"Your AI coding rules shouldn’t reset every few sessions","text":"A developer raises a recurring frustration with AI coding tools: context and preferences (repo structure, patterns, test conventions, past mistakes) don't persist across sessions, forcing repeated re-explanation. The post proposes framing these as evolving 'coding policies' that should be automatically extracted from repeated corrections and made available to future sessions, then asks the community how they currently manage this problem.","url":"https://daily.dev/posts/your-ai-coding-rules-shouldn-t-reset-every-few-sessions-tbty4thpx","datePublished":"2026-09-24T11:10:33.012Z","dateModified":"2026-09-24T11:10:46.800Z","author":{"@type":"Person","name":"Ojas Aklecha","url":"https://daily.dev/ojasaklecha","image":"https://lh3.googleusercontent.com/a/ACg8ocLhA2P9FkJpfx6F6eAKsFMsiLPAVoGTLUjKE58A-2kHapC19y8=s96-c","interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"EndorseAction"},"userInteractionCount":60}},"interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"isPartOf":{"@type":"WebPage","url":"https://daily.dev/sources/ikqb3nxtcncjaqwcaczka","name":"Ojas Aklecha"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Ojas Aklecha","item":"https://daily.dev/sources/ikqb3nxtcncjaqwcaczka"},{"@type":"ListItem","position":3,"name":"Your AI coding rules shouldn’t reset every few sessions"}]}
```

