mode

mode is a skill for Claude Code, Codex from Rockielab/rockie-codex. It costs 118 tokens per session (1,400 once invoked), scanned A, a copy of mode, Apache-2.0.

A small session settings system for switching between working modes, such as a deadline-focused session or an exploratory one. Each mode stores temporary preferences like budget limits, hardware choices, research focus, and writing style.

In plain words
What is it for?
Use it when a project needs different operating rules for deadlines, exploration, teaching, hardware, spending, or output format.
Why use it?
It lets the agent change how it works for a particular session without changing the researcher's lasting preferences. The active mode can be viewed, compared, created, edited, or switched.

Skill for Claude CodeCodex

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 skills/rockielab/rockie-codex/mode
Any agent
npx skills add Rockielab/rockie-codex --skill mode
Clone the repo
git clone --depth 1 https://github.com/Rockielab/rockie-codex

Made for: Claude Code, Codex.

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 mode

README.md
[![agentmods](https://agentmods.dev/badge/skills/rockielab/rockie-codex/mode.svg)](https://agentmods.dev/skills/rockielab/rockie-codex/mode)
Your own site
<a href="https://agentmods.dev/skills/rockielab/rockie-codex/mode"><img src="https://agentmods.dev/badge/skills/rockielab/rockie-codex/mode.svg" alt="Measured on agentmods" height="20"></a>
Per session 118 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,400 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 100% copy Near-identical to another mod 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.00118 $0.01400
Opus 5 $0.00059 $0.00700
Sonnet 5 $0.00024 $0.00280
Haiku 4.5 $0.00012 $0.00140

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

Security

Grade A, and why

mode 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 5d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (runtime/mode.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Origin

This is a copy

100% identical to mode — 16 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

project-extension/agents/skills/mode/SKILL.md · 145 lines

How it starts

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

/mode — operational overlays on the taste corpus

Identity is centralized in .rockie/taste/. Modes carry the small, context-dependent policy bits that flip between sessions: paper-deadline vs. exploratory vs. dogfooding vs. teaching.

A mode is a TOML file at .rockie/taste/modes/<name>.toml. The active mode is named in .rockie/taste/modes/_active (one line). SessionStart loads it and surfaces a compact summary alongside the researcher identity from INDEX.md.

When to use

  • A new context (deadline, area, register) where overrides apply.
  • The harness behavior shouldn't change who you are, just what you optimize for this session.

Subcommands

python3 .agents/skills/mode/runtime/mode.py show            # active mode + diff vs central
python3 .agents/skills/mode/runtime/mode.py list            # available modes
python3 .agents/skills/mode/runtime/mode.py switch <name>   # atomic flip _active
python3 .agents/skills/mode/runtime/mode.py new <name> [--from <template>]
python3 .agents/skills/mode/runtime/mode.py edit <name>     # opens in $EDITOR
python3 .agents/skills/mode/runtime/mode.py diff <a> <b>    # compare two modes
python3 .agents/skills/mode/runtime/mode.py active          # print just the active name

Built-in templates

Shipped in <rockie>/project-harness/skills/mode/templates/. The installer copies them into .rockie/taste/modes/ on first run if that directory doesn't exist yet.

Template When
default No overrides — central corpus is canonical
paper-crunch Deadline-locked: scope_lock, formal register, smoke gates, Opus on attack/review
exploratory No scope lock, broad reading window, sonnet-first, register=lab-notebook
dogfooding Harness self-modification or first-run testing — tight budgets, fast cycles
learning Educational sessions: register=teaching, gates relaxed, Opus on explanations

Schema (every field optional)

name = "<slug>"
description = "<one sentence>"

[hardware]
hardware_type = "H100" | "A100" | "H200"
spot_only = true
on_demand_allowed = false
gpu_budget_dollars_per_session = 50

[reading]
focus_arxiv_categories = ["cs.LG"]
exclude_categories = ["q-bio.NC"]
recency_window_months = 6
prefer_venues = ["NeurIPS", "ICML"]

[methodology]
success_criteria_override = "<prose>"
required_ablations = ["param-matched-flat"]
allow_negative_result = true

[risk]
sanity_check_above_dollars = 10
session_max_dollars = 80
require_smoke_before_real_run = true

[output]
register = "formal-paper" | "lab-notebook" | "teaching" | "code-comment"
default_target = "<paper / blog / tinker>"

[workflow]
scope_lock = true
require_clean_before_commit = true
require_audit_subagent_before_train = true
prefer_opus_for = ["attack", "novelty-check"]
prefer_sonnet_for = ["fix-list", "research-collation"]

[dismissals]
active_categories = ["ml-architectural"]   # which DISMISSALS.md tags
                                            # are load-bearing this mode

[deadline]
target_date = "YYYY-MM-DD"
scope_lock = true

Read the full file on GitHub · 145 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 5d ago First seen · 145 lines · 118 tokens per session scan A 2a718f0aa58f

Subscribe to this mod's changes

mode is a skill published in the GitHub repository Rockielab/rockie-codex (20 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 118 tokens to every session and 1,400 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to mode, differing in 16 lines, and is treated as a copy.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

chronicle

Analyze Copilot session history for standup reports, usage tips, session search, and session reindexing. Use when the user asks for a standup, daily summary, usage tips, workflow recommendations, wants to search or find past sessions by keyword/file/PR, wants to reindex their session store, or asks about deleting…

microsoft/vscode · 72 tokens

imagegen

Generate or edit raster images when the task benefits from AI-created bitmap visuals such as photos, illustrations, textures, sprites, mockups, or transparent-background cutouts. Use when Codex should create a brand-new image, transform an existing image, or derive visual variants from references, and the output…

openai/codex · 113 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens