anomalyco / anomalyco/opencode

[FEATURE]:Test efficiency

Open
#40,406 0 comments 0 reactions 1 assignee View on GitHub

@rekram1-node is already working on this.

Since Aug 4, 2026.

Dominant language
TypeScript
Stars
209k
Forks
27.5k
PR merge metrics
PR metrics pending

Description

Feature hasn't been suggested before.
  • I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request

I often see opencode running tests like this

go test -v --count=1 -tags=integration -run 'TestTmp_CheckAuthRegistryStatus' ./cmd/regtool/ 2>&1 | tail -3

this is efficient in the sense that it reduces context bloat. However, it can be terribly inefficient if the test takes a long time to run. I have a skill that asks it to log to a file, but skills are always flaky since the LLM can forget to use them.

This is then like this

go test -v --count=1 -tags=integration -run 'TestTmp_CheckAuthRegistryStatus' ./cmd/regtool/ 2>&1 | tail /tmp/test.log | tail -3 

In this way it can inspect the details of test output. Can this be improved in opencode? I have the feeling that opencode it instructing it somehow to do this 'tail -3' at the end. It works fine for very fast unit tests but not for integration tests.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.