How They Use AI  |  Newest

<< Home  |  Work

Automated coding workflow with persistent agent context

AreaWork
AI usedClaude Code
Sourcer/BuildWithClaude
Posted2026-08-01

The move

Create a dedicated context repository containing a CLAUDE.md file and git submodules to provide persistent instructions and project structure to new AI cloud sessions.

Steps

  1. Create a private repository to serve as your agent's onboarding hub.
  2. Add a CLAUDE.md file detailing your project architecture, coding conventions, and workflows.
  3. Use .gitmodules in the context repo to reference your actual project repositories.
  4. Instruct the agent to save progress notes into a /sessions folder before ending a task.
  5. Launch new Claude Code sessions by pointing them to this context repository.

Prompt for your AI

You are an AI agent working on [Project Name]. Use the instructions in the CLAUDE.md file from the context repository to understand our architecture and coding standards. Before finishing this session, summarize your changes and any pending work in a file within the /sessions directory.

What happened

The user struggled with Claude Code cloud sessions starting without knowledge of project architecture or previous work. They created a small context repository that maps project conventions and stores handoff notes. By linking this repo to new sessions, the AI immediately understands the project structure and can resume tasks after the user closes their laptop.

Watch out

Cloud sessions can occasionally stall or fail, so keep tasks small and verifiable. Ensure your context repository does not contain sensitive credentials.

Give it to your agent

Read https://howtheyuse.ai/p/automated-coding-workflow-with-persistent-agent-context.md and help me do this.

Sources



Last updated November 26, 2026.