Directories
¶
| Path | Synopsis |
|---|---|
|
adapters
|
|
|
lo
Package lo adapts LO's supported Bot API subset to Flock's chat service.
|
Package lo adapts LO's supported Bot API subset to Flock's chat service. |
|
telegram
Package telegram is the Telegram transport adapter for the core/chat conversation layer.
|
Package telegram is the Telegram transport adapter for the core/chat conversation layer. |
|
vk
Package vk is the VKontakte (VK) community-bot transport adapter for the core/chat conversation layer.
|
Package vk is the VKontakte (VK) community-bot transport adapter for the core/chat conversation layer. |
|
cmd
|
|
|
duck-vk
command
Command duck-vk is the Go VKontakte (VK) community-bot adapter for flock.
|
Command duck-vk is the Go VKontakte (VK) community-bot adapter for flock. |
|
flock-lo
command
Command flock-lo connects LO bot messages to the shared Flock agent runtime.
|
Command flock-lo connects LO bot messages to the shared Flock agent runtime. |
|
flock-telegram
command
Autonomy-loop glue for the Telegram adapter: the /goal command, the CI-watch wiring, and the prompt formatters for injected CI events.
|
Autonomy-loop glue for the Telegram adapter: the /goal command, the CI-watch wiring, and the prompt formatters for injected CI events. |
|
core
|
|
|
agent
Package agent defines the provider-neutral runtime contract spoken by the conversation layer and implemented by AI backends.
|
Package agent defines the provider-neutral runtime contract spoken by the conversation layer and implemented by AI backends. |
|
autobudget
Package autobudget persists a small, durable per-chat per-day accumulator of the USD cost spent by AUTONOMOUS runs — runs no human triggered: PR-poller relays, CI-watch fix-ups, scheduled tasks, goal-evaluator rounds and their injected follow-ups.
|
Package autobudget persists a small, durable per-chat per-day accumulator of the USD cost spent by AUTONOMOUS runs — runs no human triggered: PR-poller relays, CI-watch fix-ups, scheduled tasks, goal-evaluator rounds and their injected follow-ups. |
|
chat
Package chat is the transport-neutral conversation layer: it receives a text message from an allowed user, resolves that chat's isolated workspace, runs the message through the configured AI provider Runner, and renders the event stream into one live "Working… (Ns)" progress message with a Stop button, replacing it with the final answer on completion.
|
Package chat is the transport-neutral conversation layer: it receives a text message from an allowed user, resolves that chat's isolated workspace, runs the message through the configured AI provider Runner, and renders the event stream into one live "Working… (Ns)" progress message with a Stop button, replacing it with the final answer on completion. |
|
ciwatch
Package ciwatch closes the CI feedback loop without a human relay: a background loop discovers every duck/<chatid>/...
|
Package ciwatch closes the CI feedback loop without a human relay: a background loop discovers every duck/<chatid>/... |
|
claude
Package claude runs a prompt through the `claude` CLI and exposes its stream-json output as a typed Go event stream.
|
Package claude runs a prompt through the `claude` CLI and exposes its stream-json output as a typed Go event stream. |
|
codex
Package codex runs prompts through the Codex CLI and adapts its JSONL stream to the common agent.Runner event contract used by chat.Service.
|
Package codex runs prompts through the Codex CLI and adapts its JSONL stream to the common agent.Runner event contract used by chat.Service. |
|
cost
Package cost persists a small, durable per-user accumulator of Claude run cost in USD so the inbound message path can enforce a cumulative per-user cost cap across messages and process restarts.
|
Package cost persists a small, durable per-user accumulator of Claude run cost in USD so the inbound message path can enforce a cumulative per-user cost cap across messages and process restarts. |
|
dispatch
Package dispatch provides per-chat job serialization with a global concurrency cap.
|
Package dispatch provides per-chat job serialization with a global concurrency cap. |
|
followup
Package followup gives a run a LEGAL way to come back later.
|
Package followup gives a run a LEGAL way to come back later. |
|
ghstar
Package ghstar is a minimal GitHub "stars" client used by the post-task star nudge: it can check whether the deployment's own account (the GIT_TOKEN owner) has starred a repository and, on an explicit user action, star it.
|
Package ghstar is a minimal GitHub "stars" client used by the post-task star nudge: it can check whether the deployment's own account (the GIT_TOKEN owner) has starred a repository and, on an explicit user action, star it. |
|
gitsetup
Package gitsetup performs the bot's startup git configuration: identity, default branch, and — when a host + token are configured — an inline credential helper that reads the username/token from the live process environment at call time, so no secret ever lands in a git config file.
|
Package gitsetup performs the bot's startup git configuration: identity, default branch, and — when a host + token are configured — an inline credential helper that reads the username/token from the live process environment at call time, so no secret ever lands in a git config file. |
|
goal
Package goal implements the /goal evaluator loop: the user states a "done" criterion once, and after every clean run an INDEPENDENT evaluator — a fresh Claude session with no shared context, so it cannot inherit the working session's blind spots — judges the workspace against that criterion.
|
Package goal implements the /goal evaluator loop: the user states a "done" criterion once, and after every clean run an INDEPENDENT evaluator — a fresh Claude session with no shared context, so it cannot inherit the working session's blind spots — judges the workspace against that criterion. |
|
knowledge
Package knowledge exposes only authorized read-only knowledge operations to delegated agents.
|
Package knowledge exposes only authorized read-only knowledge operations to delegated agents. |
|
nudge
Package nudge persists a single, durable "starred resolved" flag for the deployment's GitHub account so the post-task star nudge stops once the repo is known to be starred (whether observed via the API or set by a successful button press).
|
Package nudge persists a single, durable "starred resolved" flag for the deployment's GitHub account so the post-task star nudge stops once the repo is known to be starred (whether observed via the API or set by a successful button press). |
|
openaicompat
Package openaicompat runs prompts through an OpenAI-compatible chat completions API and adapts responses to the common agent.Runner contract.
|
Package openaicompat runs prompts through an OpenAI-compatible chat completions API and adapts responses to the common agent.Runner contract. |
|
pending
Package pending persists a small, durable per-chat QUEUE of "interrupted run" markers so a run that is still in-flight (or merely queued) when the process is killed (e.g.
|
Package pending persists a small, durable per-chat QUEUE of "interrupted run" markers so a run that is still in-flight (or merely queued) when the process is killed (e.g. |
|
poller
Package poller inverts the Gitea webhook dependency: inbound webhooks can't always reach the bot, but the bot can reach Gitea.
|
Package poller inverts the Gitea webhook dependency: inbound webhooks can't always reach the bot, but the bot can reach Gitea. |
|
ratelimit
Package ratelimit provides an in-memory, goroutine-safe, fixed-window per-user request limiter for the inbound message path.
|
Package ratelimit provides an in-memory, goroutine-safe, fixed-window per-user request limiter for the inbound message path. |
|
schedule
Package schedule persists a durable per-chat set of cron JOBS and runs a background scheduler that fires each due job into the same dispatch lane a normal message uses (via a fire callback wired to chat.Service.Inject).
|
Package schedule persists a durable per-chat set of cron JOBS and runs a background scheduler that fires each due job into the same dispatch lane a normal message uses (via a fire callback wired to chat.Service.Inject). |
|
session
Package session persists a small, durable map of chatID -> Claude session_id so the adapter can resume each chat's context across messages (and across process restarts) via the CLI's --resume flag.
|
Package session persists a small, durable map of chatID -> Claude session_id so the adapter can resume each chat's context across messages (and across process restarts) via the CLI's --resume flag. |
|
teambranch
Package teambranch owns the team-branch naming contract: every branch the dev team pushes is named duck/<chatid>[/<slug>], and the <chatid> segment is what routes host-side events (PR comments, CI state) back to the owning chat.
|
Package teambranch owns the team-branch naming contract: every branch the dev team pushes is named duck/<chatid>[/<slug>], and the <chatid> segment is what routes host-side events (PR comments, CI state) back to the owning chat. |
|
textformat
Package textformat renders assistant Markdown for bot transports.
|
Package textformat renders assistant Markdown for bot transports. |
|
verify
Package verify is the deterministic post-run quality gate: after a run finishes cleanly, the bot re-runs the affected repos' OWN check runner (task/make/npm — the same entrypoint CI uses) from the Go side and compares reality against the agent's claim.
|
Package verify is the deterministic post-run quality gate: after a run finishes cleanly, the bot re-runs the affected repos' OWN check runner (task/make/npm — the same entrypoint CI uses) from the Go side and compares reality against the agent's claim. |
|
voice
Package voice transcribes spoken audio (e.g.
|
Package voice transcribes spoken audio (e.g. |
|
workspace
Package workspace renders a per-chat isolated workspace under a base directory: <base>/chat_<id>, containing a CLAUDE.md rendered from the shared template plus the dev-team agents under .claude/agents/.
|
Package workspace renders a per-chat isolated workspace under a base directory: <base>/chat_<id>, containing a CLAUDE.md rendered from the shared template plus the dev-team agents under .claude/agents/. |
|
internal
|
|
|
airunner
Package airunner builds the configured AI provider runner for adapters.
|
Package airunner builds the configured AI provider runner for adapters. |
|
atomicfile
Package atomicfile writes a file in place atomically: it stages the data in a temp file in the same directory, fsyncs it, then renames it over the target.
|
Package atomicfile writes a file in place atomically: it stages the data in a temp file in the same directory, fsyncs it, then renames it over the target. |
|
autonomy
Package autonomy assembles the post-run autonomy-loop configuration (deterministic gate verification, the /goal evaluator, the per-chat autonomy budget) shared by every adapter binary — the Telegram and VK mains wire the SAME loops, so the builder lives here once instead of drifting per cmd.
|
Package autonomy assembles the post-run autonomy-loop configuration (deterministic gate verification, the /goal evaluator, the per-chat autonomy budget) shared by every adapter binary — the Telegram and VK mains wire the SAME loops, so the builder lives here once instead of drifting per cmd. |
|
config
Package config loads the flock adapter configuration from environment variables, mirroring the names used by the existing Python adapter so deploy tooling stays compatible.
|
Package config loads the flock adapter configuration from environment variables, mirroring the names used by the existing Python adapter so deploy tooling stays compatible. |
|
fsutil
Package fsutil holds the transport-neutral file-download primitives shared by the chat adapters' Uploader/VoiceTranscriber: hostile-name sanitizing, a collision-safe destination path, a size-capped copy that rejects (rather than truncates) oversize streams, and URL-error redaction.
|
Package fsutil holds the transport-neutral file-download primitives shared by the chat adapters' Uploader/VoiceTranscriber: hostile-name sanitizing, a collision-safe destination path, a size-capped copy that rejects (rather than truncates) oversize streams, and URL-error redaction. |
Click to show internal directories.
Click to hide internal directories.