Documentation
¶
Overview ¶
Package djinn holds what must sit at the root of the module: the built interface, embedded at compile time.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Icon []byte
Icon is the icon of the application, for the window, the dock and the tray.
var Icon256 []byte
Icon256 is the icon at 256 px, for the window on Linux: GTK 3 silently drops a window icon that does not fit one X11 request, 512 px or more (gdk_x11_window_set_icon_list). Made by `go run ./tools/icons gen`.
Functions ¶
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
djinn
command
Command djinn is the single entry point of Djinn: the native window, the local server and the command line that agents use to drive a mission.
|
Command djinn is the single entry point of Djinn: the native window, the local server and the command line that agents use to drive a mission. |
|
Package gen holds what `go tool task gen` generates from the protos in api/.
|
Package gen holds what `go tool task gen` generates from the protos in api/. |
|
go/backup/v1/backupv1connect
Package backup.v1 is the backup of Djinn's data folder: one archive, taken while Djinn runs.
|
Package backup.v1 is the backup of Djinn's data folder: one archive, taken while Djinn runs. |
|
go/demo/v1/demov1connect
Package demo.v1 is a minimal service that proves a server stream reaches the interface, in the window and in the browser alike.
|
Package demo.v1 is a minimal service that proves a server stream reaches the interface, in the window and in the browser alike. |
|
go/djinn/v1/djinnv1connect
The operating load slider that controls how much of the machine Djinn uses.
|
The operating load slider that controls how much of the machine Djinn uses. |
|
go/machine/v1/machinev1connect
Package machine.v1 is what Djinn knows of the machine it runs on, and the gates: shared resources it grants one holder at a time.
|
Package machine.v1 is what Djinn knows of the machine it runs on, and the gates: shared resources it grants one holder at a time. |
|
go/plan/v1/planv1connect
The plan of work: the projects Djinn knows, the wishes it works to grant across them, their tasks, and the questions agents ask along the way.
|
The plan of work: the projects Djinn knows, the wishes it works to grant across them, their tasks, and the questions agents ask along the way. |
|
go/terminal/v1/terminalv1connect
Package terminal.v1 runs programs on pseudo-terminals for the window: a shell, or the lead agent, in a real terminal the user types into.
|
Package terminal.v1 runs programs on pseudo-terminals for the window: a shell, or the lead agent, in a real terminal the user types into. |
|
go/ui/v1/uiv1connect
The interface reserved to the native window.
|
The interface reserved to the native window. |
|
internal
|
|
|
backup
Package backup writes Djinn's data folder into one archive, and puts it back.
|
Package backup writes Djinn's data folder into one archive, and puts it back. |
|
cli
Package cli turns the public methods of the protos into commands, by convention and at runtime: the command is the service then the method, the arguments are the fields of the request, and the help is the proto comments.
|
Package cli turns the public methods of the protos into commands, by convention and at runtime: the command is the service then the method, the arguments are the fields of the request, and the help is the proto comments. |
|
demo
Package demo implements demo.v1.DemoService, which only proves that a server stream reaches the interface.
|
Package demo implements demo.v1.DemoService, which only proves that a server stream reaches the interface. |
|
dispatch
Package dispatch decides which planned task starts now: the scheduler's rules, in plain Go, apart from the store and the workers.
|
Package dispatch decides which planned task starts now: the scheduler's rules, in plain Go, apart from the store and the workers. |
|
dispatch/bench
Package bench is the dispatch bench (T07): dispatch situations written as data, each with the decision expected by hand, and what a contender decides for each.
|
Package bench is the dispatch bench (T07): dispatch situations written as data, each with the decision expected by hand, and what a contender decides for each. |
|
docsite
Package docsite is the Grimoire, Djinn's documentation site, docs/site: its book's navigation and pages rendered from docs/site/pages (grimoire.go), and its Command line filled in from the command tree of this very djinn (cli.Reference).
|
Package docsite is the Grimoire, Djinn's documentation site, docs/site: its book's navigation and pages rendered from docs/site/pages (grimoire.go), and its Command line filled in from the command tree of this very djinn (cli.Reference). |
|
fsx
Package fsx holds the file system helpers several packages share: a rename that Windows does not refuse for a moment, a write that a reader never sees half done, and the sweep of what such a write left when a kill cut it.
|
Package fsx holds the file system helpers several packages share: a rename that Windows does not refuse for a moment, a write that a reader never sees half done, and the sweep of what such a write left when a kill cut it. |
|
gate
Package gate grants the gates: shared resources (code generation, the local stack, an end-to-end run, a paid model run) that one holder uses at a time, granted only while the machine is not under pressure and has the memory the command peaked at.
|
Package gate grants the gates: shared resources (code generation, the local stack, an end-to-end run, a paid model run) that one holder uses at a time, granted only while the machine is not under pressure and has the memory the command peaked at. |
|
gitx
Package gitx starts the git commands Djinn runs, each with a deadline: a git that talks to a remote (over ssh, a stalled connection or a prompt nobody sees) or waits on a lock never holds Djinn for good (W504).
|
Package gitx starts the git commands Djinn runs, each with a deadline: a git that talks to a remote (over ssh, a stalled connection or a prompt nobody sees) or waits on a lock never holds Djinn for good (W504). |
|
harness
Package harness runs workers: one agent process per task, in the task's own worktree, followed and recorded in the store as it goes.
|
Package harness runs workers: one agent process per task, in the task's own worktree, followed and recorded in the store as it goes. |
|
link
Package link reads Djinn's links, djinn://tilasm/<id> and djinn://wish/<id>, which open the app on what they name from anywhere: a browser, a chat, a terminal, a Markdown file.
|
Package link reads Djinn's links, djinn://tilasm/<id> and djinn://wish/<id>, which open the app on what they name from anywhere: a browser, a chat, a terminal, a Markdown file. |
|
logx
Package logx is the log of djinn up, to debug a freeze or a quit that hangs (W511): levelled lines (log/slog) in logs/djinn.log of the data folder, rolled over in the process on every system, and goroutine dumps beside them.
|
Package logx is the log of djinn up, to debug a freeze or a quit that hangs (W511): levelled lines (log/slog) in logs/djinn.log of the data folder, rolled over in the process on every system, and goroutine dumps beside them. |
|
machine
Package machine discovers what the machine has (cores, memory, disk, GPUs) and how loaded it is (load, pressure), and turns it into the number of workers Djinn runs at once, whether a new worker or a gate may start now, and whether a local model can run.
|
Package machine discovers what the machine has (cores, memory, disk, GPUs) and how loaded it is (load, pressure), and turns it into the number of workers Djinn runs at once, whether a new worker or a gate may start now, and whether a local model can run. |
|
plan
Package plan implements the services of plan.v1 on the store: projects, wishes and questions.
|
Package plan implements the services of plan.v1 on the store: projects, wishes and questions. |
|
render
Package render writes the page of a wish: one HTML file standing alone, made by Djinn from its store, never by a model.
|
Package render writes the page of a wish: one HTML file standing alone, made by Djinn from its store, never by a model. |
|
server
Package server builds the single HTTP handler that both the native window and the browser mode serve: the Connect services, and the interface for every other path.
|
Package server builds the single HTTP handler that both the native window and the browser mode serve: the Connect services, and the interface for every other path. |
|
store
Package store keeps the entities of Djinn in one SQLite database, by protobuf reflection: one table per message, its id as primary key, the fields it is searched by as columns, and the whole message as a binary payload.
|
Package store keeps the entities of Djinn in one SQLite database, by protobuf reflection: one table per message, its id as primary key, the fields it is searched by as columns, and the whole message as a binary payload. |
|
swapexe
Package swapexe puts a freshly built executable in place of an installed one, in one rename, without disturbing a copy that runs.
|
Package swapexe puts a freshly built executable in place of an installed one, in one rename, without disturbing a copy that runs. |
|
terminal
Package terminal runs programs on pseudo-terminals for the window: a shell, or the lead agent, that the user types into as in any terminal.
|
Package terminal runs programs on pseudo-terminals for the window: a shell, or the lead agent, that the user types into as in any terminal. |
|
testx
Package testx holds what the tests of several packages share: the mark of a test that checks portable logic, which the Windows job skips (CONTRIBUTING.md), and the environment every test process starts from (Guard).
|
Package testx holds what the tests of several packages share: the mark of a test that checks portable logic, which the Windows job skips (CONTRIBUTING.md), and the environment every test process starts from (Guard). |
|
testx/bigwish
Package bigwish makes a wish of real size, to measure Djinn on: its azimas and tasks, the events of their workers, its questions and decisions, its blocks and its journal, as a wish export (WishService.Import reads it).
|
Package bigwish makes a wish of real size, to measure Djinn on: its azimas and tasks, the events of their workers, its questions and decisions, its blocks and its journal, as a wish export (WishService.Import reads it). |
|
tilasm
Package tilasm builds what a tilasm publishes on claude.ai: its page with the files beside it, at their paths, as the window serves them.
|
Package tilasm builds what a tilasm publishes on claude.ai: its page with the files beside it, at their paths, as the window serves them. |
|
ui
Package ui implements UiService, the API the window calls.
|
Package ui implements UiService, the API the window calls. |
|
usage
Package usage provides model price tables and cost estimation for worker token usage.
|
Package usage provides model price tables and cost estimation for worker token usage. |
|
window
Package window watches the page of Djinn's native window from outside it, on Linux.
|
Package window watches the page of Djinn's native window from outside it, on Linux. |
|
lead
|
|
|
notes
Package notes holds the lead's notes: how to lead wishes with Djinn, learnt from past wishes, whatever the agent that leads.
|
Package notes holds the lead's notes: how to lead wishes with Djinn, learnt from past wishes, whatever the agent that leads. |
|
tones
Package tones holds the Djinn's two tones (decision Q36, W156): the voice of the lead Djinn drives, by the theme the window shows.
|
Package tones holds the Djinn's two tones (decision Q36, W156): the voice of the lead Djinn drives, by the theme the window shows. |
|
Package locales holds the texts Djinn shows to people, one JSON catalog per language, shared by the Go server and the interface (src/i18n.ts).
|
Package locales holds the texts Djinn shows to people, one JSON catalog per language, shared by the Go server and the interface (src/i18n.ts). |
|
tools
|
|
|
benchdispatch
command
Command benchdispatch is the dispatch bench (T07, plan/8e8d3d76-orchestrator.md): it runs the plain Go scheduler on every case of internal/dispatch/bench/cases.json and prints a Markdown table of its decisions, the expected ones, and the time per pass.
|
Command benchdispatch is the dispatch bench (T07, plan/8e8d3d76-orchestrator.md): it runs the plain Go scheduler on every case of internal/dispatch/bench/cases.json and prints a Markdown table of its decisions, the expected ones, and the time per pass. |
|
benchworkers
command
Command benchworkers compares four ways Djinn starts a worker on the same small task, with a real model: cold (claude -p as Djinn runs it), --bare, a fork of a session, and a cold worker behind a stable brief.
|
Command benchworkers compares four ways Djinn starts a worker on the same small task, with a real model: cold (claude -p as Djinn runs it), --bare, a fork of a session, and a cold worker behind a stable brief. |
|
bigwish
command
Command bigwish writes a wish of real size (internal/testx/bigwish) to a file, as djinn wish export writes one: djinn wish import reads it into any djinn, the e2e's first (e2e/bigwish.ts).
|
Command bigwish writes a wish of real size (internal/testx/bigwish) to a file, as djinn wish export writes one: djinn wish import reads it into any djinn, the e2e's first (e2e/bigwish.ts). |
|
copydir
command
Command copydir copies a directory tree.
|
Command copydir copies a directory tree. |
|
devloop
command
Command devloop is `go tool task dev`: Djinn while you edit it.
|
Command devloop is `go tool task dev`: Djinn while you edit it. |
|
docsite
command
Command docsite builds the Grimoire, the documentation site, into a folder that opens offline: docs/site, its pages rendered and its Command line filled in from the command tree djinn is built from.
|
Command docsite builds the Grimoire, the documentation site, into a folder that opens offline: docs/site, its pages rendered and its Command line filled in from the command tree djinn is built from. |
|
icons
command
Command icons makes Djinn's icon for each system from one drawing, build/icon.png: the logo of the window, which the window, the dock and the tray already show (assets.go).
|
Command icons makes Djinn's icon for each system from one drawing, build/icon.png: the logo of the window, which the window, the dock and the tray already show (assets.go). |
|
macapp
command
Command macapp lays out Djinn.app, the macOS application bundle, around a djinn binary built for macOS, and zips it.
|
Command macapp lays out Djinn.app, the macOS application bundle, around a djinn binary built for macOS, and zips it. |
|
releasepack
command
Command releasepack packs release archives and their checksums.
|
Command releasepack packs release archives and their checksums. |
|
slowtests
command
Command slowtests reads `go test -json` on its input, prints what go test prints without -json (the output of the tests that fail, the build errors, a line per package), and fails when a test fails or when a top-level test took longer than -max: tests stay fast, and a slow one is caught the day it slows down.
|
Command slowtests reads `go test -json` on its input, prints what go test prints without -json (the output of the tests that fail, the build errors, a line per package), and fails when a test fails or when a top-level test took longer than -max: tests stay fast, and a slow one is caught the day it slows down. |
|
svgdiagrams
command
|
|
|
swapexe
command
Command swapexe puts a freshly built executable in place of an installed one, in one rename, without disturbing a copy that runs: it is how `task install` updates the Djinn in use.
|
Command swapexe puts a freshly built executable in place of an installed one, in one rename, without disturbing a copy that runs: it is how `task install` updates the Djinn in use. |
|
testall
command
Command testall runs the parts of `go tool task test` at once, each as its own `go tool task <part>` whose output goes to its own file (test-results/<part>.log), and prints them apart: a green part's output as soon as it ends, a red part's at the end, under its name, and last a line naming the parts that failed.
|
Command testall runs the parts of `go tool task test` at once, each as its own `go tool task <part>` whose output goes to its own file (test-results/<part>.log), and prints them apart: a green part's output as soon as it ends, a red part's at the end, under its name, and last a line naming the parts that failed. |
|
windowcheck
command
Command windowcheck tells whether a Connect server stream reaches the native window of Djinn message by message, on the path the window really uses on this system: the Wails internal asset server (wails://) on macOS and Linux, the loopback HTTP server with its token on Windows; and whether a unary call with an empty response still succeeds there.
|
Command windowcheck tells whether a Connect server stream reaches the native window of Djinn message by message, on the path the window really uses on this system: the Wails internal asset server (wails://) on macOS and Linux, the loopback HTTP server with its token on Windows; and whether a unary call with an empty response still succeeds there. |
|
Package wishicons is the bank of wish icons (L09 v6), shared by the server and the interface as the locales are: bank.json holds each icon's name, family, duo, search words in English and in French, and its drawing.
|
Package wishicons is the bank of wish icons (L09 v6), shared by the server and the interface as the locales are: bank.json holds each icon's name, family, duo, search words in English and in French, and its drawing. |