Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

agent

Local ledger client. Record sessions, tasks, checklists and review pings on this machine, then pair the device to the agent-core hub with GitHub.

Product decisions (visibility, pairing, sync, restore, what we will not build) are in DESIGN.md.

This device is the write owner of its own rows. The hub holds a full copy. agent sync pushes and pulls every event. agent restore rebuilds a wiped database from the hub.

Install

python3 -m venv .venv
. .venv/bin/activate
pip install -e ".[test]"
agent init

Data lives in $AGENT_HOME or, if that is unset, ~/.local/share/agent.

Pair and sync

agent pair --hub https://agent.example
# confirm in the browser after GitHub sign-in
agent sync
agent sync --follow   # stay on the hub WebSocket; a dead socket is a loud error
agent restore   # after a wiped laptop

AGENT_HUB may replace --hub. There is no default hub URL.

Record work

agent session register --id <session-id> --kind human
agent task create --session <session-id> --workflow implement --title ""
agent round start --task <uuid>
agent agent start --session <session-id> --task <uuid> --role implementer --vendor grok --round 1
agent agent finish --id <implementer-uuid> --verdict done
agent agent start --session <session-id> --task <uuid> --role pr-reviewer-quality --vendor grok
agent agent finish --id <reviewer-uuid> --verdict approved
agent check record --task <uuid> --name lint --command "pytest" --result pass
agent gate record --task <uuid> --stage grok-pr --dimension quality --vendor grok \
  --verdict approved --head <sha> --agent <reviewer-uuid>
agent work add --session <session-id> --key standing --closable-by human
agent work set --session <session-id> --key standing --status done --source human --actor-session <session-id>
agent work list --session <session-id>
agent checklist set --task <uuid> --key spec_written --status ja --source human --evidence "spec.md"
agent ping send --to some-login --kind review-request --task <uuid> --note "ready"
agent status
agent dashboard

Kind is human, runner, or other.

Tests

pytest

The integration test talks to agent-core when that package is importable (install it next to this checkout).

License

MIT. See LICENSE.

About

DFX Agent client: local ledger, pairing, bidirectional sync.

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages