Files
vibe-kanban/crates
Alex Netsch 165e832830 Auto-generate CLAUDE.md and AGENTS.md in workspaces with @import syntax (Vibe Kanban) (#1614)
* I've implemented the feature. Here's a summary of the changes:

## Summary

Added automatic generation of workspace-level `CLAUDE.md` and `AGENTS.md` files that import configuration from each repository using Claude Code's `@import` syntax.

### Changes Made

**File: `vibe-kanban/crates/local-deployment/src/container.rs`**

1. **Added `create_workspace_config_files()` function** (lines 739-798):
   - Checks each repo for `CLAUDE.md` and `AGENTS.md`
   - Creates workspace-level files with `@repo-name/FILENAME.md` import lines
   - Skips if workspace file already exists (idempotent)
   - Skips if no repos have the config file
   - Silently handles errors (warns but doesn't fail workspace creation)

2. **Called in `create()` method** (lines 954-956):
   - Runs after `copy_files_and_images()` during initial workspace creation

3. **Called in `ensure_container_exists()` method** (lines 1018-1019):
   - Runs after `copy_files_and_images()` for cold restart scenarios

### Example Output

For a workspace with repos `frontend` and `backend` where both have `CLAUDE.md`:

```markdown
# Workspace CLAUDE.md
@frontend/CLAUDE.md
@backend/CLAUDE.md
```

* Done. Removed all the unnecessary comments from the code. The build compiles successfully.
2025-12-19 15:52:06 +00:00
..
2025-12-19 09:32:22 +00:00
2025-12-19 15:07:37 +00:00
2025-12-19 09:32:22 +00:00
2025-12-19 09:32:22 +00:00
2025-12-19 09:32:22 +00:00
2025-12-19 09:32:22 +00:00