Local-first notes for agents and humans.
Bugbook is a local-first notes + database workspace where humans and coding agents collaborate in the same files.
BugbookCore: shared models + storage engine.BugbookCLI: automation and agent-friendly CLI.Bugbook(app target): desktop macOS app for humans.BugbookMobile(SwiftPM executable): shared mobile code and local validation target.ios/BugbookMobile.xcodeproj: real iOS app target for Simulator/device.
Both interfaces read/write the same workspace data.
Human interface (desktop/mobile):
- Edit notes and databases.
- Open Agent Hub to see active tasks, recent runs, and recent events.
- Update task statuses visually.
Agent interface (CLI):
- Create/update tasks.
- Start/finish runs.
- Log structured events.
- Output dashboard JSON for automation.
Shared source of truth (inside your workspace):
.bugbook/agents/tasks.json.bugbook/agents/runs.jsonl.bugbook/agents/events.jsonlAGENTS.md(optional workspace instructions)
git clone https://github.com/max4c/bugbook.git
cd bugbookswift buildswift run BugbookCLI agent --helpInitialize workspace files:
swift run BugbookCLI agent init --workspace "~/Library/Application Support/Bugbook" --write-agents-mdCreate task and track a run:
swift run BugbookCLI agent task create --workspace "~/Library/Application Support/Bugbook" --title "Fix editor bug" --status todo
swift run BugbookCLI agent run start --workspace "~/Library/Application Support/Bugbook" --task <task_id> --agent codex --branch codex/fix-editor
swift run BugbookCLI agent event log --workspace "~/Library/Application Support/Bugbook" --run-id <run_id> --level info --message "Added regression test"
swift run BugbookCLI agent run finish <run_id> --workspace "~/Library/Application Support/Bugbook" --status succeeded --summary "Shipped fix"
swift run BugbookCLI agent task update <task_id> --workspace "~/Library/Application Support/Bugbook" --status doneOpen dashboard JSON:
swift run BugbookCLI agent dashboard --workspace "~/Library/Application Support/Bugbook"swift run BugbookThen open Agent Hub from the sidebar (or Cmd+Shift+J).
Open the iOS project in Xcode:
open ios/BugbookMobile.xcodeprojThe iOS project is generated from ios/project.yml (XcodeGen). Regenerate if needed:
cd ios && xcodegen generateThen:
- Select scheme
BugbookMobileApp. - Select an iOS simulator/device.
- Run.
Important:
- Do not run
Bugbookon iOS.Bugbookis macOS-only and usesAppKit. - If you see
No such module 'AppKit', you launched the wrong scheme. - If you see
BUNDLE_IDENTIFIER_FOR_CURRENT_PROCESS_IS_NIL, you are launching the SwiftPM executable instead of the iOS app bundle.
Run the one-command smoke test:
./scripts/smoke-cli.shThis verifies:
- workspace init
- task create/update
- run start/finish
- event logging
- dashboard output
- on-disk agent files
- Verify scheme is
BugbookMobileAppinios/BugbookMobile.xcodeproj. - In Xcode: Product -> Clean Build Folder.
- Rebuild and run again.
You can also verify simulator build from terminal:
xcodebuild -project ios/BugbookMobile.xcodeproj -scheme BugbookMobileApp -destination 'platform=iOS Simulator,name=iPhone 17' buildUse either:
swift run BugbookCLI agent task list --workspace "~/Library/Application Support/Bugbook"
swift run BugbookCLI agent run list --workspace "~/Library/Application Support/Bugbook" --limit 50
swift run BugbookCLI agent event list --workspace "~/Library/Application Support/Bugbook" --limit 100Or inspect raw files directly:
"~/Library/Application Support/Bugbook"/.bugbook/agents/tasks.json"~/Library/Application Support/Bugbook"/.bugbook/agents/runs.jsonl"~/Library/Application Support/Bugbook"/.bugbook/agents/events.jsonl
This repo currently does not contain MCP-specific integration/config.
If you want MCP-enabled workflows here, we can add:
- an MCP capability document in
AGENTS.md - task templates for Xcode actions
- explicit agent instructions for MCP tools