Skip to content

Commit 37b6c77

Browse files
committed
feat: Update AI agent configuration and documentation for AgentSync
1 parent 493266f commit 37b6c77

File tree

22 files changed

+225
-361
lines changed

22 files changed

+225
-361
lines changed

.agents/agentsync.toml

Lines changed: 143 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,143 @@
1+
# AgentSync Configuration
2+
# This file defines how AI agent configurations are synchronized via symbolic links.
3+
# Configuration reference: https://dallay.github.io/agentsync/reference/configuration
4+
#
5+
# Source directory (relative to this config file)
6+
source_dir = "."
7+
8+
# Optional: compress AGENTS.md and point symlinks to the compressed file
9+
# compress_agents_md = false
10+
11+
# Gitignore management
12+
[gitignore]
13+
enabled = true
14+
marker = "AI Agent Symlinks"
15+
# Additional entries can be added here:
16+
# entries = ["custom-file.md"]
17+
18+
# -----------------------------------------------------------------------------
19+
# Agent Configurations
20+
# -----------------------------------------------------------------------------
21+
22+
# Claude Code
23+
[agents.claude]
24+
enabled = true
25+
description = "Claude Code - Anthropic's AI coding assistant"
26+
27+
[agents.claude.targets.instructions]
28+
source = "AGENTS.md"
29+
destination = "CLAUDE.md"
30+
type = "symlink"
31+
32+
[agents.claude.targets.skills]
33+
source = "skills"
34+
destination = ".claude/skills"
35+
type = "symlink"
36+
pattern = "*"
37+
38+
[agents.claude.targets.commands]
39+
source = "command"
40+
destination = ".claude/commands"
41+
type = "symlink"
42+
pattern = "*.md"
43+
44+
# GitHub Copilot
45+
[agents.copilot]
46+
enabled = true
47+
description = "GitHub Copilot - VS Code and GitHub integrated AI"
48+
49+
[agents.copilot.targets.instructions]
50+
source = "AGENTS.md"
51+
destination = ".github/copilot-instructions.md"
52+
type = "symlink"
53+
54+
[agents.copilot.targets.agents]
55+
source = "command"
56+
destination = ".github/agents"
57+
type = "symlink"
58+
pattern = "*.md"
59+
60+
# OpenAI Codex CLI
61+
[agents.codex]
62+
enabled = true
63+
description = "OpenAI Codex CLI - OpenAI's AI coding agent"
64+
65+
[agents.codex.targets.instructions]
66+
source = "AGENTS.md"
67+
destination = ".codex/instructions.md"
68+
type = "symlink"
69+
70+
[agents.codex.targets.skills]
71+
source = "skills"
72+
destination = ".codex/skills"
73+
type = "symlink"
74+
pattern = "*"
75+
76+
[agents.codex.targets.commands]
77+
source = "command"
78+
destination = ".codex/commands"
79+
type = "symlink"
80+
pattern = "*.md"
81+
82+
# Google Gemini
83+
[agents.gemini]
84+
enabled = true
85+
description = "Google Gemini - AI coding assistant"
86+
87+
[agents.gemini.targets.instructions]
88+
source = "AGENTS.md"
89+
destination = "GEMINI.md"
90+
type = "symlink"
91+
92+
[agents.gemini.targets.skills]
93+
source = "skills"
94+
destination = ".gemini/skills"
95+
type = "symlink"
96+
pattern = "*"
97+
98+
[agents.gemini.targets.commands]
99+
source = "command"
100+
destination = ".gemini/commands"
101+
type = "symlink"
102+
pattern = "*.md"
103+
104+
# OpenCode AI - Terminal-based AI coding assistant
105+
[agents.opencode]
106+
enabled = true
107+
description = "OpenCode - Open source AI coding agent"
108+
109+
[agents.opencode.targets.skills]
110+
source = "skills"
111+
destination = ".opencode/skill"
112+
type = "symlink"
113+
pattern = "*"
114+
115+
[agents.opencode.targets.commands]
116+
source = "command"
117+
destination = ".opencode/command"
118+
type = "symlink"
119+
pattern = "*.md"
120+
121+
# Root AGENTS.md
122+
[agents.root]
123+
enabled = true
124+
description = "Root AGENTS.md for tools that look for it in repo root (e.g., Jules)"
125+
126+
[agents.root.targets.agents]
127+
source = "AGENTS.md"
128+
destination = "AGENTS.md"
129+
type = "symlink"
130+
131+
# -----------------------------------------------------------------------------
132+
# Model Context Protocol (MCP) Configuration
133+
# -----------------------------------------------------------------------------
134+
[mcp]
135+
enabled = true
136+
# Strategy for existing files: "merge" (default) or "overwrite"
137+
# "merge" preserves existing servers but overwrites conflicts with TOML config
138+
merge_strategy = "merge"
139+
140+
# Define servers once
141+
[mcp_servers.filesystem]
142+
command = "npx"
143+
args = ["-y", "@modelcontextprotocol/server-filesystem", "."]

.agents/command/.gitkeep

Whitespace-only changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

.dockerignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ docker-compose*.yml
6363

6464
# Specs and planning
6565
specs/
66-
.ruler/
66+
.agents/
6767
.specify/
6868

6969
# Added missing patterns

.github/agentsync-check.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Check AgentSync Configuration
2+
3+
on:
4+
pull_request:
5+
paths: [".agents/**"]
6+
7+
env:
8+
NODE_VERSION: "22"
9+
10+
jobs:
11+
check-agentsync:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
15+
16+
- name: Setup Node.js and pnpm
17+
uses: ./.github/actions/setup/node
18+
with:
19+
node-version: ${{ env.NODE_VERSION }}
20+
21+
- name: Apply AgentSync configuration
22+
run: pnpm dlx @dallay/agentsync apply --no-gitignore
23+
24+
- name: Check for uncommitted changes
25+
run: |
26+
if [[ -n $(git status --porcelain) ]]; then
27+
echo "::error::AgentSync configuration is out of sync!"
28+
echo "Please run 'pnpm run agents:apply' locally and commit the changes."
29+
exit 1
30+
fi

0 commit comments

Comments
 (0)