oneworks-cli-print-mode

A guide to One Works CLI print mode, which sends task output to a terminal or script, including text and JSON formats. It also explains how input, permission decisions, and resumed sessions work.

In plain words
What is it for?
Use it to run tasks from the command line, process structured event output, submit permission choices through standard input, resume sessions, or stop stuck sessions.
Why use it?
It clarifies how to automate One Works tasks and respond when a task pauses for permission or needs to continue later.

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/oneworks-ai/app/oneworks-cli-print-mode
Any agent
npx skills add oneworks-ai/app --skill oneworks-cli-print-mode
Clone the repo
git clone --depth 1 https://github.com/oneworks-ai/app

Made for: Claude Code, Codex.

Per session 27 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 478 The whole file, excluding the scripts and references it only reads on demand.
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.00027 $0.00478
Opus 5 $0.00014 $0.00239
Sonnet 5 $0.00005 $0.00096
Haiku 4.5 $0.00003 $0.00048

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

Security

Grade A, and why

oneworks-cli-print-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 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.

packages/plugins/cli-skills/skills/oneworks-cli-print-mode/SKILL.md · 46 lines

What it actually says

在需要解释 oneworks --print--input-format、权限确认或继续会话时使用这个 skill。

Print 模式

  • oneworks --print "任务描述":把事件和最终输出直接打印到终端。
  • --output-format text:默认文本模式,适合直接阅读。
  • --output-format stream-json:逐条输出结构化事件,适合脚本消费。
  • --output-format json:任务结束时输出 JSON。

stdin 控制

  • --input-format text:从 stdin 读取一行纯文本作为输入。
  • --input-format json:从 stdin 读取一个 JSON 对象。
  • --input-format stream-json:按行读取 JSON 事件,适合长连接控制。

权限与继续会话

  • 当 print 模式遇到 interaction_request 且没有可用 stdin 控制时,CLI 会打印请求并终止任务。
  • 恢复时可用:oneworks --resume <sessionId> --print --input-format stream-json
  • 如果只是想改下一次恢复的权限模式,可用:oneworks --resume <sessionId> --permission-mode bypassPermissions
  • 等价短写:oneworks --resume <sessionId> --yolo
  • 对权限请求提交输入的示例:
{ "type": "submit_input", "data": "allow_once" }
  • 常见 decision:
    • allow_once
    • allow_session
    • allow_project
    • deny_once
    • deny_session
    • deny_project

排查顺序

  1. 先执行 oneworks list --view full 找到 session id。
  2. 再用 oneworks --resume <sessionId>oneworks --resume <sessionId> --print --input-format stream-json 继续。
  3. 如果只是想停掉卡住的会话,用 oneworks stop <sessionId>oneworks kill <sessionId>
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 · 46 lines · 27 tokens per session scan A 246c2004eb8a

Subscribe to this mod's changes

oneworks-cli-print-mode is a skill published in the GitHub repository oneworks-ai/app (18 stars, last pushed 2d ago), licensed MIT. It adds 27 tokens to every session and 478 once invoked, about $0.0001 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.

Related

Other skills, from other repositories

mermaid-visualizer

Transform text content into professional Mermaid diagrams for presentations and documentation. Use when users ask to visualize concepts, create flowcharts, or make diagrams from text. Supports process flows, system architectures, comparisons, mindmaps, and more with built-in syntax error prevention.

breferrari/obsidian-mind · 57 tokens

spec-kitty-charter-doctrine

Run charter interview, generation, context, and sync workflows for project governance in Spec Kitty 3.x. Access doctrine artifacts programmatically via DoctrineService. Resolve agent profiles. Load action-scoped governance context iteratively, not all at once. Triggers: "interview for charter", "generate charter"…

Priivacy-ai/spec-kitty · 135 tokens

gcloud-usage

This skill should be used when user asks about "GCloud logs", "Cloud Logging queries", "Google Cloud metrics", "GCP observability", "trace analysis", or "debugging production issues on GCP".

fcakyon/claude-codex-settings · 49 tokens

spk-team-auth

Handle Spec Kitty team authentication, hosted credentials, account selection, and auth-related recovery.

Priivacy-ai/spec-kitty · 22 tokens

setup

This skill should be used when user encounters "Azure MCP error", "Azure authentication failed", "az login required", "Azure CLI not found", or needs help configuring Azure MCP integration.

fcakyon/claude-codex-settings · 39 tokens

neo4j-cypher-skill

Generates, optimizes, and validates Cypher 25 queries for Neo4j 2025.x and 2026.x. Use when writing new Cypher queries, optimizing slow queries, graph pattern matching, vector or fulltext search, subqueries, or batch writes. Covers MATCH, MERGE, CREATE, WITH, RETURN, CALL, UNWIND, FOREACH, LOAD CSV, SEARCH…

neo4j-contrib/neo4j-skills · 137 tokens