Live
Black Hat USAAI BusinessBlack Hat AsiaAI BusinessIran threatens Stargate AI data centersTechCrunch AIOpenAI s safety brain drain finally gets an explanation and it s just Sam Altman s vibesThe DecoderI tested Gemini on Android Auto and now I can't stop talking to it: 5 tasks it nailsZDNet AIBuilding Intelligent Search with Amazon Bedrock and Amazon OpenSearch for hybrid RAG solutionsAWS Machine Learning BlogFrom isolated alerts to contextual intelligence: Agentic maritime anomaly analysis with generative AIAWS Machine Learning Blog🔥 ggml-org/llama.cppGitHub Trending🔥 ollama/ollamaGitHub Trending🔥 sponsors/kepanoGitHub Trending🔥 KeygraphHQ/shannonGitHub Trending🔥 sponsors/abhigyanpatwariGitHub TrendingOpenAI Releases Policy Recommendations for AI AgeBloomberg TechnologyBeware the Magical 2-Person, $1 Billion AI-Driven StartupForrester AI BlogBlack Hat USAAI BusinessBlack Hat AsiaAI BusinessIran threatens Stargate AI data centersTechCrunch AIOpenAI s safety brain drain finally gets an explanation and it s just Sam Altman s vibesThe DecoderI tested Gemini on Android Auto and now I can't stop talking to it: 5 tasks it nailsZDNet AIBuilding Intelligent Search with Amazon Bedrock and Amazon OpenSearch for hybrid RAG solutionsAWS Machine Learning BlogFrom isolated alerts to contextual intelligence: Agentic maritime anomaly analysis with generative AIAWS Machine Learning Blog🔥 ggml-org/llama.cppGitHub Trending🔥 ollama/ollamaGitHub Trending🔥 sponsors/kepanoGitHub Trending🔥 KeygraphHQ/shannonGitHub Trending🔥 sponsors/abhigyanpatwariGitHub TrendingOpenAI Releases Policy Recommendations for AI AgeBloomberg TechnologyBeware the Magical 2-Person, $1 Billion AI-Driven StartupForrester AI Blog
AI NEWS HUBbyEIGENVECTOREigenvector

Stop Explaining Your Codebase to Your AI Every Time

DEV Communityby EvertApril 4, 20263 min read2 views
Source Quiz

Every conversation with your AI starts the same way. "I'm building a Rails app, deployed on Hetzner, using SQLite..." You've typed this a hundred times. Your AI is smart. But it has no memory. Every chat starts from zero. Your project context, your conventions, your past decisions — gone. What if your AI already knew all of that? Here are five notes that make that happen. 1. Your stack, saved once Write one note with your tech stack, deployment setup, and conventions. Now every conversation starts with context. Now ask: "Write a background job that syncs user data to Stripe." Your AI reads the note. It knows it's Rails, knows you use Solid Queue, knows your conventions. No preamble needed. 2. Error fixes you'll hit again You spend 45 minutes debugging a Kamal deploy. You find the fix. A we

Every conversation with your AI starts the same way. "I'm building a Rails app, deployed on Hetzner, using SQLite..." You've typed this a hundred times.

Your AI is smart. But it has no memory. Every chat starts from zero. Your project context, your conventions, your past decisions — gone.

What if your AI already knew all of that?

Here are five notes that make that happen.

1. Your stack, saved once

Write one note with your tech stack, deployment setup, and conventions. Now every conversation starts with context.

Now ask: "Write a background job that syncs user data to Stripe."

Your AI reads the note. It knows it's Rails, knows you use Solid Queue, knows your conventions. No preamble needed.

2. Error fixes you'll hit again

You spend 45 minutes debugging a Kamal deploy. You find the fix. A week later, same error. You Google it again.

Save the fix instead. Next time it happens: "I'm getting a health check timeout on Kamal deploy. Have I seen this before?"

Your AI finds the fix immediately. Thirty seconds instead of forty-five minutes.

3. Architecture decisions with reasoning

You chose SQLite over Postgres. You went with Turbo instead of React. There were reasons. Three months later, you can't remember them.

Title: Why SQLite over Postgres

Single-server deployment on Hetzner. No connection pooling needed. Litestream for backups to S3.

Simpler ops. One fewer service to manage. Will revisit if we need read replicas or concurrent writes beyond

what WAL mode handles.

When someone asks "why not Postgres?": "Summarize our database decision and the reasoning."

Done. No digging through old Slack threads.

4. Project rules your AI follows

Every codebase has unwritten rules. Where things go. What patterns you prefer. What to avoid. Your AI doesn't know any of them — unless you write them down.

Title: Project Conventions

Service objects live in app/services/.

Use Minitest, not RSpec. Prefer Turbo Frames over custom JS.

No background jobs unless clearly needed.

All API responses use JSON serializers.

Keep controllers thin — logic goes in models or services.

Now when you ask your AI to write code, it follows your patterns. Not generic Stack Overflow patterns.

5. Code you'll reuse anyway

Every developer has code they reuse. Config patterns. Deployment scripts. Regex that took an hour to write.

Title: Snippet — Rack::Attack rate limiting

config/initializers/rack_attack.rb

Rack::Attack.throttle("login/ip", limit: 10, period: 60) do |req|

req.ip if req.path == "/session" && req.post?

end

Next project: "Show me how I set up rate limiting last time."

Your AI finds the snippet. You paste and adapt. No digging through old repos.

How this works

Your AI can read your notes through MCP. It's a protocol that connects AI to external data. Hjarni is a note app with a built-in MCP server.

No embeddings setup. No extra system to manage. Just notes your AI can read.

Connect it in two minutes:

  • Sign up at hjarni.com

  • In Claude or ChatGPT: add https://hjarni.com/mcp as a connector

  • Start asking questions only your notes can answer

Free tier gives you 25 notes with full MCP access. Ten notes in, your AI stops being a stranger.

Was this article helpful?

Sign in to highlight and annotate this article

AI
Ask AI about this article
Powered by Eigenvector · full article context loaded
Ready

Conversation starters

Ask anything about this article…

Daily AI Digest

Get the top 5 AI stories delivered to your inbox every morning.

Knowledge Map

Knowledge Map
TopicsEntitiesSource
Stop Explai…claudemodelservicereasoningchatgptDEV Communi…

Connected Articles — Knowledge Graph

This article is connected to other articles through shared AI topics and tags.

Knowledge Graph100 articles · 223 connections
Scroll to zoom · drag to pan · click to open

Discussion

Sign in to join the discussion

No comments yet — be the first to share your thoughts!