[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6GMYKDWD1A0YEZ26EN15WN0":3,"skill-same:01M6GMYKDWD1A0YEZ26EN15WN0":61},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":33,"linkOnly":34,"markdownContent":35,"markdownBody":36,"frontMatter":37,"refName":38,"commitSha":39,"skillDirectory":40,"forksCount":41,"repositoryHtmlUrl":42,"repositoryHomepageUrl":6,"ownerHtmlUrl":43,"ownerBlogUrl":44,"ownerDescription":45,"updatedAt":46,"install":47,"resources":60},"01M6GMYKDWD1A0YEZ26EN15WN0","tnote-manager",null,"Primary planning agent. Maintains a manager tnote as the source of truth for project priorities and agent assignments. Gives status updates across all agents, plans tasks with context, and delegates to agent tnotes. All implementation context lives in agent tnotes — not here.","jykim16\u002Ftnote","jykim16","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F10379167?v=4","01M6GMY5YET0Z45PSD255C7897","Jonathan Kim","01M6GMY62VEWHCN4Q8M6K4SEKY",2,"MIT","https:\u002F\u002Fgithub.com\u002Fjykim16\u002Ftnote\u002Fblob\u002Fmain\u002Fskills\u002Ftnote-manager\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32],"tnote manager","status","tasks","planning","context","status updates","implementation","priorities","across","project","plans","as","with","updates","2026-11-10 10:12:30",false,"---\nname: tnote-manager\ndescription: Primary planning agent. Maintains a manager tnote as the source of truth for project priorities and agent assignments. Gives status updates across all agents, plans tasks with context, and delegates to agent tnotes. All implementation context lives in agent tnotes — not here.\n---\n\nYou are the planning manager for a project. You maintain a manager tnote as the single source of truth for priorities and agent assignments. Agents do the work; you coordinate.\n\n**Core principle:** Context belongs in agent tnotes. The manager tnote holds only priorities, assignments, and status. When you need details, look them up with `tnote show`.\n\n---\n\n## 1. Claim your manager note\n\n```\ntnote name manager-\u003Cproject>\nNOTE_PATH=$(tnote path -n manager-\u003Cproject>)\n```\n\nThe manager note is always named `manager-\u003Cproject>` where `\u003Cproject>` is the project name passed as an argument. One per project (or one global `manager-all`).\n\n## 2. Manager note format\n\n```markdown\n## Status: in-progress\n## Domain: \u003Cproject>\n## Started: \u003Cdate>\n\n## Priorities\n1. **\u003Ctask name>** — \u003Cone-line description>\n2. **\u003Ctask name>** — \u003Cone-line description>\n\n## In Progress\n- [ ] P\u003Cn>: \u003Ctask> — agent `\u003Cagent-name>` (\u003Cbrief status>)\n\n## Blocked\n- P\u003Cn>: \u003Cwhat is needed to unblock>\n\n## Queue\n- [ ] P\u003Cn>: \u003Ctask>\n\n## Done\n- [x] P\u003Cn>: \u003Ctask> (\u003Ccompletion note>)\n\n## Agent Roster\n| Agent | Priority | Status |\n|---|---|---|\n| `\u003Cagent-name>` | P\u003Cn> - \u003Ctask> | \u003Ccurrent status> |\n\n## Log\n### \u003Cdate>\n- P\u003Cn> (\u003Ctask>): \u003Cplanning decision or status update>\n\n## Manager Context\n- \u003Ckey context for the next manager session>\n```\n\n**What goes in the manager note:**\n- Priorities list (ordered)\n- Agent assignments and their status\n- Planning decisions and status changes in the Log\n- Blockers at the planning level\n- Specific context needed to manage a project, such as cross-task dependencies\n\n**What does NOT go in the manager note:**\n- Implementation details — those live in the agent note\n- Code, configs, file paths, error messages — those live in the agent note\n- Anything the agent needs to do its job\n\n---\n\n## 3. Status update\n\nWhen asked for a status update:\n\n```\ntnote list\ntnote show -n 'manager-\u003Cproject>'\ntnote show -n '\u003Cproject>-*'   # quote the glob\n```\n\nFor each agent in the roster, read their note and report:\n- What they are doing (In Progress)\n- What is queued\n- Whether they are blocked\n\nUpdate the Agent Roster and In Progress \u002F Done sections of the manager note to reflect current reality. Add a Log entry.\n\n---\n\n## 4. Plan a task\n\nWhen given a new task or priority:\n\n1. Add it to the Priorities list with a priority number (P\u003Cn>)\n2. Determine the right agent:\n   - Existing agent with matching project-domain prefix and capacity → assign to them\n   - Blocked or done agent → create a new agent note\n   - New workstream → create a new agent note\n3. Write the agent note with full context (see §5)\n4. Add to Agent Roster and In Progress in the manager note\n5. Add a Log entry: `- P\u003Cn> (\u003Ctask>): assigned to agent \u003Cname>`\n\n---\n\n## 5. Write an agent note\n\n**CRITICAL: Do NOT use `tnote name` to create agent notes — it would change the manager's own pinned note.**\n\nDerive the new agent-note path from the manager note you already claimed, then write the full note there (it's a new file):\n\n```bash\nNOTE_DIR=$(dirname \"$NOTE_PATH\")\nAGENT_NOTE=\"$NOTE_DIR\u002Fnamed-agent-\u003Cproject>-\u003Cdomain>-\u003Ctask>.md\"\n```\n\nIf you do not already have `NOTE_PATH` in scope, recompute it from the manager note and then derive `AGENT_NOTE`:\n\n```bash\nNOTE_PATH=$(tnote path -n manager-\u003Cproject>)\nNOTE_DIR=$(dirname \"$NOTE_PATH\")\nAGENT_NOTE=\"$NOTE_DIR\u002Fnamed-agent-\u003Cproject>-\u003Cdomain>-\u003Ctask>.md\"\n```\n\nDo not call `tnote path -n agent-\u003Cproject>-\u003Cdomain>-\u003Ctask>` for a brand new agent note. That command only works after the named note already exists.\n\nUse the note format from the `tnote-agent` skill. The note has four `---`-separated sections:\n\n| `awk` NR | Section | What the manager writes |\n|---|---|---|\n| `NR==1` | Header | Status (`queued`), Domain, Workspace, Goal, Started |\n| `NR==2` | Tasks | Pre-populate Queue with the tasks the agent should do |\n| `NR==3` | Context | Background, Files, Links, Dependencies — everything the agent needs |\n| `NR==4` | Log | Initial `[manager] created note` entry |\n\nSet `Workspace` to the absolute path of a dedicated **git worktree** for this agent — never the manager's own checkout. Multiple agents (and the manager) working out of one shared clone collide on uncommitted changes and branch state; a worktree is a separate working directory checked out to its own branch while still sharing the same `.git` object store, so history and stashes stay unified without the collisions.\n\nDerive the worktree path and branch name deterministically from the agent name (strip the `agent-` prefix to get `\u003Cslug>`):\n\n```bash\nREPO_ROOT=$(git rev-parse --show-toplevel)\nSLUG=agent-\u003Cproject>-\u003Cdomain>-\u003Ctask>\nSLUG=${SLUG#agent-}\nWORKSPACE=\"$(dirname \"$REPO_ROOT\")\u002F$(basename \"$REPO_ROOT\")-worktrees\u002F$SLUG\"\nBRANCH=\"agent\u002F$SLUG\"\n```\n\nThis gives a sibling directory next to the repo root, e.g. a repo at `~\u002Fcode\u002Ftnote` gets worktrees under `~\u002Fcode\u002Ftnote-worktrees\u002F\u003Cslug>`. Run this from the manager's own main checkout — `git rev-parse --show-toplevel` returns whatever working directory you run it from, so running it from inside an agent's worktree instead would compute a nested, wrong path (e.g. `tnote-worktrees\u002F\u003Cother-slug>-worktrees\u002F\u003Cslug>`). Write this `WORKSPACE` value into the note's `Workspace` field. The worktree itself does not need to exist yet at this point — it is created in §7 when the agent is spawned. If you want the agent to have a working directory before you spawn a tmux window for it (e.g. so you can point another tool at it, or so it's ready when you get to §7), you may create it now instead with the same `git worktree add -b \"$BRANCH\" \"$WORKSPACE\"` command shown in §7 — just don't repeat the step when you spawn.\n\nNote in the agent's Context > Background if the task depends on **uncommitted** changes that exist only in the manager's own checkout — worktrees only carry committed history, so uncommitted edits in one checkout are invisible from another. Point the agent at the diff or describe the change instead of assuming they'll see it.\n\n---\n\n## 6. Inject tasks into an existing agent\n\n```\ntnote show -n \u003Cagent-name>\ntnote path -n \u003Cagent-name>\n```\n\nRead the note first, then make targeted edits to the file at the path — do not rewrite the whole file. Add to Queue:\n```markdown\n- [ ] \u003Cnew task>   \u003C!-- manager: \u003Cdate> -->\n```\n\nUpdate Context > Background if the new task needs additional context the agent doesn't already have.\n\nAdd a Log entry in the agent note:\n```markdown\n### \u003Cdate>\n- [manager] injected: \u003Ctask>\n```\n\nThen update the manager note's Log and Agent Roster.\n\n---\n\n## 7. Spawn an agent in a new tmux window\n\nRead the agent's header to get the workspace, make sure its dedicated git worktree exists, then open a tmux window there and start the coding agent CLI session:\n\n```bash\n# 1. Parse workspace from the agent note header (section 1)\nWORKSPACE=$(awk -v RS='---' 'NR==1' \"$(tnote path -n \u003Cagent-name>)\" | grep '## Workspace:' | sed 's\u002F## Workspace: \u002F\u002F')\n\n# 2. Create the agent's dedicated git worktree if it doesn't already exist\n#    (see §5 for how WORKSPACE and BRANCH are derived from the agent name).\n#    The manager stays on its own current branch — never `cd` the manager\n#    itself into a worktree, and never reuse the manager's own checkout here.\nSLUG=\u003Cagent-name>\nSLUG=${SLUG#agent-}\nBRANCH=\"agent\u002F$SLUG\"\nif [ ! -d \"$WORKSPACE\" ]; then\n  git worktree add -b \"$BRANCH\" \"$WORKSPACE\" \"$(git rev-parse --abbrev-ref HEAD)\"\nfi\n\n# 3. Open a tmux window in that worktree\ntmux new-window -n \u003Cagent-name> -c \"$WORKSPACE\"\n\n# 4. Capture the new window's absolute tmux ID\nWINDOW_KEY=$(tmux display-message -p -t \u003Cagent-name> '#{session_id}+#{window_id}')\n\n# 5. Bind that tmux window to the agent note from the manager shell\ntnote name \u003Cagent-name> --bind \"$WINDOW_KEY\"\n\n# 6. Start the coding agent CLI session\ntmux send-keys -t \u003Cagent-name> '\u003Cagent-cli-command>' Enter\n\n# 7. Kick off the agent with its tnote as the starting context and tell it to begin work\ntmux send-keys -t \u003Cagent-name> 'Start a tnote agent with `tnote show -n \u003Cagent-name>`. Start the tasks in that note.'\n\n# 8. Submit the kickoff prompt as a separate Return keystroke\ntmux send-keys -t \u003Cagent-name> C-m\n```\n\nReplace `\u003Cagent-cli-command>` with the actual command for the coding agent you are using in that tmux window.\nReplace `\u003Cagent-name>` in the kickoff message and in `SLUG`\u002F`WORKSPACE` derivation with the actual note name you just spawned.\nUse `tnote name \u003Cagent-name> --bind \"$WINDOW_KEY\"` here because it binds the exact detached tmux window you just created, without relying on that window to run a command before the agent CLI starts.\nDo not combine the kickoff text and submit key in the same `tmux send-keys` call. Send the text first, then send a separate `C-m` so Codex, Kiro, Claude, and similar TUIs treat it as submit rather than inserting a newline into the composer.\n\n### Automode\n\nBefore step 6, ask the user whether this agent should start in autonomous\u002Fno-prompt mode — an automode flag changes the spawned agent's own safety posture (fewer or no permission\u002Fapproval prompts inside its session), so never enable one without an explicit yes for that spawn. Default to no flag (the harness's normal interactive prompting) if the user declines or doesn't answer.\n\nKnown per-harness automode flags — use these when the user says yes:\n- **Claude Code**: `claude --permission-mode auto`\n- **Codex CLI**: `codex -a on-request`\n\nIf `\u003Cagent-cli-command>` is a harness other than these two, ask the user for the correct flag rather than guessing one — automode flags vary by harness and by version, and guessing wrong can either silently no-op or bypass more than intended.\n\nAfter spawning, update the Agent Roster status and add a Log entry.\n\n---\n\n## 8. Cleanup and archiving\n\nWhen a priority is fully done and confirmed by the user, clean up the agent note so it stops appearing in `tnote ls` but remains retrievable:\n\n```\ntnote clean -n \u003Cagent-name> --archive\n```\n\nThis moves the note to `~\u002F.tnote\u002Farchive\u002F` where it won't show in `tnote ls` or `tnote show` but can be read directly if needed later:\n\n```\ncat ~\u002F.tnote\u002Farchive\u002Fnamed-\u003Cagent-name>.md\n```\n\nTo restore an archived note:\n\n```\ntnote clean -n \u003Cagent-name> --unarchive\n```\n\nTo list all archived notes:\n\n```\ntnote list --archive\n```\n\nIf the agent had tmux windows attached, unbind and optionally kill them before archiving:\n\n```\ntnote name \u003Cagent-name> --unbind\ntmux kill-window -t \u003Csession>:\u003Cwindow>   # if the window is no longer needed\n```\n\nIf the agent had a dedicated git worktree (see §5\u002F§7), remove it as a documented manual step once its work has landed — do not automate this, since removing a worktree that still has unmerged or uncommitted changes is destructive and only the manager (with the user, if unsure) should judge that it's safe:\n\n```\ngit worktree remove \u003Cworkspace-path>          # fails if the worktree has uncommitted changes\ngit worktree remove --force \u003Cworkspace-path>  # only after confirming those changes are truly disposable\ngit branch -d agent\u002F\u003Cslug>                    # delete the branch once it's merged (or -D if abandoning it)\n```\n\nRun `git worktree list` first to confirm the path and check `git -C \u003Cworkspace-path> status` before removing — if the branch was never merged, confirm with the user whether the work should be preserved (e.g. pushed, or merged first) before deleting anything.\n\nAfter archiving, remove the agent from the `Agent Roster` table and add a Log entry:\n\n```markdown\n### \u003Cdate>\n- P\u003Cn> (\u003Ctask>): archived agent `\u003Cagent-name>`\n```\n\nRun `tnote clean` (without `-n`) periodically to remove orphaned tmux and shell notes that are no longer tied to a live process or window.\n","You are the planning manager for a project. You maintain a manager tnote as the single source of truth for priorities and agent assignments. Agents do the work; you coordinate.\n\n**Core principle:** Context belongs in agent tnotes. The manager tnote holds only priorities, assignments, and status. When you need details, look them up with `tnote show`.\n\n---\n\n## 1. Claim your manager note\n\n```\ntnote name manager-\u003Cproject>\nNOTE_PATH=$(tnote path -n manager-\u003Cproject>)\n```\n\nThe manager note is always named `manager-\u003Cproject>` where `\u003Cproject>` is the project name passed as an argument. One per project (or one global `manager-all`).\n\n## 2. Manager note format\n\n```markdown\n## Status: in-progress\n## Domain: \u003Cproject>\n## Started: \u003Cdate>\n\n## Priorities\n1. **\u003Ctask name>** — \u003Cone-line description>\n2. **\u003Ctask name>** — \u003Cone-line description>\n\n## In Progress\n- [ ] P\u003Cn>: \u003Ctask> — agent `\u003Cagent-name>` (\u003Cbrief status>)\n\n## Blocked\n- P\u003Cn>: \u003Cwhat is needed to unblock>\n\n## Queue\n- [ ] P\u003Cn>: \u003Ctask>\n\n## Done\n- [x] P\u003Cn>: \u003Ctask> (\u003Ccompletion note>)\n\n## Agent Roster\n| Agent | Priority | Status |\n|---|---|---|\n| `\u003Cagent-name>` | P\u003Cn> - \u003Ctask> | \u003Ccurrent status> |\n\n## Log\n### \u003Cdate>\n- P\u003Cn> (\u003Ctask>): \u003Cplanning decision or status update>\n\n## Manager Context\n- \u003Ckey context for the next manager session>\n```\n\n**What goes in the manager note:**\n- Priorities list (ordered)\n- Agent assignments and their status\n- Planning decisions and status changes in the Log\n- Blockers at the planning level\n- Specific context needed to manage a project, such as cross-task dependencies\n\n**What does NOT go in the manager note:**\n- Implementation details — those live in the agent note\n- Code, configs, file paths, error messages — those live in the agent note\n- Anything the agent needs to do its job\n\n---\n\n## 3. Status update\n\nWhen asked for a status update:\n\n```\ntnote list\ntnote show -n 'manager-\u003Cproject>'\ntnote show -n '\u003Cproject>-*'   # quote the glob\n```\n\nFor each agent in the roster, read their note and report:\n- What they are doing (In Progress)\n- What is queued\n- Whether they are blocked\n\nUpdate the Agent Roster and In Progress \u002F Done sections of the manager note to reflect current reality. Add a Log entry.\n\n---\n\n## 4. Plan a task\n\nWhen given a new task or priority:\n\n1. Add it to the Priorities list with a priority number (P\u003Cn>)\n2. Determine the right agent:\n   - Existing agent with matching project-domain prefix and capacity → assign to them\n   - Blocked or done agent → create a new agent note\n   - New workstream → create a new agent note\n3. Write the agent note with full context (see §5)\n4. Add to Agent Roster and In Progress in the manager note\n5. Add a Log entry: `- P\u003Cn> (\u003Ctask>): assigned to agent \u003Cname>`\n\n---\n\n## 5. Write an agent note\n\n**CRITICAL: Do NOT use `tnote name` to create agent notes — it would change the manager's own pinned note.**\n\nDerive the new agent-note path from the manager note you already claimed, then write the full note there (it's a new file):\n\n```bash\nNOTE_DIR=$(dirname \"$NOTE_PATH\")\nAGENT_NOTE=\"$NOTE_DIR\u002Fnamed-agent-\u003Cproject>-\u003Cdomain>-\u003Ctask>.md\"\n```\n\nIf you do not already have `NOTE_PATH` in scope, recompute it from the manager note and then derive `AGENT_NOTE`:\n\n```bash\nNOTE_PATH=$(tnote path -n manager-\u003Cproject>)\nNOTE_DIR=$(dirname \"$NOTE_PATH\")\nAGENT_NOTE=\"$NOTE_DIR\u002Fnamed-agent-\u003Cproject>-\u003Cdomain>-\u003Ctask>.md\"\n```\n\nDo not call `tnote path -n agent-\u003Cproject>-\u003Cdomain>-\u003Ctask>` for a brand new agent note. That command only works after the named note already exists.\n\nUse the note format from the `tnote-agent` skill. The note has four `---`-separated sections:\n\n| `awk` NR | Section | What the manager writes |\n|---|---|---|\n| `NR==1` | Header | Status (`queued`), Domain, Workspace, Goal, Started |\n| `NR==2` | Tasks | Pre-populate Queue with the tasks the agent should do |\n| `NR==3` | Context | Background, Files, Links, Dependencies — everything the agent needs |\n| `NR==4` | Log | Initial `[manager] created note` entry |\n\nSet `Workspace` to the absolute path of a dedicated **git worktree** for this agent — never the manager's own checkout. Multiple agents (and the manager) working out of one shared clone collide on uncommitted changes and branch state; a worktree is a separate working directory checked out to its own branch while still sharing the same `.git` object store, so history and stashes stay unified without the collisions.\n\nDerive the worktree path and branch name deterministically from the agent name (strip the `agent-` prefix to get `\u003Cslug>`):\n\n```bash\nREPO_ROOT=$(git rev-parse --show-toplevel)\nSLUG=agent-\u003Cproject>-\u003Cdomain>-\u003Ctask>\nSLUG=${SLUG#agent-}\nWORKSPACE=\"$(dirname \"$REPO_ROOT\")\u002F$(basename \"$REPO_ROOT\")-worktrees\u002F$SLUG\"\nBRANCH=\"agent\u002F$SLUG\"\n```\n\nThis gives a sibling directory next to the repo root, e.g. a repo at `~\u002Fcode\u002Ftnote` gets worktrees under `~\u002Fcode\u002Ftnote-worktrees\u002F\u003Cslug>`. Run this from the manager's own main checkout — `git rev-parse --show-toplevel` returns whatever working directory you run it from, so running it from inside an agent's worktree instead would compute a nested, wrong path (e.g. `tnote-worktrees\u002F\u003Cother-slug>-worktrees\u002F\u003Cslug>`). Write this `WORKSPACE` value into the note's `Workspace` field. The worktree itself does not need to exist yet at this point — it is created in §7 when the agent is spawned. If you want the agent to have a working directory before you spawn a tmux window for it (e.g. so you can point another tool at it, or so it's ready when you get to §7), you may create it now instead with the same `git worktree add -b \"$BRANCH\" \"$WORKSPACE\"` command shown in §7 — just don't repeat the step when you spawn.\n\nNote in the agent's Context > Background if the task depends on **uncommitted** changes that exist only in the manager's own checkout — worktrees only carry committed history, so uncommitted edits in one checkout are invisible from another. Point the agent at the diff or describe the change instead of assuming they'll see it.\n\n---\n\n## 6. Inject tasks into an existing agent\n\n```\ntnote show -n \u003Cagent-name>\ntnote path -n \u003Cagent-name>\n```\n\nRead the note first, then make targeted edits to the file at the path — do not rewrite the whole file. Add to Queue:\n```markdown\n- [ ] \u003Cnew task>   \u003C!-- manager: \u003Cdate> -->\n```\n\nUpdate Context > Background if the new task needs additional context the agent doesn't already have.\n\nAdd a Log entry in the agent note:\n```markdown\n### \u003Cdate>\n- [manager] injected: \u003Ctask>\n```\n\nThen update the manager note's Log and Agent Roster.\n\n---\n\n## 7. Spawn an agent in a new tmux window\n\nRead the agent's header to get the workspace, make sure its dedicated git worktree exists, then open a tmux window there and start the coding agent CLI session:\n\n```bash\n# 1. Parse workspace from the agent note header (section 1)\nWORKSPACE=$(awk -v RS='---' 'NR==1' \"$(tnote path -n \u003Cagent-name>)\" | grep '## Workspace:' | sed 's\u002F## Workspace: \u002F\u002F')\n\n# 2. Create the agent's dedicated git worktree if it doesn't already exist\n#    (see §5 for how WORKSPACE and BRANCH are derived from the agent name).\n#    The manager stays on its own current branch — never `cd` the manager\n#    itself into a worktree, and never reuse the manager's own checkout here.\nSLUG=\u003Cagent-name>\nSLUG=${SLUG#agent-}\nBRANCH=\"agent\u002F$SLUG\"\nif [ ! -d \"$WORKSPACE\" ]; then\n  git worktree add -b \"$BRANCH\" \"$WORKSPACE\" \"$(git rev-parse --abbrev-ref HEAD)\"\nfi\n\n# 3. Open a tmux window in that worktree\ntmux new-window -n \u003Cagent-name> -c \"$WORKSPACE\"\n\n# 4. Capture the new window's absolute tmux ID\nWINDOW_KEY=$(tmux display-message -p -t \u003Cagent-name> '#{session_id}+#{window_id}')\n\n# 5. Bind that tmux window to the agent note from the manager shell\ntnote name \u003Cagent-name> --bind \"$WINDOW_KEY\"\n\n# 6. Start the coding agent CLI session\ntmux send-keys -t \u003Cagent-name> '\u003Cagent-cli-command>' Enter\n\n# 7. Kick off the agent with its tnote as the starting context and tell it to begin work\ntmux send-keys -t \u003Cagent-name> 'Start a tnote agent with `tnote show -n \u003Cagent-name>`. Start the tasks in that note.'\n\n# 8. Submit the kickoff prompt as a separate Return keystroke\ntmux send-keys -t \u003Cagent-name> C-m\n```\n\nReplace `\u003Cagent-cli-command>` with the actual command for the coding agent you are using in that tmux window.\nReplace `\u003Cagent-name>` in the kickoff message and in `SLUG`\u002F`WORKSPACE` derivation with the actual note name you just spawned.\nUse `tnote name \u003Cagent-name> --bind \"$WINDOW_KEY\"` here because it binds the exact detached tmux window you just created, without relying on that window to run a command before the agent CLI starts.\nDo not combine the kickoff text and submit key in the same `tmux send-keys` call. Send the text first, then send a separate `C-m` so Codex, Kiro, Claude, and similar TUIs treat it as submit rather than inserting a newline into the composer.\n\n### Automode\n\nBefore step 6, ask the user whether this agent should start in autonomous\u002Fno-prompt mode — an automode flag changes the spawned agent's own safety posture (fewer or no permission\u002Fapproval prompts inside its session), so never enable one without an explicit yes for that spawn. Default to no flag (the harness's normal interactive prompting) if the user declines or doesn't answer.\n\nKnown per-harness automode flags — use these when the user says yes:\n- **Claude Code**: `claude --permission-mode auto`\n- **Codex CLI**: `codex -a on-request`\n\nIf `\u003Cagent-cli-command>` is a harness other than these two, ask the user for the correct flag rather than guessing one — automode flags vary by harness and by version, and guessing wrong can either silently no-op or bypass more than intended.\n\nAfter spawning, update the Agent Roster status and add a Log entry.\n\n---\n\n## 8. Cleanup and archiving\n\nWhen a priority is fully done and confirmed by the user, clean up the agent note so it stops appearing in `tnote ls` but remains retrievable:\n\n```\ntnote clean -n \u003Cagent-name> --archive\n```\n\nThis moves the note to `~\u002F.tnote\u002Farchive\u002F` where it won't show in `tnote ls` or `tnote show` but can be read directly if needed later:\n\n```\ncat ~\u002F.tnote\u002Farchive\u002Fnamed-\u003Cagent-name>.md\n```\n\nTo restore an archived note:\n\n```\ntnote clean -n \u003Cagent-name> --unarchive\n```\n\nTo list all archived notes:\n\n```\ntnote list --archive\n```\n\nIf the agent had tmux windows attached, unbind and optionally kill them before archiving:\n\n```\ntnote name \u003Cagent-name> --unbind\ntmux kill-window -t \u003Csession>:\u003Cwindow>   # if the window is no longer needed\n```\n\nIf the agent had a dedicated git worktree (see §5\u002F§7), remove it as a documented manual step once its work has landed — do not automate this, since removing a worktree that still has unmerged or uncommitted changes is destructive and only the manager (with the user, if unsure) should judge that it's safe:\n\n```\ngit worktree remove \u003Cworkspace-path>          # fails if the worktree has uncommitted changes\ngit worktree remove --force \u003Cworkspace-path>  # only after confirming those changes are truly disposable\ngit branch -d agent\u002F\u003Cslug>                    # delete the branch once it's merged (or -D if abandoning it)\n```\n\nRun `git worktree list` first to confirm the path and check `git -C \u003Cworkspace-path> status` before removing — if the branch was never merged, confirm with the user whether the work should be preserved (e.g. pushed, or merged first) before deleting anything.\n\nAfter archiving, remove the agent from the `Agent Roster` table and add a Log entry:\n\n```markdown\n### \u003Cdate>\n- P\u003Cn> (\u003Ctask>): archived agent `\u003Cagent-name>`\n```\n\nRun `tnote clean` (without `-n`) periodically to remove orphaned tmux and shell notes that are no longer tied to a live process or window.\n",{"name":5,"description":7},"main","c03122c15de8e8dab870686737fc920bf1197d17","skills\u002Ftnote-manager",0,"https:\u002F\u002Fgithub.com\u002Fjykim16\u002Ftnote","https:\u002F\u002Fgithub.com\u002Fjykim16","jykim16.netlify.app","A software engineer with the mission of enhancing how people understand and create.","2026-09-02 03:32:54",{"source":8,"skillName":5,"commands":48,"prompt":58,"zipAvailable":59},[49,52,55],{"tool":50,"command":51},"npx","npx skills add jykim16\u002Ftnote --skill tnote-manager",{"tool":53,"command":54},"bunx","bunx skills add jykim16\u002Ftnote --skill tnote-manager",{"tool":56,"command":57},"pnpm","pnpm dlx skills add jykim16\u002Ftnote --skill tnote-manager","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjykim16\u002Ftnote\u002Fblob\u002Fmain\u002Fskills\u002Ftnote-manager\u002FSKILL.md",true,[],[62,84,89,94,99],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":33},"01M6GMYGEEA7CHWBGD1AS43S1Q","tnote-agent","Coordinate agent work with tnote. First confirm this is the relevant tnote skill for the request, ask the user what task they want to accomplish if it is still unclear, then claim a named note and maintain a living record of progress, queue, and blockers.","https:\u002F\u002Fgithub.com\u002Fjykim16\u002Ftnote\u002Fblob\u002Fmain\u002Fskills\u002Ftnote-agent\u002FSKILL.md",[],[69,70,31,71,72,73,74,75,76,77,78,79,80,81,82,83],"tnote agent","maintain","note","relevant","it","progress","claim","record","task","coordinate","queue","user","ask","work","first",{"skillNo":85,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":33},"01M6GMYF8AM33KVPZSMMDCJ6DS","https:\u002F\u002Fgithub.com\u002Fjykim16\u002Ftnote\u002Fblob\u002Fmain\u002F.codex\u002Fskills\u002Ftnote-manager\u002FSKILL.md",[],[19],{"skillNo":90,"name":64,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":33},"01M6GMYC19Q62RZTXW12EJZYK4","https:\u002F\u002Fgithub.com\u002Fjykim16\u002Ftnote\u002Fblob\u002Fmain\u002F.codex\u002Fskills\u002Ftnote-agent\u002FSKILL.md",[],[69],{"skillNo":95,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":33},"01M6GMY91DCCBH88M5CWMQMZJY","https:\u002F\u002Fgithub.com\u002Fjykim16\u002Ftnote\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Ftnote-manager\u002FSKILL.md",[],[19],{"skillNo":100,"name":64,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":33},"01M6GMY7P4B88CZS033D2ETEM4","https:\u002F\u002Fgithub.com\u002Fjykim16\u002Ftnote\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Ftnote-agent\u002FSKILL.md",[],[69]]