Repository navigation
Expand file tree
/
Copy pathcurrent-session-skill-loader.html
More file actions
143 lines (136 loc) · 9.72 KB
/
Copy pathcurrent-session-skill-loader.html
File metadata and controls
143 lines (136 loc) · 9.72 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Codex direct native skill loader - agent-skill-groups</title>
<meta name="description" content="Update Codex native skill metadata live with codex-activate --direct, codex-clear, and context-mode controls for GitHub skill-group and GitHub agent-skill-group workflows.">
<meta name="keywords" content="Codex direct native skill loader, codex-activate --direct, codex-clear, skills/extraRoots, current-session skill loader, current conversation skill loader, GitHub skill-group loader, GitHub agent-skill-group loader, agent-skill-groups session-load, agent-skill-groups session-unload">
<meta name="robots" content="index, follow">
<meta property="og:type" content="article">
<meta property="og:title" content="Codex direct native skill loader - agent-skill-groups">
<meta property="og:description" content="Use codex-activate --direct and codex-clear to update Codex skills/extraRoots live, with native-only, summary, or full context output.">
<meta property="og:url" content="https://go165.github.io/agent-skill-groups/current-session-skill-loader.html">
<link rel="canonical" href="https://go165.github.io/agent-skill-groups/current-session-skill-loader.html">
<style>
body { font-family: system-ui, -apple-system, Segoe UI, sans-serif; line-height: 1.55; max-width: 920px; margin: 48px auto; padding: 0 20px; color: #1f2937; }
h1 { font-size: 2rem; }
code { background: #f3f4f6; padding: 0.12rem 0.25rem; border-radius: 4px; }
pre { background: #0f172a; color: #e5e7eb; overflow-x: auto; padding: 16px; border-radius: 6px; }
pre code { background: transparent; padding: 0; }
table { border-collapse: collapse; width: 100%; margin: 16px 0 28px; }
th, td { border: 1px solid #d1d5db; padding: 8px; text-align: left; vertical-align: top; }
th { background: #f3f4f6; }
a { color: #0969da; }
.hero { border-bottom: 1px solid #e5e7eb; padding-bottom: 20px; margin-bottom: 24px; }
</style>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@graph": [
{
"@type": "TechArticle",
"@id": "https://go165.github.io/agent-skill-groups/current-session-skill-loader.html#article",
"headline": "Codex direct native skill loader for Agent Skills",
"description": "How agent-skill-groups uses codex-activate --direct, codex-clear, skills/extraRoots, and context-mode output to manage GitHub skill-group visibility in Codex.",
"url": "https://go165.github.io/agent-skill-groups/current-session-skill-loader.html",
"about": [
"current-session skill loader",
"GitHub skill-group loader",
"GitHub agent-skill-group loader",
"Codex direct native skill loader",
"codex-activate --direct",
"codex-clear",
"skills/extraRoots",
"agent-skill-groups session-load",
"agent-skill-groups session-unload",
"OpenAI Codex",
"Claude Code",
"OpenCode"
],
"isPartOf": {"@type": "WebSite", "name": "agent-skill-groups", "url": "https://go165.github.io/agent-skill-groups/"}
},
{
"@type": "FAQPage",
"@id": "https://go165.github.io/agent-skill-groups/current-session-skill-loader.html#faq",
"mainEntity": [
{
"@type": "Question",
"name": "Can agent-skill-groups update Codex native skill scanning live?",
"acceptedAnswer": {
"@type": "Answer",
"text": "Yes, where Codex exposes app-server skills/extraRoots. codex-activate --direct builds a direct extra root for the selected group, sends it to Codex app-server, calls skills/list forceReload, and supports native-only, summary, or full context output."
}
},
{
"@type": "Question",
"name": "How do you unload a Codex direct skill group?",
"acceptedAnswer": {
"@type": "Answer",
"text": "Run codex-clear. It sends an empty skills/extraRoots list to Codex app-server, calls skills/list forceReload, and can print a current-session unload pack for the named group."
}
},
{
"@type": "Question",
"name": "Does current-session loading move skill directories?",
"acceptedAnswer": {
"@type": "Answer",
"text": "No. session-load and session-unload do not move directories. Use profile only when native runtime discovery should change after a reload, rescan, or new session."
}
}
]
}
]
}
</script>
</head>
<body>
<main>
<section class="hero">
<h1>Codex direct native skill loader</h1>
<p><strong>Current-session skill group loader for Codex, Claude Code, OpenCode, and generic Agent Skills.</strong></p>
<p><strong>Load a GitHub skill-group or GitHub agent-skill-group into an already-running Codex conversation without moving skill directories.</strong></p>
<p><a href="https://github.com/go165/agent-skill-groups">agent-skill-groups</a> uses <code>codex-activate --direct</code> to update Codex app-server <code>skills/extraRoots</code> live and calls <code>skills/list forceReload</code>. Use <code>--context-mode native-only</code> to rely on Codex progressive disclosure, <code>summary</code> for lightweight current-thread awareness, or <code>full</code> when the current conversation needs complete skill bodies.</p>
<p>This is also the current-session skill group loader for Claude Code, OpenCode, and generic Agent Skills through the portable <code>session-load</code> and <code>session-unload</code> fallback.</p>
</section>
<h2>Use It When</h2>
<ul>
<li>A Codex, Claude Code, OpenCode, or generic Agent Skills conversation is already running.</li>
<li>The task needs a specialized group such as <code>research</code>, <code>frontend-browser</code>, <code>ctf-web</code>, or <code>academic-optics</code>.</li>
<li>You want the group now, without waiting for a new session or manual runtime rescan.</li>
</ul>
<h2>Codex Direct Commands</h2>
<pre><code>agent-skill-groups codex-activate --config groups.json --runtime codex --direct --context-mode native-only ctf-web
agent-skill-groups codex-clear --config groups.json --runtime codex ctf-web</code></pre>
<p>PowerShell users can call the same Codex direct native loader through the compatibility script:</p>
<pre><code>powershell -ExecutionPolicy Bypass -File "$HOME\.codex\scripts\agent-skill-groups.ps1" -Action codex-activate -Direct -ContextMode native-only -Group ctf-web
powershell -ExecutionPolicy Bypass -File "$HOME\.codex\scripts\agent-skill-groups.ps1" -Action codex-clear -Group ctf-web</code></pre>
<p>For runtimes without the Codex app-server path, use the portable current-session pack:</p>
<pre><code>agent-skill-groups session-load --config groups.json --runtime codex ctf-web
agent-skill-groups session-load --config groups.json --runtime codex --context-mode summary ctf-web
agent-skill-groups session-unload --config groups.json --runtime codex ctf-web</code></pre>
<h2>Two Loading Layers</h2>
<table>
<thead><tr><th>Command</th><th>Effect</th><th>Use when</th></tr></thead>
<tbody>
<tr><td><code>codex-activate --direct</code></td><td>Builds a direct extra root, sends it through Codex <code>skills/extraRoots</code>, calls <code>skills/list forceReload</code>, and emits native-only, summary, or full context output.</td><td>Codex should see the selected group through native metadata immediately, without moving directories.</td></tr>
<tr><td><code>codex-clear</code></td><td>Sends an empty <code>skills/extraRoots</code> list, calls <code>skills/list forceReload</code>, and can print a current-session unload pack.</td><td>The scenario task is finished and direct extra roots should be cleared live.</td></tr>
<tr><td><code>session-load</code></td><td>Prints a current-conversation context pack or metadata summary from active roots or the disabled pool.</td><td>The current conversation needs group awareness or full instructions immediately.</td></tr>
<tr><td><code>session-unload</code></td><td>Prints stop instructions for the current conversation.</td><td>The scenario task is finished and future replies should return to core behavior.</td></tr>
<tr><td><code>profile</code></td><td>Moves skill directories between active and disabled roots.</td><td>The runtime's native skill list should change after reload, rescan, or a new session.</td></tr>
</tbody>
</table>
<h2>What It Proves</h2>
<p>The quickstart and real-world test plan run <code>session-load</code> and <code>session-unload</code> against sample <code>SKILL.md</code> directories. The Codex live path is tested separately with <code>codex-activate --direct --context-mode native-only</code>, <code>codex-clear</code>, <code>skills/extraRoots</code>, and <code>skills/list forceReload</code>. User-space tooling still cannot erase text already sent to the model, so use <code>summary</code> or <code>full</code> only when the current conversation needs emitted context beyond native skill discovery.</p>
<h2>Related Links</h2>
<ul>
<li><a href="quickstart.html">Quickstart demo</a></li>
<li><a href="github-skill-group-manager.html">GitHub skill-group manager</a></li>
<li><a href="github-agent-skill-group-manager.html">GitHub agent-skill-group manager</a></li>
<li><a href="concepts.html">Skill group vs MCP vs plugin</a></li>
<li><a href="comparison.html">Agent Skills manager comparison</a></li>
<li><a href="visibility-status.html">Visibility status</a></li>
</ul>
</main>
</body>
</html>