[codex] Add on-demand high-fidelity skills#974
[codex] Add on-demand high-fidelity skills#974mimeding wants to merge 4 commits intoosaurus-ai:mainfrom
Conversation
|
CI note: |
|
Recovery-plan note: the latest CI shape is This PR also remains aligned with the lightweight activation strategy: installed/discoverable by default, no high-fidelity skill prompt injection unless selected or loaded on demand. |
28fec9e to
a7cb320
Compare
d5b8a68 to
8165269
Compare
Business rationale: On-demand skills are meant to strengthen the Osaurus harness without making every chat heavier by default. This keeps high-fidelity file and workflow skills discoverable and loadable while protecting the user's trust in fast, lightweight startup prompts. Coding rationale: Filter startup skill injection to activation-selected skills and let capabilities_load remain the only path for on-demand session loads. The tests now cover stale all-skill allowlists and loaded on-demand session persistence. The remaining touched-file style fixes are mechanical lint alignment after rebasing onto the stricter osaurus-ai#1015 gate. Co-authored-by: Codex <codex@openai.com>
8165269 to
ad11754
Compare
Business rationale
High-fidelity skills should make Osaurus more useful as a local agent harness without making every chat slower or more expensive by default. This advances the agents, plugins, and file-fidelity pillars by letting users discover business-file and contributor skills on demand, then load them only when the task needs that extra context.
Coding rationale
The activation model stays backward compatible with existing Agent Skills metadata while adding Osaurus-specific discoverability, default-selection, and on-demand fields. Session-loaded skills are persisted in
SessionToolStateStoresocapabilities_loadhas real chat-lifetime effects instead of being a one-shot tool response. Startup injection filters to activation-selected skills, while on-demand skills stay indexed forcapabilities_searchand can still be loaded explicitly. The first-party pack is shipped as portable markdown underskills/first-partywith marketplace metadata, keeping skill content maintainable outside app binaries.What changed
capabilities_loadin session state so they stay available for the chat without becoming globally selected.capabilities_search.skills/first-partywith.claude-plugin/marketplace.jsonimport metadata.Validation
swift build --package-path Packages/OsaurusCore: passed.swift build --package-path Packages/OsaurusCore -c release: passed.swift test --package-path Packages/OsaurusCore: passed, 1445 tests in 194 suites; sandbox integration skipped behind its env var.xcrun swift-format lint --stricton touched Swift files: passed.swiftlint lint --stricton touched Swift files: passed.git diff --check: passed.Packages/OsaurusCLI.Non-scope
Residual risks
opening_bracedisables exist only where SwiftFormat and SwiftLint disagree on multiline condition layout; future lint config cleanup could remove them.Notes
osaurus-ai/osauruswas denied for the authenticated account, so this PR is maintained from themimeding/osaurusfork.