Experimental: This project is under active development. APIs may change, features may break, and Dory might forget what she was doing. Use at your own risk!
"Just keep coding, just keep coding..." — Dory, probably
Sharkbait is a CLI-based AI coding assistant built with Bun and TypeScript. It uses the OpenAI Responses API (not Chat Completions) for enhanced tool calling and streaming. Like Nemo escaping the dentist's fish tank, it helps you break free from tedious coding tasks.
The development environment is powered by Anthropic skills and Claude Code plugins that provide specialized workflows across design, engineering, research, and operations.
Fast — Built on Bun. Swims through code faster than Marlin crossing the EAC
Responses API — Uses OpenAI's Responses API for better streaming and tool calling
Tool-equipped — File ops, shell commands, Git, GitHub. Everything but the Ring of Fire
Persistent Memory — Beads give your AI long-term memory that survives sessions (unlike Dory)
Git-backed Context — Your AI's memory lives in your repo. Clone it, branch it, merge it
Beautiful UI — Ink-based terminal interface. P. Sherman would approve
Safe — Confirms dangerous operations before executing. No surprise rm -rf moments
The Memory Problem
Most AI coding assistants have the memory of... well, Dory. They forget context between sessions, lose track of what you were working on, and make you repeat yourself constantly.
Sharkbait is different. Built-in Beads provide persistent, git-backed memory that survives across sessions:
Task Memory: Create a bead for a feature, and Sharkbait remembers the context, decisions, and progress — even after you close the terminal
Git-Native: Beads are stored alongside your code in git, so your AI's memory travels with your repo
No External Services: Your context stays local. No cloud sync, no API calls for memory — just git
Skills & Plugins
Sharkbait's development environment ships with the full Anthropic Skills catalog and a curated set of Claude Code plugins. These are used during development with Claude Code — they are not runtime features of the Sharkbait application itself.
Sharkbait implements a sophisticated agentic loop with:
Dual-ledger progress tracking: Inspired by Microsoft's Magentic-One research
Intelligent context compaction: Preserves critical context while managing token limits
Action reversibility classification: Classifies commands as easy/effort/irreversible
Stall detection & recovery: Automatic re-planning when stuck
Tech Stack
Component
Technology
Reason
Runtime
Bun
Fast startup, native TS
Language
TypeScript
Type safety
LLM
Azure OpenAI GPT Codex 5.2
Enterprise
Memory
Beads (built-in)
Git-backed persistence
GitHub
git + gh CLI
No Octokit needed
CLI UI
ink
React for terminals
CLI Framework
commander
Argument parsing
Development
# Install dependencies
bun install
# Run in development mode
bun run dev
# Run tests
bun test# Type check
bun run typecheck
# Build for distribution
bun run build:binary
# Build for all platforms
bun run build:all
Configuration Options
Environment Variable
Description
Default
AZURE_OPENAI_ENDPOINT
Azure OpenAI endpoint URL
(required)
AZURE_OPENAI_API_KEY
Azure OpenAI API key (falls back to Azure Identity if unset)
(optional)
AZURE_OPENAI_DEPLOYMENT
Model deployment name
gpt-codex-5.2
AZURE_OPENAI_API_VERSION
API version (Responses API requires 2025-03-01-preview+)
2025-03-01-preview
SHARKBAIT_LOG_LEVEL
Log level (debug/info/warn/error)
info
SHARKBAIT_LOG_FILE
Enable file logging to ~/.sharkbait/logs
false
SHARKBAIT_LOG_JSON
Use JSON format for console output
false
SHARKBAIT_LOG_DIR
Custom log file directory
~/.sharkbait/logs
SHARKBAIT_TELEMETRY
Enable opt-in anonymous telemetry
false
SHARKBAIT_MAX_CONTEXT_TOKENS
Max context window tokens
100000
SHARKBAIT_CONFIRM_DESTRUCTIVE
Require confirmation for destructive commands
true
SHARKBAIT_WORKING_DIR
Default working directory
(current directory)
Logging & Monitoring
Structured Logging
# Enable debug loggingexport SHARKBAIT_LOG_LEVEL=debug
# Enable file logging (writes to ~/.sharkbait/logs/sharkbait.log)export SHARKBAIT_LOG_FILE=true# Use JSON format for machine-readable logsexport SHARKBAIT_LOG_JSON=true
Log output includes timestamps, levels, and contextual information:
AI-powered coding assistant for the command line. Uses OpenAI Responses API (not Chat). Autonomous agents, parallel code reviews, 36 tools.
We found that sharkbait demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.It has 1 open source maintainer collaborating on the project.
Package last updated on 03 Mar 2026
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.