jcode icon indicating copy to clipboard operation
jcode copied to clipboard

[Feature Request]: Ability to create and import agents

Open HamzaHeikal2011 opened this issue 5 months ago • 2 comments

In my previous claude code configuration (which i've used Jcode to completely import and redefine in order to fit this harness), i had many agents which I sometimes use Claude Code for. It would be phenomenal if Jcode had support to Claude Code's AGENT.md architecture and had complete support for Claude Code-like too, which wouldn't only allow for more productive workflows, but also allow for non-jcode users to finally make the full switch

HamzaHeikal2011 avatar Jun 23 '26 18:06 HamzaHeikal2011

Deep triage — current state vs the ask.

What jcode already has: a subagent/task tool (crates/jcode-app-core/src/tool/task.rs) that spawns child sessions. Its subagent_type field is a free-form string (task.rs:101, schema just {"type":"string"}) — there is no registry of named, user-defined agents with their own system prompt, tool allowlist, or model. jcode also loads project/global AGENTS.md (single instruction file, not per-agent) and has a YAML-frontmatter parser for skills (crates/jcode-base/src/skill.rs) — but nothing that reads .claude/agents/*.md-style per-agent definitions.

The gap: Claude Code defines subagents as individual markdown files with frontmatter (name, description, tools, model) plus a body system prompt. jcode has no equivalent loader, no discovery dir (e.g. ~/.jcode/agents/ or .jcode/agents/), and subagent_type isn't bound to any such definition.

Effort: medium. The skill loader (frontmatter parse + discovery) is a strong template to reuse. Scope: (1) define an agent-definition schema, (2) discover/load from a dir, (3) bind subagent_type to a loaded agent so the task tool applies its prompt/tools/model, (4) optional importer for .claude/agents/*.md.

Design decisions needed (why autonomous: no): directory location + precedence (project vs global), schema (mirror Claude Code's exactly for import compatibility?), how per-agent tool allowlists map to jcode's tool registry, and whether to gate agents to slash-commands and/or the subagent_type field. Keeping it as enhancement / needs-decision.

1jehuang avatar Jun 24 '26 21:06 1jehuang

Btw: This issue was created to focus more on plugin compatibility. If possible, the ability to import both skills and plugins from claude code with full functionality (workflows, agents, marketplaces, etc) would be the cherry on top. Plugins like karpathy-guidelines, superpowers and more would be really beneficial with the faster Jcode harness, but up until now I couldn't bring myself to using it due to the incompatibility

HamzaHeikal2011 avatar Jun 29 '26 09:06 HamzaHeikal2011