contextfile

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package contextfile writes per-project markdown context files to ~/.synapses/context/<hash>.md. These files are read by the Claude Code SessionStart hook to inject project identity and pending tasks into the agent's context automatically — without requiring the agent to call session_init() first.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContextFilePath

func ContextFilePath(repoRoot string) (string, error)

ContextFilePath returns the absolute path of the context file for repoRoot. The directory (~/.synapses/context/) is created if it does not exist.

func Write

func Write(repoRoot string, identity *graph.ProjectIdentity, tasks []store.Task) error

Write renders and atomically writes the context file for repoRoot. identity and tasks may be nil/empty — the file is still written so the hook always finds something useful even if data is unavailable. All errors are returned to the caller; the daemon should discard them silently.

Types

This section is empty.

Jump to

Keyboard shortcuts

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