Skip to content

feat: add project-local DeepAgents skills#8

Merged
hzhaoy merged 1 commit into
mainfrom
codex/add-deepagents-skills
Jun 1, 2026
Merged

feat: add project-local DeepAgents skills#8
hzhaoy merged 1 commit into
mainfrom
codex/add-deepagents-skills

Conversation

@hzhaoy

@hzhaoy hzhaoy commented Jun 1, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add DeepAgents-native skills support for filesystem-backed sessions.
  • Resolve explicit --skills-dir values or default to <codebase_dir>/.agents/skills.
  • Keep state backend unsupported for local skill directories and split TUI assistant bubbles at tool boundaries.

Validation

  • uv run pytest tests/

Notes

  • Upgrades deepagents to >=0.6.7 so the native skills parameter is available.
  • Local skills are intentionally limited to the filesystem backend in this first pass.

Load DeepAgents-native skills from the project-local .agents/skills directory for filesystem-backed sessions, while allowing explicit --skills-dir sources to override auto-discovery.

Reject local skills on the state backend to avoid unsupported state-backed file loading. Split TUI assistant bubbles at tool boundaries so skill-loading tool calls do not make later output append to pre-tool text.

Constraint: DeepAgents skills support requires deepagents>=0.6.7

Constraint: Local skill directories are only supported with filesystem backend

Rejected: Implement a custom SKILL.md loader | duplicates DeepAgents native middleware

Rejected: Load .deepagents/skills by default | user requested only .agents/skills

Confidence: high

Scope-risk: moderate

Tested: uv run pytest tests/

Co-authored-by: OmX <omx@oh-my-codex.dev>
@hzhaoy hzhaoy marked this pull request as ready for review June 1, 2026 11:47
@hzhaoy hzhaoy merged commit 9f7bd70 into main Jun 1, 2026
1 check passed

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ca46ea88a1

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

from deep_code_agent.models.llms.langchain_chat import create_chat_model

load_dotenv()
skills = _resolve_skills(args, codebase_dir)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Gate auto-discovered skills on filesystem backend

When the default backend remains state and the selected codebase already contains .agents/skills, this resolves a non-empty skills list and passes it into create_code_agent, which immediately raises ValueError("Skills require filesystem backend"). That makes otherwise normal state-backend CLI/TUI startup fail merely because the project has a skills directory; only explicit --skills-dir on the state backend should be rejected, or auto-discovery should be skipped unless args.backend_type == "filesystem".

Useful? React with 👍 / 👎.

Comment on lines +60 to +61
self._streaming_chunks.clear()
self._streaming_bubble = None

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve split bubbles after message completion

After a tool boundary this clears only the bridge's current segment, but StreamHandler still accumulates all message chunks for the turn and later emits MESSAGE_COMPLETE with the full combined text. In a response like Before → tool → After, the final complete event updates the post-tool bubble to BeforeAfter, duplicating the pre-tool text and undoing the intended split at tool boundaries.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant