Skip to main content

nerva-agent

The agent engine behind Revenant: a model-agnostic, tool-calling loop over local LLMs. Provides the loop, the tool registry, a dual tool-call protocol (native tool_calls + a prompt-based fallback for models without a tool template), read/write/edit/bash tools, task-based model routing, and hardware-aware capacity tuning.

pip install nerva-agent

What's in it

  • agent_loop — AgentLoop.run(goal): call → parse action → (approve) → dispatch → observe → repeat.
  • agent_tools / agent_protocol — tool registry + parse_action (native + prompt-based).
  • agent_fs_tools / agent_edit_tools / agent_bash_tool — path-confined, approval-gated tools.
  • agent_router — route each turn to the best local model per role.
  • agent_capacity / agent_native_tools — hardware detection + native-tool auto-detection.

Depends on nerva-core. Powers revenant-cli.

License

MIT.

Metadata

Release files for nerva-agent 0.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nerva-agent 0.5.0
File Size Uploaded
nerva_agent-0.5.0.tar.gz 53.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for nerva-agent 0.5.0
File Interpreter ABI Platform
nerva_agent-0.5.0-py3-none-any.whl Python 3 none any Details

Total release size: 118.1 kB

Release files / nerva_agent-0.5.0.tar.gz

Download URL nerva_agent-0.5.0.tar.gz
Size 53.9 kB
Tags Source
SHA-256 checksum
How to use checksums
c5d1eeb9a3c2fb1c0863798fd0128a595ed9ef6eef7f2c25685747a947b7a8d5
BLAKE2b-256 checksum
How to use checksums
3911a2714858c9d041cb8933d9febbd5d3019ff27fefbb977eeb8c91d89d5fff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.1

Release files / nerva_agent-0.5.0-py3-none-any.whl

Download URL nerva_agent-0.5.0-py3-none-any.whl
Size 64.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1f376c1dbe73e0225a7b3db33b3c7d135c483f7166cd076500f997b5729c5a96
BLAKE2b-256 checksum
How to use checksums
5175b517a4de98df0c1f22faed824a25c2eeeb57fce51d988ed2293e196ca60e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.1

Release history Release notifications | RSS feed

0.9.2

2 release files

0.9.1

2 release files

0.9.0

2 release files

0.8.0

2 release files

0.7.0

2 release files

0.6.1

2 release files

0.6.0

2 release files

This release

0.5.0 This release

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page