---
title: "Should You Use /init to Generate CLAUDE.md or AGENTS.md?"
url: https://daily.dev/posts/should-you-use-init-to-generate-claude-md-or-agents-md--q0cj87vwi
source_url: https://codewithandrea.com/videos/should-you-use-init
type: article
source: "Code with Andrea"
published: 2026-05-18T11:53:15.921Z
updated: 2026-05-18T11:53:39.607Z
tags: ["flutter", "ai-coding", "claude-code", "context-engineering"]
reading_time: 6
upvotes: 0
comments: 0
language: 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.

# Should You Use /init to Generate CLAUDE.md or AGENTS.md?

**[Code with Andrea](https://daily.dev/sources/codewithandrea)** · 6 min read · 0 upvotes · 0 comments

## Summary

The /init command in Claude Code and similar agents generates CLAUDE.md or AGENTS.md files by scanning your codebase, but the result is often better used as a project exploration artifact than as an always-loaded memory file. The key question is whether each piece of information is worth loading before every single task. A practical keep/remove/move framework helps evaluate generated content: keep only durable, task-independent guidance; remove generic commands the agent can infer; move reusable workflows to skills and project-specific details to on-demand project docs. Avoid using @ imports in memory files unless you want those files auto-loaded every session. The ideal memory file is minimal and contains only guidance that prevents real mistakes in every session.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://codewithandrea.com/videos/should-you-use-init>

---

Tags: [#flutter](https://daily.dev/tags/flutter), [#ai-coding](https://daily.dev/tags/ai-coding), [#claude-code](https://daily.dev/tags/claude-code), [#context-engineering](https://daily.dev/tags/context-engineering)

[View this post on daily.dev](https://daily.dev/posts/should-you-use-init-to-generate-claude-md-or-agents-md--q0cj87vwi)
