devin

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 31, 2026 License: Apache-2.0 Imports: 10 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package devin is the Devin module (Cognition's coding agent), a cloud-only module for Devin's cloud sessions: hopsesh reaches them only through the Devin CLI's non-interactive commands (devin auth status, devin list --format json), signed in as the user. The CLI's own way home (/pickup or /handoff in `devin --cloud -r <id>`) is interactive, so hopsesh brings the session's pull request branch instead. It keeps nothing on any machine, so the file methods come from agent.NoLocal.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Module

type Module struct{ agent.NoLocal }

Module is the Devin module.

func New

func New() *Module

New returns the module.

func (*Module) CloudURL

func (m *Module) CloudURL(_ string, sid agent.SessionID) string

CloudURL is the session's page on app.devin.ai.

func (*Module) Detect

func (m *Module) Detect(_ context.Context, h agent.Host) (agent.Install, error)

Detect finds the devin CLI; there is no data folder.

func (*Module) FetchCloud

FetchCloud brings a session's code: its pull request branch, as the listing names it. Devin's own way home (/pickup) runs only inside the CLI's interactive session, and the messages are not printed by any non-interactive command, so they stay in the cloud.

func (*Module) ListCloud

ListCloud lists Devin's cloud sessions from `devin list --format json`, leaving out local ones.

func (m *Module) ParseCloudLink(s string) (string, agent.SessionID, bool)

ParseCloudLink reads a session's link on app.devin.ai or its devin-… id.

func (*Module) SendCloud

func (m *Module) SendCloud(ctx context.Context, h agent.Host, _ agent.Install, r agent.SendRequest) (agent.Sent, error)

SendCloud starts the session without a terminal (send) and returns it.

func (*Module) Spec

func (*Module) Spec() agent.Spec

Spec declares Devin, reached through the devin CLI.

func (*Module) TestCloud

func (m *Module) TestCloud(ctx context.Context, h agent.Host, _ agent.Install, _ string) (agent.CloudTest, error)

TestCloud asks the CLI for its login (devin auth status; its wording is unverified, so only its exit code and first line are used), lists the sessions once to learn whether the account has Devin Cloud, and starts nothing.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL