jcode AGENTS.md

A set of repository instructions for developers working on the jcode project. It describes branch rules, installation paths, development workflow, and how to verify changes at runtime.

In plain words
What is it for?
Use it when changing the repository, building or installing jcode, selecting the correct build channel, and checking that a change works.
Why use it?
It reduces the risk of accidentally combining another contributor's work or installing the wrong build. It also clarifies which local executable is active during development or release testing.

Instructions file for CodexOpenCode

▶ jcode (Fully Tested) + Free APIs: RIP Codex & Claude, I THINK I'LL SWITCH! IT'S CRAZY GOOD! AICodeKing · about 1jehuang/jcode · on YouTube →
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/1jehuang/jcode/agents-md
Clone the repo
git clone --depth 1 https://github.com/1jehuang/jcode

Made for: Codex, OpenCode.

Per session 633 This file is loaded in full into every session.
When invoked 633 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.00633 $0.00633
Opus 5 $0.00316 $0.00316
Sonnet 5 $0.00127 $0.00127
Haiku 4.5 $0.00063 $0.00063

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

Security

Grade A, and why

jcode 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 2d 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 · 45 lines

How it starts

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

Repository Guidelines

Development Workflow

  • Stay on your own branch - Do not take, cherry-pick, merge, or copy code from other people's or other agents' branches unless the source branch belongs to a repository maintainer and the user explicitly asks you to integrate it. Only work from your branch and its base (e.g. main) otherwise. Never integrate branches owned by non-maintainers or other agents yourself; tell the user and let them decide how to proceed.

Install Notes

  • ~/.local/bin/jcode is the launcher symlink used from PATH.
  • ~/.jcode/builds/current/jcode is the active local/source-build channel; self-dev builds and scripts/install_release.sh point the launcher here.
  • ~/.jcode/builds/stable/jcode is the stable release channel; scripts/install.sh installs this and points the launcher here.
  • ~/.jcode/builds/versions/<version>/jcode stores immutable binaries.
  • ~/.jcode/builds/canary/jcode still exists for canary/testing flows, but it is not the primary self-dev install path.
  • On Windows, the equivalents are %LOCALAPPDATA%\\jcode\\bin\\jcode.exe for the launcher, %LOCALAPPDATA%\\jcode\\builds\\stable\\jcode.exe for stable, and %LOCALAPPDATA%\\jcode\\builds\\versions\\<version>\\jcode.exe for immutable installs; scripts/install.ps1 currently installs the stable channel.
  • Ensure ~/.local/bin is before ~/.cargo/bin in PATH.

Verifying a change at runtime

cargo build alone proves nothing about behavior. jcode run and interactive sessions are served by the long-lived daemon at ~/.jcode/builds/shared-server/jcode, which is a symlink into ~/.jcode/builds/versions/<version>/. Until that symlink is repointed and the daemon restarted (jcode self-dev --build), a freshly built binary is inert and every runtime check silently measures the old code.

To test a change without disturbing the shared daemon or the caller's session, run your build against its own socket:

cargo build --profile selfdev
./target/selfdev/jcode run --no-update --socket /run/user/1000/jcode-mytest.sock '<prompt>'

Read the full file on GitHub · 45 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. 2d ago First seen · 45 lines · 633 tokens per session scan A 23f9a0f60466

Subscribe to this mod's changes

jcode AGENTS.md is an instructions file published in the GitHub repository 1jehuang/jcode (18,821 stars, last pushed 3d ago), licensed MIT. It adds 633 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.