dx-agents
Gildraen/dx-agents is the canonical producer of shared, client-neutral
instructions, agents and skills for Gildraen repositories. Resources are
consumed from a local Git checkout at a fixed commit SHA, tracked by a SemVer
tag. The repository does not install tools or require the DX Dev Container Feature.
Resources
- AGENTS.md is the shared bootstrap. It loads the baseline and Git instructions and defines hierarchy, resource selection and delegation.
- instructions/base.md and
instructions/git.md contain the cross-role rules;
instructions/base.mdis also the canonical source for shared repository conventions. agents/*.agent.mdcontains roles with client-neutralnameanddescriptionmetadata.skills/*/SKILL.mdcontains bounded workflows. Each skill links to its owning role, which links back to the skill. See skills/README.md.
Project-specific resources remain in the consumer's .agents/agents/ and
.agents/skills/. They are additive to the shared resources, not copies of
them. The dx-* role names and relative links are stable within the checkout.
Worktrees
Use a task-specific worktree under <main-worktree>/tmp/worktree/<task-slug>
for repository changes. The root .gitignore excludes this directory; see
instructions/git.md for the creation and cleanup rules.
Portable Agent Plugin
The repository root is an Agent Plugins 1.0
package. Compatible clients discover the existing skills/ directory through
the root plugin.json; the skill files remain canonical here and
are not copied into a client-specific package. Install this Git repository as
a plugin using the client’s plugin workflow. The package format is portable,
but installation and marketplace setup remain client-specific; this repository
does not yet publish a plugin catalog. Pin a full commit SHA or SemVer tag for
reproducible installs. The plugin version is tracked separately from
repository tags. Use <plugin-version> for the manifest's SemVer and
<repository-tag> for a repository ref that contains the plugin.
The repository's agents/*.agent.md also serve as an experimental Agent
Profile draft based on incubation #70:
a stable name and persistent Markdown instructions, with an optional
description. This profile convention is not part of Agent Plugins 1.0, and
clients may ignore it. Structured skills, plugins, model.requires and
subagents fields are not declared yet; workflow profiles are out of scope.
Consumers needing the complete shared bootstrap and rules must still use the
pinned submodule and DX_AGENTS_HOME setup below.
Git consumption
Select a release tag and its corresponding commit SHA. Add the component to the consumer repository as a submodule at the shared component path:
version_tag='<full-semver-tag>'
version_commit='<commit-sha>'
git submodule add https://github.com/Gildraen/dx-agents.git .devcontainer/components/agents && \
git -C .devcontainer/components/agents fetch --depth=1 origin "refs/tags/$version_tag" && \
test "$(git -C .devcontainer/components/agents rev-parse 'FETCH_HEAD^{commit}')" = "$version_commit" && \
git -C .devcontainer/components/agents checkout --detach "$version_commit" && \
git submodule set-branch --branch "$version_tag" -- .devcontainer/components/agents && \
git add .gitmodules .devcontainer/components/agents
The submodule gitlink records the exact commit SHA. The branch value in
.gitmodules is the SemVer tag. With a matching Renovate configuration,
Renovate updates the tag and gitlink together. Do not move or replace a
published tag.
DX_AGENTS_HOME is the absolute path to the checkout root containing
AGENTS.md, instructions/, agents/ and skills/. Make it available in the
agent process environment; an interactive shell export only affects that
shell and its child processes. In a Dev Container, the consumer can set
remoteEnv.DX_AGENTS_HOME to ${containerWorkspaceFolder}/.devcontainer/components/agents.
The checkout must already be present when the agent starts.
The consumer's root AGENTS.md explicitly loads the shared bootstrap before
selecting a role or workflow. For example:
Before any task, read the shared bootstrap at $DX_AGENTS_HOME/AGENTS.md.
Report a missing environment variable or resource instead of continuing
without the shared rules. Apply this project's constraints alongside them.
If the client does not read the consumer's AGENTS.md, provide it in the
initial context. Load resources from local files; this contract does not
assume direct URL loading, environment substitution in Markdown links, or
automatic execution of instructions by an editor.
VS Code discovery
For VS Code Local sessions supporting custom search locations, the consumer can configure its native location settings with literal workspace-relative paths to the checkout:
{
"chat.agentFilesLocations": {
".agents/agents": true,
".devcontainer/components/agents/agents": true
},
"chat.agentSkillsLocations": {
".agents/skills": true,
".devcontainer/components/agents/skills": true
}
}
Keep the complete location objects when overriding existing settings.
DX_AGENTS_HOME does not configure these settings, and this example does not
depend on environment variable expansion by VS Code. Agents use .agent.md
for custom search locations; skills retain their directory and SKILL.md.
The plain Markdown files in instructions/ are explicitly loaded by the
bootstrap, not automatically discovered as *.instructions.md files.
These location settings are deprecated in current VS Code documentation and depend on the selected harness and version. They are not inherited by independent clients. Use explicit local loading where custom locations are unsupported. Picker visibility and actual role selection need verification in the intended client; filesystem tests alone do not establish them.
See the VS Code documentation for custom agents and Agent Skills.
Releases
After validate succeeds on a push to main, Release Please opens or updates
a release PR from Conventional Commits. Merge that PR to create the GitHub
Release and its <release-version> tag, without a v prefix. Existing tags
are not renamed. A feat requests a minor bump, a
fix a patch bump, and a ! breaking-change marker a major bump; commits such
as docs and chore do not request a release.
The initial no-prefix release is anchored at the commit currently tagged
v0.2.0, so its release notes start after that baseline. Release Please ignores
this bootstrap SHA after its first release PR is merged.
The repository release baseline is kept in version.txt and
.release-please-manifest.json; tests require them to match. The plugin
manifest's version remains separately managed.
Release Please uses GITHUB_TOKEN by default. GitHub does not start workflows
for pull requests created with that token. Configure a repository secret named
RELEASE_PLEASE_TOKEN with a fine-grained token limited to this repository and
contents, issues and pull-request write access if the generated release PRs
must also run the validate workflow. Also enable
the repository setting that allows GitHub Actions to create pull requests; this
workflow does not approve them.
Checks
Repository checks require Bash, Node.js and Go Task v3 on PATH, with no npm
dependencies, container runtime or network access:
task validate
task test
Taskfile.yml checks shell and task syntax, then runs the resource-discovery and hierarchy tests in tests/test-resource-discovery.sh and tests/test-runtime-hierarchy.sh. The tests cover metadata, naming, the shared bootstrap, local links, skill ownership and backlinks, including rejected hierarchy regressions. They do not invoke an AI client or install resources into a consumer.