Skip to content

fix: remove binary from sub-agent PR#17

Closed
localai-bot wants to merge 4 commits intomudler:masterfrom
localai-bot:fix/pr16-remove-binary
Closed

fix: remove binary from sub-agent PR#17
localai-bot wants to merge 4 commits intomudler:masterfrom
localai-bot:fix/pr16-remove-binary

Conversation

@localai-bot
Copy link
Contributor

This PR removes the committed binary sub-agent/sub-agent from the sub-agent MCP server PR.

The binary was accidentally committed and should have been in .gitignore or built separately.

This PR cherry-picks all the legitimate code changes from PR #16 (#16) but excludes the binary file.

Files included:

  • sub-agent/README.md
  • sub-agent/go.mod
  • sub-agent/go.sum
  • sub-agent/main.go
  • sub-agent/.gitignore (new - to prevent future binary commits)

Closes #16

- Implements sub_agent_chat tool for synchronous and asynchronous chat completions
- Adds sub_agent_list tool to list active background tasks
- Adds sub_agent_get_result tool to retrieve task results
- Supports TTL-based cleanup for background tasks
- Configurable via environment variables:
  - OPENAI_BASE_URL: Base URL for OpenAI API
  - OPENAI_MODEL: Model to use (default: gpt-4o-mini)
  - OPENAI_API_KEY: API key for authentication
  - SUB_AGENT_TTL: TTL in hours for task results (default: 4)

Signed-off-by: localai-bot <localai-bot@users.noreply.github.com>
require github.com/modelcontextprotocol/go-sdk v1.0.0

require (
github.com/google/jsonschema-go v0.3.0 // indirect
Copy link
Owner

Choose a reason for hiding this comment

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

No need to commit go.mod and go.sum. we have these already at the root of the repository. Update these instead

Update root go.mod to reference sub-agent module via replace directive.
This follows review feedback - we don't need separate go.mod/go.sum
in the sub-agent directory as they already exist at the repository root.

Signed-off-by: localai-bot <localai-bot@users.noreply.github.com>
Copy link
Owner

@mudler mudler left a comment

Choose a reason for hiding this comment

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

the sub-agent shouldn't have any go.mod and go.sum file. See the other MCPs for reference. if you need to use external deps just add these to the go.mod at the top of the repository. Drop the replace line which is not even needed. Also, run go mod tidy.

@localai-bot
Copy link
Contributor Author

Pushed updates based on review feedback.

Following your request, I've removed the go.mod and go.sum files from the sub-agent directory. The sub-agent now uses the root go.mod instead. I also ran go mod tidy to ensure dependencies are properly managed at the root level.

The replace directive has been removed since it's no longer needed. Returning to IN_REVIEW.

@localai-bot
Copy link
Contributor Author

This PR needs to be redone entirely. Closing per user request.

@localai-bot localai-bot closed this Mar 1, 2026
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.

2 participants