Skip to content

feat(cli/agent-init): generated guidance must teach the Deno toolchain — 55 deno calls, 0 were deno doc/info/eval #1672

Description

@rickylabs

Summary

netscript agent init generates agent guidance that teaches the NetScript surface but is nearly
silent on the Deno-native toolchain the runtime already ships. Wave 7 run 1 measured the
consequence: a frontier model made 55 deno invocations and zero of them were inspection
commands
, then answered its "what is this package's public API?" questions by fetching raw source
over HTTP instead.

Deno now publishes a canonical agent primer at https://deno.com/agents.md, designed to be handed
to any coding agent ("Read deno.com/agents.md and set up Deno in this project"). The generated
AGENTS.md should reference it and teach the inspection verbs directly.

Evidence

Measured from the Wave 7 run 1 transcript (DeepSeek V4 Pro 0813, Claude Code, NetScript 0.0.6,
2h46m, product rickylabs/meridian-workflow-builder @ 3c185dc1):

Command Invocations
deno task check 11
deno test 1
deno doc 0
deno info 0
deno eval 0
deno lint / deno fmt / deno outdated / deno add 0
total deno invocations 55

Against that: 40 curl fetches of raw package source from jsr.io across 6 packages, versus 15
greps of the installed offline corpus and 1 public-site fetch. deno doc answers precisely the
question those 40 curls were asking, and the framework's own contributor guidance says "deno doc
is your friend
" — but nothing the agent is given at init says so.

Generated AGENTS.md in a fresh 0.0.6 scaffold mentions deno info once and never mentions
deno doc, deno eval, or deno.com/agents.md.

The same run also never ran deno task test (0 times) and shipped no failing-capable test.

Current surface

agent init writes root/app guidance, the offline docs corpus and MCP configuration. Its guidance is
NetScript-centric; the Deno layer beneath it is assumed rather than taught.

Target contract

Generated agent guidance should:

  • link https://deno.com/agents.md as the canonical Deno primer, and state the one-line setup prompt;
  • teach the inspection verbs before implementation: deno doc <module> and
    deno doc --filter <symbol> for a package's public surface, deno info for the graph,
    deno eval for a quick behavioural probe — explicitly as the alternative to reading source over
    HTTP;
  • name the quality verbs the workspace already defines (deno task check, deno task test,
    deno lint, deno fmt) and state that a run is not finished until the test task has been run;
  • point at the dependency verbs (deno outdated, deno why, deno add) rather than hand-edited
    imports.

Keep it short. This is a pointer surface, not a tutorial — the failure being fixed is discovery,
not depth.

Acceptance

  • Generated AGENTS.md references deno.com/agents.md and the inspection verbs above
  • A fresh scaffold's guidance names deno doc as the way to learn a package's public API
  • Guidance states the test task must be run before a build is considered complete
  • A measured unfamiliar-agent smoke shows non-zero deno doc usage, or an explicit recorded
    rejection — silence is a harness failure, not an agent failure
  • No duplication of the netscript-deno-toolchain skill's content; the generated file links, the
    skill teaches

Boundaries

This is the generated consumer-facing guidance from agent init. It does not change the
repository's own AGENTS.md, the netscript-deno-toolchain skill, or the MCP corpus. Related but
distinct: #1201 (MCP serves generated export surfaces) — that makes the surface retrievable; this
makes an agent reach for it.

Provenance

Wave 7 run 1 (Arm C, NetScript 0.0.6 stable), evaluator pack at
agent-posts/wave-7/runs/workflow-builder-deepseek-v4-pro-0813-0.0.6/. Owner-directed 2026-08-17.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions