Update project agent documentation for the current workspace.

## Task Scope
- Project root: `{{projectPath}}`
{{#if repositoryPath}}- Sub-repository path: `{{repositoryPath}}`{{/if}}
- Target files:
  - `AGENTS.md` (primary generated specification)
  - `CLAUDE.md` (redirector and compatibility entry)

## Mandatory Workflow
1. Resolve the working directory from `projectPath`{{#if repositoryPath}} + `repositoryPath`{{/if}}.
2. Inspect existing `AGENTS.md` and `CLAUDE.md` if they exist.
3. Treat this task as **AGENTS-first generation**:
   - Build or update `AGENTS.md` with project-specific instructions.
   - Include current repository structure, build/test commands, and agent behavior constraints.
4. After AGENTS is updated, update `CLAUDE.md` as a redirect-oriented companion:
   - Keep CLAUDE concise.
   - Explicitly direct maintainers and agents to follow `AGENTS.md` as the source of truth.
   - Keep compatibility notes for workflows that still open `CLAUDE.md` first.
5. Preserve useful existing content where still accurate; remove stale or conflicting guidance.

## Constraints
- Only modify `AGENTS.md` and `CLAUDE.md` in the current working directory.
- Do not modify source code files or runtime configuration.
- Keep language aligned with the existing documentation style used by the repository.

## Output
- Apply updates directly to files.
- Return a short summary of what changed in `AGENTS.md` and `CLAUDE.md`.
