pub struct Dialect {
pub id: &'static str,
pub hooks: HookSurface,
pub rules: Option<Target>,
pub skills_dir: Option<&'static str>,
pub commands: CommandSurface,
pub subagents: SubagentSurface,
pub plugins: PluginSurface,
pub permissions: PermissionSurface,
pub mcp: McpSurface,
pub native_profiles: bool,
}Expand description
One agent’s native mechanism surface, expressed as data. All paths are
relative to the ArtifactScope the host supplies — user-home paths
start at the agent’s config home’s parent (~), project paths at the
working directory.
Fields§
§id: &'static strAgent id used in the plan’s dialect field.
hooks: HookSurfaceHow this agent stores lifecycle hooks.
rules: Option<Target>Where standing rules materialize, if anywhere.
skills_dir: Option<&'static str>Home-relative skills directory (<dir>/<name>/SKILL.md).
commands: CommandSurfaceHow custom commands are declared.
subagents: SubagentSurfaceHow declarative subagents are stored.
plugins: PluginSurfaceHow plugins/extensions install.
permissions: PermissionSurfaceHow permission posture is configured.
mcp: McpSurfaceHow config-file MCP servers merge.
native_profiles: boolWhether the agent has its own profile selection mechanism
(codex --profile, a DSH profile, Devin Desktop profiles).
Implementations§
Source§impl Dialect
impl Dialect
Sourcepub const fn generic() -> Dialect
pub const fn generic() -> Dialect
The portable baseline: AGENTS.md managed blocks and .agents/skills.
Sourcepub fn adapt(&self, set: &MechanismSet) -> AdaptationPlan
pub fn adapt(&self, set: &MechanismSet) -> AdaptationPlan
Translate semantic declarations into this agent’s artifact plan. Report order follows the declaration set’s field order.