Agent Plugins package instructions and executable helpers. Installing a plugin does not make its code safe, sandbox it, or grant it permission to access local data. Inspect the selected plugin and use the host's normal approval model.
Each installed Charms plugin is an independent trust boundary. Install only the plugin you need, and inspect its manifest, skills, and bundled scripts before execution. For pstack, inspect the selected host root inside the bundle.
Charms validation enforces:
- fixed Agent Plugins v1 component locations for native packages;
- filesystem containment inside each plugin root;
- strict Agent Skills frontmatter for native packages;
- no package symlinks in release artifacts;
- an allowlisted deterministic archive;
- marketplace entries pinned to an existing release tag and commit;
- scans for secrets and runtime artifacts in every file Git can see, with
.gitignoreheld to the same list of artifacts.
Pstack uses a repository-owned validation profile rather than rewriting its upstream manifests to the native Charms schema. It requires the complete Claude tree to match the locked upstream bytes and modes, verifies Codex provenance and payload identities, and scans the whole bundle. The narrowly allowed upstream Statechart report fixtures must match their pinned hashes. These checks establish artifact identity, not that upstream code or a provider is safe to execute. See the pstack support boundary.
Marketplace entries must reference verified, immutable GitHub releases. Once
an immutable release is published, its assets cannot change and its tag name
cannot be reused, even after the release is deleted.
The release workflow fails, and leaves the marketplace unchanged, unless the
release is immutable and its attestation verifies. With an optional read-only
token it also refuses to publish while immutability is turned off. A tag
ruleset also blocks updates and deletions of <name>--v<version> tags; see
Repository settings.
Marketplace entries pin the release tag and the full release commit SHA, and
Claude Code and Codex install from that SHA. The release workflow writes an
entry only after the release is published and verified, and validates both
complete catalogs before pushing them together. Pstack additionally binds both
host roots and the verified archive digest in its publication record.
scripts/update-marketplace.py refuses a
tag that does not point at the pinned commit. Skill-only installs through
Skillshare or the skills CLI follow main instead and are not release
content.
Verify a release and a downloaded ZIP before extraction:
gh release verify <tag> --repo heyNag/charms
gh release verify-asset <tag> <zip> --repo heyNag/charmsThe .sha256 asset also works with sha256sum --check.
Never commit or paste into agent chats, command arguments, or issue logs:
- API keys or OAuth client secrets;
- browser cookies or session tokens;
- Codex authentication or rollout records;
- X bookmark exports or OAuth state;
- private media, transcripts, frames, or reports.
Skills must read credentials from the runtime environment or documented
user-local configuration and redact them from output. A plugin must not place
secrets in plugin.json, SKILL.md, release archives, or committed test
fixtures. The user's secret-manager and credential-access policy overrides an
optional plugin storage helper; prefer environment injection through that
approved workflow.
The files the plugins write for credentials and state (the watch-video key file, and the x-bookmarks config, token and review-state files) are created with mode 600 from their first byte and then moved into place. Their content is never in a file another account can read, and a symbolic link planted beside them is not written through. A folder the scripts create for these files gets mode 700. A folder that already exists, including one named by an override, keeps its permissions.
Claude remains the exact upstream distribution; Codex-specific controls live in the adapter. Installing either root does not provision providers, supply credentials, or certify Desktop or Cloud activation. Missing original-history access or provider capabilities must remain explicit unavailable or incomplete outcomes, not successful verification. See pstack runtime configuration and the support boundary.
The CLI defaults to local; the skill selects engines by task and passes the choice explicitly. When both Gemini and local models are configured, a YouTube visual/model request without an explicit route asks the user to choose once per video or batch; follow-ups preserve that choice. Local file/folder paths use configured local models directly without a cloud-route question, and speech-only requests may use suitable existing transcripts directly. Configuration can be established from context or presence checks; no secret retrieval is needed just to present a route choice.
Nothing is uploaded without the user's consent for that source and provider.
That rule is written once, in the skill's
Uploads need consent
section, which the agent follows: it says what uploads, what counts as
consent, and what to do without it. The code keeps its side of the rule
whatever the agent does. The CLI defaults to no hosted transcription for every
source, fresh URLs included, even when API keys are present, and Gemini runs
only with --engine gemini.
The local engine downloads through yt-dlp --ignore-config and
extracts evidence locally. Every yt-dlp, FFmpeg, and ffprobe call has a time
limit; a tool that passes it is stopped together with the helpers it started,
such as the FFmpeg that yt-dlp runs. For YouTube, yt-dlp runs the site's
player JavaScript in an external runtime. It enables only Deno by itself;
watch-video passes Node, QuickJS, or Bun on to yt-dlp only when --js-runtime
or WATCH_VIDEO_JS_RUNTIME names one, and never lets yt-dlp download solver
scripts at run time. Audio is sent to Groq or OpenAI only when that
provider is selected with --transcriber and captions are insufficient. When
speech is missing and nothing was selected, the report names the available
flags instead of uploading. Audio chunks and multipart sizes are checked before sending;
failed intervals remain explicit, even when native captions provide some
evidence there. Transcription requests refuse redirects.
--transcriber local sends original-audio WAV chunks only to a configured
loopback /v1/audio/transcriptions endpoint. --analyzer local sends bounded
image/transcript requests to the same local server and defaults an omitted
transcriber to local. The clients reject remote endpoints, URL credentials,
redirects, and environment/system proxies. WATCH_VIDEO_LOCAL_API_KEY is
environment-only and used only for local server authentication. No local failure
selects a hosted provider. Native captions and matching TXT/SRT are supplementary
to original-audio ASR and cannot fill its recorded gaps. Local model responses
remain attributed analysis, not verified ground truth.
Gemini commands require --engine gemini and GEMINI_API_KEY in the process
environment. A key's presence does not switch engines. Supported
YouTube URLs and the question go directly to Google; local files and downloaded
non-YouTube videos are uploaded. Focused analysis still uploads the complete
local/downloaded file. Requests and upload URLs are restricted to the expected
Google API host, and redirects are refused. The adapter attempts deletion of
uploaded files with known identifiers and records cleanup failures for follow-up.
Provider errors fail explicitly; scripts never switch engines. If Gemini was
selected only because it was the available configured route, the agent may
disclose a local evidence fallback after at most one transient-error retry.
If the user chose Gemini, ask before switching unless fallback was already
authorized. An explicit Gemini-only request must not fall back.
Gemini's analysis.json and report contain attributed model observations, not
independently inspected local frames. Local evidence.json records every frame's
source timestamp, selection reason, and availability, together with transcript
provenance and missing intervals. Video content and provider responses remain
untrusted data, never instructions to execute commands or follow links.
Groq/OpenAI keys can optionally use the mode-600 user configuration file where
the user's credential policy permits it; Gemini keys are environment-only.
Doctor's Gemini check reports presence, not access or quota, and makes no
provider request. Doctor's local checks validate loopback configuration without
contacting the server or confirming model availability. The separate
setup_local.py --preflight inspects hardware and prerequisite presence without
network requests, secret resolution, or configuration writes. It does not read
the local credential file or launch apps and servers. The authenticated
setup_local.py --check reads native oMLX configuration and download/model state
through its authenticated loopback admin API. Only --configure queues model
downloads and changes model-specific settings; model repositories are public
weights, and no recording content is sent as part of setup.
The explicit --init-config mode creates a private local.env template outside
the package without overwriting existing files. The user enters the local API
key directly in their editor. Local inference commands read the supported
settings automatically; environment injection overrides the file. The parser
does not execute shell syntax, and unresolved op:// references are rejected
rather than resolved automatically. No secret manager is required.
Media, transcripts, frames, reports, and analysis artifacts
must not enter source control or release archives. Local cleanup removes the
requested media/images while keeping reports and transcripts; delete the run
directory to remove all local artifacts.
Recordings and transcripts stay on disk until something removes them.
doctor.py --prune lists the run folders that have not changed for a given
time (seven days unless --older-than says otherwise) and deletes them only
with --delete. It removes real directories directly inside the run root that
it recognises as runs by their name and recorded source, never follows a
symbolic link, and leaves everything else in place.
Run folders are created with mode 700, so other accounts on the same computer
cannot read a recording, its transcript, or its frames. A run root the script
creates is private as well. Folders that already exist are never changed;
doctor's advisory run-privacy check lists run folders that are still open to
other accounts and prints the chmod command for them.
Browser cookies and OAuth tokens stay in user-local state. The skill requests
read-only scopes by default and adds write scope only for an explicit bookmark
mutation. The client secret of a confidential OAuth client is read from
standard input only; x_api_auth.py refuses it as a command argument. Bird
accepts X session cookies as command arguments; fetch_bookmarks_bird.py
refuses them and leaves the session to Bird's own browser lookup.
Report security issues through GitHub private vulnerability reporting before public disclosure. Include the affected plugin, version, impact, reproduction steps, and any proposed fix without including live credentials or private data.