[codex] Add thread-scoped DTM sessions#2
Open
philbudden wants to merge 1 commit into
Open
Conversation
There was a problem hiding this comment.
Pull request overview
Adds a new Codex skill ($dtm) that starts a persistent, thread-scoped Digital TeamMate session and updates the framework contracts + packaging so the skill is shipped in installed vaults and included in publication exports.
Changes:
- Introduces
framework/skills/dtmwith explicit-only invocation metadata and session lifecycle instructions ($dtm/$end-dtm). - Updates installer, publication manifest, and CI to include the new
skills/directory and assert it is installed. - Extends framework contracts (
AGENTS.md,DTM.md) and adds a regression test verifying the skill is explicit + thread-scoped.
Reviewed changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| tests/test_framework.py | Adds a packaging regression test asserting explicit invocation and thread scoping. |
| install.py | Installs framework/skills into the target vault under skills/. |
| framework/skills/dtm/SKILL.md | Defines the $dtm skill behavior and thread-scoped session lifecycle. |
| framework/skills/dtm/agents/openai.yaml | Declares agent metadata and disables implicit invocation. |
| framework/publication-manifest.json | Includes skills/ in the sanitized framework export allowlist. |
| framework/DTM.md | Documents thread-scoped DTM session behavior and initialization requirements. |
| framework/AGENTS.md | Adds role-routing contract for $dtm and $end-dtm. |
| docs/installation.md | Documents how to make the $dtm skill discoverable by Codex. |
| .github/workflows/validate.yml | Adds an assertion that the installed vault contains the skill. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+34
to
+40
| The vault installer keeps the canonical skill under `skills/dtm`. To make | ||
| `$dtm` discoverable by Codex, copy it into the user's Codex skills directory: | ||
|
|
||
| ```sh | ||
| mkdir -p "${CODEX_HOME:-$HOME/.codex}/skills" | ||
| cp -R framework/skills/dtm "${CODEX_HOME:-$HOME/.codex}/skills/" | ||
| ``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
Adds a versioned
$dtmCodex skill and corresponding SecondBrain role-routing contract. Invoking$dtminitializes today's operational context and keeps subsequent turns in the same thread under the Digital TeamMate role until$end-dtmor an explicit permanent role switch.The public installer now preserves the canonical skill inside the vault, while installation documentation explains how to copy it into the user's Codex skills directory for discovery.
Behaviour
Validation