一键导入
twicc-project
Show details of a single project by directory path or ID. Use when you or the user want to inspect a project's metadata, cost, or directory.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Show details of a single project by directory path or ID. Use when you or the user want to inspect a project's metadata, cost, or directory.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Create a new TwiCC session with a prompt and optional agent settings (provider, model, effort, permission mode, etc.). Use when you or the user want to spawn a fresh Claude Code/Codex session, kick off a sub-task in another project, or scaffold from a script.
Update an existing TwiCC session — change settings, title, annotations, archive/unarchive, pin/unpin, hide/unhide. Use when you or the user want to change a session without sending a message.
Read-only inspection of TwiCC — version, providers (and enabled state), slash/dollar commands, supported models, agent-settings choices/constraints, and presets — any subset composed into one JSON. Use when you or the user need a machine-readable picture of what's available before scripting a session, picking a preset/model, or filtering commands.
Update an existing TwiCC project — rename, change color, archive/unarchive, set its default provider, worktree directory or saved browser URLs, or edit per-provider agent-settings defaults. The directory is immutable; projects are archived, never deleted.
Apply the same update to several TwiCC sessions — archive/unarchive, pin/unpin, hide/unhide, annotations, or settings. Use when you or the user want to change many sessions in one call (e.g. hide a whole batch, tag every worker in an orchestration, or bump model/effort of all your children).
Create a new TwiCC workspace — a group of projects, optionally with a color, auto-add directory patterns, an initial project list, and a browser URL. Use when you or the user want to create a workspace.
| name | twicc-project |
| description | Show details of a single project by directory path or ID. Use when you or the user want to inspect a project's metadata, cost, or directory. |
| argument-hint | <project_path_or_id> |
Show the details of a single project. Accepts a directory path or a project ID.
$TWICC projects or $TWICC sessions output) and want its metadata — prefer paths in all other cases.Prefer the mcp__twicc__* tools when you have them. Inside a TwiCC session your tool list may include mcp__twicc__* tools — one per command below (the command with / and - turned into _, e.g. mcp__twicc__create_session, mcp__twicc__update_session_settings). When present, use them instead of the $TWICC CLI: same arguments, same JSON result, no shell, and your session identity travels with the call so self/parent resolve on their own. Fall back to the $TWICC CLI below when those tools aren't available (outside a session, or when scripting from a terminal).
TwiCC's executable varies by launch mode (uvx, dev, installed tool). ALWAYS USE THIS TO RESOLVE $TWICC AT THE START OF EACH BASH INVOCATION:
TWICC=${TWICC_BIN:-$(command -v twicc 2>/dev/null)}
[ -n "$TWICC" ] || { echo "TwiCC executable not found in this context" >&2; exit 1; }
Then run $TWICC <args> — never quote $TWICC (use $TWICC args, never "$TWICC" args): it may expand to multiple words, which quoting would break.
$TWICC project <PROJECT>
PROJECT — directory path (absolute or relative) or project ID. Drop the leading dash on ids — the CLI re-adds it. Prefer paths.{
"id": "-home-twidi-dev-myproject-abc123",
"directory": "/home/twidi/dev/myproject",
"git_root": "/home/twidi/dev/myproject",
"sessions_count": 42,
"mtime": 1741654800.0,
"stale": false,
"name": "My Project",
"color": "#4a90d9",
"archived": false,
"total_cost": 12.345678,
"worktree_of": null,
"worktree_directory": null,
"trust": null,
"trust_propagation": false,
"default_provider": null,
"default_agent_settings": {"claude_code": {"permission_mode": "acceptEdits", "effort": "high"}},
"workspaces": ["backend", "home-side-projects"],
"worktrees": ["-home-twidi-dev-myproject--worktrees-feature-x"]
}
id — derived from the directory path (non-alphanumeric chars replaced by dashes).stale — true if the project folder no longer exists on disk.name — may be null.color — may be null.total_cost — total cost in USD across all sessions (may be null).worktree_of — when this project is a git worktree, the project id of its main repository; null otherwise.worktree_directory — absolute base directory under which new git worktrees of this project are created from the UI; null = use the global default (composed against the git root). Editable via $TWICC update-project <PROJECT> --worktree-directory PATH.worktrees — the project ids of this project's own git worktrees (the reverse of worktree_of); empty when it has none. A worktree's sessions, cost and activity count toward its main repository.trust — the project's own trust decision: true = trusted, false = untrusted, null = no own decision (inherits from its parent directory / git root). Read-only here, and human-only to change — agents never set trust. A session created in an untrusted (or null / undecided) project runs under a restricted permission set (bypassPermissions / yolo unavailable).trust_propagation — whether an explicit trust decision also covers the project's sub-paths and its git worktrees.default_provider — provider a NEW session in this project defaults to; null = inherit from the parent chain (worktree main repo / path ancestors), ultimately the global default. Editable via $TWICC update-project <PROJECT> --default-provider X.default_agent_settings — per-provider agent-settings defaults that seed NEW sessions created here ({"<provider>": {"<field>": value}} or null); a missing field inherits from the parent chain, then the global default. Includes the optional permission_mode_if_untrusted key (the permission mode seeded instead of permission_mode when the project resolves untrusted). Creation-time only: changing these never affects existing sessions. Editable via $TWICC update-project <PROJECT> settings.workspaces — workspace IDs this project belongs to (empty if none).$TWICC project .
$TWICC project /home/twidi/dev/myproject
$TWICC project 'home-twidi-dev-myproject-abc123' # by id, dash dropped
$TWICC projects — list all projects. Skill: twicc-projects.$TWICC update-project <PROJECT> — rename, recolor, archive/unarchive. Skill: twicc-update-project.$TWICC create-project <DIRECTORY> — create a new project. Skill: twicc-create-project.$TWICC sessions --project <PROJECT> — list sessions for this project. Skill: twicc-sessions.$TWICC workspace <ID> — inspect a workspace from the workspaces field. Skill: twicc-workspace.$TWICC search "project_id:<id> AND <query>" — search within this project. Skill: twicc-search.[link text](/project/{project_id}).