linejs AGENTS.md

Repository instructions for evex-dev/linejs, a Deno-first monorepo. A monorepo keeps several related packages and projects in one repository.

In plain words
What is it for?
Use them when building, testing, formatting, or organizing code in the linejs repository, including its TypeScript packages, documentation, examples, and scripts.
Why use it?
They give the coding agent the project’s structure, commands, naming rules, and testing expectations so changes follow the repository’s conventions.

Instructions file for CodexOpenCode

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 instructions/evex-dev/linejs/agents-md
Clone the repo
git clone --depth 1 https://github.com/evex-dev/linejs

Made for: Codex, OpenCode.

Per session 630 This file is loaded in full into every session.
When invoked 630 The same file — it is already loaded in full.
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.00630 $0.00630
Opus 5 $0.00315 $0.00315
Sonnet 5 $0.00126 $0.00126
Haiku 4.5 $0.00063 $0.00063

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

Security

Grade A, and why

linejs AGENTS.md 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.md · 47 lines

How it starts

The opening of the file, as written. The whole thing — 47 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Repository Guidelines

Project Structure & Module Organization

This repository is a Deno-first monorepo.

  • packages/linejs: main TypeScript library (@evex/linejs) with feature modules under client, base, and thrift.
  • packages/types: shared LINE type definitions (@evex/linejs-types).
  • docs: VitePress documentation site and content.
  • example: runnable examples for browser, node, talk, square, storage, thrift, etc.
  • scripts: generation/utility scripts, including thrift tooling and service/type helpers.
  • resources: static assets used by the project.

README.md in the root points to packages/linejs/README.md for package-level context.

Build, Test, and Development Commands

  • deno task dev: run local sandbox (workspace root).
  • deno task docs:dev: run docs dev server from docs.
  • deno task docs:build: build docs from docs.
  • cd docs && npm run dev|build|serve or bun run dev|build|serve: alternate docs workflows.
  • deno test: run the Deno test suite (CI uses this at repository root).
  • cd packages/linejs && deno test: run package-scoped tests.
  • deno fmt: apply repository formatter (configured in deno.json).

Coding Style & Naming Conventions

  • Use Deno formatter settings from repo: tabs for indentation, double quotes in most files.
  • Keep TypeScript across all source files and prefer explicit typing for public APIs.
  • Use clear, domain-based names: camelCase for functions/variables, PascalCase for classes/types.
  • File names are typically kebab-case or snake-like and placed under relevant feature folders (client/features/*, base/*).

Testing Guidelines

  • Test framework: Deno’s built-in test runner.
  • Test files use *_test.ts naming, e.g. packages/linejs/base/core/typed-event-emitter/index.test.ts.
  • Run tests before PRs: deno test or package-scoped commands above.
  • Add/adjust unit coverage when changing logic in touched files; keep existing test conventions.

Commit & Pull Request Guidelines

  • Commit history mostly follows Conventional Commit style (feat:, fix:, chore:, testing:).
  • Use short, imperative summaries, e.g. feat(client): add message retry logic.
  • PR description should explain behavior changes and testing performed.
  • Include reproduction notes when behavior depends on credentials, protocol behavior, or network-sensitive paths.
  • Optional checklist items in .github/pull_request_template.md: tests, jsdoc updates, local runtime checks.

Read the full file on GitHub · 47 lines

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 · 47 lines · 630 tokens per session scan A e88bba60f580

Subscribe to this mod's changes

linejs AGENTS.md is an instructions file published in the GitHub repository evex-dev/linejs (374 stars, last pushed 5d ago), licensed MIT. It adds 630 tokens to every session, about $0.0032 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-30.