jan-subagent: Instructions file for Codex

AGENTS.md

jan-subagent AGENTS.md is an instructions file for Codex, OpenCode from pdurlej/jan-subagent. It costs 932 tokens per session, scanned A, original, MIT.

A set of repository instructions stored in an AGENTS.md file, telling coding agents how to work in a specific project, including its folder, structure, and required reading order.

In plain words
What is it for?
Use it to define a repository summary, working directory, startup reading list, important modules, and engineering decisions for new coding sessions.
Why use it?
It gives an agent the project context it needs before making changes. This reduces mistakes caused by using the wrong files, commands, or assumptions.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions subagents; mentions AGENTS.md; mentions Codex.

This is pdurlej/jan-subagent's own configuration. It tells Codex and OpenCode how to work on jan-subagent 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 jan-subagent configures →

Not installable: its command points at a path on the author’s own machine, so it runs nowhere else. The line is /Users/pd/Developer/jan.

Reuse

Borrowing it

Nothing to install: this file belongs to pdurlej/jan-subagent. 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/pdurlej/jan-subagent/master/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/pdurlej/jan-subagent

Made for: Codex, OpenCode.

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 jan-subagent AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/pdurlej/jan-subagent/agents-md/github.svg)](https://agentmods.dev/instructions/pdurlej/jan-subagent/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/pdurlej/jan-subagent/agents-md"><img src="https://agentmods.dev/badge/instructions/pdurlej/jan-subagent/agents-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for jan-subagent AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/pdurlej/jan-subagent/agents-md"><img src="https://agentmods.dev/badge/instructions/pdurlej/jan-subagent/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 932 This file is loaded in full into every session.
When invoked 932 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00932 $0.00932
Opus 5.5 $0.00373 $0.00373
Sonnet 5.5 $0.00186 $0.00186
Haiku 4.5 $0.00093 $0.00093

Measured 1mo ago against content hash a998ecfe941d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

jan-subagent 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 1mo 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 · 75 lines

How it starts

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

AGENTS.md

Scope

This file is local to /Users/pd/Developer/jan and should be treated as the primary Codex context for new threads started in this repository.

Working Folder

  • Always work from /Users/pd/Developer/jan.
  • Treat this directory as the repo root.

Repo Summary

  • Project: jan-subagent
  • Purpose: repo-native MCP agent for Polish-language change communication in software delivery, powered by NVIDIA Bielik.
  • Canonical runtime entrypoint: jan.jan_subagent_opencode
  • Legacy module jan/jan_subagent.py was removed in 2.0.0.
  • Current behavioral release target: 3.0.0.

Read Order For New Threads

  1. /Users/pd/Developer/jan/docs/new-thread-start.md
  2. /Users/pd/Developer/jan/README.md
  3. /Users/pd/Developer/jan/docs/VERSION_3_0_0.md
  4. /Users/pd/Developer/jan/_bmad-output/project-context.md
  5. /Users/pd/Developer/jan/jan/jan_subagent_opencode.py
  6. /Users/pd/Developer/jan/jan/workflow_engine.py
  7. /Users/pd/Developer/jan/jan/policy.py
  8. /Users/pd/Developer/jan/jan/source_adapters.py
  9. /Users/pd/Developer/jan/tests/test_repo_native_workflows.py

Current Engineering Decisions

  • The opencode server is the default implementation for MCP usage and packaging.
  • setup.py version is aligned to 3.0.0.
  • jan/__init__.py uses lazy import for mcp.
    • Do not reintroduce eager import of jan_subagent_opencode there.
  • Config is loaded from environment or ~/.jan/config.json.
  • Default model ID is speakleash/bielik-11b-v2.6-instruct.
  • README examples and API docs should stay aligned with named repo-native workflows and jan.workflow_engine.
  • mcp_config.json is the only maintained sample config and must stay valid JSON.
  • Primary workflows are:
    • write_pr_description
    • compose_release_notes
    • rewrite_issue
    • write_rollout_note
  • Legacy tools remain callable for compatibility, but are deprecated and not the main product surface.
  • jan.yml is the repo-level policy pack and should be treated as memory-as-code.
  • response_mode="review" must stay stable and JSON-only.
  • BMAD is present in two layers:
    • maintenance scaffold: scripts/, references/, agents/, state/
    • project workflows: _bmad/ and _bmad-output/
  • project-context.md in _bmad-output/ is the source-of-truth for the v3.0.0 pivot.
  • Benchmarking now has two tiers:
    • workplace writing pilot as regression guardrail
    • delivery benchmark v2 as north-star workflow benchmark

Read the full file on GitHub · 75 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. 1mo ago First seen · 75 lines · 932 tokens per session scan A a998ecfe941d

Subscribe to this mod's changes

jan-subagent AGENTS.md is an instructions file published in the GitHub repository pdurlej/jan-subagent (0 stars, last pushed 6mo ago), licensed MIT. It adds 932 tokens to every session, about $0.0037 per session on Opus 5.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 instructions, from other repositories

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 9,715 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,581 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).

microsoft/vscode · 5,262 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,680 tokens

deepseek-harness AGENTS.md

AGENTS.md instructions for deepseek-ai/deepseek-harness, covering agents.md, pre-stable apis and released session data, repository layout, commands and host sandbox failures.

deepseek-ai/deepseek-harness · 4,261 tokens

vscode copilot-instructions.md

Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).

microsoft/vscode · 2,731 tokens