Skip to content

Add opencode setup instructions - #243

Merged
AJenbo merged 1 commit into
PHPantom-dev:mainfrom
carnage:patch-1
Jul 17, 2026
Merged

Add opencode setup instructions#243
AJenbo merged 1 commit into
PHPantom-dev:mainfrom
carnage:patch-1

Conversation

@carnage

@carnage carnage commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

A quick docs update to show an example configuration for opencode.

Other AI harnesses are probably similar enough users can work it out from the example given.

Implements #208

@calebdw

calebdw commented Jul 17, 2026

Copy link
Copy Markdown
Collaborator

I'm not sure that I really care to show specific examples, if anything a sentence or two pointing telling users to look at the docs for their specific harness should suffice---these are developers we're targetting...

I'll leave up to @AJenbo

@AJenbo

AJenbo commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

A lot of people are asking for how to do this, we could maybe split things up in a editor and how to do so for agentic coding tools.

Other AI harnesses are probably similar enough users can work it out from the example given.

They could have just asked there tool, but I think a lot of times these guides also work as a "Is supported" list which is often what people are actually looking for.

@AJenbo
AJenbo merged commit 3eb8d33 into PHPantom-dev:main Jul 17, 2026
@AJenbo

AJenbo commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

@carnage have you had a good experience using PHPantom with your AI?

@carnage

carnage commented Jul 17, 2026

Copy link
Copy Markdown
Contributor Author

@carnage have you had a good experience using PHPantom with your AI?

I came here looking for instructions on how to configure, found the old issue asking about it. Figured it out myself and contributed back (was non-trivial as I'd originally attempted to set it up to use the analyse command rather than --stdio). Only been using it with the agent for a few test edits so far but it seems to be doing well; outside of an initial lag on the first edit. (which I assume was it indexing the project)

@AJenbo

AJenbo commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Thanks, I appreciate the feedback.

@AJenbo

AJenbo commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

I split it up into a IDE and Agent section now that we also have a Claude Code plugin:

https://github.com/PHPantom-dev/phpantom_lsp/blob/main/docs/SETUP.md#agent-setup

@carnage I don't know much about OpenCode but maybe a similar option would make sens for it? https://github.com/PHPantom-dev/phpantom_claude#install

It handles both downloading the latest binder and besides the LSP side of things it also adds a skill file that lets the agent know how to use the CLI options to analyze a full project and apply auto fixes.

@carnage

carnage commented Jul 20, 2026

Copy link
Copy Markdown
Contributor Author

Opencode does allow for plugins as well but I've not really explored them or writing my own as of yet.

I currently only use local models so I've been working on ways to get the model to produce correct output despite not being as powerful as the hosted/paid options.

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.

3 participants