BitsentryAI
BitsentryAI is a local workflow and safety layer for OpenCode that turns generic AI coding sessions into structured, context-aware workflows for development, research, support and security review.
AI workflow and safety layer for OpenCode
BitsentryAI is a local workflow and safety layer for OpenCode. It turns generic AI coding sessions into more structured, auditable and context-aware workflows for software design, repository research, operational support and security review.
It is not meant to be “another magic agent”. It comes from a practical friction: once you start using agents for serious work, you accumulate prompts, skills, MCPs, rules, memory, checklists and guardrails across too many places.
BitsentryAI tries to turn that chaos into a local system: a capability pack for OpenCode with an agent, commands, flows, skills, roles, route decision previews, readiness checks and explicit boundaries.
What problem it solves
AI agents are useful, but they usually create three problems in real projects:
BitsentryAI forces one question before acting:
What kind of work are we actually doing?
That question is the foundation of the project. First choose the route. Then load the right capabilities. Then work with structured outputs and explicit permissions.
What it encourages
BitsentryAI encourages a less impulsive and more engineering-oriented way to use AI:
It is not about making the agent “do more things alone”. It is about making the agent work better inside clear boundaries.
How it works
The conceptual flow is simple:
The bitsentry agent acts as an orchestrator inside OpenCode. Its job is not to edit by default, but to classify intent, show a route decision, propose the right flow and ask for confirmation when an action may have impact.
Main flows
Architecture decisions
OpenCode-first
BitsentryAI starts with OpenCode because that is where the work happens: the local repository, the development agent and the real project context. Instead of creating a separate platform, it integrates as a layer on top of the environment the developer already uses.
Local-first
The MVP is designed to install and operate locally. This reduces dependency on a central backend, keeps control close to the user and makes it easier to reason about what gets installed, what gets modified and what permissions exist.
Capability pack, not hidden autonomous runtime
One important decision is that BitsentryAI does not try to be an autonomous runtime acting behind the scenes. It is a local pack that projects capabilities into OpenCode:
The CLI exists as a support, diagnostics and plumbing surface. The primary experience is intended to be TUI + OpenCode.
Explicit routing
Route decision previews are both a product and architecture decision. Before deep discovery, planning or changes, the agent must declare how it understands the request.
This prevents ambiguous prompts from turning directly into code edits or command execution without enough context.
Optional persistence
Engram can provide persistent memory for decisions, learnings, failures and historical context. Context7 can provide up-to-date external documentation when a decision depends on APIs or libraries.
Both integrations are optional: useful when available, but not required for the MVP core.
Technology and why
Installed OpenCode surface
A native setup can register the bitsentry agent and /bit-* commands such as:
/bit-install-check/bit-pack-status/bit-sdd-init/bit-sdr-capture/bit-support-triageThe expected agent posture is safe by default:
This reinforces a key idea: BitsentryAI can guide, investigate and structure the work, but impactful actions need explicit approval.
Current MVP features
The public MVP includes:
bitsentry agent,/bit-* commands,Safety by design
BitsentryAI is intentionally conservative. It is not an automated pentesting platform, not a scanner, does not execute exploits and does not try to operate as an unsupervised autonomous agent.
Current MVP guardrails:
.env or secret access,For security work, this is not a side limitation: it is a central decision. First control, then capability, and automation only where it is explicit and safe.
Technical debt and current limits
BitsentryAI is in Public MVP, so it still has important debt and limits:
This debt does not invalidate the project; it defines the next stage.
How an AI should improve this project
If someone wanted to pass this project to an AI to improve it, the right brief would be:
.env, no automatic pentesting, no live execution by default.Reasonable roadmap
The natural direction of the project is:
Current status
BitsentryAI is currently in Public MVP. It already has a clearer product narrative, public quickstart, readiness checks, architecture documentation and explicit boundaries.
The goal is to keep it practical: helping people work with more structure without replacing technical judgment with an agent. Feedback, ideas and PRs are welcome, especially from people using AI agents in software development, AppSec, bug bounty, technical research or workflow automation.
Links
_BitsentryAI is about agents that do not only execute, but first understand what kind of work they are doing._