pixtuoid: Command for GitHub Copilot

.github/prompts/add-source.prompt.md

add-source is a command for GitHub Copilot from IvanWng97/pixtuoid. It costs 13 tokens per session (1,015 once invoked), scanned A, original, MIT.

Add a new agent-CLI Source adapter to pixtuoid.

Command for GitHub Copilot

Written for GitHub Copilot: a Copilot chat mode or prompt. Also seen: mentions CLAUDE.md.

This is IvanWng97/pixtuoid's own configuration. It tells GitHub Copilot how to work on pixtuoid itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything pixtuoid configures →

Reuse

Borrowing it

Nothing to install: this file belongs to IvanWng97/pixtuoid. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/IvanWng97/pixtuoid/main/.github/prompts/add-source.prompt.md
Clone the repo
git clone --depth 1 https://github.com/IvanWng97/pixtuoid

Made for: GitHub Copilot.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for add-source

README.md
[![agentmods](https://agentmods.dev/badge/commands/ivanwng97/pixtuoid/add-source.svg)](https://agentmods.dev/commands/ivanwng97/pixtuoid/add-source)
Your own site
<a href="https://agentmods.dev/commands/ivanwng97/pixtuoid/add-source"><img src="https://agentmods.dev/badge/commands/ivanwng97/pixtuoid/add-source.svg" alt="Measured on agentmods" height="20"></a>
Per session 13 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,015 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin unknown No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00013 $0.01015
Opus 5 $0.00006 $0.00508
Sonnet 5 $0.00003 $0.00203
Haiku 4.5 $0.00001 $0.00102

Measured today against content hash d562d56f12aa, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

add-source scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.github/prompts/add-source.prompt.md · 61 lines

What it actually says

Add a new agent-CLI Source

Wire up a new agent CLI (${input:name}) as a pixtuoid Source. This is not a single-file change — read crates/pixtuoid-core/CLAUDE.md ("multi-source decoding" / "Adding a new agent CLI") first, then:

  1. Implement the Source trait (hook-only CLI? skip it + the runtime wiring — set transcript: None and ship a hook.custom decoder + install target instead). Per-source JSONL format knowledge lives in the source's own decoder fn (injected into JsonlWatcher via fn pointers), not a shared decoder.
  2. Add ONE SourceDescriptor row in source/registry.rs (label prefix, decoders, hook keying, reducer caps) — its name field IS the roster (registered_source_names() projects REGISTRY; uniqueness pinned by registered_source_names_are_unique), and the conformance test forces a coalescing fixture.
  3. Wire it into runtime/driver.rs::build_source_set (the one construction site, called by run_async) — the registry gates conformance tests, not spawning, but a bridge test (build_source_set_wires_every_transcript_bearing_source_plus_the_hook_router) pins that set to the registry's transcript-bearing rows, so a registered-but-unwired source fails just test.
  4. If you add an AgentEvent variant, add a matching arm to AgentEvent::agent_id() in source/mod.rs.
  5. Update the four test areas that exercise the channel / Source / reducer together: tests/reducer/, tests/e2e.rs, tests/transport/socket.rs, tests/watcher/, plus runtime/driver.rs on the binary side.
  6. Add a captured fixture under tests/sources/fixtures/<name>/<scenario>/ (a unique lifecycle also gets a tests/sources/<cli>.rs module). The test layout + add-a-CLI steps are in crates/pixtuoid-core/tests/CLAUDE.md.
  7. Add a row to site/src/sources.json (the tool × OS matrix + README glimpse); tests/supported_sources_manifest.rs pins its supported set to registered_source_names(), so a new source fails that test until the row exists. Then just gen-readme to sync the README's Supported Tools section.
  8. Add the per-source badge hue: a Theme::source (SourceColors) field in EVERY theme file + a match arm in tui/widgets/dashboard.rs::dashboard_line (every_registry_source_has_a_non_fallback_badge_color + source_colors_cover_every_registered_source fail otherwise).
  9. If the CLI has a custom config/home root, add a pub fn <cli>_home() honoring its *_HOME env precedence, called from BOTH the watcher's default_paths() AND the installer's default_config_path() (one function, two consumers).
  10. Cover the source in the binary's TWO per-source INTEGRATION goldens (own test binaries, NOT built by -p pixtuoid --lib): regenerate the sources --json golden crates/pixtuoid/tests/snapshots/cli/sources.json (SNAPSHOTS=overwrite cargo test -p pixtuoid --test cli_json), and add a WireCase + per-source render test in crates/pixtuoid/tests/wire_to_pixels.rs (hook-only → DecodeKind::Hook+Transport::Hook), else sources_json_lists_every_source_in_an_isolated_home / wire_matrix_covers_every_registered_source red.

These cross-crate deps are caught only by just preflight's FULL run, not the targeted source/install suites — and a -p <crate> --lib run builds NEITHER integration binary in step 10 (kimi #692 shipped both red past a green --lib run and a multi-lens review). Respect the architecture invariants (no terminal deps in pixtuoid-core/pixtuoid-scene; one (Transport, AgentEvent) channel) and .github/instructions/rust.instructions.md. Run just preflight (or at least cargo nextest run --workspace) before the PR.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today First seen · 61 lines · 13 tokens per session scan A d562d56f12aa

Subscribe to this mod's changes

add-source is a command published in the GitHub repository IvanWng97/pixtuoid (469 stars, last pushed yesterday), licensed MIT. It adds 13 tokens to every session and 1,015 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-06.