Skip to content

feat: add OpenCode adapter - #4

Closed
Ayaan-20-11 wants to merge 1 commit into
Socialpranker:mainfrom
Ayaan-20-11:feat/opencode-adapter
Closed

Ayaan-20-11 wants to merge 1 commit into
Socialpranker:mainfrom
Ayaan-20-11:feat/opencode-adapter

Conversation

@Ayaan-20-11

Copy link
Copy Markdown

Summary

  • Add an OpenCode SQLite adapter for AgentBurn
  • Read session-level token and cost accounting from opencode.db
  • Register OpenCode with the AgentBurn adapter registry
  • Track message counts and provider/model metadata
  • Open the database read-only and support WAL-backed databases
  • Detect zero-token sessions through existing AgentBurn accounting diagnostics

Validation

  • Tested against a real OpenCode SQLite database
  • agentburn --agent opencode report works
  • agentburn --agent opencode --json report works
  • agentburn --agent opencode doctor works
  • Existing offline self-test: 184 tests passed
  • Working tree clean after commit

@Ayaan-20-11

Copy link
Copy Markdown
Author

Is it good ?

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