MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / Enable

Class Enable

atomic-cli/src/commands/agent/enable.rs:56–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54/// Install agent hooks for turn-level recording.
55#[derive(Debug, Args)]
56pub struct Enable {
57 /// Which agent to install hooks for.
58 ///
59 /// If not specified, auto-detects which agent is present in the
60 /// repository (looks for `.claude/`, `.gemini/`, etc.).
61 #[arg(long, value_name = "NAME")]
62 agent: Option<String>,
63
64 /// Force reinstall hooks even if already installed.
65 ///
66 /// Removes existing Atomic hooks before installing new ones.
67 /// Non-Atomic hooks in the agent's config are preserved.
68 #[arg(short, long)]
69 force: bool,
70
71 /// Install hooks for all detected agents.
72 ///
73 /// If multiple agents are detected (e.g., both Claude Code and
74 /// Gemini CLI are configured), install hooks for all of them.
75 #[arg(long)]
76 all: bool,
77
78 /// Install hooks from an integration-supplied manifest file.
79 ///
80 /// The manifest (shipped by an integration package such as atomic-codex)
81 /// names its own target settings file and the hook commands to register,
82 /// and is merged in idempotently — preserving non-Atomic hooks. Because the
83 /// definitions live in the integration repo, updating an agent's hook
84 /// wiring never requires rebuilding `atomic`. When set, `--agent` is not
85 /// needed; the manifest is self-describing.
86 #[arg(long, value_name = "FILE")]
87 hooks: Option<std::path::PathBuf>,
88
89 /// Install the integration package from a local checkout instead of
90 /// syncing it from Atomic storage.
91 ///
92 /// For development of integration packages (e.g. a local atomic-opencode
93 /// clone): installs exactly what the storage path would, per the
94 /// package's atomic-integration.toml, without any network access.
95 #[arg(long, value_name = "PATH")]
96 from: Option<std::path::PathBuf>,
97
98 /// Install the skills-source package (e.g. atomic-skills) from a local
99 /// checkout instead of syncing it from Atomic storage.
100 ///
101 /// The integration package's manifest can declare a
102 /// `[skills-source]` / `[skills]` / `[agent-definition]`. Without this
103 /// flag those inputs are always re-cloned from Atomic storage on every
104 /// install, even when `--from` is given. Point this at a local
105 /// atomic-skills checkout to install fully offline.
106 #[arg(long, value_name = "PATH")]
107 from_skills: Option<std::path::PathBuf>,
108
109 /// Also install AGENTS.md into the repository root so the Atomic
110 /// workflow is always-on without picking a bundled agent.
111 ///
112 /// When set, `[[repo-file]]` entries from the manifest are installed
113 /// into the repo. Without this flag, `[[repo-file]]` entries are

Callers 1

Calls

no outgoing calls

Tested by 1