Directories
¶
| Path | Synopsis |
|---|---|
|
activities
|
|
|
agentloop
Package agentloop implements an iterative agent loop that can call tools.
|
Package agentloop implements an iterative agent loop that can call tools. |
|
buildbatches
Package buildbatches implements an activity that groups chunks into batches for embedding computation.
|
Package buildbatches implements an activity that groups chunks into batches for embedding computation. |
|
buildindex
Package buildindex implements an activity that builds and saves a vector index for a single snapshot.
|
Package buildindex implements an activity that builds and saves a vector index for a single snapshot. |
|
buildindexes
Package buildindexes implements a parent activity that builds vector indices for multiple snapshots sequentially.
|
Package buildindexes implements a parent activity that builds vector indices for multiple snapshots sequentially. |
|
control
Package control provides activities for flow control operations.
|
Package control provides activities for flow control operations. |
|
deletefile
Package deletefile implements an activity for permanently deleting files.
|
Package deletefile implements an activity for permanently deleting files. |
|
draftcommit
Package draftcommit implements an activity that generates commit messages using an LLM.
|
Package draftcommit implements an activity that generates commit messages using an LLM. |
|
draftcommitflat
Package draftcommitflat implements an activity that generates commit messages from a flat list of file changes.
|
Package draftcommitflat implements an activity that generates commit messages from a flat list of file changes. |
|
draftcontent
Package draftcontent implements an activity that invokes an LLM to draft text responses.
|
Package draftcontent implements an activity that invokes an LLM to draft text responses. |
|
draftflat
Package draftflat implements a generic activity for composing text using an LLM with file context.
|
Package draftflat implements a generic activity for composing text using an LLM with file context. |
|
draftpr
Package draftpr implements an activity that generates pull request descriptions using an LLM.
|
Package draftpr implements an activity that generates pull request descriptions using an LLM. |
|
draftprflat
Package draftprflat implements an activity that generates pull request descriptions from a flat list of file changes.
|
Package draftprflat implements an activity that generates pull request descriptions from a flat list of file changes. |
|
editfile
Package editfile implements an activity for editing files by string replacement.
|
Package editfile implements an activity for editing files by string replacement. |
|
embedall
Package embedall implements a parent activity that computes embeddings for multiple batches sequentially.
|
Package embedall implements a parent activity that computes embeddings for multiple batches sequentially. |
|
embedbatch
Package embedbatch implements an activity that computes embeddings for a batch of text chunks.
|
Package embedbatch implements an activity that computes embeddings for a batch of text chunks. |
|
fetchbranchdiff
Package fetchbranchdiff implements an activity that fetches the diff of a file between current branch and target branch.
|
Package fetchbranchdiff implements an activity that fetches the diff of a file between current branch and target branch. |
|
fetchbranchdiffs
Package fetchbranchdiffs implements a parent activity that fetches branch diffs for multiple files sequentially.
|
Package fetchbranchdiffs implements a parent activity that fetches branch diffs for multiple files sequentially. |
|
fetchcontext
Package fetchcontext implements an activity that retrieves and formats context for RAG queries.
|
Package fetchcontext implements an activity that retrieves and formats context for RAG queries. |
|
fetchstageddiff
Package fetchstageddiff implements an activity that fetches the staged diff for a single file.
|
Package fetchstageddiff implements an activity that fetches the staged diff for a single file. |
|
fetchstageddiffs
Package fetchstageddiffs implements a parent activity that fetches staged diffs for multiple files sequentially.
|
Package fetchstageddiffs implements a parent activity that fetches staged diffs for multiple files sequentially. |
|
filterfiles
Package filterfiles implements an activity that filters files based on include/exclude patterns.
|
Package filterfiles implements an activity that filters files based on include/exclude patterns. |
|
finalizeindex
Package finalizeindex implements an activity that finalizes snapshot states in the database.
|
Package finalizeindex implements an activity that finalizes snapshot states in the database. |
|
getdiff
Package getdiff implements an activity for retrieving git diffs.
|
Package getdiff implements an activity for retrieving git diffs. |
|
getplan
Package getplan provides activities for retrieving the current plan/task board.
|
Package getplan provides activities for retrieving the current plan/task board. |
|
gitundo
Package gitundo implements an activity for discarding uncommitted changes.
|
Package gitundo implements an activity for discarding uncommitted changes. |
|
listbranchchanges
Package listbranchchanges implements an activity that lists files changed between current branch and target branch.
|
Package listbranchchanges implements an activity that lists files changed between current branch and target branch. |
|
listfiles
Package listfiles implements an activity for listing files in a directory.
|
Package listfiles implements an activity for listing files in a directory. |
|
liststagedfiles
Package liststagedfiles implements an activity that lists all files currently staged in git.
|
Package liststagedfiles implements an activity that lists all files currently staged in git. |
|
memorize
Package memorize provides activities for storing facts in flow memory.
|
Package memorize provides activities for storing facts in flow memory. |
|
movefile
Package movefile implements an activity for moving or renaming files.
|
Package movefile implements an activity for moving or renaming files. |
|
plan
Package plan implements an activity for initializing task plans.
|
Package plan implements an activity for initializing task plans. |
|
prepareindex
Package prepareindex implements an activity that deduplicates files and prepares them for processing.
|
Package prepareindex implements an activity that deduplicates files and prepares them for processing. |
|
pruneindex
Package pruneindex implements an activity that removes outdated document versions and embeddings from storage.
|
Package pruneindex implements an activity that removes outdated document versions and embeddings from storage. |
|
readfile
Package readfile implements an activity for reading file contents.
|
Package readfile implements an activity for reading file contents. |
|
runshell
Package runshell implements an activity for executing shell commands.
|
Package runshell implements an activity for executing shell commands. |
|
savechunks
Package savechunks implements an activity that distributes embeddings to chunks and saves them to storage.
|
Package savechunks implements an activity that distributes embeddings to chunks and saves them to storage. |
|
savefileversion
Package savefileversion implements an activity that saves a document version with its chunks to storage.
|
Package savefileversion implements an activity that saves a document version with its chunks to storage. |
|
scanworktree
Package scanworktree implements an activity that scans workspace state (working directory, stage, or HEAD) for files.
|
Package scanworktree implements an activity that scans workspace state (working directory, stage, or HEAD) for files. |
|
searchindex
Package searchindex implements an activity that performs semantic search across indexed code using vector similarity.
|
Package searchindex implements an activity that performs semantic search across indexed code using vector similarity. |
|
splitfile
Package splitfile implements an activity that chunks a single file into smaller pieces for embedding.
|
Package splitfile implements an activity that chunks a single file into smaller pieces for embedding. |
|
splitfiles
Package splitfiles implements a parent activity that chunks multiple files sequentially.
|
Package splitfiles implements a parent activity that chunks multiple files sequentially. |
|
summarize
Package summarize implements an activity for summarizing content using an LLM.
|
Package summarize implements an activity for summarizing content using an LLM. |
|
summarizechanges
Package summarizechanges implements a parent activity that summarizes changes for multiple files sequentially.
|
Package summarizechanges implements a parent activity that summarizes changes for multiple files sequentially. |
|
summarizefilechanges
Package summarizefilechanges implements an activity that generates a summary of changes in a single file using an LLM.
|
Package summarizefilechanges implements an activity that generates a summary of changes in a single file using an LLM. |
|
tracktask
Package tracktask implements an activity for updating task status in a plan.
|
Package tracktask implements an activity for updating task status in a plan. |
|
writefile
Package writefile implements an activity for creating or overwriting files.
|
Package writefile implements an activity for creating or overwriting files. |
|
adapters
|
|
|
command
Package command provides services for accessing command-line flags and input streams.
|
Package command provides services for accessing command-line flags and input streams. |
|
config
Package config provides configuration management using Viper, supporting multiple config sources.
|
Package config provides configuration management using Viper, supporting multiple config sources. |
|
gateway
Package gateway provides adapters for LLM providers (OpenAI, Anthropic, Gemini, etc.) with caching, rate limiting, and logging.
|
Package gateway provides adapters for LLM providers (OpenAI, Anthropic, Gemini, etc.) with caching, rate limiting, and logging. |
|
git
Package git provides a service for executing git commands to read staged files, diffs, and branch information.
|
Package git provides a service for executing git commands to read staged files, diffs, and branch information. |
|
httpclient
Package httpclient provides a configured HTTP client with custom transport settings and timeouts.
|
Package httpclient provides a configured HTTP client with custom transport settings and timeouts. |
|
output
Package output provides services for writing formatted output and progress feedback to the console.
|
Package output provides services for writing formatted output and progress feedback to the console. |
|
sqlite
Package sqlite provides SQLite database access and manages connections for index, cache, metadata, and rate limiting storage.
|
Package sqlite provides SQLite database access and manages connections for index, cache, metadata, and rate limiting storage. |
|
sqlite/cache
Package cache provides a SQLite-based repository for caching LLM responses with TTL support.
|
Package cache provides a SQLite-based repository for caching LLM responses with TTL support. |
|
sqlite/index
Package index provides a SQLite-based repository for storing and querying document chunks, embeddings, and snapshots.
|
Package index provides a SQLite-based repository for storing and querying document chunks, embeddings, and snapshots. |
|
sqlite/meta
Package meta provides a SQLite-based repository for storing and retrieving metadata key-value pairs.
|
Package meta provides a SQLite-based repository for storing and retrieving metadata key-value pairs. |
|
sqlite/migrations
Package migrations applies SQLite schema migrations.
|
Package migrations applies SQLite schema migrations. |
|
sqlite/path
Package path provides services for resolving SQLite database file paths based on workspace location.
|
Package path provides services for resolving SQLite database file paths based on workspace location. |
|
sqlite/ratelimit
Package ratelimit provides a SQLite-based repository for tracking and enforcing API rate limits.
|
Package ratelimit provides a SQLite-based repository for tracking and enforcing API rate limits. |
|
tracelog
Package tracelog provides structured logging for tracing LLM API interactions and activity execution.
|
Package tracelog provides structured logging for tracing LLM API interactions and activity execution. |
|
workspace
Package workspace provides services for resolving and managing the workspace directory path.
|
Package workspace provides services for resolving and managing the workspace directory path. |
|
Package app provides the application container that orchestrates all services and dependencies.
|
Package app provides the application container that orchestrates all services and dependencies. |
|
core
|
|
|
agent
Package agent provides configuration resolution for agent mode.
|
Package agent provides configuration resolution for agent mode. |
|
agent/state
Package state manages flow execution state including memory and task planning.
|
Package state manages flow execution state including memory and task planning. |
|
agent/tools
Package tools defines the standard tools available to the agent.
|
Package tools defines the standard tools available to the agent. |
|
chunker
Package chunker provides services for splitting file content into chunks for embedding.
|
Package chunker provides services for splitting file content into chunks for embedding. |
|
commit
Package commit provides services for composing commit messages from file changes.
|
Package commit provides services for composing commit messages from file changes. |
|
filter
Package filter provides services for filtering files based on include/exclude patterns and gitignore rules.
|
Package filter provides services for filtering files based on include/exclude patterns and gitignore rules. |
|
index
Package index provides core indexing operations for documents and snapshots.
|
Package index provides core indexing operations for documents and snapshots. |
|
model
Package model provides services for managing LLM model configurations and their capabilities.
|
Package model provides services for managing LLM model configurations and their capabilities. |
|
preset
Package preset provides services for managing LLM provider presets with rate limiting and cost tracking.
|
Package preset provides services for managing LLM provider presets with rate limiting and cost tracking. |
|
project
Package project provides services for inspecting git and workspace state.
|
Package project provides services for inspecting git and workspace state. |
|
prompt
Package prompt provides services for generating prompts from templates with variable substitution.
|
Package prompt provides services for generating prompts from templates with variable substitution. |
|
provider
Package provider provides services for managing LLM provider configurations (OpenAI, Anthropic, Gemini, etc.).
|
Package provider provides services for managing LLM provider configurations (OpenAI, Anthropic, Gemini, etc.). |
|
pullrequest
Package pullrequest provides services for composing pull request descriptions from file changes.
|
Package pullrequest provides services for composing pull request descriptions from file changes. |
|
ratelimit
Package ratelimit provides rate limiting services for LLM API calls with token-based and request-based limits.
|
Package ratelimit provides rate limiting services for LLM API calls with token-based and request-based limits. |
|
retrieval
Package retrieval provides services for semantic search and retrieval of code chunks using vector similarity.
|
Package retrieval provides services for semantic search and retrieval of code chunks using vector similarity. |
|
shutdown
Package shutdown provides graceful shutdown coordination for services and background operations.
|
Package shutdown provides graceful shutdown coordination for services and background operations. |
|
summarize
Package summarize provides services for generating summaries of file changes using LLMs.
|
Package summarize provides services for generating summaries of file changes using LLMs. |
|
task
Package task provides services for managing predefined tasks with prompts and configurations.
|
Package task provides services for managing predefined tasks with prompts and configurations. |
|
vector
Package vector provides services for vector index operations including search and index building.
|
Package vector provides services for vector index operations including search and index building. |
|
domain
|
|
|
commit
Package commit defines domain types for commit message generation.
|
Package commit defines domain types for commit message generation. |
|
config
Package config defines domain types for application configuration including providers, models, presets, and flows.
|
Package config defines domain types for application configuration including providers, models, presets, and flows. |
|
gateway
Package gateway defines domain types for LLM gateway interactions including requests, responses, and embeddings.
|
Package gateway defines domain types for LLM gateway interactions including requests, responses, and embeddings. |
|
git
Package git defines domain types for git operations and file changes.
|
Package git defines domain types for git operations and file changes. |
|
index
Package index defines domain types for document indexing including chunks, embeddings, and snapshots.
|
Package index defines domain types for document indexing including chunks, embeddings, and snapshots. |
|
indexservice
Package indexservice defines types used by the indexing service API.
|
Package indexservice defines types used by the indexing service API. |
|
model
Package model defines domain types for LLM model configurations and capabilities.
|
Package model defines domain types for LLM model configurations and capabilities. |
|
output
Package output defines domain types for output formatting and destinations.
|
Package output defines domain types for output formatting and destinations. |
|
preset
Package preset defines domain types for LLM provider presets with rate limits and cost tracking.
|
Package preset defines domain types for LLM provider presets with rate limits and cost tracking. |
|
provider
Package provider defines domain types for LLM provider configurations (OpenAI, Anthropic, Gemini, etc.).
|
Package provider defines domain types for LLM provider configurations (OpenAI, Anthropic, Gemini, etc.). |
|
pullrequest
Package pr defines domain types for pull request description generation.
|
Package pr defines domain types for pull request description generation. |
|
ratelimit
Package ratelimit defines domain types for API rate limiting including token budgets and request limits.
|
Package ratelimit defines domain types for API rate limiting including token budgets and request limits. |
|
summarize
Package summarize defines domain types for file change summarization.
|
Package summarize defines domain types for file change summarization. |
|
task
Package task defines domain types for predefined tasks with prompts and configurations.
|
Package task defines domain types for predefined tasks with prompts and configurations. |
|
flows
|
|
|
ask
Package ask implements the workflow for answering questions about code using RAG.
|
Package ask implements the workflow for answering questions about code using RAG. |
|
commitmsg
Package commitmsg implements the workflow for generating commit messages from staged changes or branch diffs.
|
Package commitmsg implements the workflow for generating commit messages from staged changes or branch diffs. |
|
do
Package do implements the 'do' flow which orchestrates agent execution.
|
Package do implements the 'do' flow which orchestrates agent execution. |
|
index
Package index implements the workflow for indexing workspace files by computing embeddings and building vector indices.
|
Package index implements the workflow for indexing workspace files by computing embeddings and building vector indices. |
|
pr
Package pr implements the workflow for generating pull request descriptions from branch changes.
|
Package pr implements the workflow for generating pull request descriptions from branch changes. |
|
search
Package search implements the workflow for semantic code search using vector similarity.
|
Package search implements the workflow for semantic code search using vector similarity. |
|
write
Package write implements the workflow for generating arbitrary content using LLMs based on prompts and tasks.
|
Package write implements the workflow for generating arbitrary content using LLMs based on prompts and tasks. |
|
Package ports defines port interfaces for hexagonal architecture, decoupling core business logic from adapters.
|
Package ports defines port interfaces for hexagonal architecture, decoupling core business logic from adapters. |
|
Package version provides build-time version information populated by the Go linker.
|
Package version provides build-time version information populated by the Go linker. |
Click to show internal directories.
Click to hide internal directories.