[FEATURE]: support for .ts agent files #6718

Open
opened 2026-02-16 18:05:02 -05:00 by yindo · 2 comments
Owner

Originally created by @m10rten on GitHub (Jan 18, 2026).

Originally assigned to: @thdxr on GitHub.

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

Hi,

Since the start of AI agents, markdown has taken the lead.

But how useful would it be if we could define agent files in typescript.

This would allow to make custom agents with behaviour hard to nail with md, such as A2A contracts with zod.

Personally would really like to see this support being added.

Originally created by @m10rten on GitHub (Jan 18, 2026). Originally assigned to: @thdxr on GitHub. ### Feature hasn't been suggested before. - [x] I have verified this feature I'm about to request hasn't been suggested before. ### Describe the enhancement you want to request Hi, Since the start of AI agents, markdown has taken the lead. But how useful would it be if we could define agent files in typescript. This would allow to make custom agents with behaviour hard to nail with md, such as A2A contracts with zod. Personally would really like to see this support being added.
yindo added the discussion label 2026-02-16 18:05:02 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 18, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #3195: Dynamic system prompts for custom agents - discusses enabling programmatic/TypeScript-based customization of agent behavior beyond markdown
  • #7101: Allow custom system prompts in global, project or custom directories - related feature request for extending agent customization capabilities

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Jan 18, 2026): This issue might be a duplicate of existing issues. Please check: - #3195: Dynamic system prompts for custom agents - discusses enabling programmatic/TypeScript-based customization of agent behavior beyond markdown - #7101: Allow custom system prompts in global, project or custom directories - related feature request for extending agent customization capabilities Feel free to ignore if none of these address your specific case.
Author
Owner

@m10rten commented on GitHub (Jan 18, 2026):

Dynamic system prompt started similar, but got drawn to md bash exection.

So not really same.

@m10rten commented on GitHub (Jan 18, 2026): Dynamic system prompt started similar, but got drawn to md bash exection. So not really same.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#6718