Skip to main content

Codebase tooling feature for Kestrel Sovereign — read, search, edit, lint, test, commit, rollback with approval gates

Project description

kestrel-feature-code

Codebase tooling feature for Kestrel Sovereign agents — 10 tools spanning read-only inspection (read, search, diff, lint, logs) and approval-gated mutation (edit, commit, rollback, restart, test).

Installation

uv pip install kestrel-feature-code

The feature is auto-discovered by Kestrel Sovereign via the kestrel_sovereign.features entry point — install it alongside kestrel-sovereign and CodeEditFeature registers itself at startup.

Configuration

Variable Description
KESTREL_CODE_ROOT Root directory of the codebase the feature operates on (default: project root)

Tools

Tool Category Description
code_read DATA_ACCESS Read a source file
code_search DATA_ACCESS Search the codebase
code_diff DATA_ACCESS Show uncommitted git changes
code_lint DATA_ACCESS Run ruff linter
code_logs DATA_ACCESS View recent application logs
code_edit SYSTEM Edit a source file (approval-gated)
code_commit SYSTEM Commit staged changes (approval-gated)
code_rollback SYSTEM Roll back to a previous commit (approval-gated)
code_restart SYSTEM Signal server restart (approval-gated)
code_test SYSTEM Run pytest (full suite is approval-gated)

Dependencies

  • kestrel-sovereign-sdk>=0.2,<1 — base Feature, tool, ToolCategory

No runtime dependency on kestrel-sovereign itself; the feature operates against any codebase via KESTREL_CODE_ROOT.

Development

uv pip install -e '.[test]'
uv run pytest

License

Apache-2.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kestrel_feature_code-0.1.0.tar.gz (12.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kestrel_feature_code-0.1.0-py3-none-any.whl (13.3 kB view details)

Uploaded Python 3

File details

Details for the file kestrel_feature_code-0.1.0.tar.gz.

File metadata

  • Download URL: kestrel_feature_code-0.1.0.tar.gz
  • Upload date:
  • Size: 12.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for kestrel_feature_code-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2610050844d8c89e248003eec4ed573103189d396ca48bdff122cf2dfe6689e8
MD5 d8761ababe4fac1a258a1feca01df40d
BLAKE2b-256 163af48d21cc8aab3a6238217d6a1f143b733c328764a0939087a69b08acaaa8

See more details on using hashes here.

Provenance

The following attestation bundles were made for kestrel_feature_code-0.1.0.tar.gz:

Publisher: publish.yml on KestrelSovereignAI/kestrel-feature-code

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file kestrel_feature_code-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for kestrel_feature_code-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e1511d7381ba30d493d8d2f89849cd8b6747a54c8804d8b752aaca2718e55a55
MD5 b7795f64adb39f3ccef00504548228af
BLAKE2b-256 653470843626a28294e7b00af6081f9117add59ff0b4c5771c492c06e15636f7

See more details on using hashes here.

Provenance

The following attestation bundles were made for kestrel_feature_code-0.1.0-py3-none-any.whl:

Publisher: publish.yml on KestrelSovereignAI/kestrel-feature-code

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page