Skip to content

Conversation

@codegirl-007
Copy link
Contributor

  • Add ClaudeCodeProvider and CursorAgentProvider
  • Refactor providers to use BaseProvider for shared logic
  • Each provider only implements _build_command() and _get_provider_name()
  • Changed the default model to anthropic/claude-sonnet-4-5 to accommodate new providers.

To change providers in config, you'd use one of these:

provider = _99.OpenCodeProvider      -- default
provider = _99.ClaudeCodeProvider
provider = _99.CursorAgentProvider

Example

_99.setup {
    provider = _99.CursorAgentProvider,

    -- Optional: override the model
    model = "opencode/claude-sonnet-4-5",
    ...
}
@ThePrimeagen
Copy link
Owner

@codegirl-007 make pr_ready

@ThePrimeagen
Copy link
Owner

I am on a phone and it feels impossible to review this. I'll have to wait until the morning

@ThePrimeagen
Copy link
Owner

Did you add cursor cli?

@codegirl-007
Copy link
Contributor Author

codegirl-007 commented Jan 25, 2026

make pr_ready

Yeah, It should be good soon.

I am on a phone and it feels impossible to review this. I'll have to wait until the morning

Yeah, don't do that to yourself.

Did you add cursor cli?

Yes.

@ThePrimeagen
Copy link
Owner

ThePrimeagen commented Jan 25, 2026

Yes.

My free credits thank you

@ThePrimeagen
Copy link
Owner

Something is wrong with your stylus :(

Also any tests?

@ThePrimeagen
Copy link
Owner

I can write the tests if you don't. It's not really that interesting, since the current one runs, it likely works

@codegirl-007
Copy link
Contributor Author

I can write the tests if you don't. It's not really that interesting, since the current one runs, it likely works

I'll add tests. No worries.

- Add ClaudeCodeProvider and CursorAgentProvider
- Refactor providers to use BaseProvider for shared logic
- Each provider only implements _build_command() and _get_provider_name()
@codegirl-007 codegirl-007 deleted the branch ThePrimeagen:master January 26, 2026 02:45
@codegirl-007 codegirl-007 deleted the master branch January 26, 2026 02:45
@codegirl-007 codegirl-007 restored the master branch January 26, 2026 02:48
@codegirl-007
Copy link
Contributor Author

woops. I'm a noob. Didn't mean to close this pr. I fixed it.

@codegirl-007 codegirl-007 reopened this Jan 26, 2026
end
end

--- @class BaseProvider
Copy link
Owner

Choose a reason for hiding this comment

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

@codegirl-007 typically i prefer _99. fro type name. ill change this, dont worry

logger:debug("stdout#error", "err", err)
end
if not err and data then
table.insert(response_data, data)
Copy link
Owner

Choose a reason for hiding this comment

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

why are we holding onto response data?

local command = self:_build_command(query, request)
logger:debug("make_request", "command", command)

local response_data = {}
Copy link
Owner

Choose a reason for hiding this comment

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

ill remove this too, dont worry about it :)

@ThePrimeagen
Copy link
Owner

merging this in loser

@ThePrimeagen ThePrimeagen merged commit d74ec6a into ThePrimeagen:master Jan 26, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants