<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/how-we-taught-ai-agents-to-see-the-bigger-picture-navjxpaqo" -->

---
title: How We Taught AI Agents to See the Bigger Picture
description: AI agents writing code for large legacy codebases tend to repeat outdated patterns because they mistake frequency for correctness. The JetBrains TeamCity team...
canonical: https://daily.dev/posts/how-we-taught-ai-agents-to-see-the-bigger-picture-navjxpaqo
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: How We Taught AI Agents to See the Bigger Picture | daily.dev
og:description: AI agents writing code for large legacy codebases tend to repeat outdated patterns because they mistake frequency for correctness. The JetBrains TeamCity team...
og:url: https://daily.dev/posts/how-we-taught-ai-agents-to-see-the-bigger-picture-navjxpaqo
og:image: https://api.daily.dev/og/posts/naVjXPaQo.png
og:image:alt: How We Taught AI Agents to See the Bigger Picture
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.

# How We Taught AI Agents to See the Bigger Picture

**[JetBrains](https://daily.dev/sources/jetbrains)** · 8 min read · 22 upvotes · 0 comments

## Summary

AI agents writing code for large legacy codebases tend to repeat outdated patterns because they mistake frequency for correctness. The JetBrains TeamCity team tackled this by building CommitAtlas, an internal tool that mines Git history to extract accepted patterns, naming conventions, and migration examples. Before writing code, agents query CommitAtlas for task-specific guidance derived from real, reviewed commits rather than raw codebase frequency. This approach reduced pull request rejections and helped agents produce code that fits the project's evolving standards rather than its historical defaults. The core insight: repository history is implicit documentation, and giving agents access to it bridges the gap between technically correct and genuinely acceptable code.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://blog.jetbrains.com/teamcity/2026/03/how-we-taught-ai-agents-to-see-the-bigger-picture/>

## Similar posts on daily.dev

- [AI Is the Newest Developer To Misunderstand Secrets In Your Git History](https://daily.dev/posts/ai-is-the-newest-developer-to-misunderstand-secrets-in-your-git-history-kqgre9feo) · GitGuardian · 1 upvotes · 0 comments
- [AI-coding agents kill team collaboration](https://daily.dev/posts/ai-coding-agents-kill-team-collaboration-ovin9khjp) · LeadDev · 2 upvotes · 0 comments
- [5 Agentic Coding Tips & Tricks](https://daily.dev/posts/5-agentic-coding-tips-tricks-48zhdqcpx) · Machine Learning Mastery · 2 upvotes · 0 comments
- [How open source projects need to adapt to the AI coding era](https://daily.dev/posts/how-open-source-projects-need-to-adapt-to-the-ai-coding-era-bjikrjdag) · All Things Open · 0 upvotes · 0 comments
- [How to effectively utilise AI to enhance large-scale refactoring](https://daily.dev/posts/how-to-effectively-utilise-ai-to-enhance-large-scale-refactoring-rxrhhvtn8) · Atlassian · 0 upvotes · 0 comments

---

Tags: [#ai-agents](https://daily.dev/tags/ai-agents), [#cicd](https://daily.dev/tags/cicd), [#code-review](https://daily.dev/tags/code-review), [#git](https://daily.dev/tags/git)

[View this post on daily.dev](https://daily.dev/posts/how-we-taught-ai-agents-to-see-the-bigger-picture-navjxpaqo)

```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":"TechArticle","headline":"How We Taught AI Agents to See the Bigger Picture","url":"https://daily.dev/posts/how-we-taught-ai-agents-to-see-the-bigger-picture-navjxpaqo","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/how-we-taught-ai-agents-to-see-the-bigger-picture-navjxpaqo"},"datePublished":"2026-03-16T15:22:43.640Z","dateModified":"2026-10-15T02:24:58.674Z","description":"AI agents writing code for large legacy codebases tend to repeat outdated patterns because they mistake frequency for correctness. The JetBrains TeamCity team...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/cc03d4d7fa754acd7e91c5aebfd08845?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/cc03d4d7fa754acd7e91c5aebfd08845?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"JetBrains","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"JetBrains","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/53ecf0c676f34b3896ee109609d91efa","url":"https://daily.dev/sources/jetbrains"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/how-we-taught-ai-agents-to-see-the-bigger-picture-navjxpaqo","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":22},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"ai-agents,cicd,code-review,git","timeRequired":"PT8M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"JetBrains","item":"https://daily.dev/sources/jetbrains"},{"@type":"ListItem","position":3,"name":"How We Taught AI Agents to See the Bigger Picture"}]}
```

