Skip to content

Fix CreateAgent output format for custom loader#273

Open
SlaVKsVolks wants to merge 1 commit into
CortexLM:mainfrom
SlaVKsVolks:codex/create-agent-md-output
Open

Fix CreateAgent output format for custom loader#273
SlaVKsVolks wants to merge 1 commit into
CortexLM:mainfrom
SlaVKsVolks:codex/create-agent-md-output

Conversation

@SlaVKsVolks
Copy link
Copy Markdown

Summary

  • change CreateAgent to write custom agents as Markdown files with YAML frontmatter
  • keep generated agents in .cortex/agents while matching the format loaded by CustomAgentLoader
  • add regression coverage proving a newly-created project agent is discoverable by the standard loader

Bounty / Issue

Verification

  • cargo fmt --check --package cortex-engine
  • cargo test -p cortex-engine test_create_agent -- --nocapture
  • cargo check -p cortex-engine
  • cargo build -p cortex-engine
  • git diff --check

Note: cargo clippy -p cortex-engine --all-targets -- -D warnings still fails on pre-existing warnings in cortex-windows-sandbox and unrelated cortex-engine Windows sandbox/config code; this patch does not add those warnings.

Copy link
Copy Markdown

@greptile-apps greptile-apps Bot left a comment

Choose a reason for hiding this comment

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

Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.

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