Skip to content

Agents

Use this guide when you want an agent to work safely inside an Arashi meta-repo.

Core Idea

Arashi works best with agents when the workspace has a clear split:

  • implementation belongs in the affected child repo under repos/<project>/
  • shared context, planning, and cross-repo documentation belong in the meta-repo

That structure makes it much easier to tell an agent where to read, where to write, and what not to mix together.

What To Tell The Agent

When you give an agent work in this workspace, tell it:

  1. which child repo owns the implementation
  2. that implementation, tests, and repo-specific docs stay in repos/<project>/
  3. that meta-repo context, planning notes, and cross-repo guidance stay in the meta-repo
  4. which validation commands to run in the affected repo or repos

If your workspace uses AGENTS.md files, point the agent at the root file first and then the file inside the child repo it is editing.

Use a root AGENTS.md to tell agents how your meta-repo is organized. A good default looks like this:

# Arashi Meta-Repo Agent Rules
This repository is the meta-repo that coordinates work across the child repositories in `repos/`.
## Core Rule
- Put implementation in the affected child repository under `repos/<project>/`.
- Keep shared context, planning, cross-repo notes, and workspace-level guidance in this meta-repo.
## How To Work In This Workspace
1. Start in the child repo that owns the change.
2. Keep code, tests, and project-specific docs in that child repo.
3. Use the meta-repo for change context, coordination, OpenSpec artifacts, and cross-repo guidance.
4. When a change affects multiple repos, update each affected repo directly instead of mixing files into the wrong location.
## Multi-Repo Expectations
- A single git commit cannot span multiple repositories.
- If a feature changes both planning artifacts and project implementation, commit each affected repository separately.
- When command behavior, configuration, or user workflow changes in `repos/arashi`, review companion updates in `repos/arashi-docs/` and `repos/arashi-skills/`.
- When multiple repositories need PRs, include explicit cross-links between the PRs and reference the originating issue in each one.
## Repo-Specific Rules
- `repos/arashi/AGENTS.md`
- `repos/arashi-docs/AGENTS.md`
- `repos/arashi-skills/AGENTS.md`
- `repos/arashi-vscode/AGENTS.md`

Then add smaller AGENTS.md files inside the child repos so the agent can pick up repo-specific validation commands and editing rules.

  1. decide which child repo owns the implementation
  2. gather context in the meta-repo before making code changes
  3. have the agent implement the change in the child repo
  4. update related docs or coordination files in the meta-repo when needed
  5. validate each affected repo before review or handoff

Specs Pair Well, But They Are Optional

Arashi pairs well with a spec-driven development framework such as OpenSpec because it gives the agent a clean place for proposals, tasks, and design context.

The important part is not a specific framework. The important part is keeping:

  • code in the child repo that owns it
  • context and coordination in the meta-repo
  • instructions clear enough that the agent does not need to guess

If your assistant environment exposes them, OpenSpec commands such as /opsx-propose and /opsx-apply are a good fit for this workflow.