Skip to content

abhiaiyer91/opencode

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MastraCode logo

MastraCode - An experimental fork of OpenCode with Mastra integration.


This is an experimental project

MastraCode is a fork of OpenCode that experiments with integrating Mastra capabilities into the OpenCode AI coding agent.

For the original, production-ready OpenCode, please visit: github.com/sst/opencode


What is this?

This repository is an experiment to explore how Mastra's AI agent framework can be integrated with OpenCode's powerful terminal-based coding agent.

Original OpenCode

OpenCode is the open source AI coding agent built for the terminal. For full documentation, installation instructions, and support:

Installation (Experimental)

npm i -g mastracode@dev

Tip

Remove versions older than 0.1.x before installing.

Agents

OpenCode includes two built-in agents you can switch between, you can switch between these using the Tab key.

  • build - Default, full access agent for development work
  • plan - Read-only agent for analysis and code exploration
    • Denies file edits by default
    • Asks permission before running bash commands
    • Ideal for exploring unfamiliar codebases or planning changes

Also, included is a general subagent for complex searches and multistep tasks. This is used internally and can be invoked using @general in messages.

Learn more about agents.

Documentation

For more info on how to configure OpenCode head over to our docs.

Contributing

This is an experimental project. For contributions to the main OpenCode project, please visit github.com/sst/opencode.

License

This project maintains the same MIT License as the original OpenCode project.


Original OpenCode by: SST | OpenCode.ai

About

The AI coding agent built for the terminal.

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 82.6%
  • CSS 8.3%
  • MDX 7.0%
  • Shell 0.7%
  • Astro 0.5%
  • Rust 0.3%
  • Other 0.6%