plastic-intent-discovery

plastic-intent-discovery is an agent for coding agents from zalom/plastic. It costs 37 tokens per session (533 once invoked), scanned A, original, MIT.

A research agent that gathers existing project context for an active intent. It searches the project's stored work and saves its findings in a resources file for the next stage.

In plain words
What is it for?
Use it when an intent is activated and you need background from completed, parked, or future work before deciding why the task matters.
Why use it?
It prevents the planning process from starting without checking related earlier work, linked sources, or other relevant intents. For small intents with no links or sources, it can record that discovery was skipped.

Agent

Part of the plastic plugin — 43 skills, 10 agents, 5 hooks, 1 MCP server shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/zalom/plastic/plastic-intent-discovery
Clone the repo
git clone --depth 1 https://github.com/zalom/plastic

Or install plastic, the plugin that ships this one along with the rest of its 43 skills, 10 agents, 5 hooks, 1 MCP server.

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 plastic-intent-discovery

README.md
[![agentmods](https://agentmods.dev/badge/agents/zalom/plastic/plastic-intent-discovery.svg)](https://agentmods.dev/agents/zalom/plastic/plastic-intent-discovery)
Your own site
<a href="https://agentmods.dev/agents/zalom/plastic/plastic-intent-discovery"><img src="https://agentmods.dev/badge/agents/zalom/plastic/plastic-intent-discovery.svg" alt="Measured on agentmods" height="20"></a>
Per session 37 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 533 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original 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 $0.00037 $0.00533
Opus 5 $0.00018 $0.00267
Sonnet 5 $0.00007 $0.00107
Haiku 4.5 $0.00004 $0.00053

Measured 3d ago against content hash 94d7d6362e63, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

plastic-intent-discovery 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 3d ago.

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.

agents/plastic-intent-discovery.md · 44 lines

What it actually says

You are the Plastic Intent Discovery agent. You own the What stage: at intent activation, after the lock is armed and before Why begins, under the lock as the owner session, you gather the context that already exists and deposit it for the Why stage to consume.

Skip precondition (Tier S only)

If a Tier: S line is already stamped at the top of spec.md and the activating intent's chain and sources frontmatter fields are both empty, do not run discovery. Write the single line no chain/sources, discovery skipped to resources/discovery--<slug>.md and stop. Sizing happens at Why, after this stage, so a first activation usually has no size on record: run the full pass. Never guess a size to unlock the skip.

Responsibilities

  1. Read the intent's links. Load the activating intent file's chain and sources frontmatter fields.
  2. Run QMD discovery first. Following the QMD-first convention, search the Plastic stores (scripts/qmd-sync search, or the qmd skill) across completed predecessor work named in chain/sources and any related parked or future intents in INDEX.md. Fall back to ripgrep over the stores only when QMD is absent.
  3. Deposit, never author. Write your findings to resources/discovery--<slug>.md in the intent directory ONLY. Never write the intent file, spec.md, or any lifecycle deliverable: the lock-owner-only write rule stays intact, and the Why-stage plastic-brainstorming agent is the one that reads your deposit and enriches ## Context. Shape the deposit tabular-first per PLASTIC.md (## Tabular-First Reporting, intent 160).

Constraints

  • Read-only with respect to the intent: your single output is resources/discovery--<slug>.md.
  • You do not ACQUIRE the delivery lock; you run under the lock the orchestrator armed (owner session, inherited session id) and are not blocked by it.
  • End with a structured completion report per the spawn preamble's report contract.
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. 3d ago First seen · 44 lines · 37 tokens per session scan A 94d7d6362e63

Subscribe to this mod's changes

plastic-intent-discovery is an agent published in the GitHub repository zalom/plastic (10 stars, last pushed 2d ago), licensed MIT. It adds 37 tokens to every session and 533 once invoked, about $0.0002 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-08-31.

Related

Other agents, from other repositories

ap-implementer

L3 executor - G4 IMPLEMENT. Builds one feature from its approved executable roadmap item or conditional frozen plan using strict TDD and real test runs; coverage >=95% on changed lines. Reports PLAN-CONFLICT rather than improvising.

Spielewoy/autoprompt-skill · 52 tokens

ap-manager

L2 optional manager - coordinates a multi-lane slice, builds compact pointer envelopes, and dispatches disjoint L3 work without executing it.

Spielewoy/autoprompt-skill · 32 tokens

ap-feature-coordinator

L1 feature coordinator - drives approved ROADMAP.md lanes through their required build/review/verification gates and owns the run-wide feature frontier.

Spielewoy/autoprompt-skill · 33 tokens

ap-framework-generator

L3 executor - FRAMEWORK GENERATE. When the SELECTOR returns MISS, generates a one-off custom framework for the exact task shape - classifies the orthogonal axes, composes the gate sequence from the GATE-LIBRARY with the correct axis-specific gate, emits the gen- leaf with the BLOCKED invariant verbatim, binds an…

Spielewoy/autoprompt-skill · 93 tokens

ap-framework-validator

L4 terminal leaf - FRAMEWORK VALIDATE (HRN-5). A fresh, default-FAIL juror that proves a GENERATED framework is SOUND before any gate runs. Checks the HRN-5 default-FAIL checklist - every gate mapped, exactly one terminal DONE with negatives looping UP, the BLOCKED invariant verbatim, a non-empty acceptance set. PASS…

Spielewoy/autoprompt-skill · 93 tokens

ap-scope-coordinator

L1 scope coordinator - drives the useful-first adaptive roadmap flow and returns one independently approved executable ROADMAP.md before build.

Spielewoy/autoprompt-skill · 30 tokens