---
title: "Build Your AI Workflow Beyond the First CLAUDE.md"
description: "After Claude Code init, map your retrieval, automation, alerts, and outside-system gates. Follow the dependency chain before adding each layer."
canonical: "https://scalewithsearch.com/articles/beyond-claude-code-init"
date: "2026-03-23"
modified: "2026-11-10"
---
## Site navigation

- [Scale With Search](https://scalewithsearch.com/)
- Services
  - Local
    - [All services](https://scalewithsearch.com/services)
    - [AI visibility tracking](https://scalewithsearch.com/services/ai-visibility-tracking)
    - [Google Maps rank tracking](https://scalewithsearch.com/services/google-maps-rank-tracking)
    - [Local SEO](https://scalewithsearch.com/services/local-seo)
    - [Google Business Profile management](https://scalewithsearch.com/services/google-business-profile)
  - Website and search
    - [SEO solutions](https://scalewithsearch.com/seo)
    - [Technical SEO](https://scalewithsearch.com/seo/technical-seo)
    - [On-page and content SEO](https://scalewithsearch.com/seo/on-page-and-content-seo)
    - [Semantic SEO and topical authority](https://scalewithsearch.com/seo/semantic-seo-and-topical-authority)
    - [Custom SEO tools](https://scalewithsearch.com/seo/custom-seo-tools)
    - [Site build](https://scalewithsearch.com/work#site-build)
    - [Whole website fix](https://scalewithsearch.com/work#whole-website-fix)
  - AI functions
    - [AI operations](https://scalewithsearch.com/ai-systems)
  - First step
    - [Working session](https://scalewithsearch.com/audit)
  - Start here
    - [Send your brief](https://scalewithsearch.com/work#send-your-brief)
    - [Example scope](https://scalewithsearch.com/work#review-the-example-scope)
    - [Prices and terms](https://scalewithsearch.com/work#prices-and-terms)
- Industries
  - Agencies
    - [SEO agencies and consultants](https://scalewithsearch.com/for/seo-agencies-and-consultants)
    - [Marketing agencies and freelancers](https://scalewithsearch.com/for/marketing-agencies-and-freelancers)
    - [AI visibility check for SEO agencies](https://scalewithsearch.com/check/seo-agencies-and-consultants)
    - [Marketing and SEO agencies](https://scalewithsearch.com/for/#group-agencies)
  - Browse by business
    - [Trades and field service](https://scalewithsearch.com/for/#group-trades)
    - [Real estate agents and teams](https://scalewithsearch.com/for/real-estate)
    - [Health, wellness, and animal care](https://scalewithsearch.com/for/#group-practices)
    - [Chiropractic and wellness practices](https://scalewithsearch.com/for/chiropractic-and-wellness-practices)
    - [Law, finance, and IT](https://scalewithsearch.com/for/#group-professional)
    - [Machine shops and manufacturers](https://scalewithsearch.com/for/#group-manufacturing)
    - [Restaurants, shops, studios, and nonprofits](https://scalewithsearch.com/for/#group-local-services)
  - [All industries](https://scalewithsearch.com/for/)
- Resources
  - Free tools
    - [AI visibility check](https://scalewithsearch.com/check)
    - [All free tools](https://scalewithsearch.com/tools/)
    - [Free starter kit (.zip)](https://scalewithsearch.com/kit/business-memory-starter-kit.zip)
  - Guides
    - [AI-native library](https://scalewithsearch.com/ai-native)
    - [Industry intelligence](https://scalewithsearch.com/intelligence)
    - [Office job guides](https://scalewithsearch.com/guides/)
    - [Business memory](https://scalewithsearch.com/articles/business-memory-for-ai-agents-guide)
    - [Agent governance](https://scalewithsearch.com/articles/ai-agent-governance-guide-small-business)
    - [Ownership and migration](https://scalewithsearch.com/articles/leaving-vendor-ai-memory-guide)
  - Articles
    - [All articles](https://scalewithsearch.com/articles/)
- About
  - Evidence
    - [Proof](https://scalewithsearch.com/proof)
  - Scale With Search
    - [About](https://scalewithsearch.com/about)
    - [How it works](https://scalewithsearch.com/how-it-works)

# Map the Four Layers a Production AI Memory System Adds After /init.

Built from 15 notes in Victor's vault. Drafted with Claude Opus 5.5 and Claude Fable 5.1, rewritten against Victor's notes with Claude Opus 5.5. Reviewed by Victor on 2026.11.11.

You ran `/init`. Claude Code scanned the repository, wrote a `CLAUDE.md`, and now reads that file at the start of each session. It no longer asks which language the project uses. That solves the cold start for one project in one tool.

Most tutorials end there. This page describes what comes next, based on the system I run my own work on, as it stood in March 2026. It held thousands of files across five domains of my work and life. It could search every past Claude Code conversation word for word. It sent alerts to my phone. It refused to write to the CRM unless a person promoted the change.

The system has 14 parts in four layers. `CLAUDE.md` is the first part. Each layer depends on the one below it: data feeds automation, automation gives communication something to report, and communication makes integration safe. Skip a layer, and the layers above it fail.

## Know what /init produces and where it stops

The `/init` command examines a codebase and writes a Markdown file that Claude Code loads at session start. The file usually records the language, framework, test commands, lint rules, and directory structure. For a code project, it is accurate enough to work.

The file describes the project. It does not describe the operator or the business. It holds no communication style, business rules, or decision frameworks. It lacks the hard constraints that an owner adds one correction at a time. It also lacks the names and roles of the people the agent deals with. A project configuration file and a persistent business record solve different problems.

The generated file also cannot reach outside knowledge. It does not know what sits in your notes, your CRM, or your session history. It describes one directory. In a production system, `CLAUDE.md` is the entry point to a network of sources. My vault's root file tells every model the rules of the operation, how to speak to me, and where to look for each kind of record. The [context file and CLAUDE.md guide](/articles/context-file-vs-claude-md-business-project) shows which content belongs in the entry point and which belongs in separate files.

## Layer 1: make the knowledge findable

`CLAUDE.md` tells the agent what the project is. The data layer gives it access to what the business knows. Three systems make up this layer.

**System 2: vault structure.** An Obsidian vault holds one directory per domain. In my system, the domains covered sales operations, an SEO practice, course builds, personal operations, and contacts. Each domain has a `_context.md` file that says what the folder tracks, how to use it, and when to cross over to another folder. A routing table in `CLAUDE.md` maps keywords to domains. A mention of the CRM or a lead list loads the sales context. A mention of a topical map or a retainer loads the SEO context. Five domains and five context files leave no doubt about which role the agent plays. The [guide to separate business contexts](/articles/separate-business-contexts-ai-agents) covers the isolation rules that keep the domains apart.

**System 3: semantic search.** `grep` finds exact strings. It fails when you need "the note about the client who wanted acreage outside town" and you remember no filename, folder, or unique keyword. My system used QMD, which indexes every vault file as vector embeddings. The agent then searches by meaning, not by text match. "Cut my retainer" and "lower the monthly fee" land near each other even though they share no words. Across thousands of files, that is the difference between a filing cabinet and a usable memory.

**System 4: session ledger.** A SQLite database with full-text search held more than 37,000 messages in March 2026: every conversation, instruction, and correction, with timestamps and session IDs. When the agent needs a decision from three months ago about a client's pricing structure, it queries the ledger. The ledger survives session ends, context window resets, and model upgrades. Treat each conversation as a deposit, not as a thing that ends. The [full-text chat history search guide](/articles/search-claude-chat-history-full-text) covers a smaller version of the same idea.

With these three systems, the agent can find any file by meaning, recall a past conversation by keyword, and load the right domain context. Every layer above depends on these three retrieval paths.

## Layer 2: let work run without you

Data gives the agent knowledge. Automation gives it work to do while you are away. Four systems make up this layer.

**System 5: hooks.** Claude Code hooks run on specific events and can add context before the model processes a prompt. My domain router read each message, matched it against a keyword map, and loaded only the context files that matched. A message that names both domains loads both. The agent does not choose to search. The pipeline is deterministic: keyword detected, context loaded, no missed lookup.

**System 6: skills.** A skill packs a repeatable workflow into one command. In my system, `/sprint` planned the next work sprint. `/handoff` wrote a session summary for the next agent. `/dispatch` read the content queue and produced the pending drafts, and its `--dry-run` flag showed the plan without writing anything. Each skill replaces a prompt you would otherwise type from memory.

**System 7: timers and scheduled tasks.** `systemd` timers on a VPS and `launchd` jobs on the Mac run tasks on a schedule. My morning dashboard fired at 6:15 a.m. The session ledger harvested transcripts every five minutes. A watchdog checked the services on its own cadence. You wake up to results, not to a task list.

**System 8: proactive engine.** One orchestration layer sits above the individual timers. Every five minutes, it runs each registered check. Most checks are cheap: a file date, a status code, some date math. The model is called only for items that need judgment. Timer rot is the most common production failure: a job breaks without output and nobody notices for days. The engine and the watchdog exist so that a silent failure gets noticed.

## Layer 3: reach the owner away from the terminal

An agent that runs tasks overnight is of little use if you do not know what it did. Three systems make up this layer.

**System 9: domain bots.** My system ran five Telegram bots, one per domain. The sales bot carried lead alerts. The personal bot carried household reminders. The SEO bot carried client notices. Because each domain has its own bot, you can mute one and keep the others. Each bot runs as its own persistent process with its own token.

**System 10: notification routes.** Routes set quiet hours, priority levels, and channels. My notifications went quiet after 10 p.m. During the evening drive, routine items queue and urgent items still deliver. Low-priority items batch into a daily digest. A failed CRM write goes out as an alert at once.

**System 11: health monitors.** Service checks, disk checks, and credential expiry tracking close the loop. When a token is about to expire, the alert comes days ahead instead of after the integration goes dark. When the model's own login fails, that check carries the highest severity, because every scheduled job that calls the model stops with it. The system does not only run tasks. It confirms that they succeeded and flags the ones that did not.

The agent works in a terminal. The owner works from a phone, a car, and an office. My working brain was duplicated from the Mac to the VPS, and the VPS answered through Telegram. This layer carries status between them without a laptop and a log file.

## Layer 4: touch outside systems under gates

The first three layers are internal. The fourth layer is where the agent acts on systems that affect other people. Three systems make up this layer.

**System 12: CRM integration with safety gates.** The agent can read from the CRM: contacts, deal stages, and response history. By default, it cannot write. Every CRM write runs in dry-run mode first and produces a manifest of what it would change. Seven rules govern the write path: dry-run default, one record per transaction, a duplicate guard, a circuit breaker, an audit trail, an endpoint allowlist per script, and escalation to a person. A bad batch write to live records takes far longer to undo than to prevent. The dry-run default keeps the agent's analysis useful and its reach into live records at zero until a person promotes the change.

**System 13: outreach automation.** Outreach runs in tiers, and each tier has its own rules. The agent drafts the message, selects recipients by pipeline stage, and proposes timing. The default posture is dry-run: nothing goes out without an explicit send. A draft list is not send authorization. A governing file sets tone, frequency caps, and exclusion rules. The [approval guide for agent sends](/articles/who-approves-what-an-ai-agent-sends) describes how to bind an approval to the exact message.

**System 14: content schedules.** Article pipelines, social queues, and newsletter drafts draw on vault context, session history, and domain knowledge from all three lower layers. A piece enters the queue once and publishes on schedule where it needs to go. The content reflects the owner's actual positions because the agent reads the full knowledge base, not a one-paragraph bio.

The gates exist because these actions cannot be undone the way a file edit can. My setup lets the agent work freely, and it stops when it needs to send something, spend money, or delete.

## Trace the dependency chain

Each layer needs the one beneath it.

Automation without data gives scheduled tasks that cannot find what they need. A timer fires to check a deal's status, but no semantic search locates the deal file and no ledger recalls the last conversation about it.

Communication without automation means manual status checks. You open the terminal, run the query, and read the output. The bot has nothing to report, because nothing ran on its own.

Integration without communication means blind writes. The agent changes CRM records, sends outreach, or publishes content. You learn about it when a client replies to a message you did not approve.

`CLAUDE.md` is the root. Remove it, and Claude Code does not know your rules, domains, voice, or constraints. Hooks do not know which keywords to catch. Skills do not know which gates to enforce. Bots do not know their domain. That is why `/init` matters, and why it is the first of fourteen steps.

## See one morning run through the stack

Picture a Monday. Before the owner leaves for the office, the phone shows three messages. The sales bot batched overnight activity: two new inquiries, and one prospect with a 4-day follow-up gap. The SEO bot confirmed that a client's weekly article went live on schedule. The health monitor reported that every credential stays valid for another 30 days.

At 8 a.m., the owner opens Claude Code. It already knows the lead with the follow-up gap, because a hook loaded the contact file when the message named the lead. The owner types "draft the follow-up." The agent writes the email in the owner's voice and names what the lead asked about. It matches the tone of earlier messages to similar prospects, which it pulls from the ledger. It queues the draft for approval. The owner reads it, approves it, and it goes out.

That sequence touched 9 of the 14 systems. The owner typed three words. The machine did the motion overnight. The owner kept the verdict.

With only `/init`, the same task goes differently. You open Claude Code and explain who you are. You describe the lead, paste the details, and specify the tone. You review, edit, and send by hand, then repeat it tomorrow.

## Build the layers in order

Apart from the model, every system on this page runs on free or open-source tools: Obsidian, Telegram bots, SQLite, QMD, and `systemd` timers. Claude Code itself needs a paid Claude plan or an Anthropic API account. Start with the vault structure, the routing table, and the `CLAUDE.md` structure, because the rest depends on them. The [business CLAUDE.md template](/articles/claude-md-template-business-context) gives a starting file.

The first artifacts cost an afternoon: one context file, a folder of your best past work, and one written rule that nothing leaves under your name without your yes. The layers on top take longer, and each one waits until the layer below it is stable. The order is fixed. You cannot wire the CRM gates before semantic search works, because the gates refer to vault files that must be findable.

In my stack, the added running cost over a bare `CLAUDE.md` was a small VPS for timers, health checks, and the proactive engine. It cost less per month than the AI subscription itself. Obsidian is free to download, Telegram bots cost nothing, and QMD and the session ledger run on your own machine. The index files stay on that disk, but the text the agent retrieves from them goes to the model provider for processing. The larger cost is the owner's build time and upkeep.


## More reading on production AI memory system layers beyond /init

- [Install Obsidian and Claude Code, then connect your first AI vault](/articles/how-to-set-up-ai-vault)
- [Turn your second brain into context an AI reads every session](/articles/#cluster-ai-memory)<!-- reading-origin:XSgvYXJ0aWNsZXMvc2Vjb25kLWJyYWluLWZvci1haSk= -->
- [Keep your context when an AI chatbot resets between sessions](/articles/why-do-ai-chatbots-forget)

----

```text
                  .|########||.                                       .|########||.                                       .|########||.
               |##||.      .||##|.                                 |##||.      .||##|.                                 |##||.      .||##|.
             |#|.              .|#|.                             |#|.              .|#|.                             |#|.              .|#|.
           |#|                    |#|                          |#|                    |#|                          |#|                    |#|
         .#|                        |#.                      .#|                        |#.                      .#|                        |#.
        .#.                          .#|                    .#.                          .#|                    .#.                          .#|
       |#.                            .#|                  |#.                            .#|                  |#.                            .#|
      |#             ......             #|                |#             ......             #|                |#             ......             #|
     .#           ||#########|           #|              .#           ||#########|           #|              .#           ||#########|           #|
    .#.         |######||######|.        .#.            .#.         |######||######|.        .#.            .#.         |######||######|.        .#.
    #.        .##|###|##|#|######|        .#            #.        .##|###|##|#|######|        .#            #.        .##|###|##|#|######|        .#
   ||        |##|#||||||||||||#||#|        ||          ||        |##|#||||||||||||#||#|        ||          ||        |##|#||||||||||||#||#|        ||
   #        |#||||||||||||||||||||#|        #.         #        |#||||||||||||||||||||#|        #.         #        |#||||||||||||||||||||#|        #.
  ||       |#||||||||||||||||||||||#|       ||        ||       |#||||||||||||||||||||||#|       ||        ||       |#||||||||||||||||||||||#|       ||
  #       .#||||||||||||||||||||||||#|       #        #       .#||||||||||||||||||||||||#|       #        #       .#||||||||||||||||||||||||#|       #
 ||   ....|||#||||||##|#|||#|#||##||||....|. ||      ||   ....|||#||||||##|#|||#|#||##||||....|. ||      ||   ....|||#||||||##|#|||#|#||##||||....|. ||
 #.  .  ....|#  ....#|||   ||| .#|||  ....#. .#      #.  .  ....|#  ....#|||   ||| .#|||  ....#. .#      #.  .  ....|#  ....#|||   ||| .#|||  ....#. .#
 #   .  ||||#| .#####||  . .#| .#|||  ||||#   #.     #   .  ||||#| .#####||  . .#| .#|||  ||||#   #.     #   .  ||||#| .#####||  . .#| .#|||  ||||#   #.
.|   |||||  #. |#|||||. ||  #. |#||. .|||||   ||    .|   |||||  #. |#|||||. ||  #. |#||. .|||||   ||    .|   |||||  #. |#|||||. ||  #. |#||. .|||||   ||
||   |....  #. ....|#.      |. ...|. ....||   ||    ||   |....  #. ....|#.      |. ...|. ....||   ||    ||   |....  #. ....|#.      |. ...|. ....||   ||
#.  .||||||##||||||##||####|||||||#||||||#|   .#    #.  .||||||##||||||##||####|||||||#||||||#|   .#    #.  .||||||##||||||##||####|||||||#||||||#|   .#
#    .||####|###########################|.     #    #    .||####|###########################|.     #    #    .||####|###########################|.     #
#      .#||||||.#.|| # |. ..# #| #|||||#|      #    #      .#||||||.#.|| # |. ..# #| #|||||#|      #    #      .#||||||.#.|| # |. ..# #| #|||||#|      #
#      .#|||||| ..  |# ## |#| ...#|#|||#|      #    #      .#|||||| ..  |# ## |#| ...#|#|||#|      #    #      .#|||||| ..  |# ## |#| ...#|#|||#|      #
#      .#|||#|# .# .#| #| ##|.#..#|||||#|      #    #      .#|||#|# .# .#| #| ##|.#..#|||||#|      #    #      .#|||#|# .# .#| #| ##|.#..#|||||#|      #
#      .#||||||############|######|||||#|      #    #      .#||||||############|######|||||#|      #    #      .#||||||############|######|||||#|      #
#   |...||#||||||#||||#|#||||||#|||||#||| |.|  #    #   |...||#||||||#||||#|#||||||#|||||#||| |.|  #    #   |...||#||||||#||||#|#||||||#|||||#||| |.|  #
#. .. ||||# .|||##|.  |#| .|| || .|||#. #|  # .#    #. .. ||||# .|||##|.  |#| .|| || .|||#. #|  # .#    #. .. ||||# .|||##|.  |#| .|| || .|||#. #|  # .#
|| |  ...||  ...##| |  #| .|. |. #####  .. .| ||    || |  ...||  ...##| |  #| .|. |. #####  .. .| ||    || |  ...||  ...##| |  #| .|. |. #####  .. .| ||
|| ||||| || ||||#|  .  |. |. |#. ||||| |#| || ||    || ||||| || ||||#|  .  |. |. |#. ||||| |#| || ||    || ||||| || ||||#|  .  |. |. |#. ||||| |#| || ||
.# |.....#|....|#.||||.|||##.|#|....||.#||.#. #.    .# |.....#|....|#.||||.|||##.|#|....||.#||.#. #.    .# |.....#|....|#.||||.|||##.|#|....||.#||.#. #.
 #.|||||||#############################| ||| .#      #.|||||||#############################| ||| .#      #.|||||||#############################| ||| .#
 ||       ##||#||#||||||#||#||#||#||##.      ||      ||       ##||#||#||||||#||#||#||#||##.      ||      ||       ##||#||#||||||#||#||#||#||##.      ||
  #       .#|||||||||#||#|||||||||||#|       #        #       .#|||||||||#||#|||||||||||#|       #        #       .#|||||||||#||#|||||||||||#|       #
  ||       |#||||||||||||||||||||||#|       ||        ||       |#||||||||||||||||||||||#|       ||        ||       |#||||||||||||||||||||||#|       ||
  .#        |#||||||||||||||||||||#|        #.        .#        |#||||||||||||||||||||#|        #.        .#        |#||||||||||||||||||||#|        #.
   ||        |#||||||||||||||||||#|        ||          ||        |#||||||||||||||||||#|        ||          ||        |#||||||||||||||||||#|        ||
    #.        .######|#|#########|        .#            #.        .######|#|#########|        .#            #.        .######|#|#########|        .#
    .#.         |#####||||#####|         .#.            .#.         |#####||||#####|         .#.            .#.         |#####||||#####|         .#.
     |#           ||########||           #.              |#           ||########||           #.              |#           ||########||           #.
      |#             ......             #|                |#             ......             #|                |#             ......             #|
       |#.                            .#|                  |#.                            .#|                  |#.                            .#|
        |#.                          .#.                    |#.                          .#.                    |#.                          .#.
         .#|                        |#.                      .#|                        |#.                      .#|                        |#.
           |#|                    |#|                          |#|                    |#|                          |#|                    |#|
            .|#|.              .|#|.                            .|#|.              .|#|.                            .|#|.              .|#|.
               |##||.      .||##|                                  |##||.      .||##|                                  |##||.      .||##|
                 .||########||.                                      .||########||.                                      .||########||.

Scale With Search  2026  [scalewithsearch.com](https://scalewithsearch.com)
```
