Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: anomalyco/opencode
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: dev
Choose a base ref
Loading
...
head repository: paralin/opencode
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: paralin
Choose a head ref
Loading
Checking mergeability… Don’t worry, you can still create the pull request.
  • 16 commits
  • 90 files changed
  • 1 contributor

Commits on Nov 4, 2025

  1. doc: add project patterns to AGENTS.md

    Helps the agent find relevant code faster in opencode tui.
    
    Signed-off-by: Christian Stewart <christian@aperture.us>
    paralin committed Nov 4, 2025
    Configuration menu
    Copy the full SHA
    f455bb1 View commit details
    Browse the repository at this point in the history
  2. fix(tui): use repo root as default dir in dev mode

    This was an unintentional regression with opentui similar to #3777
    
    Before "bun dev" would start with the project dir set to ./
    
    ...but now it's ./packages/opencode
    
    This can cause some confusion as there is an AGENTS.md in the repo root.
    
    When `Installation.isLocal()` returns true (dev mode), the default directory is
    now: ```typescript path.resolve(process.cwd(), "../..") ```
    
    This means when running `bun dev` from the root with `--cwd packages/opencode`,
    the working directory will be correctly set to the repo root (`./`) instead of
    `./packages/opencode`, ensuring the root AGENTS.md file is properly accessible.
    
    Fixes: #3922
    
    Signed-off-by: Christian Stewart <christian@aperture.us>
    paralin committed Nov 4, 2025
    Configuration menu
    Copy the full SHA
    dead462 View commit details
    Browse the repository at this point in the history
  3. refactor: use --dir positional for workdir

    Uses #3778
    
    Signed-off-by: Christian Stewart <christian@aperture.us>
    paralin committed Nov 4, 2025
    Configuration menu
    Copy the full SHA
    3421aee View commit details
    Browse the repository at this point in the history

Commits on Nov 16, 2025

  1. feat(tool): add image metadata display to Read tool

    When reading image files, the Read tool now displays file size, dimensions (width x height), and format information. Implements binary parsing for PNG, JPEG, GIF, and WebP headers to extract dimensions without external dependencies.
    
    Signed-off-by: Christian Stewart <christian@aperture.us>
    paralin committed Nov 16, 2025
    Configuration menu
    Copy the full SHA
    134880b View commit details
    Browse the repository at this point in the history

Commits on Nov 22, 2025

  1. refactor: use local build instead of desktop.dev.opencode

    Signed-off-by: Christian Stewart <christian@aperture.us>
    paralin committed Nov 22, 2025
    Configuration menu
    Copy the full SHA
    7aa0ed4 View commit details
    Browse the repository at this point in the history
  2. feat: add --tools flag to limit tools usage

    Signed-off-by: Christian Stewart <christian@aperture.us>
    paralin committed Nov 22, 2025
    Configuration menu
    Copy the full SHA
    6a6172d View commit details
    Browse the repository at this point in the history

Commits on Dec 7, 2025

  1. docs(agents): add guidance to make working with opencode better

    After working with the codebase using opencode a bit:
    
    - Add guidance on regenerating SDK after schema changes
    - Document type predicate pattern for filtering discriminated unions
    - Discourage use of 'as' casts when TypeScript's type narrowing fails
    - Add guidance to run prettier after changing code with ./script/format.ts
    - .gitignore: exclude bun-build files
    
    Significantly reduces errors in the output in my experience.
    
    Signed-off-by: Christian Stewart <christian@aperture.us>
    paralin committed Dec 7, 2025
    Configuration menu
    Copy the full SHA
    c5614c8 View commit details
    Browse the repository at this point in the history

Commits on Dec 12, 2025

  1. feat: add session export cli command

    opencode session export [sessionID]
    
    export session transcript to file
    
    Positionals:
      sessionID  session id to export
    
    Options:
      -o, --output      output file path
      -f, --format      output format
      [string] [choices: "markdown", "json"] [default: "markdown"]
    
    Fixes: #5426
    
    Signed-off-by: Christian Stewart <christian@aperture.us>
    paralin committed Dec 12, 2025
    Configuration menu
    Copy the full SHA
    3b28b69 View commit details
    Browse the repository at this point in the history
  2. feat: log session id in opencode run

    This is useful when:
    
    1. Run opencode run with a script.
    2. Forward stdout and stderr to script output so user can see whats happening.
    3. Parse the [session:id] line in the script.
    4. Use opencode session export to export to json later.
    
    Signed-off-by: Christian Stewart <christian@aperture.us>
    paralin committed Dec 12, 2025
    Configuration menu
    Copy the full SHA
    2d56ef7 View commit details
    Browse the repository at this point in the history

Commits on Jan 4, 2026

  1. feat: add offline mode and make it default

    Signed-off-by: Christian Stewart <christian@aperture.us>
    paralin committed Jan 4, 2026
    Configuration menu
    Copy the full SHA
    af83ab8 View commit details
    Browse the repository at this point in the history

Commits on Jan 19, 2026

  1. fix: avoid bun hang with babel

    Signed-off-by: Christian Stewart <christian@aperture.us>
    paralin committed Jan 19, 2026
    Configuration menu
    Copy the full SHA
    a9268a9 View commit details
    Browse the repository at this point in the history
  2. feat: add knowledge slash command

    Signed-off-by: Christian Stewart <christian@aperture.us>
    paralin committed Jan 19, 2026
    Configuration menu
    Copy the full SHA
    1af9b52 View commit details
    Browse the repository at this point in the history
  3. refactor: drop todo feature entirely

    Signed-off-by: Christian Stewart <christian@aperture.us>
    paralin committed Jan 19, 2026
    Configuration menu
    Copy the full SHA
    58c1a33 View commit details
    Browse the repository at this point in the history

Commits on Jan 21, 2026

  1. feat: add prompt-file flag

    If the prompt is too long it can break when passed on the command line.
    
    We have -f which attaches files but we need a way to specify the prompt from a
    file, so add --prompt-file to pass a path to the message file to load.
    
    Signed-off-by: Christian Stewart <christian@aperture.us>
    paralin committed Jan 21, 2026
    Configuration menu
    Copy the full SHA
    10af633 View commit details
    Browse the repository at this point in the history

Commits on Jan 24, 2026

  1. refactor: store truncated tool output in project .opencode directory

    Move truncated tool output from global ~/.local/share/opencode/tool-output
    to project-local .opencode/tool-output directory. This keeps tool output
    alongside the project it was generated for.
    
    - Change Truncate.DIR/GLOB constants to dir()/glob() functions
    - Remove external_directory permissions for truncate path (now internal)
    - Update tests to use Instance context
    
    Signed-off-by: Christian Stewart <christian@aperture.us>
    paralin committed Jan 24, 2026
    Configuration menu
    Copy the full SHA
    b6fb563 View commit details
    Browse the repository at this point in the history

Commits on Feb 18, 2026

  1. fixup! refactor: drop todo feature entirely

    Signed-off-by: Christian Stewart <christian@aperture.us>
    paralin committed Feb 18, 2026
    Configuration menu
    Copy the full SHA
    5e94108 View commit details
    Browse the repository at this point in the history
Loading
Morty Proxy This is a proxified and sanitized view of the page, visit original site.