Skip to content

fix(agents): write custom agents to loader paths#335

Open
OnlyYu1996 wants to merge 1 commit into
CortexLM:mainfrom
OnlyYu1996:fix-agent-creation-discoverability
Open

fix(agents): write custom agents to loader paths#335
OnlyYu1996 wants to merge 1 commit into
CortexLM:mainfrom
OnlyYu1996:fix-agent-creation-discoverability

Conversation

@OnlyYu1996
Copy link
Copy Markdown

Fixes PlatformNetwork/bounty-challenge#53529.
Fixes PlatformNetwork/bounty-challenge#53528.

Summary

  • Make the engine CreateAgent tool write standard Markdown custom-agent files under .cortex/agents instead of orphaned TOML files.
  • Make app-server agent create/import write to .cortex/agents / ~/.cortex/agents, matching the standard loader paths.
  • Keep .factory/agents as a legacy read/update/delete fallback so existing app-server-created agents are still discoverable.
  • Add regression coverage for standard app-server paths, Markdown parsing, and engine-created files loading through the standard custom-agent loader.

Validation

  • cargo +1.90.0 fmt --package cortex-engine --package cortex-app-server --check
  • git diff --check

Targeted cargo +1.90.0 test -p cortex-engine test_create_agent_project_location -- --nocapture is blocked in this Windows/MSVC environment before crate tests run by the existing aws-lc-sys C build failure.

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

1 participant